import { _ as o7 } from "./request-fingerprint-BANtRL63.js";
import { _ as Q8 } from "./__vite-plugin-wasm-helper-D7K_KhUE.js";
import { b5 as c_, b6 as nu, b7 as pl, b8 as zu, b9 as $8, ba as bl, bb as Hp, bc as wl, bd as t5, be as sr, bf as e5, bg as Ai, bh as bb, bi as r5, bj as n5, bk as yl, bl as hl, bm as vl, bn as wb, bo as _5, bp as Kp, bq as lo, br as Ui, bs as qi, bt as qu, bu as G_, bv as je, bw as Ir, bx as a5, by as Ae, bz as Sg, bA as kw, bB as o5, bC as yb, bD as i7, bE as Ta, bF as i5, bG as fo, bH as s5, bI as Eg, bJ as Vp, bK as Md, bL as cr, bM as zs, bN as $e, bO as Hn, bP as qs, bQ as Xt, bR as ir, bS as ml, bT as Du, bU as Ld, bV as c5, bW as d5, bX as hb, bY as u5, bZ as Zp, b_ as s7, b$ as c7, c0 as l5, c1 as d7, c2 as u7, c3 as l7, c4 as f7, c5 as Mt, c6 as f5, c7 as g7, c8 as p7, c9 as Nt, ca as b7, cb as w7, cc as pr, cd as Tt, ce as g5, cf as _e, cg as Kw, ch as zt, ci as R0, cj as vb, ck as Ja, cl as y7, cm as p5, cn as Yp, co as U0, cp as Lh, cq as Qt, cr as Ia, cs as Xo, ct as Pe, cu as Me, cv as h7, cw as v7, cx as Bc, cy as mb, cz as Vw, cA as Il, cB as Og, cC as Zw, cD as m7, cE as Gu, cF as I7, cG as ag, cH as $s, cI as zd, cJ as zh, cK as k7, cL as B7, cM as x7, cN as j7, cO as b5, cP as w5, cQ as qh, cR as S7, cS as Wp, cT as y5, __tla as __tla_0 } from "./App-BLnEEK_h.js";
import { cU as Uxt, cV as Cxt, cW as Nxt, __tla as __tla_1 } from "./App-BLnEEK_h.js";
import { s as E7 } from "./index-BkMDDkpV.js";
import { HeaderMap as Dh, Label as wu, AlgorithmId as Gh, CBORValue as C0, ProtectedHeaderMap as O7, Headers as F7, COSESign1Builder as A7, COSEKey as T7, KeyType as P7, Int as N0, BigNum as Hh, __tla as __tla_2 } from "./cardano_message_signing-CcrxYRax.js";
import { aa as Yw, ab as R7, __tla as __tla_3 } from "./cardano-e2kMgYtl.js";
import "./Logo1am-CaBWyNpM.js";
import "./_virtual_wxt-plugins-CDnz5Vh6.js";
let Fxt, a7, RBt, Axt, Txt;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_1;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_2;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_3;
        } catch  {}
    })()
]).then(async ()=>{
    const U7 = "/assets/cardano_multiplatform_lib_bg-hqAZwI1C.wasm";
    let r;
    function h5(n) {
        r = n;
    }
    const _i = new Array(128).fill(void 0);
    _i.push(void 0, null, !0, !1);
    function Re(n) {
        return _i[n];
    }
    const C7 = typeof TextDecoder > "u" ? (0, module.require)("util").TextDecoder : TextDecoder;
    let v5 = new C7("utf-8", {
        ignoreBOM: !0,
        fatal: !0
    });
    v5.decode();
    let vp = null;
    function Pu() {
        return (vp === null || vp.byteLength === 0) && (vp = new Uint8Array(r.memory.buffer)), vp;
    }
    function _t(n, t) {
        return n = n >>> 0, v5.decode(Pu().subarray(n, n + t));
    }
    let $f = _i.length;
    function Ne(n) {
        $f === _i.length && _i.push(_i.length + 1);
        const t = $f;
        return $f = _i[t], _i[t] = n, t;
    }
    function N7(n) {
        n < 132 || (_i[n] = $f, $f = n);
    }
    function x(n) {
        const t = Re(n);
        return N7(n), t;
    }
    function Di(n, t) {
        try {
            return n.apply(this, t);
        } catch (e) {
            r.__wbindgen_exn_store(Ne(e));
        }
    }
    let $ = 0;
    const M7 = typeof TextEncoder > "u" ? (0, module.require)("util").TextEncoder : TextEncoder;
    let Np = new M7("utf-8");
    const L7 = typeof Np.encodeInto == "function" ? function(n, t) {
        return Np.encodeInto(n, t);
    } : function(n, t) {
        const e = Np.encode(n);
        return t.set(e), {
            read: n.length,
            written: e.length
        };
    };
    function lt(n, t, e) {
        if (e === void 0) {
            const s = Np.encode(n), u = t(s.length, 1) >>> 0;
            return Pu().subarray(u, u + s.length).set(s), $ = s.length, u;
        }
        let o = n.length, _ = t(o, 1) >>> 0;
        const a = Pu();
        let c = 0;
        for(; c < o; c++){
            const s = n.charCodeAt(c);
            if (s > 127) break;
            a[_ + c] = s;
        }
        if (c !== o) {
            c !== 0 && (n = n.slice(c)), _ = e(_, o, o = c + n.length * 3, 1) >>> 0;
            const s = Pu().subarray(_ + c, _ + o), u = L7(n, s);
            c += u.written, _ = e(_, o, c, 1) >>> 0;
        }
        return $ = c, _;
    }
    let yu = null;
    function i() {
        return (yu === null || yu.buffer.detached === !0 || yu.buffer.detached === void 0 && yu.buffer !== r.memory.buffer) && (yu = new DataView(r.memory.buffer)), yu;
    }
    function yt(n, t) {
        return n = n >>> 0, Pu().subarray(n / 1, n / 1 + t);
    }
    function xt(n, t) {
        const e = t(n.length * 1, 1) >>> 0;
        return Pu().set(n, e / 1), $ = n.length, e;
    }
    function z(n, t) {
        if (!(n instanceof t)) throw new Error(`expected instance of ${t.name}`);
        return n.ptr;
    }
    function z7(n, t, e, o) {
        let _, a;
        try {
            const g = r.__wbindgen_add_to_stack_pointer(-16), h = lt(n, r.__wbindgen_malloc, r.__wbindgen_realloc), B = $, I = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), j = $, w = lt(e, r.__wbindgen_malloc, r.__wbindgen_realloc), S = $, b = lt(o, r.__wbindgen_malloc, r.__wbindgen_realloc), k = $;
            r.emip3_encrypt_with_password(g, h, B, I, j, w, S, b, k);
            var c = i().getInt32(g + 0, !0), s = i().getInt32(g + 4, !0), u = i().getInt32(g + 8, !0), l = i().getInt32(g + 12, !0), f = c, p = s;
            if (l) throw f = 0, p = 0, x(u);
            return _ = f, a = p, _t(f, p);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(_, a, 1);
        }
    }
    function q7(n, t) {
        let e, o;
        try {
            const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(n, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $, h = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), B = $;
            r.emip3_decrypt_with_password(f, p, g, h, B);
            var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
            if (s) throw u = 0, l = 0, x(c);
            return e = u, o = l, _t(u, l);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
        }
    }
    function ne(n) {
        return n == null;
    }
    function D7(n) {
        const t = xt(n, r.__wbindgen_malloc), e = $, o = r.encode_arbitrary_bytes_as_metadatum(t, e);
        return Te.__wrap(o);
    }
    function G7(n) {
        try {
            const o = r.__wbindgen_add_to_stack_pointer(-16);
            z(n, Te), r.decode_arbitrary_bytes_from_metadatum(o, n.__wbg_ptr);
            var t = i().getInt32(o + 0, !0), e = i().getInt32(o + 4, !0);
            let _;
            return t !== 0 && (_ = yt(t, e).slice(), r.__wbindgen_free(t, e * 1, 1)), _;
        } finally{
            r.__wbindgen_add_to_stack_pointer(16);
        }
    }
    function H7(n, t) {
        try {
            const a = r.__wbindgen_add_to_stack_pointer(-16);
            z(n, Vr), z(t, T_), r.min_script_fee(a, n.__wbg_ptr, t.__wbg_ptr);
            var e = i().getBigInt64(a + 0, !0), o = i().getInt32(a + 8, !0), _ = i().getInt32(a + 12, !0);
            if (_) throw x(o);
            return BigInt.asUintN(64, e);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16);
        }
    }
    function K7(n, t) {
        try {
            const a = r.__wbindgen_add_to_stack_pointer(-16);
            z(n, Vr), z(t, oc), r.min_no_script_fee(a, n.__wbg_ptr, t.__wbg_ptr);
            var e = i().getBigInt64(a + 0, !0), o = i().getInt32(a + 8, !0), _ = i().getInt32(a + 12, !0);
            if (_) throw x(o);
            return BigInt.asUintN(64, e);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16);
        }
    }
    function V7(n, t, e, o) {
        try {
            const s = r.__wbindgen_add_to_stack_pointer(-16);
            z(n, Vr), z(t, oc), z(e, T_), r.min_fee(s, n.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr, o);
            var _ = i().getBigInt64(s + 0, !0), a = i().getInt32(s + 8, !0), c = i().getInt32(s + 12, !0);
            if (c) throw x(a);
            return BigInt.asUintN(64, _);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16);
        }
    }
    function Z7(n, t, e) {
        z(n, Vn), z(t, Lr), z(e, x5);
        const o = r.make_daedalus_bootstrap_witness(n.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
        return A_.__wrap(o);
    }
    function Y7(n, t, e) {
        z(n, Vn);
        var o = n.__destroy_into_raw();
        z(t, Lr);
        var _ = t.__destroy_into_raw();
        z(e, ka);
        const a = r.make_icarus_bootstrap_witness(o, _, e.__wbg_ptr);
        return A_.__wrap(a);
    }
    function W7(n) {
        try {
            const _ = r.__wbindgen_add_to_stack_pointer(-16);
            z(n, hn), r.compute_total_ex_units(_, n.__wbg_ptr);
            var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
            if (o) throw x(e);
            return Je.__wrap(t);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16);
        }
    }
    let mp = null;
    function m5() {
        return (mp === null || mp.byteLength === 0) && (mp = new Uint16Array(r.memory.buffer)), mp;
    }
    function I5(n, t) {
        return n = n >>> 0, m5().subarray(n / 2, n / 2 + t);
    }
    function J7(n, t) {
        const e = t(n.length * 2, 2) >>> 0;
        return m5().set(n, e / 2), $ = n.length, e;
    }
    let Ip = null;
    function X7() {
        return (Ip === null || Ip.byteLength === 0) && (Ip = new Uint32Array(r.memory.buffer)), Ip;
    }
    function Q7(n, t) {
        return n = n >>> 0, X7().subarray(n / 4, n / 4 + t);
    }
    function $7(n) {
        z(n, tr);
        const t = r.hash_auxiliary_data(n.__wbg_ptr);
        return Bi.__wrap(t);
    }
    function _u(n) {
        z(n, Zr);
        const t = r.hash_transaction(n.__wbg_ptr);
        return Vn.__wrap(t);
    }
    function tj(n) {
        z(n, Vt);
        const t = r.hash_plutus_data(n.__wbg_ptr);
        return o_.__wrap(t);
    }
    function ej(n, t, e) {
        z(n, hn), z(t, C_);
        let o = 0;
        ne(e) || (z(e, Xr), o = e.__destroy_into_raw());
        const _ = r.hash_script_data(n.__wbg_ptr, t.__wbg_ptr, o);
        return Oa.__wrap(_);
    }
    function rj(n, t, e, o) {
        try {
            const s = r.__wbindgen_add_to_stack_pointer(-16);
            z(n, hn), z(t, Xr), z(e, C_), z(o, Ju), r.calc_script_data_hash(s, n.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr);
            var _ = i().getInt32(s + 0, !0), a = i().getInt32(s + 4, !0), c = i().getInt32(s + 8, !0);
            if (c) throw x(a);
            return _ === 0 ? void 0 : Oa.__wrap(_);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16);
        }
    }
    function nj(n, t) {
        try {
            const a = r.__wbindgen_add_to_stack_pointer(-16);
            z(n, Gr), z(t, C_), r.calc_script_data_hash_from_witness(a, n.__wbg_ptr, t.__wbg_ptr);
            var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
            if (_) throw x(o);
            return e === 0 ? void 0 : Oa.__wrap(e);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16);
        }
    }
    function Ib(n, t) {
        z(n, Vn), z(t, Sn);
        const e = r.make_vkey_witness(n.__wbg_ptr, t.__wbg_ptr);
        return Q_.__wrap(e);
    }
    function _j(n, t, e) {
        try {
            const c = r.__wbindgen_add_to_stack_pointer(-16);
            z(n, Zr), r.get_implicit_input(c, n.__wbg_ptr, t, e);
            var o = i().getInt32(c + 0, !0), _ = i().getInt32(c + 4, !0), a = i().getInt32(c + 8, !0);
            if (a) throw x(_);
            return Ue.__wrap(o);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16);
        }
    }
    function aj(n, t, e) {
        try {
            const c = r.__wbindgen_add_to_stack_pointer(-16);
            z(n, Zr), r.get_deposit(c, n.__wbg_ptr, t, e);
            var o = i().getBigInt64(c + 0, !0), _ = i().getInt32(c + 8, !0), a = i().getInt32(c + 12, !0);
            if (a) throw x(_);
            return BigInt.asUintN(64, o);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16);
        }
    }
    function oj(n, t) {
        try {
            const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(n, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
            r.encode_json_str_to_metadatum(a, c, s, t);
            var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
            if (_) throw x(o);
            return Te.__wrap(e);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16);
        }
    }
    function ij(n, t) {
        let e, o;
        try {
            const f = r.__wbindgen_add_to_stack_pointer(-16);
            z(n, Te), r.decode_metadatum_to_json_str(f, n.__wbg_ptr, t);
            var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
            if (s) throw u = 0, l = 0, x(c);
            return e = u, o = l, _t(u, l);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
        }
    }
    function sj(n, t) {
        try {
            const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(n, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
            r.encode_json_str_to_plutus_datum(a, c, s, t);
            var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
            if (_) throw x(o);
            return Vt.__wrap(e);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16);
        }
    }
    function cj(n, t) {
        let e, o;
        try {
            const f = r.__wbindgen_add_to_stack_pointer(-16);
            z(n, Vt), r.decode_plutus_datum_to_json_str(f, n.__wbg_ptr, t);
            var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
            if (s) throw u = 0, l = 0, x(c);
            return e = u, o = l, _t(u, l);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
        }
    }
    function dj(n, t) {
        try {
            const a = r.__wbindgen_add_to_stack_pointer(-16);
            z(n, mr), r.min_ada_required(a, n.__wbg_ptr, t);
            var e = i().getBigInt64(a + 0, !0), o = i().getInt32(a + 8, !0), _ = i().getInt32(a + 12, !0);
            if (_) throw x(o);
            return BigInt.asUintN(64, e);
        } finally{
            r.__wbindgen_add_to_stack_pointer(16);
        }
    }
    let kp = null;
    function uj() {
        return (kp === null || kp.byteLength === 0) && (kp = new BigInt64Array(r.memory.buffer)), kp;
    }
    function Kh(n, t) {
        return n = n >>> 0, uj().subarray(n / 8, n / 8 + t);
    }
    let Bp = null;
    function k5() {
        return (Bp === null || Bp.byteLength === 0) && (Bp = new BigUint64Array(r.memory.buffer)), Bp;
    }
    function lj(n, t) {
        const e = t(n.length * 8, 8) >>> 0;
        return k5().set(n, e / 8), $ = n.length, e;
    }
    function fj(n, t) {
        return n = n >>> 0, k5().subarray(n / 8, n / 8 + t);
    }
    const B5 = Object.freeze({
        Default: 0,
        0: "Default"
    }), gj = Object.freeze({
        V1: 0,
        0: "V1",
        V2: 1,
        1: "V2"
    }), pj = Object.freeze({
        ConstrPlutusData: 0,
        0: "ConstrPlutusData",
        Map: 1,
        1: "Map",
        List: 2,
        2: "List",
        Integer: 3,
        3: "Integer",
        Bytes: 4,
        4: "Bytes"
    }), bj = Object.freeze({
        ParameterChangeAction: 0,
        0: "ParameterChangeAction",
        HardForkInitiationAction: 1,
        1: "HardForkInitiationAction",
        TreasuryWithdrawalsAction: 2,
        2: "TreasuryWithdrawalsAction",
        NoConfidence: 3,
        3: "NoConfidence",
        UpdateCommittee: 4,
        4: "UpdateCommittee",
        NewConstitution: 5,
        5: "NewConstitution",
        InfoAction: 6,
        6: "InfoAction"
    }), wj = Object.freeze({
        Native: 0,
        0: "Native",
        PlutusV1: 1,
        1: "PlutusV1",
        PlutusV2: 2,
        2: "PlutusV2",
        PlutusV3: 3,
        3: "PlutusV3"
    }), yj = Object.freeze({
        No: 0,
        0: "No",
        Yes: 1,
        1: "Yes",
        Abstain: 2,
        2: "Abstain"
    }), hj = Object.freeze({
        PlutusV1: 0,
        0: "PlutusV1",
        PlutusV2: 1,
        1: "PlutusV2",
        PlutusV3: 2,
        2: "PlutusV3"
    }), vj = Object.freeze({
        BasePaymentKeyStakeKey: 0,
        0: "BasePaymentKeyStakeKey",
        BasePaymentScriptStakeKey: 1,
        1: "BasePaymentScriptStakeKey",
        BasePaymentKeyStakeScript: 2,
        2: "BasePaymentKeyStakeScript",
        BasePaymentScriptStakeScript: 3,
        3: "BasePaymentScriptStakeScript",
        PointerKey: 4,
        4: "PointerKey",
        PointerScript: 5,
        5: "PointerScript",
        EnterpriseKey: 6,
        6: "EnterpriseKey",
        EnterpriseScript: 7,
        7: "EnterpriseScript",
        Byron: 8,
        8: "Byron",
        RewardKey: 14,
        14: "RewardKey",
        RewardScript: 15,
        15: "RewardScript"
    }), mj = Object.freeze({
        Shelley: 0,
        0: "Shelley",
        ShelleyMA: 1,
        1: "ShelleyMA",
        Conway: 2,
        2: "Conway"
    }), Ij = Object.freeze({
        Hash: 0,
        0: "Hash",
        Datum: 1,
        1: "Datum"
    }), kj = Object.freeze({
        Identity: 0,
        0: "Identity",
        Hash: 1,
        1: "Hash"
    }), Bj = Object.freeze({
        Key: 0,
        0: "Key",
        Script: 1,
        1: "Script",
        AlwaysAbstain: 2,
        2: "AlwaysAbstain",
        AlwaysNoConfidence: 3,
        3: "AlwaysNoConfidence"
    }), xj = Object.freeze({
        Single: 0,
        0: "Single",
        Chunked: 1,
        1: "Chunked"
    }), jj = Object.freeze({
        SingleHostAddr: 0,
        0: "SingleHostAddr",
        SingleHostName: 1,
        1: "SingleHostName",
        MultiHostName: 2,
        2: "MultiHostName"
    }), Sj = Object.freeze({
        ArrLegacyRedeemer: 0,
        0: "ArrLegacyRedeemer",
        MapRedeemerKeyToRedeemerVal: 1,
        1: "MapRedeemerKeyToRedeemerVal"
    }), Ej = Object.freeze({
        LargestFirst: 0,
        0: "LargestFirst",
        RandomImprove: 1,
        1: "RandomImprove",
        LargestFirstMultiAsset: 2,
        2: "LargestFirstMultiAsset",
        RandomImproveMultiAsset: 3,
        3: "RandomImproveMultiAsset"
    }), Oj = Object.freeze({
        PubKey: 0,
        0: "PubKey",
        Script: 1,
        1: "Script"
    }), Fj = Object.freeze({
        Base: 0,
        0: "Base",
        Ptr: 1,
        1: "Ptr",
        Enterprise: 2,
        2: "Enterprise",
        Reward: 3,
        3: "Reward",
        Byron: 4,
        4: "Byron"
    }), Td = Object.freeze({
        Spend: 0,
        0: "Spend",
        Mint: 1,
        1: "Mint",
        Cert: 2,
        2: "Cert",
        Reward: 3,
        3: "Reward",
        Voting: 4,
        4: "Voting",
        Proposing: 5,
        5: "Proposing"
    }), Aj = Object.freeze({
        PublicKey: 0,
        0: "PublicKey",
        Script: 1,
        1: "Script",
        Redeem: 2,
        2: "Redeem"
    }), Tj = Object.freeze({
        Map: 0,
        0: "Map",
        List: 1,
        1: "List",
        Int: 2,
        2: "Int",
        Bytes: 3,
        3: "Bytes",
        Text: 4,
        4: "Text"
    }), Pj = Object.freeze({
        SpendingDataPubKey: 0,
        0: "SpendingDataPubKey",
        SpendingDataScript: 1,
        1: "SpendingDataScript",
        SpendingDataRedeem: 2,
        2: "SpendingDataRedeem"
    }), Rj = Object.freeze({
        NoConversions: 0,
        0: "NoConversions",
        BasicConversions: 1,
        1: "BasicConversions",
        DetailedSchema: 2,
        2: "DetailedSchema"
    }), Uj = Object.freeze({
        ScriptPubkey: 0,
        0: "ScriptPubkey",
        ScriptAll: 1,
        1: "ScriptAll",
        ScriptAny: 2,
        2: "ScriptAny",
        ScriptNOfK: 3,
        3: "ScriptNOfK",
        ScriptInvalidBefore: 4,
        4: "ScriptInvalidBefore",
        ScriptInvalidHereafter: 5,
        5: "ScriptInvalidHereafter"
    }), Cj = Object.freeze({
        AlonzoFormatTxOut: 0,
        0: "AlonzoFormatTxOut",
        ConwayFormatTxOut: 1,
        1: "ConwayFormatTxOut"
    }), Nj = Object.freeze({
        ConstitutionalCommitteeHotKeyHash: 0,
        0: "ConstitutionalCommitteeHotKeyHash",
        ConstitutionalCommitteeHotScriptHash: 1,
        1: "ConstitutionalCommitteeHotScriptHash",
        DRepKeyHash: 2,
        2: "DRepKeyHash",
        DRepScriptHash: 3,
        3: "DRepScriptHash",
        StakingPoolKeyHash: 4,
        4: "StakingPoolKeyHash"
    }), Mj = Object.freeze({
        Weighted: 0,
        0: "Weighted",
        Legacy: 1,
        1: "Legacy"
    }), Lj = Object.freeze({
        SingleKey: 0,
        0: "SingleKey",
        BootstrapEra: 1,
        1: "BootstrapEra"
    }), zj = Object.freeze({
        BasicConversions: 0,
        0: "BasicConversions",
        DetailedSchema: 1,
        1: "DetailedSchema"
    }), qj = Object.freeze({
        StakeRegistration: 0,
        0: "StakeRegistration",
        StakeDeregistration: 1,
        1: "StakeDeregistration",
        StakeDelegation: 2,
        2: "StakeDelegation",
        PoolRegistration: 3,
        3: "PoolRegistration",
        PoolRetirement: 4,
        4: "PoolRetirement",
        RegCert: 5,
        5: "RegCert",
        UnregCert: 6,
        6: "UnregCert",
        VoteDelegCert: 7,
        7: "VoteDelegCert",
        StakeVoteDelegCert: 8,
        8: "StakeVoteDelegCert",
        StakeRegDelegCert: 9,
        9: "StakeRegDelegCert",
        VoteRegDelegCert: 10,
        10: "VoteRegDelegCert",
        StakeVoteRegDelegCert: 11,
        11: "StakeVoteRegDelegCert",
        AuthCommitteeHotCert: 12,
        12: "AuthCommitteeHotCert",
        ResignCommitteeColdCert: 13,
        13: "ResignCommitteeColdCert",
        RegDrepCert: 14,
        14: "RegDrepCert",
        UnregDrepCert: 15,
        15: "UnregDrepCert",
        UpdateDrepCert: 16,
        16: "UpdateDrepCert"
    }), Vh = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_addrattributes_free(n >>> 0, 1));
    class r_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(r_.prototype);
            return e.__wbg_ptr = t, Vh.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Vh.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_addrattributes_free(t, 0);
        }
        static new_bootstrap_era(t, e) {
            let o = 0;
            ne(t) || (z(t, ji), o = t.__destroy_into_raw());
            let _ = 0;
            ne(e) || (z(e, i_), _ = e.__destroy_into_raw());
            const a = r.addrattributes_new_bootstrap_era(o, _);
            return r_.__wrap(a);
        }
        static new_single_key(t, e, o) {
            z(t, a_);
            let _ = 0;
            ne(e) || (z(e, ji), _ = e.__destroy_into_raw()), z(o, i_);
            var a = o.__destroy_into_raw();
            const c = r.addrattributes_new_single_key(t.__wbg_ptr, _, a);
            return r_.__wrap(c);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.addrattributes_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.addrattributes_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return r_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.addrattributes_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.addrattributes_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return r_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_stake_distribution(t) {
            z(t, mi), r.addrattributes_set_stake_distribution(this.__wbg_ptr, t.__wbg_ptr);
        }
        stake_distribution() {
            const t = r.addrattributes_stake_distribution(this.__wbg_ptr);
            return t === 0 ? void 0 : mi.__wrap(t);
        }
        set_derivation_path(t) {
            z(t, ji), r.addrattributes_set_derivation_path(this.__wbg_ptr, t.__wbg_ptr);
        }
        derivation_path() {
            const t = r.addrattributes_derivation_path(this.__wbg_ptr);
            return t === 0 ? void 0 : ji.__wrap(t);
        }
        set_protocol_magic(t) {
            z(t, i_), r.addrattributes_set_protocol_magic(this.__wbg_ptr, t.__wbg_ptr);
        }
        protocol_magic() {
            const t = r.addrattributes_protocol_magic(this.__wbg_ptr);
            return t === 0 ? void 0 : i_.__wrap(t);
        }
        static new() {
            const t = r.addrattributes_new();
            return r_.__wrap(t);
        }
    }
    const Zh = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_address_free(n >>> 0, 1));
    class ce {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ce.prototype);
            return e.__wbg_ptr = t, Zh.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Zh.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_address_free(t, 0);
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.address_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.address_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.address_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ce.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        header() {
            return r.address_header(this.__wbg_ptr);
        }
        static header_matches_kind(t, e) {
            return r.address_header_matches_kind(t, e) !== 0;
        }
        to_bech32(t) {
            let e, o;
            try {
                const g = r.__wbindgen_add_to_stack_pointer(-16);
                var _ = ne(t) ? 0 : lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), a = $;
                r.address_to_bech32(g, this.__wbg_ptr, _, a);
                var c = i().getInt32(g + 0, !0), s = i().getInt32(g + 4, !0), u = i().getInt32(g + 8, !0), l = i().getInt32(g + 12, !0), f = c, p = s;
                if (l) throw f = 0, p = 0, x(u);
                return e = f, o = p, _t(f, p);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.address_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ce.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static is_valid_bech32(t) {
            const e = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), o = $;
            return r.address_is_valid_bech32(e, o) !== 0;
        }
        static is_valid(t) {
            const e = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), o = $;
            return r.address_is_valid(e, o) !== 0;
        }
        network_id() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.address_network_id(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return t;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        payment_cred() {
            const t = r.address_payment_cred(this.__wbg_ptr);
            return t === 0 ? void 0 : Pt.__wrap(t);
        }
        staking_cred() {
            const t = r.address_staking_cred(this.__wbg_ptr);
            return t === 0 ? void 0 : Pt.__wrap(t);
        }
        kind() {
            return r.address_kind(this.__wbg_ptr);
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.address_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.address_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ce.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.address_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.address_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ce.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Yh = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_addresscontent_free(n >>> 0, 1));
    class e_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(e_.prototype);
            return e.__wbg_ptr = t, Yh.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Yh.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_addresscontent_free(t, 0);
        }
        static hash_and_create(t, e, o) {
            z(e, Qa), z(o, r_);
            const _ = r.addresscontent_hash_and_create(t, e.__wbg_ptr, o.__wbg_ptr);
            return e_.__wrap(_);
        }
        static new_redeem(t, e) {
            z(t, lr);
            let o = 0;
            ne(e) || (z(e, i_), o = e.__destroy_into_raw());
            const _ = r.addresscontent_new_redeem(t.__wbg_ptr, o);
            return e_.__wrap(_);
        }
        static new_simple(t, e) {
            z(t, a_);
            let o = 0;
            ne(e) || (z(e, i_), o = e.__destroy_into_raw());
            const _ = r.addresscontent_new_simple(t.__wbg_ptr, o);
            return e_.__wrap(_);
        }
        to_address() {
            const t = r.addresscontent_to_address(this.__wbg_ptr);
            return Lr.__wrap(t);
        }
        byron_protocol_magic() {
            const t = r.addresscontent_byron_protocol_magic(this.__wbg_ptr);
            return i_.__wrap(t);
        }
        network_id() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.addresscontent_network_id(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return t;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static icarus_from_key(t, e) {
            z(t, a_), z(e, i_);
            const o = r.addresscontent_icarus_from_key(t.__wbg_ptr, e.__wbg_ptr);
            return e_.__wrap(o);
        }
        identical_with_pubkey(t) {
            return z(t, a_), r.addresscontent_identical_with_pubkey(this.__wbg_ptr, t.__wbg_ptr) !== 0;
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.addresscontent_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.addresscontent_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return e_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.addresscontent_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.addresscontent_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return e_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        address_id() {
            const t = r.addresscontent_address_id(this.__wbg_ptr);
            return ai.__wrap(t);
        }
        addr_attributes() {
            const t = r.addresscontent_addr_attributes(this.__wbg_ptr);
            return r_.__wrap(t);
        }
        addr_type() {
            return r.addresscontent_addr_type(this.__wbg_ptr);
        }
        static new(t, e, o) {
            z(t, ai), z(e, r_);
            const _ = r.addresscontent_new(t.__wbg_ptr, e.__wbg_ptr, o);
            return e_.__wrap(_);
        }
    }
    const Wh = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_addressid_free(n >>> 0, 1));
    class ai {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ai.prototype);
            return e.__wbg_ptr = t, Wh.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Wh.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_addressid_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.addressid_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.addressid_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ai.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.addressid_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.addressid_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ai.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.addressid_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.addressid_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ai.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(t, e, o) {
            z(e, Qa), z(o, r_);
            const _ = r.addressid_new(t, e.__wbg_ptr, o.__wbg_ptr);
            return ai.__wrap(_);
        }
    }
    const Jh = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_alonzoformattxout_free(n >>> 0, 1));
    class oi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(oi.prototype);
            return e.__wbg_ptr = t, Jh.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Jh.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_alonzoformattxout_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.alonzoformattxout_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.alonzoformattxout_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.alonzoformattxout_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return oi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.alonzoformattxout_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.alonzoformattxout_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.alonzoformattxout_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return oi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.alonzoformattxout_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.alonzoformattxout_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.alonzoformattxout_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return oi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        address() {
            const t = r.alonzoformattxout_address(this.__wbg_ptr);
            return ce.__wrap(t);
        }
        amount() {
            const t = r.alonzoformattxout_amount(this.__wbg_ptr);
            return Ue.__wrap(t);
        }
        set_datum_hash(t) {
            z(t, o_), r.alonzoformattxout_set_datum_hash(this.__wbg_ptr, t.__wbg_ptr);
        }
        datum_hash() {
            const t = r.alonzoformattxout_datum_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : o_.__wrap(t);
        }
        static new(t, e) {
            z(t, ce), z(e, Ue);
            const o = r.alonzoformattxout_new(t.__wbg_ptr, e.__wbg_ptr);
            return oi.__wrap(o);
        }
    }
    const Xh = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_anchor_free(n >>> 0, 1));
    class Xe {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Xe.prototype);
            return e.__wbg_ptr = t, Xh.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Xh.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_anchor_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.anchor_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.anchor_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.anchor_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Xe.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.anchor_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.anchor_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.anchor_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Xe.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.anchor_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.anchor_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.anchor_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Xe.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        anchor_url() {
            const t = r.anchor_anchor_url(this.__wbg_ptr);
            return M_.__wrap(t);
        }
        anchor_doc_hash() {
            const t = r.anchor_anchor_doc_hash(this.__wbg_ptr);
            return Ea.__wrap(t);
        }
        static new(t, e) {
            z(t, M_), z(e, Ea);
            const o = r.anchor_new(t.__wbg_ptr, e.__wbg_ptr);
            return Xe.__wrap(o);
        }
    }
    const Qh = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_anchordochash_free(n >>> 0, 1));
    class Ea {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ea.prototype);
            return e.__wbg_ptr = t, Qh.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Qh.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_anchordochash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.anchordochash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.anchordochash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ea.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.anchordochash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.anchordochash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ea.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.anchordochash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.anchordochash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ea.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const $h = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_assetname_free(n >>> 0, 1));
    class Ye {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ye.prototype);
            return e.__wbg_ptr = t, $h.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, $h.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_assetname_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.assetname_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.assetname_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.assetname_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ye.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.assetname_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.assetname_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.assetname_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ye.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.assetname_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.assetname_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.assetname_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ye.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_str(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.assetname_from_str(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ye.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_str() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.assetname_to_str(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.assetname_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.assetname_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ye.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.assetname_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.assetname_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ye.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const tv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_assetnamelist_free(n >>> 0, 1));
    class Vd {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Vd.prototype);
            return e.__wbg_ptr = t, tv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, tv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_assetnamelist_free(t, 0);
        }
        static new() {
            const t = r.assetnamelist_new();
            return Vd.__wrap(t);
        }
        len() {
            return r.assetnamelist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.assetnamelist_get(this.__wbg_ptr, t);
            return Ye.__wrap(e);
        }
        add(t) {
            z(t, Ye), r.assetnamelist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const ev = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_authcommitteehotcert_free(n >>> 0, 1));
    class ss {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ss.prototype);
            return e.__wbg_ptr = t, ev.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, ev.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_authcommitteehotcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.authcommitteehotcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.authcommitteehotcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.authcommitteehotcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ss.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.authcommitteehotcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.authcommitteehotcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.authcommitteehotcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ss.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.authcommitteehotcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.authcommitteehotcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.authcommitteehotcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ss.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        committee_cold_credential() {
            const t = r.authcommitteehotcert_committee_cold_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        committee_hot_credential() {
            const t = r.authcommitteehotcert_committee_hot_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        static new(t, e) {
            z(t, Pt), z(e, Pt);
            const o = r.authcommitteehotcert_new(t.__wbg_ptr, e.__wbg_ptr);
            return ss.__wrap(o);
        }
    }
    const rv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_auxiliarydata_free(n >>> 0, 1));
    class tr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(tr.prototype);
            return e.__wbg_ptr = t, rv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, rv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_auxiliarydata_free(t, 0);
        }
        static new() {
            const t = r.auxiliarydata_new();
            return tr.__wrap(t);
        }
        metadata() {
            const t = r.auxiliarydata_metadata(this.__wbg_ptr);
            return t === 0 ? void 0 : On.__wrap(t);
        }
        native_scripts() {
            const t = r.auxiliarydata_native_scripts(this.__wbg_ptr);
            return t === 0 ? void 0 : Qe.__wrap(t);
        }
        plutus_v1_scripts() {
            const t = r.auxiliarydata_plutus_v1_scripts(this.__wbg_ptr);
            return t === 0 ? void 0 : Ua.__wrap(t);
        }
        plutus_v2_scripts() {
            const t = r.auxiliarydata_plutus_v2_scripts(this.__wbg_ptr);
            return t === 0 ? void 0 : Ca.__wrap(t);
        }
        add_metadata(t) {
            z(t, On), r.auxiliarydata_add_metadata(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_native_scripts(t) {
            z(t, Qe), r.auxiliarydata_add_native_scripts(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_plutus_v1_scripts(t) {
            z(t, Ua), r.auxiliarydata_add_plutus_v1_scripts(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_plutus_v2_scripts(t) {
            z(t, Ca), r.auxiliarydata_add_plutus_v2_scripts(this.__wbg_ptr, t.__wbg_ptr);
        }
        add(t) {
            z(t, tr), r.auxiliarydata_add(this.__wbg_ptr, t.__wbg_ptr);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.auxiliarydata_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.auxiliarydata_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.auxiliarydata_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return tr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.auxiliarydata_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.auxiliarydata_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.auxiliarydata_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return tr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.auxiliarydata_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.auxiliarydata_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.auxiliarydata_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return tr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_shelley(t) {
            z(t, On);
            const e = r.auxiliarydata_new_shelley(t.__wbg_ptr);
            return tr.__wrap(e);
        }
        static new_shelley_ma(t) {
            z(t, vi);
            const e = r.auxiliarydata_new_shelley_ma(t.__wbg_ptr);
            return tr.__wrap(e);
        }
        static new_conway(t) {
            z(t, li);
            const e = r.auxiliarydata_new_conway(t.__wbg_ptr);
            return tr.__wrap(e);
        }
        kind() {
            return r.auxiliarydata_kind(this.__wbg_ptr);
        }
        as_shelley() {
            const t = r.auxiliarydata_as_shelley(this.__wbg_ptr);
            return t === 0 ? void 0 : On.__wrap(t);
        }
        as_shelley_ma() {
            const t = r.auxiliarydata_as_shelley_ma(this.__wbg_ptr);
            return t === 0 ? void 0 : vi.__wrap(t);
        }
        as_conway() {
            const t = r.auxiliarydata_as_conway(this.__wbg_ptr);
            return t === 0 ? void 0 : li.__wrap(t);
        }
    }
    const nv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_auxiliarydatahash_free(n >>> 0, 1));
    class Bi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Bi.prototype);
            return e.__wbg_ptr = t, nv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, nv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_auxiliarydatahash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.auxiliarydatahash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.auxiliarydatahash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Bi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.auxiliarydatahash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.auxiliarydatahash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Bi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.auxiliarydatahash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.auxiliarydatahash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Bi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const _v = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_baseaddress_free(n >>> 0, 1));
    class qd {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(qd.prototype);
            return e.__wbg_ptr = t, _v.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, _v.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_baseaddress_free(t, 0);
        }
        static new(t, e, o) {
            z(e, Pt), z(o, Pt);
            const _ = r.baseaddress_new(t, e.__wbg_ptr, o.__wbg_ptr);
            return qd.__wrap(_);
        }
        to_address() {
            const t = r.baseaddress_to_address(this.__wbg_ptr);
            return ce.__wrap(t);
        }
        static from_address(t) {
            z(t, ce);
            const e = r.baseaddress_from_address(t.__wbg_ptr);
            return e === 0 ? void 0 : qd.__wrap(e);
        }
        network_id() {
            return r.baseaddress_network_id(this.__wbg_ptr);
        }
        payment() {
            const t = r.baseaddress_payment(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        stake() {
            const t = r.baseaddress_stake(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
    }
    const av = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_biginteger_free(n >>> 0, 1));
    class K_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(K_.prototype);
            return e.__wbg_ptr = t, av.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, av.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_biginteger_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.biginteger_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.biginteger_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.biginteger_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return K_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.biginteger_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.biginteger_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.biginteger_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return K_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.biginteger_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.biginteger_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.biginteger_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return K_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_int(t) {
            z(t, En);
            const e = r.biginteger_from_int(t.__wbg_ptr);
            return K_.__wrap(e);
        }
        static from_str(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.biginteger_from_str(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return K_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_str() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.biginteger_to_str(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        as_u64() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.biginteger_as_u64(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        as_int() {
            const t = r.biginteger_as_int(this.__wbg_ptr);
            return t === 0 ? void 0 : En.__wrap(t);
        }
    }
    const ov = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_bip32privatekey_free(n >>> 0, 1));
    class ka {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ka.prototype);
            return e.__wbg_ptr = t, ov.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, ov.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_bip32privatekey_free(t, 0);
        }
        derive(t) {
            const e = r.bip32privatekey_derive(this.__wbg_ptr, t);
            return ka.__wrap(e);
        }
        static from_128_xprv(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.bip32privatekey_from_128_xprv(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ka.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_128_xprv() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.bip32privatekey_to_128_xprv(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static generate_ed25519_bip32() {
            const t = r.bip32privatekey_generate_ed25519_bip32();
            return ka.__wrap(t);
        }
        to_raw_key() {
            const t = r.bip32privatekey_to_raw_key(this.__wbg_ptr);
            return Sn.__wrap(t);
        }
        to_public() {
            const t = r.bip32privatekey_to_public(this.__wbg_ptr);
            return a_.__wrap(t);
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.bip32privatekey_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ka.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.bip32privatekey_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.bip32privatekey_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ka.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_bech32() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.bip32privatekey_to_bech32(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_bip39_entropy(t, e) {
            const o = xt(t, r.__wbindgen_malloc), _ = $, a = xt(e, r.__wbindgen_malloc), c = $, s = r.bip32privatekey_from_bip39_entropy(o, _, a, c);
            return ka.__wrap(s);
        }
        chaincode() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.bip32privatekey_chaincode(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const iv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_bip32publickey_free(n >>> 0, 1));
    class a_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(a_.prototype);
            return e.__wbg_ptr = t, iv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, iv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_bip32publickey_free(t, 0);
        }
        derive(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.bip32publickey_derive(a, this.__wbg_ptr, t);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return a_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_key() {
            const t = r.bip32publickey_to_raw_key(this.__wbg_ptr);
            return lr.__wrap(t);
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.bip32publickey_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return a_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.bip32publickey_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.bip32publickey_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return a_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_bech32() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.bip32publickey_to_bech32(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        chaincode() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.bip32publickey_chaincode(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const sv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_block_free(n >>> 0, 1));
    class Rd {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Rd.prototype);
            return e.__wbg_ptr = t, sv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, sv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_block_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.block_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.block_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.block_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Rd.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.block_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.block_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.block_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Rd.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.block_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.block_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.block_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Rd.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        header() {
            const t = r.block_header(this.__wbg_ptr);
            return pi.__wrap(t);
        }
        transaction_bodies() {
            const t = r.block_transaction_bodies(this.__wbg_ptr);
            return nl.__wrap(t);
        }
        transaction_witness_sets() {
            const t = r.block_transaction_witness_sets(this.__wbg_ptr);
            return al.__wrap(t);
        }
        auxiliary_data_set() {
            const t = r.block_auxiliary_data_set(this.__wbg_ptr);
            return Qu.__wrap(t);
        }
        invalid_transactions() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.block_invalid_transactions(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = I5(t, e).slice();
                return r.__wbindgen_free(t, e * 2, 2), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(t, e, o, _, a) {
            z(t, pi), z(e, nl), z(o, al), z(_, Qu);
            const c = J7(a, r.__wbindgen_malloc), s = $, u = r.block_new(t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr, _.__wbg_ptr, c, s);
            return Rd.__wrap(u);
        }
    }
    const cv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_blockbodyhash_free(n >>> 0, 1));
    class Ds {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ds.prototype);
            return e.__wbg_ptr = t, cv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, cv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_blockbodyhash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.blockbodyhash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.blockbodyhash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ds.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.blockbodyhash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.blockbodyhash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ds.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.blockbodyhash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.blockbodyhash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ds.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const dv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_blockheaderhash_free(n >>> 0, 1));
    class Gs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Gs.prototype);
            return e.__wbg_ptr = t, dv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, dv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_blockheaderhash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.blockheaderhash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.blockheaderhash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Gs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.blockheaderhash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.blockheaderhash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Gs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.blockheaderhash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.blockheaderhash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Gs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const uv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_bootstrapwitness_free(n >>> 0, 1));
    class A_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(A_.prototype);
            return e.__wbg_ptr = t, uv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, uv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_bootstrapwitness_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.bootstrapwitness_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.bootstrapwitness_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.bootstrapwitness_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return A_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.bootstrapwitness_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.bootstrapwitness_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.bootstrapwitness_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return A_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.bootstrapwitness_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.bootstrapwitness_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.bootstrapwitness_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return A_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        public_key() {
            const t = r.bootstrapwitness_public_key(this.__wbg_ptr);
            return lr.__wrap(t);
        }
        signature() {
            const t = r.bootstrapwitness_signature(this.__wbg_ptr);
            return Yr.__wrap(t);
        }
        chain_code() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.bootstrapwitness_chain_code(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        attributes() {
            const t = r.bootstrapwitness_attributes(this.__wbg_ptr);
            return r_.__wrap(t);
        }
        static new(t, e, o, _) {
            try {
                const u = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, lr), z(e, Yr);
                const l = xt(o, r.__wbindgen_malloc), f = $;
                z(_, r_), r.bootstrapwitness_new(u, t.__wbg_ptr, e.__wbg_ptr, l, f, _.__wbg_ptr);
                var a = i().getInt32(u + 0, !0), c = i().getInt32(u + 4, !0), s = i().getInt32(u + 8, !0);
                if (s) throw x(c);
                return A_.__wrap(a);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_address() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.bootstrapwitness_to_address(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return e_.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const lv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_bootstrapwitnesslist_free(n >>> 0, 1));
    class Hu {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Hu.prototype);
            return e.__wbg_ptr = t, lv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, lv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_bootstrapwitnesslist_free(t, 0);
        }
        static new() {
            const t = r.bootstrapwitnesslist_new();
            return Hu.__wrap(t);
        }
        len() {
            return r.bootstrapwitnesslist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.bootstrapwitnesslist_get(this.__wbg_ptr, t);
            return A_.__wrap(e);
        }
        add(t) {
            z(t, A_), r.bootstrapwitnesslist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const fv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_byronaddress_free(n >>> 0, 1));
    class Lr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Lr.prototype);
            return e.__wbg_ptr = t, fv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, fv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_byronaddress_free(t, 0);
        }
        to_base58() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.byronaddress_to_base58(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_base58(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.byronaddress_from_base58(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Lr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static is_valid(t) {
            const e = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), o = $;
            return r.byronaddress_is_valid(e, o) !== 0;
        }
        to_address() {
            const t = r.byronaddress_to_address(this.__wbg_ptr);
            return ce.__wrap(t);
        }
        static from_address(t) {
            z(t, ce);
            const e = r.byronaddress_from_address(t.__wbg_ptr);
            return e === 0 ? void 0 : Lr.__wrap(e);
        }
        static from_address_content(t) {
            z(t, e_);
            const e = r.byronaddress_from_address_content(t.__wbg_ptr);
            return Lr.__wrap(e);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.byronaddress_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.byronaddress_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Lr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.byronaddress_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.byronaddress_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Lr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        content() {
            const t = r.byronaddress_content(this.__wbg_ptr);
            return e_.__wrap(t);
        }
        crc() {
            const t = r.byronaddress_crc(this.__wbg_ptr);
            return Yu.__wrap(t);
        }
        static new(t, e) {
            z(t, e_), z(e, Yu);
            const o = r.byronaddress_new(t.__wbg_ptr, e.__wbg_ptr);
            return Lr.__wrap(o);
        }
    }
    const gv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_byronscript_free(n >>> 0, 1));
    class Hs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Hs.prototype);
            return e.__wbg_ptr = t, gv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, gv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_byronscript_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.byronscript_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.byronscript_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Hs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.byronscript_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.byronscript_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Hs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.byronscript_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.byronscript_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Hs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const pv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_byrontxout_free(n >>> 0, 1));
    class Su {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Su.prototype);
            return e.__wbg_ptr = t, pv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, pv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_byrontxout_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.byrontxout_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.byrontxout_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Su.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.byrontxout_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.byrontxout_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Su.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        address() {
            const t = r.byrontxout_address(this.__wbg_ptr);
            return Lr.__wrap(t);
        }
        amount() {
            const t = r.byrontxout_amount(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e) {
            z(t, Lr);
            const o = r.byrontxout_new(t.__wbg_ptr, e);
            return Su.__wrap(o);
        }
    }
    const bv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip25chunkablestring_free(n >>> 0, 1));
    class yn {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(yn.prototype);
            return e.__wbg_ptr = t, bv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, bv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip25chunkablestring_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25chunkablestring_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.cip25chunkablestring_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return yn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25chunkablestring_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25chunkablestring_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return yn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25chunkablestring_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25chunkablestring_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25chunkablestring_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return yn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_single(t) {
            z(t, br);
            const e = r.cip25chunkablestring_new_single(t.__wbg_ptr);
            return yn.__wrap(e);
        }
        static new_chunked(t) {
            z(t, Ku);
            const e = r.cip25chunkablestring_new_chunked(t.__wbg_ptr);
            return yn.__wrap(e);
        }
        kind() {
            return r.cip25chunkablestring_kind(this.__wbg_ptr);
        }
        as_single() {
            const t = r.cip25chunkablestring_as_single(this.__wbg_ptr);
            return t === 0 ? void 0 : br.__wrap(t);
        }
        as_chunked() {
            const t = r.cip25chunkablestring_as_chunked(this.__wbg_ptr);
            return t === 0 ? void 0 : Ku.__wrap(t);
        }
        static from_string(t) {
            const e = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), o = $, _ = r.cip25chunkablestring_from_string(e, o);
            return yn.__wrap(_);
        }
        to_string() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25chunkablestring_to_string(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
    }
    const wv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip25filesdetails_free(n >>> 0, 1));
    class ii {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ii.prototype);
            return e.__wbg_ptr = t, wv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, wv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip25filesdetails_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25filesdetails_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.cip25filesdetails_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ii.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25filesdetails_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25filesdetails_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ii.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25filesdetails_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25filesdetails_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25filesdetails_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ii.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        name() {
            const t = r.cip25filesdetails_name(this.__wbg_ptr);
            return br.__wrap(t);
        }
        media_type() {
            const t = r.cip25filesdetails_media_type(this.__wbg_ptr);
            return br.__wrap(t);
        }
        src() {
            const t = r.cip25filesdetails_src(this.__wbg_ptr);
            return yn.__wrap(t);
        }
        static new(t, e, o) {
            z(t, br), z(e, br), z(o, yn);
            const _ = r.cip25filesdetails_new(t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr);
            return ii.__wrap(_);
        }
    }
    const yv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip25labelmetadata_free(n >>> 0, 1));
    class si {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(si.prototype);
            return e.__wbg_ptr = t, yv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, yv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip25labelmetadata_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25labelmetadata_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.cip25labelmetadata_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return si.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25labelmetadata_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25labelmetadata_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return si.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25labelmetadata_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25labelmetadata_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25labelmetadata_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return si.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(t) {
            const e = r.cip25labelmetadata_new(t);
            return si.__wrap(e);
        }
        set(t, e, o) {
            try {
                const s = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Zt), z(e, Ye), z(o, to), r.cip25labelmetadata_set(s, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr);
                var _ = i().getInt32(s + 0, !0), a = i().getInt32(s + 4, !0), c = i().getInt32(s + 8, !0);
                if (c) throw x(a);
                return _ === 0 ? void 0 : to.__wrap(_);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get(t, e) {
            z(t, Zt), z(e, Ye);
            const o = r.cip25labelmetadata_get(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
            return o === 0 ? void 0 : to.__wrap(o);
        }
        version() {
            return r.cip25labelmetadata_version(this.__wbg_ptr);
        }
    }
    const hv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip25metadata_free(n >>> 0, 1));
    class Ud {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ud.prototype);
            return e.__wbg_ptr = t, hv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, hv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip25metadata_free(t, 0);
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25metadata_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25metadata_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25metadata_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ud.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25metadata_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.cip25metadata_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ud.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        key_721() {
            const t = r.cip25metadata_key_721(this.__wbg_ptr);
            return si.__wrap(t);
        }
        static new(t) {
            z(t, si);
            const e = r.cip25metadata_new(t.__wbg_ptr);
            return Ud.__wrap(e);
        }
        to_metadata() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25metadata_to_metadata(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return On.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_metadata(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, On), r.cip25metadata_from_metadata(a, t.__wbg_ptr);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ud.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        add_to_metadata(t) {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, On), r.cip25metadata_add_to_metadata(_, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(_ + 0, !0), o = i().getInt32(_ + 4, !0);
                if (o) throw x(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const vv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip25metadatadetails_free(n >>> 0, 1));
    class to {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(to.prototype);
            return e.__wbg_ptr = t, vv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, vv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip25metadatadetails_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25metadatadetails_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.cip25metadatadetails_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return to.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25metadatadetails_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25metadatadetails_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return to.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25metadatadetails_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25metadatadetails_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25metadatadetails_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return to.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        name() {
            const t = r.cip25metadatadetails_name(this.__wbg_ptr);
            return br.__wrap(t);
        }
        image() {
            const t = r.cip25metadatadetails_image(this.__wbg_ptr);
            return yn.__wrap(t);
        }
        set_media_type(t) {
            z(t, br), r.cip25metadatadetails_set_media_type(this.__wbg_ptr, t.__wbg_ptr);
        }
        media_type() {
            const t = r.cip25metadatadetails_media_type(this.__wbg_ptr);
            return t === 0 ? void 0 : br.__wrap(t);
        }
        set_description(t) {
            z(t, yn), r.cip25metadatadetails_set_description(this.__wbg_ptr, t.__wbg_ptr);
        }
        description() {
            const t = r.cip25metadatadetails_description(this.__wbg_ptr);
            return t === 0 ? void 0 : yn.__wrap(t);
        }
        set_files(t) {
            z(t, Wu), r.cip25metadatadetails_set_files(this.__wbg_ptr, t.__wbg_ptr);
        }
        files() {
            const t = r.cip25metadatadetails_files(this.__wbg_ptr);
            return t === 0 ? void 0 : Wu.__wrap(t);
        }
        static new(t, e) {
            z(t, br), z(e, yn);
            const o = r.cip25metadatadetails_new(t.__wbg_ptr, e.__wbg_ptr);
            return to.__wrap(o);
        }
    }
    const mv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip25minimetadatadetails_free(n >>> 0, 1));
    class Eu {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Eu.prototype);
            return e.__wbg_ptr = t, mv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, mv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip25minimetadatadetails_free(t, 0);
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25minimetadatadetails_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25minimetadatadetails_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25minimetadatadetails_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Eu.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new() {
            const t = r.cip25minimetadatadetails_new();
            return Eu.__wrap(t);
        }
        set_name(t) {
            z(t, br), r.cip25minimetadatadetails_set_name(this.__wbg_ptr, t.__wbg_ptr);
        }
        name() {
            const t = r.cip25minimetadatadetails_name(this.__wbg_ptr);
            return t === 0 ? void 0 : br.__wrap(t);
        }
        set_image(t) {
            z(t, yn), r.cip25minimetadatadetails_set_image(this.__wbg_ptr, t.__wbg_ptr);
        }
        image() {
            const t = r.cip25minimetadatadetails_image(this.__wbg_ptr);
            return t === 0 ? void 0 : yn.__wrap(t);
        }
        static loose_parse(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Te), r.cip25minimetadatadetails_loose_parse(a, t.__wbg_ptr);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Eu.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Iv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip25string64_free(n >>> 0, 1));
    class br {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(br.prototype);
            return e.__wbg_ptr = t, Iv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Iv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip25string64_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25string64_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.cip25string64_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return br.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25string64_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25string64_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return br.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25string64_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25string64_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25string64_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return br.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25string64_get(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static new(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip25string64_new(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return br.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_str() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25string64_to_str(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        get_str() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip25string64_get_str(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
    }
    const kv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip25string64list_free(n >>> 0, 1));
    class Ku {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ku.prototype);
            return e.__wbg_ptr = t, kv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, kv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip25string64list_free(t, 0);
        }
        static new() {
            const t = r.cip25string64list_new();
            return Ku.__wrap(t);
        }
        len() {
            return r.cip25string64list_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.cip25string64list_get(this.__wbg_ptr, t);
            return br.__wrap(e);
        }
        add(t) {
            z(t, br), r.cip25string64list_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const Bv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip36delegation_free(n >>> 0, 1));
    class ci {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ci.prototype);
            return e.__wbg_ptr = t, Bv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Bv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip36delegation_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36delegation_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36delegation_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.cip36delegation_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ci.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36delegation_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36delegation_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36delegation_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ci.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36delegation_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36delegation_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36delegation_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ci.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        voting_pub_key() {
            const t = r.cip36delegation_voting_pub_key(this.__wbg_ptr);
            return lr.__wrap(t);
        }
        weight() {
            return r.cip36delegation_weight(this.__wbg_ptr) >>> 0;
        }
        static new(t, e) {
            z(t, lr);
            const o = r.cip36delegation_new(t.__wbg_ptr, e);
            return ci.__wrap(o);
        }
    }
    const xv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip36delegationdistribution_free(n >>> 0, 1));
    class ni {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ni.prototype);
            return e.__wbg_ptr = t, xv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, xv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip36delegationdistribution_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36delegationdistribution_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36delegationdistribution_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.cip36delegationdistribution_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ni.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36delegationdistribution_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36delegationdistribution_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36delegationdistribution_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ni.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36delegationdistribution_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36delegationdistribution_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36delegationdistribution_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ni.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_weighted(t) {
            z(t, Vu);
            const e = r.cip36delegationdistribution_new_weighted(t.__wbg_ptr);
            return ni.__wrap(e);
        }
        static new_legacy(t) {
            z(t, lr);
            const e = r.cip36delegationdistribution_new_legacy(t.__wbg_ptr);
            return ni.__wrap(e);
        }
        kind() {
            return r.cip36delegationdistribution_kind(this.__wbg_ptr);
        }
        as_weighted() {
            const t = r.cip36delegationdistribution_as_weighted(this.__wbg_ptr);
            return t === 0 ? void 0 : Vu.__wrap(t);
        }
        as_legacy() {
            const t = r.cip36delegationdistribution_as_legacy(this.__wbg_ptr);
            return t === 0 ? void 0 : lr.__wrap(t);
        }
    }
    const jv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip36delegationlist_free(n >>> 0, 1));
    class Vu {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Vu.prototype);
            return e.__wbg_ptr = t, jv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, jv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip36delegationlist_free(t, 0);
        }
        static new() {
            const t = r.cip36delegationlist_new();
            return Vu.__wrap(t);
        }
        len() {
            return r.cip36delegationlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.cip36delegationlist_get(this.__wbg_ptr, t);
            return ci.__wrap(e);
        }
        add(t) {
            z(t, ci), r.cip36delegationlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const Sv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip36deregistrationcbor_free(n >>> 0, 1));
    class tg {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(tg.prototype);
            return e.__wbg_ptr = t, Sv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Sv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip36deregistrationcbor_free(t, 0);
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36deregistrationcbor_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36deregistrationcbor_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36deregistrationcbor_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return tg.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        key_deregistration() {
            const t = r.cip36deregistrationcbor_key_deregistration(this.__wbg_ptr);
            return Ks.__wrap(t);
        }
        deregistration_witness() {
            const t = r.cip36deregistrationcbor_deregistration_witness(this.__wbg_ptr);
            return di.__wrap(t);
        }
        static new(t, e) {
            z(t, Ks), z(e, di);
            const o = r.cip36deregistrationcbor_new(t.__wbg_ptr, e.__wbg_ptr);
            return tg.__wrap(o);
        }
    }
    const Ev = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip36deregistrationwitness_free(n >>> 0, 1));
    class di {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(di.prototype);
            return e.__wbg_ptr = t, Ev.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Ev.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip36deregistrationwitness_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36deregistrationwitness_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36deregistrationwitness_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.cip36deregistrationwitness_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return di.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36deregistrationwitness_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36deregistrationwitness_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36deregistrationwitness_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return di.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36deregistrationwitness_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36deregistrationwitness_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36deregistrationwitness_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return di.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_witness() {
            const t = r.cip36deregistrationwitness_stake_witness(this.__wbg_ptr);
            return Yr.__wrap(t);
        }
        static new(t) {
            z(t, Yr);
            const e = r.cip36deregistrationwitness_new(t.__wbg_ptr);
            return di.__wrap(e);
        }
    }
    const Ov = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip36keyderegistration_free(n >>> 0, 1));
    class Ks {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ks.prototype);
            return e.__wbg_ptr = t, Ov.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Ov.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip36keyderegistration_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36keyderegistration_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36keyderegistration_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.cip36keyderegistration_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ks.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36keyderegistration_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36keyderegistration_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36keyderegistration_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ks.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36keyderegistration_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36keyderegistration_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36keyderegistration_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ks.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_credential() {
            const t = r.cip36keyderegistration_stake_credential(this.__wbg_ptr);
            return lr.__wrap(t);
        }
        nonce() {
            const t = r.cip36keyderegistration_nonce(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        set_voting_purpose(t) {
            r.cip36keyderegistration_set_voting_purpose(this.__wbg_ptr, t);
        }
        voting_purpose() {
            const t = r.cip36keyderegistration_voting_purpose(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
    }
    const Fv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip36keyregistration_free(n >>> 0, 1));
    class Vs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Vs.prototype);
            return e.__wbg_ptr = t, Fv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Fv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip36keyregistration_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36keyregistration_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36keyregistration_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.cip36keyregistration_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Vs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36keyregistration_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36keyregistration_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36keyregistration_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Vs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36keyregistration_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36keyregistration_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36keyregistration_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Vs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        delegation() {
            const t = r.cip36keyregistration_delegation(this.__wbg_ptr);
            return ni.__wrap(t);
        }
        stake_credential() {
            const t = r.cip36keyregistration_stake_credential(this.__wbg_ptr);
            return lr.__wrap(t);
        }
        payment_address() {
            const t = r.cip36keyregistration_payment_address(this.__wbg_ptr);
            return ce.__wrap(t);
        }
        nonce() {
            const t = r.cip36keyregistration_nonce(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        set_voting_purpose(t) {
            r.cip36keyregistration_set_voting_purpose(this.__wbg_ptr, t);
        }
        voting_purpose() {
            const t = r.cip36keyregistration_voting_purpose(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
    }
    const Av = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip36registrationcbor_free(n >>> 0, 1));
    class eg {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(eg.prototype);
            return e.__wbg_ptr = t, Av.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Av.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip36registrationcbor_free(t, 0);
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36registrationcbor_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36registrationcbor_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36registrationcbor_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return eg.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        key_registration() {
            const t = r.cip36registrationcbor_key_registration(this.__wbg_ptr);
            return Vs.__wrap(t);
        }
        registration_witness() {
            const t = r.cip36registrationcbor_registration_witness(this.__wbg_ptr);
            return ui.__wrap(t);
        }
        static new(t, e) {
            z(t, Vs), z(e, ui);
            const o = r.cip36registrationcbor_new(t.__wbg_ptr, e.__wbg_ptr);
            return eg.__wrap(o);
        }
    }
    const Tv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_cip36registrationwitness_free(n >>> 0, 1));
    class ui {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ui.prototype);
            return e.__wbg_ptr = t, Tv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Tv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_cip36registrationwitness_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36registrationwitness_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36registrationwitness_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.cip36registrationwitness_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ui.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36registrationwitness_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36registrationwitness_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36registrationwitness_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ui.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36registrationwitness_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.cip36registrationwitness_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.cip36registrationwitness_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ui.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_witness() {
            const t = r.cip36registrationwitness_stake_witness(this.__wbg_ptr);
            return Yr.__wrap(t);
        }
        static new(t) {
            z(t, Yr);
            const e = r.cip36registrationwitness_new(t.__wbg_ptr);
            return ui.__wrap(e);
        }
    }
    const Pv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_certificate_free(n >>> 0, 1));
    class de {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(de.prototype);
            return e.__wbg_ptr = t, Pv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Pv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_certificate_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.certificate_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.certificate_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.certificate_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return de.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.certificate_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.certificate_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.certificate_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return de.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.certificate_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.certificate_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.certificate_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return de.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_stake_registration(t) {
            z(t, Pt);
            const e = r.certificate_new_stake_registration(t.__wbg_ptr);
            return de.__wrap(e);
        }
        static new_stake_deregistration(t) {
            z(t, Pt);
            const e = r.certificate_new_stake_deregistration(t.__wbg_ptr);
            return de.__wrap(e);
        }
        static new_stake_delegation(t, e) {
            z(t, Pt), z(e, Kt);
            const o = r.certificate_new_stake_delegation(t.__wbg_ptr, e.__wbg_ptr);
            return de.__wrap(o);
        }
        static new_pool_registration(t) {
            z(t, no);
            const e = r.certificate_new_pool_registration(t.__wbg_ptr);
            return de.__wrap(e);
        }
        static new_pool_retirement(t, e) {
            z(t, Kt);
            const o = r.certificate_new_pool_retirement(t.__wbg_ptr, e);
            return de.__wrap(o);
        }
        static new_reg_cert(t, e) {
            z(t, Pt);
            const o = r.certificate_new_reg_cert(t.__wbg_ptr, e);
            return de.__wrap(o);
        }
        static new_unreg_cert(t, e) {
            z(t, Pt);
            const o = r.certificate_new_unreg_cert(t.__wbg_ptr, e);
            return de.__wrap(o);
        }
        static new_vote_deleg_cert(t, e) {
            z(t, Pt), z(e, Ze);
            const o = r.certificate_new_vote_deleg_cert(t.__wbg_ptr, e.__wbg_ptr);
            return de.__wrap(o);
        }
        static new_stake_vote_deleg_cert(t, e, o) {
            z(t, Pt), z(e, Kt), z(o, Ze);
            const _ = r.certificate_new_stake_vote_deleg_cert(t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr);
            return de.__wrap(_);
        }
        static new_stake_reg_deleg_cert(t, e, o) {
            z(t, Pt), z(e, Kt);
            const _ = r.certificate_new_stake_reg_deleg_cert(t.__wbg_ptr, e.__wbg_ptr, o);
            return de.__wrap(_);
        }
        static new_vote_reg_deleg_cert(t, e, o) {
            z(t, Pt), z(e, Ze);
            const _ = r.certificate_new_vote_reg_deleg_cert(t.__wbg_ptr, e.__wbg_ptr, o);
            return de.__wrap(_);
        }
        static new_stake_vote_reg_deleg_cert(t, e, o, _) {
            z(t, Pt), z(e, Kt), z(o, Ze);
            const a = r.certificate_new_stake_vote_reg_deleg_cert(t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr, _);
            return de.__wrap(a);
        }
        static new_auth_committee_hot_cert(t, e) {
            z(t, Pt), z(e, Pt);
            const o = r.certificate_new_auth_committee_hot_cert(t.__wbg_ptr, e.__wbg_ptr);
            return de.__wrap(o);
        }
        static new_resign_committee_cold_cert(t, e) {
            z(t, Pt);
            let o = 0;
            ne(e) || (z(e, Xe), o = e.__destroy_into_raw());
            const _ = r.certificate_new_resign_committee_cold_cert(t.__wbg_ptr, o);
            return de.__wrap(_);
        }
        static new_reg_drep_cert(t, e, o) {
            z(t, Pt);
            let _ = 0;
            ne(o) || (z(o, Xe), _ = o.__destroy_into_raw());
            const a = r.certificate_new_reg_drep_cert(t.__wbg_ptr, e, _);
            return de.__wrap(a);
        }
        static new_unreg_drep_cert(t, e) {
            z(t, Pt);
            const o = r.certificate_new_unreg_drep_cert(t.__wbg_ptr, e);
            return de.__wrap(o);
        }
        static new_update_drep_cert(t, e) {
            z(t, Pt);
            let o = 0;
            ne(e) || (z(e, Xe), o = e.__destroy_into_raw());
            const _ = r.certificate_new_update_drep_cert(t.__wbg_ptr, o);
            return de.__wrap(_);
        }
        kind() {
            return r.certificate_kind(this.__wbg_ptr);
        }
        as_stake_registration() {
            const t = r.certificate_as_stake_registration(this.__wbg_ptr);
            return t === 0 ? void 0 : Fs.__wrap(t);
        }
        as_stake_deregistration() {
            const t = r.certificate_as_stake_deregistration(this.__wbg_ptr);
            return t === 0 ? void 0 : Es.__wrap(t);
        }
        as_stake_delegation() {
            const t = r.certificate_as_stake_delegation(this.__wbg_ptr);
            return t === 0 ? void 0 : Ss.__wrap(t);
        }
        as_pool_registration() {
            const t = r.certificate_as_pool_registration(this.__wbg_ptr);
            return t === 0 ? void 0 : gs.__wrap(t);
        }
        as_pool_retirement() {
            const t = r.certificate_as_pool_retirement(this.__wbg_ptr);
            return t === 0 ? void 0 : ps.__wrap(t);
        }
        as_reg_cert() {
            const t = r.certificate_as_reg_cert(this.__wbg_ptr);
            return t === 0 ? void 0 : bs.__wrap(t);
        }
        as_unreg_cert() {
            const t = r.certificate_as_unreg_cert(this.__wbg_ptr);
            return t === 0 ? void 0 : Rs.__wrap(t);
        }
        as_vote_deleg_cert() {
            const t = r.certificate_as_vote_deleg_cert(this.__wbg_ptr);
            return t === 0 ? void 0 : Ms.__wrap(t);
        }
        as_stake_vote_deleg_cert() {
            const t = r.certificate_as_stake_vote_deleg_cert(this.__wbg_ptr);
            return t === 0 ? void 0 : As.__wrap(t);
        }
        as_stake_reg_deleg_cert() {
            const t = r.certificate_as_stake_reg_deleg_cert(this.__wbg_ptr);
            return t === 0 ? void 0 : Os.__wrap(t);
        }
        as_vote_reg_deleg_cert() {
            const t = r.certificate_as_vote_reg_deleg_cert(this.__wbg_ptr);
            return t === 0 ? void 0 : Ls.__wrap(t);
        }
        as_stake_vote_reg_deleg_cert() {
            const t = r.certificate_as_stake_vote_reg_deleg_cert(this.__wbg_ptr);
            return t === 0 ? void 0 : Ts.__wrap(t);
        }
        as_auth_committee_hot_cert() {
            const t = r.certificate_as_auth_committee_hot_cert(this.__wbg_ptr);
            return t === 0 ? void 0 : ss.__wrap(t);
        }
        as_resign_committee_cold_cert() {
            const t = r.certificate_as_resign_committee_cold_cert(this.__wbg_ptr);
            return t === 0 ? void 0 : ys.__wrap(t);
        }
        as_reg_drep_cert() {
            const t = r.certificate_as_reg_drep_cert(this.__wbg_ptr);
            return t === 0 ? void 0 : ws.__wrap(t);
        }
        as_unreg_drep_cert() {
            const t = r.certificate_as_unreg_drep_cert(this.__wbg_ptr);
            return t === 0 ? void 0 : Us.__wrap(t);
        }
        as_update_drep_cert() {
            const t = r.certificate_as_update_drep_cert(this.__wbg_ptr);
            return t === 0 ? void 0 : Ns.__wrap(t);
        }
    }
    const Rv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_certificatebuilderresult_free(n >>> 0, 1));
    class xi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(xi.prototype);
            return e.__wbg_ptr = t, Rv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Rv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_certificatebuilderresult_free(t, 0);
        }
    }
    const Uv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_certificatelist_free(n >>> 0, 1));
    class Zu {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Zu.prototype);
            return e.__wbg_ptr = t, Uv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Uv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_certificatelist_free(t, 0);
        }
        static new() {
            const t = r.certificatelist_new();
            return Zu.__wrap(t);
        }
        len() {
            return r.certificatelist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.certificatelist_get(this.__wbg_ptr, t);
            return de.__wrap(e);
        }
        add(t) {
            z(t, de), r.certificatelist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const Cv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_committeecoldcredentiallist_free(n >>> 0, 1));
    class ac {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ac.prototype);
            return e.__wbg_ptr = t, Cv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Cv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_committeecoldcredentiallist_free(t, 0);
        }
        static new() {
            const t = r.committeecoldcredentiallist_new();
            return ac.__wrap(t);
        }
        len() {
            return r.committeecoldcredentiallist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.committeecoldcredentiallist_get(this.__wbg_ptr, t);
            return Pt.__wrap(e);
        }
        add(t) {
            z(t, Pt), r.committeecoldcredentiallist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const Nv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_constitution_free(n >>> 0, 1));
    class eo {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(eo.prototype);
            return e.__wbg_ptr = t, Nv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Nv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_constitution_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.constitution_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.constitution_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.constitution_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return eo.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.constitution_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.constitution_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.constitution_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return eo.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.constitution_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.constitution_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.constitution_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return eo.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        anchor() {
            const t = r.constitution_anchor(this.__wbg_ptr);
            return Xe.__wrap(t);
        }
        script_hash() {
            const t = r.constitution_script_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Zt.__wrap(t);
        }
        static new(t, e) {
            z(t, Xe);
            let o = 0;
            ne(e) || (z(e, Zt), o = e.__destroy_into_raw());
            const _ = r.constitution_new(t.__wbg_ptr, o);
            return eo.__wrap(_);
        }
    }
    const Mv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_constrplutusdata_free(n >>> 0, 1));
    class ro {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ro.prototype);
            return e.__wbg_ptr = t, Mv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Mv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_constrplutusdata_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.constrplutusdata_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.constrplutusdata_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.constrplutusdata_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ro.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.constrplutusdata_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.constrplutusdata_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.constrplutusdata_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ro.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.constrplutusdata_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.constrplutusdata_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.constrplutusdata_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ro.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        alternative() {
            const t = r.constrplutusdata_alternative(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        fields() {
            const t = r.constrplutusdata_fields(this.__wbg_ptr);
            return Xr.__wrap(t);
        }
        static new(t, e) {
            z(e, Xr);
            const o = r.constrplutusdata_new(t, e.__wbg_ptr);
            return ro.__wrap(o);
        }
    }
    const Lv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_conwayformatauxdata_free(n >>> 0, 1));
    class li {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(li.prototype);
            return e.__wbg_ptr = t, Lv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Lv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_conwayformatauxdata_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.conwayformatauxdata_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.conwayformatauxdata_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.conwayformatauxdata_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return li.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.conwayformatauxdata_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.conwayformatauxdata_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.conwayformatauxdata_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return li.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.conwayformatauxdata_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.conwayformatauxdata_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.conwayformatauxdata_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return li.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_metadata(t) {
            z(t, On), r.conwayformatauxdata_set_metadata(this.__wbg_ptr, t.__wbg_ptr);
        }
        metadata() {
            const t = r.conwayformatauxdata_metadata(this.__wbg_ptr);
            return t === 0 ? void 0 : On.__wrap(t);
        }
        set_native_scripts(t) {
            z(t, Qe), r.conwayformatauxdata_set_native_scripts(this.__wbg_ptr, t.__wbg_ptr);
        }
        native_scripts() {
            const t = r.conwayformatauxdata_native_scripts(this.__wbg_ptr);
            return t === 0 ? void 0 : Qe.__wrap(t);
        }
        set_plutus_v1_scripts(t) {
            z(t, Ua), r.conwayformatauxdata_set_plutus_v1_scripts(this.__wbg_ptr, t.__wbg_ptr);
        }
        plutus_v1_scripts() {
            const t = r.conwayformatauxdata_plutus_v1_scripts(this.__wbg_ptr);
            return t === 0 ? void 0 : Ua.__wrap(t);
        }
        set_plutus_v2_scripts(t) {
            z(t, Ca), r.conwayformatauxdata_set_plutus_v2_scripts(this.__wbg_ptr, t.__wbg_ptr);
        }
        plutus_v2_scripts() {
            const t = r.conwayformatauxdata_plutus_v2_scripts(this.__wbg_ptr);
            return t === 0 ? void 0 : Ca.__wrap(t);
        }
        set_plutus_v3_scripts(t) {
            z(t, ic), r.conwayformatauxdata_set_plutus_v3_scripts(this.__wbg_ptr, t.__wbg_ptr);
        }
        plutus_v3_scripts() {
            const t = r.conwayformatauxdata_plutus_v3_scripts(this.__wbg_ptr);
            return t === 0 ? void 0 : ic.__wrap(t);
        }
        static new() {
            const t = r.conwayformatauxdata_new();
            return li.__wrap(t);
        }
    }
    const zv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_conwayformattxout_free(n >>> 0, 1));
    class fi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(fi.prototype);
            return e.__wbg_ptr = t, zv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, zv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_conwayformattxout_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.conwayformattxout_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.conwayformattxout_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.conwayformattxout_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return fi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.conwayformattxout_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.conwayformattxout_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.conwayformattxout_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return fi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.conwayformattxout_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.conwayformattxout_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.conwayformattxout_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return fi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        address() {
            const t = r.conwayformattxout_address(this.__wbg_ptr);
            return ce.__wrap(t);
        }
        amount() {
            const t = r.conwayformattxout_amount(this.__wbg_ptr);
            return Ue.__wrap(t);
        }
        set_datum_option(t) {
            z(t, jn), r.conwayformattxout_set_datum_option(this.__wbg_ptr, t.__wbg_ptr);
        }
        datum_option() {
            const t = r.conwayformattxout_datum_option(this.__wbg_ptr);
            return t === 0 ? void 0 : jn.__wrap(t);
        }
        set_script_reference(t) {
            z(t, vr), r.conwayformattxout_set_script_reference(this.__wbg_ptr, t.__wbg_ptr);
        }
        script_reference() {
            const t = r.conwayformattxout_script_reference(this.__wbg_ptr);
            return t === 0 ? void 0 : vr.__wrap(t);
        }
        static new(t, e) {
            z(t, ce), z(e, Ue);
            const o = r.conwayformattxout_new(t.__wbg_ptr, e.__wbg_ptr);
            return fi.__wrap(o);
        }
    }
    const qv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_costmodels_free(n >>> 0, 1));
    class C_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(C_.prototype);
            return e.__wbg_ptr = t, qv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, qv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_costmodels_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.costmodels_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.costmodels_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.costmodels_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return C_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.costmodels_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.costmodels_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.costmodels_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return C_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.costmodels_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.costmodels_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.costmodels_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return C_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        inner() {
            const t = r.costmodels_inner(this.__wbg_ptr);
            return ig.__wrap(t);
        }
    }
    const Dv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_crc32_free(n >>> 0, 1));
    class Yu {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Yu.prototype);
            return e.__wbg_ptr = t, Dv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Dv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_crc32_free(t, 0);
        }
        static new() {
            const t = r.crc32_new();
            return Yu.__wrap(t);
        }
        update(t) {
            const e = xt(t, r.__wbindgen_malloc), o = $;
            r.crc32_update(this.__wbg_ptr, e, o);
        }
        finalize() {
            return r.crc32_finalize(this.__wbg_ptr) >>> 0;
        }
    }
    const Gv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_credential_free(n >>> 0, 1));
    class Pt {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Pt.prototype);
            return e.__wbg_ptr = t, Gv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Gv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_credential_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.credential_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.credential_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.credential_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Pt.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.credential_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.credential_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.credential_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Pt.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.credential_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.credential_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.credential_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Pt.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_pub_key(t) {
            z(t, Kt);
            const e = r.credential_new_pub_key(t.__wbg_ptr);
            return Pt.__wrap(e);
        }
        static new_script(t) {
            z(t, Zt);
            const e = r.credential_new_script(t.__wbg_ptr);
            return Pt.__wrap(e);
        }
        kind() {
            return r.credential_kind(this.__wbg_ptr);
        }
        as_pub_key() {
            const t = r.credential_as_pub_key(this.__wbg_ptr);
            return t === 0 ? void 0 : Kt.__wrap(t);
        }
        as_script() {
            const t = r.credential_as_script(this.__wbg_ptr);
            return t === 0 ? void 0 : Zt.__wrap(t);
        }
    }
    const Hv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_dnsname_free(n >>> 0, 1));
    class $_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create($_.prototype);
            return e.__wbg_ptr = t, Hv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Hv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_dnsname_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.dnsname_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.dnsname_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.dnsname_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return $_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.dnsname_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.dnsname_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.dnsname_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return $_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.dnsname_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.dnsname_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.dnsname_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return $_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.dnsname_get(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
    }
    const Kv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_drep_free(n >>> 0, 1));
    class Ze {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ze.prototype);
            return e.__wbg_ptr = t, Kv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Kv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_drep_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.drep_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.drep_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.drep_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ze.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.drep_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.drep_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.drep_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ze.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.drep_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.drep_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.drep_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ze.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_key(t) {
            z(t, Kt);
            const e = r.drep_new_key(t.__wbg_ptr);
            return Ze.__wrap(e);
        }
        static new_script(t) {
            z(t, Zt);
            const e = r.drep_new_script(t.__wbg_ptr);
            return Ze.__wrap(e);
        }
        static new_always_abstain() {
            const t = r.drep_new_always_abstain();
            return Ze.__wrap(t);
        }
        static new_always_no_confidence() {
            const t = r.drep_new_always_no_confidence();
            return Ze.__wrap(t);
        }
        kind() {
            return r.drep_kind(this.__wbg_ptr);
        }
        as_key() {
            const t = r.drep_as_key(this.__wbg_ptr);
            return t === 0 ? void 0 : Kt.__wrap(t);
        }
        as_script() {
            const t = r.drep_as_script(this.__wbg_ptr);
            return t === 0 ? void 0 : Zt.__wrap(t);
        }
    }
    const Vv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_drepvotingthresholds_free(n >>> 0, 1));
    class gi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(gi.prototype);
            return e.__wbg_ptr = t, Vv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Vv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_drepvotingthresholds_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.drepvotingthresholds_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.drepvotingthresholds_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.drepvotingthresholds_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return gi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.drepvotingthresholds_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.drepvotingthresholds_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.drepvotingthresholds_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return gi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.drepvotingthresholds_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.drepvotingthresholds_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.drepvotingthresholds_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return gi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        motion_no_confidence() {
            const t = r.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
            return re.__wrap(t);
        }
        committee_normal() {
            const t = r.drepvotingthresholds_committee_normal(this.__wbg_ptr);
            return re.__wrap(t);
        }
        committee_no_confidence() {
            const t = r.drepvotingthresholds_committee_no_confidence(this.__wbg_ptr);
            return re.__wrap(t);
        }
        update_constitution() {
            const t = r.drepvotingthresholds_update_constitution(this.__wbg_ptr);
            return re.__wrap(t);
        }
        hard_fork_initiation() {
            const t = r.drepvotingthresholds_hard_fork_initiation(this.__wbg_ptr);
            return re.__wrap(t);
        }
        pp_network_group() {
            const t = r.drepvotingthresholds_pp_network_group(this.__wbg_ptr);
            return re.__wrap(t);
        }
        pp_economic_group() {
            const t = r.drepvotingthresholds_pp_economic_group(this.__wbg_ptr);
            return re.__wrap(t);
        }
        pp_technical_group() {
            const t = r.drepvotingthresholds_pp_technical_group(this.__wbg_ptr);
            return re.__wrap(t);
        }
        pp_governance_group() {
            const t = r.drepvotingthresholds_pp_governance_group(this.__wbg_ptr);
            return re.__wrap(t);
        }
        treasury_withdrawal() {
            const t = r.drepvotingthresholds_treasury_withdrawal(this.__wbg_ptr);
            return re.__wrap(t);
        }
        static new(t, e, o, _, a, c, s, u, l, f) {
            z(t, re), z(e, re), z(o, re), z(_, re), z(a, re), z(c, re), z(s, re), z(u, re), z(l, re), z(f, re);
            const p = r.drepvotingthresholds_new(t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr, _.__wbg_ptr, a.__wbg_ptr, c.__wbg_ptr, s.__wbg_ptr, u.__wbg_ptr, l.__wbg_ptr, f.__wbg_ptr);
            return gi.__wrap(p);
        }
    }
    const Zv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_datumhash_free(n >>> 0, 1));
    class o_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(o_.prototype);
            return e.__wbg_ptr = t, Zv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Zv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_datumhash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.datumhash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.datumhash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return o_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.datumhash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.datumhash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return o_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.datumhash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.datumhash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return o_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Yv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_datumoption_free(n >>> 0, 1));
    class jn {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(jn.prototype);
            return e.__wbg_ptr = t, Yv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Yv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_datumoption_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.datumoption_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.datumoption_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.datumoption_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return jn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.datumoption_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.datumoption_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.datumoption_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return jn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.datumoption_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.datumoption_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.datumoption_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return jn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_hash(t) {
            z(t, o_);
            const e = r.datumoption_new_hash(t.__wbg_ptr);
            return jn.__wrap(e);
        }
        static new_datum(t) {
            z(t, Vt);
            const e = r.datumoption_new_datum(t.__wbg_ptr);
            return jn.__wrap(e);
        }
        kind() {
            return r.datumoption_kind(this.__wbg_ptr);
        }
        as_hash() {
            const t = r.datumoption_as_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : o_.__wrap(t);
        }
        as_datum() {
            const t = r.datumoption_as_datum(this.__wbg_ptr);
            return t === 0 ? void 0 : Vt.__wrap(t);
        }
    }
    const Wv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_ed25519keyhash_free(n >>> 0, 1));
    class Kt {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Kt.prototype);
            return e.__wbg_ptr = t, Wv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Wv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_ed25519keyhash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.ed25519keyhash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.ed25519keyhash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Kt.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.ed25519keyhash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.ed25519keyhash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Kt.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.ed25519keyhash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.ed25519keyhash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Kt.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Jv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_ed25519keyhashlist_free(n >>> 0, 1));
    class pe {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(pe.prototype);
            return e.__wbg_ptr = t, Jv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Jv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_ed25519keyhashlist_free(t, 0);
        }
        static new() {
            const t = r.ed25519keyhashlist_new();
            return pe.__wrap(t);
        }
        len() {
            return r.ed25519keyhashlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.ed25519keyhashlist_get(this.__wbg_ptr, t);
            return Kt.__wrap(e);
        }
        add(t) {
            z(t, Kt), r.ed25519keyhashlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const Xv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_ed25519signature_free(n >>> 0, 1));
    class Yr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Yr.prototype);
            return e.__wbg_ptr = t, Xv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Xv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_ed25519signature_free(t, 0);
        }
        to_bech32() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.ed25519signature_to_bech32(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.ed25519signature_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Yr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.ed25519signature_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.ed25519signature_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Yr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.ed25519signature_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.ed25519signature_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Yr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Qv = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_enterpriseaddress_free(n >>> 0, 1));
    class Ti {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ti.prototype);
            return e.__wbg_ptr = t, Qv.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Qv.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_enterpriseaddress_free(t, 0);
        }
        static new(t, e) {
            z(e, Pt);
            const o = r.enterpriseaddress_new(t, e.__wbg_ptr);
            return Ti.__wrap(o);
        }
        to_address() {
            const t = r.enterpriseaddress_to_address(this.__wbg_ptr);
            return ce.__wrap(t);
        }
        static from_address(t) {
            z(t, ce);
            const e = r.enterpriseaddress_from_address(t.__wbg_ptr);
            return e === 0 ? void 0 : Ti.__wrap(e);
        }
        network_id() {
            return r.enterpriseaddress_network_id(this.__wbg_ptr);
        }
        payment() {
            const t = r.enterpriseaddress_payment(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
    }
    const $v = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_exunitprices_free(n >>> 0, 1));
    class T_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(T_.prototype);
            return e.__wbg_ptr = t, $v.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, $v.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_exunitprices_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.exunitprices_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.exunitprices_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.exunitprices_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return T_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.exunitprices_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.exunitprices_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.exunitprices_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return T_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.exunitprices_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.exunitprices_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.exunitprices_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return T_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        mem_price() {
            const t = r.exunitprices_mem_price(this.__wbg_ptr);
            return Kr.__wrap(t);
        }
        step_price() {
            const t = r.exunitprices_step_price(this.__wbg_ptr);
            return Kr.__wrap(t);
        }
        static new(t, e) {
            z(t, Kr), z(e, Kr);
            const o = r.exunitprices_new(t.__wbg_ptr, e.__wbg_ptr);
            return T_.__wrap(o);
        }
    }
    const t2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_exunits_free(n >>> 0, 1));
    class Je {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Je.prototype);
            return e.__wbg_ptr = t, t2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, t2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_exunits_free(t, 0);
        }
        checked_add(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Je), r.exunits_checked_add(a, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Je.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.exunits_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.exunits_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.exunits_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Je.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.exunits_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.exunits_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.exunits_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Je.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.exunits_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.exunits_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.exunits_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Je.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        mem() {
            const t = r.exunits_mem(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        steps() {
            const t = r.exunits_steps(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e) {
            const o = r.exunits_new(t, e);
            return Je.__wrap(o);
        }
    }
    const e2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_filesdetailslist_free(n >>> 0, 1));
    class Wu {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Wu.prototype);
            return e.__wbg_ptr = t, e2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, e2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_filesdetailslist_free(t, 0);
        }
        static new() {
            const t = r.filesdetailslist_new();
            return Wu.__wrap(t);
        }
        len() {
            return r.filesdetailslist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.filesdetailslist_get(this.__wbg_ptr, t);
            return ii.__wrap(e);
        }
        add(t) {
            z(t, ii), r.filesdetailslist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const r2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_genesisdelegatehash_free(n >>> 0, 1));
    class Ou {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ou.prototype);
            return e.__wbg_ptr = t, r2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, r2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_genesisdelegatehash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.genesisdelegatehash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.genesisdelegatehash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ou.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.genesisdelegatehash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.genesisdelegatehash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ou.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.genesisdelegatehash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.genesisdelegatehash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ou.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const n2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_genesishash_free(n >>> 0, 1));
    class Fu {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Fu.prototype);
            return e.__wbg_ptr = t, n2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, n2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_genesishash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.genesishash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.genesishash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Fu.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.genesishash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.genesishash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Fu.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.genesishash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.genesishash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Fu.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const _2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_govaction_free(n >>> 0, 1));
    class zn {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(zn.prototype);
            return e.__wbg_ptr = t, _2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, _2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_govaction_free(t, 0);
        }
        script_hash() {
            const t = r.govaction_script_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Zt.__wrap(t);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.govaction_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.govaction_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.govaction_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return zn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.govaction_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.govaction_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.govaction_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return zn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.govaction_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.govaction_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.govaction_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return zn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_parameter_change_action(t, e, o) {
            let _ = 0;
            ne(t) || (z(t, Ce), _ = t.__destroy_into_raw()), z(e, _o);
            let a = 0;
            ne(o) || (z(o, Zt), a = o.__destroy_into_raw());
            const c = r.govaction_new_parameter_change_action(_, e.__wbg_ptr, a);
            return zn.__wrap(c);
        }
        static new_hard_fork_initiation_action(t, e) {
            let o = 0;
            ne(t) || (z(t, Ce), o = t.__destroy_into_raw()), z(e, X_);
            const _ = r.govaction_new_hard_fork_initiation_action(o, e.__wbg_ptr);
            return zn.__wrap(_);
        }
        static new_treasury_withdrawals_action(t, e) {
            z(t, io);
            let o = 0;
            ne(e) || (z(e, Zt), o = e.__destroy_into_raw());
            const _ = r.govaction_new_treasury_withdrawals_action(t.__wbg_ptr, o);
            return zn.__wrap(_);
        }
        static new_no_confidence(t) {
            let e = 0;
            ne(t) || (z(t, Ce), e = t.__destroy_into_raw());
            const o = r.govaction_new_no_confidence(e);
            return zn.__wrap(o);
        }
        static new_update_committee(t, e, o, _) {
            let a = 0;
            ne(t) || (z(t, Ce), a = t.__destroy_into_raw()), z(e, ac), z(o, Zd), z(_, re);
            const c = r.govaction_new_update_committee(a, e.__wbg_ptr, o.__wbg_ptr, _.__wbg_ptr);
            return zn.__wrap(c);
        }
        static new_new_constitution(t, e) {
            let o = 0;
            ne(t) || (z(t, Ce), o = t.__destroy_into_raw()), z(e, eo);
            const _ = r.govaction_new_new_constitution(o, e.__wbg_ptr);
            return zn.__wrap(_);
        }
        static new_info_action() {
            const t = r.govaction_new_info_action();
            return zn.__wrap(t);
        }
        kind() {
            return r.govaction_kind(this.__wbg_ptr);
        }
        as_parameter_change_action() {
            const t = r.govaction_as_parameter_change_action(this.__wbg_ptr);
            return t === 0 ? void 0 : fs.__wrap(t);
        }
        as_hard_fork_initiation_action() {
            const t = r.govaction_as_hard_fork_initiation_action(this.__wbg_ptr);
            return t === 0 ? void 0 : cs.__wrap(t);
        }
        as_treasury_withdrawals_action() {
            const t = r.govaction_as_treasury_withdrawals_action(this.__wbg_ptr);
            return t === 0 ? void 0 : Ps.__wrap(t);
        }
        as_no_confidence() {
            const t = r.govaction_as_no_confidence(this.__wbg_ptr);
            return t === 0 ? void 0 : ls.__wrap(t);
        }
        as_update_committee() {
            const t = r.govaction_as_update_committee(this.__wbg_ptr);
            return t === 0 ? void 0 : Cs.__wrap(t);
        }
        as_new_constitution() {
            const t = r.govaction_as_new_constitution(this.__wbg_ptr);
            return t === 0 ? void 0 : us.__wrap(t);
        }
    }
    const a2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_govactionid_free(n >>> 0, 1));
    class Ce {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ce.prototype);
            return e.__wbg_ptr = t, a2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, a2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_govactionid_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.govactionid_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.govactionid_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.govactionid_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ce.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.govactionid_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.govactionid_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.govactionid_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ce.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.govactionid_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.govactionid_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.govactionid_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ce.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        transaction_id() {
            const t = r.govactionid_transaction_id(this.__wbg_ptr);
            return Vn.__wrap(t);
        }
        gov_action_index() {
            const t = r.govactionid_gov_action_index(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e) {
            z(t, Vn);
            const o = r.govactionid_new(t.__wbg_ptr, e);
            return Ce.__wrap(o);
        }
    }
    const o2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_govactionidlist_free(n >>> 0, 1));
    class og {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(og.prototype);
            return e.__wbg_ptr = t, o2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, o2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_govactionidlist_free(t, 0);
        }
        static new() {
            const t = r.govactionidlist_new();
            return og.__wrap(t);
        }
        len() {
            return r.govactionidlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.govactionidlist_get(this.__wbg_ptr, t);
            return Ce.__wrap(e);
        }
        add(t) {
            z(t, Ce), r.govactionidlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const i2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_hdaddresspayload_free(n >>> 0, 1));
    class ji {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ji.prototype);
            return e.__wbg_ptr = t, i2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, i2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_hdaddresspayload_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.hdaddresspayload_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.hdaddresspayload_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ji.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.hdaddresspayload_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.hdaddresspayload_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ji.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.hdaddresspayload_get(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const s2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_hardforkinitiationaction_free(n >>> 0, 1));
    class cs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(cs.prototype);
            return e.__wbg_ptr = t, s2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, s2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_hardforkinitiationaction_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.hardforkinitiationaction_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.hardforkinitiationaction_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.hardforkinitiationaction_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return cs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.hardforkinitiationaction_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.hardforkinitiationaction_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.hardforkinitiationaction_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return cs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.hardforkinitiationaction_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.hardforkinitiationaction_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.hardforkinitiationaction_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return cs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        action_id() {
            const t = r.hardforkinitiationaction_action_id(this.__wbg_ptr);
            return t === 0 ? void 0 : Ce.__wrap(t);
        }
        version() {
            const t = r.hardforkinitiationaction_version(this.__wbg_ptr);
            return X_.__wrap(t);
        }
        static new(t, e) {
            let o = 0;
            ne(t) || (z(t, Ce), o = t.__destroy_into_raw()), z(e, X_);
            const _ = r.hardforkinitiationaction_new(o, e.__wbg_ptr);
            return cs.__wrap(_);
        }
    }
    const c2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_header_free(n >>> 0, 1));
    class pi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(pi.prototype);
            return e.__wbg_ptr = t, c2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, c2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_header_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.header_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.header_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.header_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return pi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.header_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.header_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.header_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return pi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.header_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.header_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.header_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return pi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        header_body() {
            const t = r.header_header_body(this.__wbg_ptr);
            return bi.__wrap(t);
        }
        body_signature() {
            const t = r.header_body_signature(this.__wbg_ptr);
            return Zs.__wrap(t);
        }
        static new(t, e) {
            z(t, bi), z(e, Zs);
            const o = r.header_new(t.__wbg_ptr, e.__wbg_ptr);
            return pi.__wrap(o);
        }
    }
    const d2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_headerbody_free(n >>> 0, 1));
    class bi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(bi.prototype);
            return e.__wbg_ptr = t, d2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, d2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_headerbody_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.headerbody_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.headerbody_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.headerbody_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return bi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.headerbody_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.headerbody_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.headerbody_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return bi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.headerbody_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.headerbody_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.headerbody_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return bi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        block_number() {
            const t = r.headerbody_block_number(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        slot() {
            const t = r.headerbody_slot(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        prev_hash() {
            const t = r.headerbody_prev_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Gs.__wrap(t);
        }
        issuer_vkey() {
            const t = r.headerbody_issuer_vkey(this.__wbg_ptr);
            return lr.__wrap(t);
        }
        vrf_vkey() {
            const t = r.headerbody_vrf_vkey(this.__wbg_ptr);
            return Qs.__wrap(t);
        }
        vrf_result() {
            const t = r.headerbody_vrf_result(this.__wbg_ptr);
            return ki.__wrap(t);
        }
        block_body_size() {
            const t = r.headerbody_block_body_size(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        block_body_hash() {
            const t = r.headerbody_block_body_hash(this.__wbg_ptr);
            return Ds.__wrap(t);
        }
        operational_cert() {
            const t = r.headerbody_operational_cert(this.__wbg_ptr);
            return wi.__wrap(t);
        }
        protocol_version() {
            const t = r.headerbody_protocol_version(this.__wbg_ptr);
            return X_.__wrap(t);
        }
        static new(t, e, o, _, a, c, s, u, l, f) {
            let p = 0;
            ne(o) || (z(o, Gs), p = o.__destroy_into_raw()), z(_, lr), z(a, Qs), z(c, ki), z(u, Ds), z(l, wi), z(f, X_);
            const g = r.headerbody_new(t, e, p, _.__wbg_ptr, a.__wbg_ptr, c.__wbg_ptr, s, u.__wbg_ptr, l.__wbg_ptr, f.__wbg_ptr);
            return bi.__wrap(g);
        }
    }
    const Dj = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_inputaggregatewitnessdata_free(n >>> 0, 1));
    class Gj {
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Dj.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_inputaggregatewitnessdata_free(t, 0);
        }
        plutus_data() {
            const t = r.inputaggregatewitnessdata_plutus_data(this.__wbg_ptr);
            return t === 0 ? void 0 : Vt.__wrap(t);
        }
    }
    const u2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_inputbuilderresult_free(n >>> 0, 1));
    class ta {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ta.prototype);
            return e.__wbg_ptr = t, u2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, u2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_inputbuilderresult_free(t, 0);
        }
    }
    const l2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_int_free(n >>> 0, 1));
    class En {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(En.prototype);
            return e.__wbg_ptr = t, l2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, l2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_int_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.int_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.int_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return En.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.int_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_json_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.int_to_json_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.int_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return En.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(t) {
            const e = r.int_new(t);
            return En.__wrap(e);
        }
        to_str() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.int_to_str(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_str(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.int_from_str(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return En.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const f2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_intlist_free(n >>> 0, 1));
    class Jp {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Jp.prototype);
            return e.__wbg_ptr = t, f2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, f2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_intlist_free(t, 0);
        }
        static new() {
            const t = r.intlist_new();
            return Jp.__wrap(t);
        }
        len() {
            return r.intlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.intlist_get(this.__wbg_ptr, t);
            return En.__wrap(e);
        }
        add(t) {
            z(t, En), r.intlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const g2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_ipv4_free(n >>> 0, 1));
    class Si {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Si.prototype);
            return e.__wbg_ptr = t, g2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, g2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_ipv4_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv4_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv4_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.ipv4_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Si.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv4_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv4_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.ipv4_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Si.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv4_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv4_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.ipv4_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Si.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv4_get(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const p2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_ipv6_free(n >>> 0, 1));
    class Ei {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ei.prototype);
            return e.__wbg_ptr = t, p2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, p2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_ipv6_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv6_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv6_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.ipv6_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ei.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv6_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv6_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.ipv6_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ei.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv6_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv6_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.ipv6_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ei.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.ipv6_get(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const b2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_kessignature_free(n >>> 0, 1));
    class Zs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Zs.prototype);
            return e.__wbg_ptr = t, b2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, b2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_kessignature_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.kessignature_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.kessignature_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.kessignature_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Zs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.kessignature_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.kessignature_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.kessignature_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Zs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.kessignature_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.kessignature_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.kessignature_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Zs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.kessignature_get(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const w2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_kesvkey_free(n >>> 0, 1));
    class Ys {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ys.prototype);
            return e.__wbg_ptr = t, w2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, w2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_kesvkey_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.kesvkey_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.kesvkey_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ys.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.kesvkey_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.kesvkey_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ys.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.kesvkey_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.kesvkey_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ys.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const y2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_languagelist_free(n >>> 0, 1));
    class Ju {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ju.prototype);
            return e.__wbg_ptr = t, y2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, y2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_languagelist_free(t, 0);
        }
        static new() {
            const t = r.languagelist_new();
            return Ju.__wrap(t);
        }
        len() {
            return r.languagelist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            return r.languagelist_get(this.__wbg_ptr, t);
        }
        add(t) {
            r.languagelist_add(this.__wbg_ptr, t);
        }
    }
    const Hj = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_legacydaedalusprivatekey_free(n >>> 0, 1));
    class x5 {
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Hj.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_legacydaedalusprivatekey_free(t, 0);
        }
        chaincode() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.legacydaedalusprivatekey_chaincode(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const h2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_legacyredeemer_free(n >>> 0, 1));
    class P_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(P_.prototype);
            return e.__wbg_ptr = t, h2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, h2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_legacyredeemer_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.legacyredeemer_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.legacyredeemer_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.legacyredeemer_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return P_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.legacyredeemer_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.legacyredeemer_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.legacyredeemer_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return P_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.legacyredeemer_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.legacyredeemer_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.legacyredeemer_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return P_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        tag() {
            return r.legacyredeemer_tag(this.__wbg_ptr);
        }
        index() {
            const t = r.legacyredeemer_index(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        data() {
            const t = r.legacyredeemer_data(this.__wbg_ptr);
            return Vt.__wrap(t);
        }
        ex_units() {
            const t = r.legacyredeemer_ex_units(this.__wbg_ptr);
            return Je.__wrap(t);
        }
        static new(t, e, o, _) {
            z(o, Vt), z(_, Je);
            const a = r.legacyredeemer_new(t, e, o.__wbg_ptr, _.__wbg_ptr);
            return P_.__wrap(a);
        }
    }
    const v2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_legacyredeemerlist_free(n >>> 0, 1));
    class Pi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Pi.prototype);
            return e.__wbg_ptr = t, v2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, v2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_legacyredeemerlist_free(t, 0);
        }
        static new() {
            const t = r.legacyredeemerlist_new();
            return Pi.__wrap(t);
        }
        len() {
            return r.legacyredeemerlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.legacyredeemerlist_get(this.__wbg_ptr, t);
            return P_.__wrap(e);
        }
        add(t) {
            z(t, P_), r.legacyredeemerlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const m2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_linearfee_free(n >>> 0, 1));
    class oc {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(oc.prototype);
            return e.__wbg_ptr = t, m2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, m2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_linearfee_free(t, 0);
        }
        static new(t, e, o) {
            const _ = r.linearfee_new(t, e, o);
            return oc.__wrap(_);
        }
        coefficient() {
            const t = r.linearfee_coefficient(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        constant() {
            const t = r.linearfee_constant(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        ref_script_cost_per_byte() {
            const t = r.linearfee_ref_script_cost_per_byte(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
    }
    const I2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_mapassetnametocoin_free(n >>> 0, 1));
    class tc {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(tc.prototype);
            return e.__wbg_ptr = t, I2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, I2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_mapassetnametocoin_free(t, 0);
        }
        get(t) {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Ye), r.mapassetnametocoin_get(_, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(_ + 0, !0), o = i().getBigInt64(_ + 8, !0);
                return e === 0 ? void 0 : BigInt.asUintN(64, o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        insert(t, e) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Ye), r.mapassetnametocoin_insert(a, this.__wbg_ptr, t.__wbg_ptr, e);
                var o = i().getInt32(a + 0, !0), _ = i().getBigInt64(a + 8, !0);
                return o === 0 ? void 0 : BigInt.asUintN(64, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new() {
            const t = r.mapassetnametocoin_new();
            return tc.__wrap(t);
        }
        len() {
            return r.mapassetnametocoin_len(this.__wbg_ptr) >>> 0;
        }
        is_empty() {
            return r.mapassetnametocoin_is_empty(this.__wbg_ptr) !== 0;
        }
        keys() {
            const t = r.mapassetnametocoin_keys(this.__wbg_ptr);
            return Vd.__wrap(t);
        }
    }
    const k2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_mapassetnametononzeroint64_free(n >>> 0, 1));
    class Ri {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ri.prototype);
            return e.__wbg_ptr = t, k2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, k2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_mapassetnametononzeroint64_free(t, 0);
        }
        static new() {
            const t = r.mapassetnametononzeroint64_new();
            return Ri.__wrap(t);
        }
        len() {
            return r.mapassetnametononzeroint64_len(this.__wbg_ptr) >>> 0;
        }
        insert(t, e) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Ye), r.mapassetnametononzeroint64_insert(a, this.__wbg_ptr, t.__wbg_ptr, e);
                var o = i().getInt32(a + 0, !0), _ = i().getBigInt64(a + 8, !0);
                return o === 0 ? void 0 : _;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get(t) {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Ye), r.mapassetnametononzeroint64_get(_, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(_ + 0, !0), o = i().getBigInt64(_ + 8, !0);
                return e === 0 ? void 0 : o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        keys() {
            const t = r.mapassetnametononzeroint64_keys(this.__wbg_ptr);
            return Vd.__wrap(t);
        }
    }
    const B2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_mapassetnametou64_free(n >>> 0, 1));
    class Xp {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Xp.prototype);
            return e.__wbg_ptr = t, B2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, B2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_mapassetnametou64_free(t, 0);
        }
        static new() {
            const t = r.mapassetnametou64_new();
            return Xp.__wrap(t);
        }
        len() {
            return r.mapassetnametou64_len(this.__wbg_ptr) >>> 0;
        }
        insert(t, e) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Ye), r.mapassetnametou64_insert(a, this.__wbg_ptr, t.__wbg_ptr, e);
                var o = i().getInt32(a + 0, !0), _ = i().getBigInt64(a + 8, !0);
                return o === 0 ? void 0 : BigInt.asUintN(64, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get(t) {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Ye), r.mapassetnametou64_get(_, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(_ + 0, !0), o = i().getBigInt64(_ + 8, !0);
                return e === 0 ? void 0 : BigInt.asUintN(64, o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        keys() {
            const t = r.mapassetnametou64_keys(this.__wbg_ptr);
            return Vd.__wrap(t);
        }
    }
    const x2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_mapcommitteecoldcredentialtoepoch_free(n >>> 0, 1));
    class Zd {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Zd.prototype);
            return e.__wbg_ptr = t, x2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, x2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_mapcommitteecoldcredentialtoepoch_free(t, 0);
        }
        static new() {
            const t = r.mapcommitteecoldcredentialtoepoch_new();
            return Zd.__wrap(t);
        }
        len() {
            return r.mapcommitteecoldcredentialtoepoch_len(this.__wbg_ptr) >>> 0;
        }
        insert(t, e) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Pt), r.mapcommitteecoldcredentialtoepoch_insert(a, this.__wbg_ptr, t.__wbg_ptr, e);
                var o = i().getInt32(a + 0, !0), _ = i().getBigInt64(a + 8, !0);
                return o === 0 ? void 0 : BigInt.asUintN(64, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get(t) {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Pt), r.mapcommitteecoldcredentialtoepoch_get(_, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(_ + 0, !0), o = i().getBigInt64(_ + 8, !0);
                return e === 0 ? void 0 : BigInt.asUintN(64, o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        keys() {
            const t = r.mapcommitteecoldcredentialtoepoch_keys(this.__wbg_ptr);
            return ac.__wrap(t);
        }
    }
    const j2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_mapgovactionidtovotingprocedure_free(n >>> 0, 1));
    class Dd {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Dd.prototype);
            return e.__wbg_ptr = t, j2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, j2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_mapgovactionidtovotingprocedure_free(t, 0);
        }
        static new() {
            const t = r.mapgovactionidtovotingprocedure_new();
            return Dd.__wrap(t);
        }
        len() {
            return r.mapgovactionidtovotingprocedure_len(this.__wbg_ptr) >>> 0;
        }
        insert(t, e) {
            z(t, Ce), z(e, n_);
            const o = r.mapgovactionidtovotingprocedure_insert(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
            return o === 0 ? void 0 : n_.__wrap(o);
        }
        get(t) {
            z(t, Ce);
            const e = r.mapgovactionidtovotingprocedure_get(this.__wbg_ptr, t.__wbg_ptr);
            return e === 0 ? void 0 : n_.__wrap(e);
        }
        keys() {
            const t = r.mapgovactionidtovotingprocedure_keys(this.__wbg_ptr);
            return og.__wrap(t);
        }
    }
    const S2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_mapplutusdatatoplutusdata_free(n >>> 0, 1));
    class Qp {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Qp.prototype);
            return e.__wbg_ptr = t, S2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, S2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_mapplutusdatatoplutusdata_free(t, 0);
        }
        static new() {
            const t = r.mapplutusdatatoplutusdata_new();
            return Qp.__wrap(t);
        }
        len() {
            return r.mapplutusdatatoplutusdata_len(this.__wbg_ptr) >>> 0;
        }
        insert(t, e) {
            z(t, Vt), z(e, Vt);
            const o = r.mapplutusdatatoplutusdata_insert(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
            return o === 0 ? void 0 : Vt.__wrap(o);
        }
        get(t) {
            z(t, Vt);
            const e = r.mapplutusdatatoplutusdata_get(this.__wbg_ptr, t.__wbg_ptr);
            return e === 0 ? void 0 : Vt.__wrap(e);
        }
        keys() {
            const t = r.mapplutusdatatoplutusdata_keys(this.__wbg_ptr);
            return Xr.__wrap(t);
        }
    }
    const E2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_mapredeemerkeytoredeemerval_free(n >>> 0, 1));
    class Xu {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Xu.prototype);
            return e.__wbg_ptr = t, E2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, E2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_mapredeemerkeytoredeemerval_free(t, 0);
        }
        static new() {
            const t = r.mapredeemerkeytoredeemerval_new();
            return Xu.__wrap(t);
        }
        len() {
            return r.mapredeemerkeytoredeemerval_len(this.__wbg_ptr) >>> 0;
        }
        insert(t, e) {
            z(t, ja), z(e, ao);
            const o = r.mapredeemerkeytoredeemerval_insert(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
            return o === 0 ? void 0 : ao.__wrap(o);
        }
        get(t) {
            z(t, ja);
            const e = r.mapredeemerkeytoredeemerval_get(this.__wbg_ptr, t.__wbg_ptr);
            return e === 0 ? void 0 : ao.__wrap(e);
        }
        keys() {
            const t = r.mapredeemerkeytoredeemerval_keys(this.__wbg_ptr);
            return sg.__wrap(t);
        }
    }
    const O2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_maprewardaccounttocoin_free(n >>> 0, 1));
    class io {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(io.prototype);
            return e.__wbg_ptr = t, O2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, O2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_maprewardaccounttocoin_free(t, 0);
        }
        static new() {
            const t = r.maprewardaccounttocoin_new();
            return io.__wrap(t);
        }
        len() {
            return r.maprewardaccounttocoin_len(this.__wbg_ptr) >>> 0;
        }
        insert(t, e) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, wr), r.maprewardaccounttocoin_insert(a, this.__wbg_ptr, t.__wbg_ptr, e);
                var o = i().getInt32(a + 0, !0), _ = i().getBigInt64(a + 8, !0);
                return o === 0 ? void 0 : BigInt.asUintN(64, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get(t) {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, wr), r.maprewardaccounttocoin_get(_, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(_ + 0, !0), o = i().getBigInt64(_ + 8, !0);
                return e === 0 ? void 0 : BigInt.asUintN(64, o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        keys() {
            const t = r.maprewardaccounttocoin_keys(this.__wbg_ptr);
            return cg.__wrap(t);
        }
    }
    const F2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_mapstakecredentialtodeltacoin_free(n >>> 0, 1));
    class $p {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create($p.prototype);
            return e.__wbg_ptr = t, F2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, F2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_mapstakecredentialtodeltacoin_free(t, 0);
        }
        static new() {
            const t = r.mapstakecredentialtodeltacoin_new();
            return $p.__wrap(t);
        }
        len() {
            return r.mapstakecredentialtodeltacoin_len(this.__wbg_ptr) >>> 0;
        }
        insert(t, e) {
            z(t, Pt), z(e, En);
            const o = r.mapstakecredentialtodeltacoin_insert(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
            return o === 0 ? void 0 : En.__wrap(o);
        }
        get(t) {
            z(t, Pt);
            const e = r.mapstakecredentialtodeltacoin_get(this.__wbg_ptr, t.__wbg_ptr);
            return e === 0 ? void 0 : En.__wrap(e);
        }
        keys() {
            const t = r.mapstakecredentialtodeltacoin_keys(this.__wbg_ptr);
            return ug.__wrap(t);
        }
    }
    const A2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_maptransactionindextoauxiliarydata_free(n >>> 0, 1));
    class Qu {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Qu.prototype);
            return e.__wbg_ptr = t, A2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, A2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_maptransactionindextoauxiliarydata_free(t, 0);
        }
        static new() {
            const t = r.maptransactionindextoauxiliarydata_new();
            return Qu.__wrap(t);
        }
        len() {
            return r.maptransactionindextoauxiliarydata_len(this.__wbg_ptr) >>> 0;
        }
        insert(t, e) {
            z(e, tr);
            const o = r.maptransactionindextoauxiliarydata_insert(this.__wbg_ptr, t, e.__wbg_ptr);
            return o === 0 ? void 0 : tr.__wrap(o);
        }
        get(t) {
            const e = r.maptransactionindextoauxiliarydata_get(this.__wbg_ptr, t);
            return e === 0 ? void 0 : tr.__wrap(e);
        }
        keys() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.maptransactionindextoauxiliarydata_keys(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = I5(t, e).slice();
                return r.__wbindgen_free(t, e * 2, 2), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const T2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_maptransactionmetadatumtotransactionmetadatum_free(n >>> 0, 1));
    class tb {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(tb.prototype);
            return e.__wbg_ptr = t, T2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, T2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_maptransactionmetadatumtotransactionmetadatum_free(t, 0);
        }
        static new() {
            const t = r.maptransactionmetadatumtotransactionmetadatum_new();
            return tb.__wrap(t);
        }
        len() {
            return r.maptransactionmetadatumtotransactionmetadatum_len(this.__wbg_ptr) >>> 0;
        }
        insert(t, e) {
            z(t, Te), z(e, Te);
            const o = r.maptransactionmetadatumtotransactionmetadatum_insert(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
            return o === 0 ? void 0 : Te.__wrap(o);
        }
        get(t) {
            z(t, Te);
            const e = r.maptransactionmetadatumtotransactionmetadatum_get(this.__wbg_ptr, t.__wbg_ptr);
            return e === 0 ? void 0 : Te.__wrap(e);
        }
        keys() {
            const t = r.maptransactionmetadatumtotransactionmetadatum_keys(this.__wbg_ptr);
            return Xd.__wrap(t);
        }
    }
    const P2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_mapu64toarri64_free(n >>> 0, 1));
    class ig {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ig.prototype);
            return e.__wbg_ptr = t, P2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, P2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_mapu64toarri64_free(t, 0);
        }
        get(t) {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.mapu64toarri64_get(_, this.__wbg_ptr, t);
                var e = i().getInt32(_ + 0, !0), o = i().getInt32(_ + 4, !0);
                let a;
                return e !== 0 && (a = Kh(e, o).slice(), r.__wbindgen_free(e, o * 8, 8)), a;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        insert(t, e) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lj(e, r.__wbindgen_malloc), s = $;
                r.mapu64toarri64_insert(a, this.__wbg_ptr, t, c, s);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                let u;
                return o !== 0 && (u = Kh(o, _).slice(), r.__wbindgen_free(o, _ * 8, 8)), u;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new() {
            const t = r.mapu64toarri64_new();
            return ig.__wrap(t);
        }
        len() {
            return r.mapu64toarri64_len(this.__wbg_ptr) >>> 0;
        }
        is_empty() {
            return r.mapu64toarri64_is_empty(this.__wbg_ptr) !== 0;
        }
        keys() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.mapu64toarri64_keys(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = fj(t, e).slice();
                return r.__wbindgen_free(t, e * 8, 8), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const R2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_metadata_free(n >>> 0, 1));
    class On {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(On.prototype);
            return e.__wbg_ptr = t, R2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, R2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_metadata_free(t, 0);
        }
        static new() {
            const t = r.metadata_new();
            return On.__wrap(t);
        }
        len() {
            return r.metadata_len(this.__wbg_ptr) >>> 0;
        }
        set(t, e) {
            z(e, Te), r.metadata_set(this.__wbg_ptr, t, e.__wbg_ptr);
        }
        get(t) {
            const e = r.metadata_get(this.__wbg_ptr, t);
            return e === 0 ? void 0 : Te.__wrap(e);
        }
        get_all(t) {
            const e = r.metadata_get_all(this.__wbg_ptr, t);
            return e === 0 ? void 0 : Xd.__wrap(e);
        }
        labels() {
            const t = r.metadata_labels(this.__wbg_ptr);
            return fg.__wrap(t);
        }
    }
    const U2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_metadatumlist_free(n >>> 0, 1));
    class Yd {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Yd.prototype);
            return e.__wbg_ptr = t, U2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, U2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_metadatumlist_free(t, 0);
        }
        static new() {
            const t = r.metadatumlist_new();
            return Yd.__wrap(t);
        }
        len() {
            return r.metadatumlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.metadatumlist_get(this.__wbg_ptr, t);
            return Te.__wrap(e);
        }
        add(t) {
            z(t, Te), r.metadatumlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const C2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_metadatummap_free(n >>> 0, 1));
    class $u {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create($u.prototype);
            return e.__wbg_ptr = t, C2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, C2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_metadatummap_free(t, 0);
        }
        static new() {
            const t = r.metadatummap_new();
            return $u.__wrap(t);
        }
        len() {
            return r.metadatummap_len(this.__wbg_ptr) >>> 0;
        }
        set(t, e) {
            z(t, Te), z(e, Te), r.metadatummap_set(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
        }
        get(t) {
            z(t, Te);
            const e = r.metadatummap_get(this.__wbg_ptr, t.__wbg_ptr);
            return e === 0 ? void 0 : Te.__wrap(e);
        }
        get_all(t) {
            z(t, Te);
            const e = r.metadatummap_get_all(this.__wbg_ptr, t.__wbg_ptr);
            return e === 0 ? void 0 : Xd.__wrap(e);
        }
        keys() {
            const t = r.metadatummap_keys(this.__wbg_ptr);
            return Yd.__wrap(t);
        }
    }
    const N2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_mint_free(n >>> 0, 1));
    class xa {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(xa.prototype);
            return e.__wbg_ptr = t, N2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, N2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_mint_free(t, 0);
        }
        static new() {
            const t = r.mint_new();
            return xa.__wrap(t);
        }
        policy_count() {
            return r.mint_policy_count(this.__wbg_ptr) >>> 0;
        }
        insert_assets(t, e) {
            z(t, Zt), z(e, Ri);
            const o = r.mint_insert_assets(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
            return o === 0 ? void 0 : Ri.__wrap(o);
        }
        get_assets(t) {
            z(t, Zt);
            const e = r.mint_get_assets(this.__wbg_ptr, t.__wbg_ptr);
            return e === 0 ? void 0 : Ri.__wrap(e);
        }
        get(t, e) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Zt), z(e, Ye), r.mint_get(a, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getBigInt64(a + 8, !0);
                return o === 0 ? void 0 : _;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set(t, e, o) {
            try {
                const c = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Zt), z(e, Ye), r.mint_set(c, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr, o);
                var _ = i().getInt32(c + 0, !0), a = i().getBigInt64(c + 8, !0);
                return _ === 0 ? void 0 : a;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        keys() {
            const t = r.mint_keys(this.__wbg_ptr);
            return tl.__wrap(t);
        }
        checked_add(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, xa), r.mint_checked_add(a, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return xa.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        checked_sub(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, xa), r.mint_checked_sub(a, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return xa.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        as_positive_multiasset() {
            const t = r.mint_as_positive_multiasset(this.__wbg_ptr);
            return wn.__wrap(t);
        }
        as_negative_multiasset() {
            const t = r.mint_as_negative_multiasset(this.__wbg_ptr);
            return wn.__wrap(t);
        }
    }
    const M2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_mintbuilderresult_free(n >>> 0, 1));
    class Wd {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Wd.prototype);
            return e.__wbg_ptr = t, M2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, M2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_mintbuilderresult_free(t, 0);
        }
    }
    const L2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_multiasset_free(n >>> 0, 1));
    class wn {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(wn.prototype);
            return e.__wbg_ptr = t, L2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, L2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_multiasset_free(t, 0);
        }
        static new() {
            const t = r.multiasset_new();
            return wn.__wrap(t);
        }
        policy_count() {
            return r.multiasset_policy_count(this.__wbg_ptr) >>> 0;
        }
        insert_assets(t, e) {
            z(t, Zt), z(e, tc);
            const o = r.multiasset_insert_assets(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
            return o === 0 ? void 0 : tc.__wrap(o);
        }
        get_assets(t) {
            z(t, Zt);
            const e = r.multiasset_get_assets(this.__wbg_ptr, t.__wbg_ptr);
            return e === 0 ? void 0 : tc.__wrap(e);
        }
        get(t, e) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Zt), z(e, Ye), r.multiasset_get(a, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getBigInt64(a + 8, !0);
                return o === 0 ? void 0 : BigInt.asUintN(64, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set(t, e, o) {
            try {
                const c = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Zt), z(e, Ye), r.multiasset_set(c, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr, o);
                var _ = i().getInt32(c + 0, !0), a = i().getBigInt64(c + 8, !0);
                return _ === 0 ? void 0 : BigInt.asUintN(64, a);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        keys() {
            const t = r.multiasset_keys(this.__wbg_ptr);
            return tl.__wrap(t);
        }
        checked_add(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, wn), r.multiasset_checked_add(a, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return wn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        checked_sub(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, wn), r.multiasset_checked_sub(a, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return wn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        clamped_sub(t) {
            z(t, wn);
            const e = r.multiasset_clamped_sub(this.__wbg_ptr, t.__wbg_ptr);
            return wn.__wrap(e);
        }
    }
    const z2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_multihostname_free(n >>> 0, 1));
    class ds {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ds.prototype);
            return e.__wbg_ptr = t, z2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, z2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_multihostname_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.multihostname_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.multihostname_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.multihostname_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ds.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.multihostname_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.multihostname_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.multihostname_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ds.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.multihostname_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.multihostname_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.multihostname_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ds.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        dns_name() {
            const t = r.multihostname_dns_name(this.__wbg_ptr);
            return $_.__wrap(t);
        }
        static new(t) {
            z(t, $_);
            const e = r.multihostname_new(t.__wbg_ptr);
            return ds.__wrap(e);
        }
    }
    const q2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_nativescript_free(n >>> 0, 1));
    class he {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(he.prototype);
            return e.__wbg_ptr = t, q2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, q2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_nativescript_free(t, 0);
        }
        get_required_signers() {
            const t = r.nativescript_get_required_signers(this.__wbg_ptr);
            return pe.__wrap(t);
        }
        hash() {
            const t = r.nativescript_hash(this.__wbg_ptr);
            return Zt.__wrap(t);
        }
        verify(t, e, o) {
            return z(o, pe), r.nativescript_verify(this.__wbg_ptr, !ne(t), ne(t) ? BigInt(0) : t, !ne(e), ne(e) ? BigInt(0) : e, o.__wbg_ptr) !== 0;
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.nativescript_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.nativescript_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.nativescript_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return he.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.nativescript_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.nativescript_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.nativescript_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return he.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.nativescript_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.nativescript_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.nativescript_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return he.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_script_pubkey(t) {
            z(t, Kt);
            const e = r.nativescript_new_script_pubkey(t.__wbg_ptr);
            return he.__wrap(e);
        }
        static new_script_all(t) {
            z(t, Qe);
            const e = r.nativescript_new_script_all(t.__wbg_ptr);
            return he.__wrap(e);
        }
        static new_script_any(t) {
            z(t, Qe);
            const e = r.nativescript_new_script_any(t.__wbg_ptr);
            return he.__wrap(e);
        }
        static new_script_n_of_k(t, e) {
            z(e, Qe);
            const o = r.nativescript_new_script_n_of_k(t, e.__wbg_ptr);
            return he.__wrap(o);
        }
        static new_script_invalid_before(t) {
            const e = r.nativescript_new_script_invalid_before(t);
            return he.__wrap(e);
        }
        static new_script_invalid_hereafter(t) {
            const e = r.nativescript_new_script_invalid_hereafter(t);
            return he.__wrap(e);
        }
        kind() {
            return r.nativescript_kind(this.__wbg_ptr);
        }
        as_script_pubkey() {
            const t = r.nativescript_as_script_pubkey(this.__wbg_ptr);
            return t === 0 ? void 0 : Bs.__wrap(t);
        }
        as_script_all() {
            const t = r.nativescript_as_script_all(this.__wbg_ptr);
            return t === 0 ? void 0 : hs.__wrap(t);
        }
        as_script_any() {
            const t = r.nativescript_as_script_any(this.__wbg_ptr);
            return t === 0 ? void 0 : vs.__wrap(t);
        }
        as_script_n_of_k() {
            const t = r.nativescript_as_script_n_of_k(this.__wbg_ptr);
            return t === 0 ? void 0 : ks.__wrap(t);
        }
        as_script_invalid_before() {
            const t = r.nativescript_as_script_invalid_before(this.__wbg_ptr);
            return t === 0 ? void 0 : ms.__wrap(t);
        }
        as_script_invalid_hereafter() {
            const t = r.nativescript_as_script_invalid_hereafter(this.__wbg_ptr);
            return t === 0 ? void 0 : Is.__wrap(t);
        }
    }
    const D2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_nativescriptlist_free(n >>> 0, 1));
    class Qe {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Qe.prototype);
            return e.__wbg_ptr = t, D2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, D2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_nativescriptlist_free(t, 0);
        }
        static new() {
            const t = r.nativescriptlist_new();
            return Qe.__wrap(t);
        }
        len() {
            return r.nativescriptlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.nativescriptlist_get(this.__wbg_ptr, t);
            return he.__wrap(e);
        }
        add(t) {
            z(t, he), r.nativescriptlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const G2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_nativescriptwitnessinfo_free(n >>> 0, 1));
    class Wr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Wr.prototype);
            return e.__wbg_ptr = t, G2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, G2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_nativescriptwitnessinfo_free(t, 0);
        }
        static num_signatures(t) {
            const e = r.nativescriptwitnessinfo_num_signatures(t);
            return Wr.__wrap(e);
        }
        static vkeys(t) {
            z(t, pe);
            const e = r.nativescriptwitnessinfo_vkeys(t.__wbg_ptr);
            return Wr.__wrap(e);
        }
        static assume_signature_count() {
            const t = r.nativescriptwitnessinfo_assume_signature_count();
            return Wr.__wrap(t);
        }
    }
    const H2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_networkid_free(n >>> 0, 1));
    class O_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(O_.prototype);
            return e.__wbg_ptr = t, H2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, H2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_networkid_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.networkid_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.networkid_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.networkid_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return O_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.networkid_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.networkid_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.networkid_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return O_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.networkid_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.networkid_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.networkid_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return O_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(t) {
            const e = r.networkid_new(t);
            return O_.__wrap(e);
        }
        static mainnet() {
            const t = r.networkid_mainnet();
            return O_.__wrap(t);
        }
        static testnet() {
            const t = r.networkid_testnet();
            return O_.__wrap(t);
        }
        network() {
            const t = r.networkid_network(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
    }
    const K2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_networkinfo_free(n >>> 0, 1));
    class ri {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ri.prototype);
            return e.__wbg_ptr = t, K2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, K2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_networkinfo_free(t, 0);
        }
        static new(t, e) {
            z(e, i_);
            const o = r.networkinfo_new(t, e.__wbg_ptr);
            return ri.__wrap(o);
        }
        network_id() {
            return r.networkinfo_network_id(this.__wbg_ptr);
        }
        protocol_magic() {
            const t = r.networkinfo_protocol_magic(this.__wbg_ptr);
            return i_.__wrap(t);
        }
        static testnet() {
            const t = r.networkinfo_testnet();
            return ri.__wrap(t);
        }
        static mainnet() {
            const t = r.networkinfo_mainnet();
            return ri.__wrap(t);
        }
        static preview() {
            const t = r.networkinfo_preview();
            return ri.__wrap(t);
        }
        static preprod() {
            const t = r.networkinfo_preprod();
            return ri.__wrap(t);
        }
        static sancho_testnet() {
            const t = r.networkinfo_sancho_testnet();
            return ri.__wrap(t);
        }
    }
    const V2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_newconstitution_free(n >>> 0, 1));
    class us {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(us.prototype);
            return e.__wbg_ptr = t, V2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, V2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_newconstitution_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.newconstitution_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.newconstitution_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.newconstitution_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return us.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.newconstitution_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.newconstitution_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.newconstitution_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return us.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.newconstitution_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.newconstitution_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.newconstitution_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return us.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        action_id() {
            const t = r.newconstitution_action_id(this.__wbg_ptr);
            return t === 0 ? void 0 : Ce.__wrap(t);
        }
        constitution() {
            const t = r.newconstitution_constitution(this.__wbg_ptr);
            return eo.__wrap(t);
        }
        static new(t, e) {
            let o = 0;
            ne(t) || (z(t, Ce), o = t.__destroy_into_raw()), z(e, eo);
            const _ = r.newconstitution_new(o, e.__wbg_ptr);
            return us.__wrap(_);
        }
    }
    const Z2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_noconfidence_free(n >>> 0, 1));
    class ls {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ls.prototype);
            return e.__wbg_ptr = t, Z2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Z2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_noconfidence_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.noconfidence_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.noconfidence_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.noconfidence_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ls.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.noconfidence_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.noconfidence_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.noconfidence_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ls.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.noconfidence_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.noconfidence_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.noconfidence_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ls.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        action_id() {
            const t = r.noconfidence_action_id(this.__wbg_ptr);
            return t === 0 ? void 0 : Ce.__wrap(t);
        }
        static new(t) {
            let e = 0;
            ne(t) || (z(t, Ce), e = t.__destroy_into_raw());
            const o = r.noconfidence_new(e);
            return ls.__wrap(o);
        }
    }
    const Y2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_nonce_free(n >>> 0, 1));
    class _s {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(_s.prototype);
            return e.__wbg_ptr = t, Y2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Y2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_nonce_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.nonce_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.nonce_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.nonce_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return _s.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.nonce_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.nonce_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.nonce_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return _s.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.nonce_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.nonce_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.nonce_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return _s.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_identity() {
            const t = r.nonce_new_identity();
            return _s.__wrap(t);
        }
        static new_hash(t) {
            z(t, Ws);
            const e = r.nonce_new_hash(t.__wbg_ptr);
            return _s.__wrap(e);
        }
        kind() {
            return r.nonce_kind(this.__wbg_ptr);
        }
        as_hash() {
            const t = r.nonce_as_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Ws.__wrap(t);
        }
    }
    const W2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_noncehash_free(n >>> 0, 1));
    class Ws {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ws.prototype);
            return e.__wbg_ptr = t, W2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, W2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_noncehash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.noncehash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.noncehash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ws.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.noncehash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.noncehash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ws.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.noncehash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.noncehash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ws.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const J2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_operationalcert_free(n >>> 0, 1));
    class wi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(wi.prototype);
            return e.__wbg_ptr = t, J2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, J2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_operationalcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.operationalcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.operationalcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.operationalcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return wi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.operationalcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.operationalcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.operationalcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return wi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.operationalcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.operationalcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.operationalcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return wi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        hot_vkey() {
            const t = r.operationalcert_hot_vkey(this.__wbg_ptr);
            return Ys.__wrap(t);
        }
        sequence_number() {
            const t = r.operationalcert_sequence_number(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        kes_period() {
            const t = r.operationalcert_kes_period(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        sigma() {
            const t = r.operationalcert_sigma(this.__wbg_ptr);
            return Yr.__wrap(t);
        }
        static new(t, e, o, _) {
            z(t, Ys), z(_, Yr);
            const a = r.operationalcert_new(t.__wbg_ptr, e, o, _.__wbg_ptr);
            return wi.__wrap(a);
        }
    }
    const X2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_parameterchangeaction_free(n >>> 0, 1));
    class fs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(fs.prototype);
            return e.__wbg_ptr = t, X2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, X2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_parameterchangeaction_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.parameterchangeaction_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.parameterchangeaction_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.parameterchangeaction_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return fs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.parameterchangeaction_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.parameterchangeaction_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.parameterchangeaction_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return fs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.parameterchangeaction_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.parameterchangeaction_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.parameterchangeaction_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return fs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        action_id() {
            const t = r.parameterchangeaction_action_id(this.__wbg_ptr);
            return t === 0 ? void 0 : Ce.__wrap(t);
        }
        update() {
            const t = r.parameterchangeaction_update(this.__wbg_ptr);
            return _o.__wrap(t);
        }
        policy_hash() {
            const t = r.parameterchangeaction_policy_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Zt.__wrap(t);
        }
        static new(t, e, o) {
            let _ = 0;
            ne(t) || (z(t, Ce), _ = t.__destroy_into_raw()), z(e, _o);
            let a = 0;
            ne(o) || (z(o, Zt), a = o.__destroy_into_raw());
            const c = r.parameterchangeaction_new(_, e.__wbg_ptr, a);
            return fs.__wrap(c);
        }
    }
    const Q2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_partialplutuswitness_free(n >>> 0, 1));
    class d_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(d_.prototype);
            return e.__wbg_ptr = t, Q2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Q2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_partialplutuswitness_free(t, 0);
        }
        static new(t, e) {
            z(t, ec), z(e, Vt);
            const o = r.partialplutuswitness_new(t.__wbg_ptr, e.__wbg_ptr);
            return d_.__wrap(o);
        }
        script() {
            const t = r.partialplutuswitness_script(this.__wbg_ptr);
            return ec.__wrap(t);
        }
        data() {
            const t = r.partialplutuswitness_data(this.__wbg_ptr);
            return Vt.__wrap(t);
        }
    }
    const $2 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_plutusdata_free(n >>> 0, 1));
    class Vt {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Vt.prototype);
            return e.__wbg_ptr = t, $2.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, $2.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_plutusdata_free(t, 0);
        }
        to_cardano_node_format() {
            const t = r.plutusdata_to_cardano_node_format(this.__wbg_ptr);
            return Vt.__wrap(t);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusdata_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusdata_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.plutusdata_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Vt.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusdata_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusdata_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.plutusdata_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Vt.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusdata_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusdata_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.plutusdata_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Vt.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_constr_plutus_data(t) {
            z(t, ro);
            const e = r.plutusdata_new_constr_plutus_data(t.__wbg_ptr);
            return Vt.__wrap(e);
        }
        static new_map(t) {
            z(t, Oi);
            const e = r.plutusdata_new_map(t.__wbg_ptr);
            return Vt.__wrap(e);
        }
        static new_list(t) {
            z(t, Xr);
            const e = r.plutusdata_new_list(t.__wbg_ptr);
            return Vt.__wrap(e);
        }
        static new_integer(t) {
            z(t, K_);
            const e = r.plutusdata_new_integer(t.__wbg_ptr);
            return Vt.__wrap(e);
        }
        static new_bytes(t) {
            const e = xt(t, r.__wbindgen_malloc), o = $, _ = r.plutusdata_new_bytes(e, o);
            return Vt.__wrap(_);
        }
        kind() {
            return r.plutusdata_kind(this.__wbg_ptr);
        }
        as_constr_plutus_data() {
            const t = r.plutusdata_as_constr_plutus_data(this.__wbg_ptr);
            return t === 0 ? void 0 : ro.__wrap(t);
        }
        as_map() {
            const t = r.plutusdata_as_map(this.__wbg_ptr);
            return t === 0 ? void 0 : Oi.__wrap(t);
        }
        as_list() {
            const t = r.plutusdata_as_list(this.__wbg_ptr);
            return t === 0 ? void 0 : Xr.__wrap(t);
        }
        as_integer() {
            const t = r.plutusdata_as_integer(this.__wbg_ptr);
            return t === 0 ? void 0 : K_.__wrap(t);
        }
        as_bytes() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusdata_as_bytes(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getInt32(o + 4, !0);
                let _;
                return t !== 0 && (_ = yt(t, e).slice(), r.__wbindgen_free(t, e * 1, 1)), _;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const t1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_plutusdatalist_free(n >>> 0, 1));
    class Xr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Xr.prototype);
            return e.__wbg_ptr = t, t1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, t1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_plutusdatalist_free(t, 0);
        }
        static new() {
            const t = r.plutusdatalist_new();
            return Xr.__wrap(t);
        }
        len() {
            return r.plutusdatalist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.plutusdatalist_get(this.__wbg_ptr, t);
            return Vt.__wrap(e);
        }
        add(t) {
            z(t, Vt), r.plutusdatalist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const e1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_plutusmap_free(n >>> 0, 1));
    class Oi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Oi.prototype);
            return e.__wbg_ptr = t, e1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, e1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_plutusmap_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusmap_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusmap_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.plutusmap_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Oi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusmap_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusmap_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.plutusmap_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Oi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new() {
            const t = r.plutusmap_new();
            return Oi.__wrap(t);
        }
        len() {
            return r.plutusmap_len(this.__wbg_ptr) >>> 0;
        }
        is_empty() {
            return r.plutusmap_is_empty(this.__wbg_ptr) !== 0;
        }
        set(t, e) {
            z(t, Vt), z(e, Vt), r.plutusmap_set(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
        }
        get(t) {
            z(t, Vt);
            const e = r.plutusmap_get(this.__wbg_ptr, t.__wbg_ptr);
            return e === 0 ? void 0 : Vt.__wrap(e);
        }
        get_all(t) {
            z(t, Vt);
            const e = r.plutusmap_get_all(this.__wbg_ptr, t.__wbg_ptr);
            return e === 0 ? void 0 : Xr.__wrap(e);
        }
        keys() {
            const t = r.plutusmap_keys(this.__wbg_ptr);
            return Xr.__wrap(t);
        }
    }
    const r1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_plutusscript_free(n >>> 0, 1));
    class N_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(N_.prototype);
            return e.__wbg_ptr = t, r1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, r1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_plutusscript_free(t, 0);
        }
        static from_v1(t) {
            z(t, zr);
            const e = r.plutusscript_from_v1(t.__wbg_ptr);
            return N_.__wrap(e);
        }
        static from_v2(t) {
            z(t, qr);
            const e = r.plutusscript_from_v2(t.__wbg_ptr);
            return N_.__wrap(e);
        }
        static from_v3(t) {
            z(t, Dr);
            const e = r.plutusscript_from_v3(t.__wbg_ptr);
            return N_.__wrap(e);
        }
        hash() {
            const t = r.plutusscript_hash(this.__wbg_ptr);
            return Zt.__wrap(t);
        }
        as_v1() {
            const t = r.plutusscript_as_v1(this.__wbg_ptr);
            return t === 0 ? void 0 : zr.__wrap(t);
        }
        as_v2() {
            const t = r.plutusscript_as_v2(this.__wbg_ptr);
            return t === 0 ? void 0 : qr.__wrap(t);
        }
        as_v3() {
            const t = r.plutusscript_as_v3(this.__wbg_ptr);
            return t === 0 ? void 0 : Dr.__wrap(t);
        }
        version() {
            return r.plutusscript_version(this.__wbg_ptr);
        }
    }
    const n1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_plutusscriptwitness_free(n >>> 0, 1));
    class ec {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ec.prototype);
            return e.__wbg_ptr = t, n1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, n1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_plutusscriptwitness_free(t, 0);
        }
        static new_script(t) {
            z(t, N_);
            const e = r.plutusscriptwitness_new_script(t.__wbg_ptr);
            return ec.__wrap(e);
        }
        static new_ref(t) {
            z(t, Zt);
            const e = r.plutusscriptwitness_new_ref(t.__wbg_ptr);
            return ec.__wrap(e);
        }
        hash() {
            const t = r.plutusscriptwitness_hash(this.__wbg_ptr);
            return Zt.__wrap(t);
        }
    }
    const _1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_plutusv1script_free(n >>> 0, 1));
    class zr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(zr.prototype);
            return e.__wbg_ptr = t, _1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, _1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_plutusv1script_free(t, 0);
        }
        hash() {
            const t = r.plutusv1script_hash(this.__wbg_ptr);
            return Zt.__wrap(t);
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv1script_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.plutusv1script_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return zr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv1script_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.plutusv1script_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return zr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv1script_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv1script_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.plutusv1script_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return zr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv1script_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv1script_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.plutusv1script_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return zr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv1script_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv1script_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.plutusv1script_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return zr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const a1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_plutusv1scriptlist_free(n >>> 0, 1));
    class Ua {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ua.prototype);
            return e.__wbg_ptr = t, a1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, a1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_plutusv1scriptlist_free(t, 0);
        }
        static new() {
            const t = r.plutusv1scriptlist_new();
            return Ua.__wrap(t);
        }
        len() {
            return r.plutusv1scriptlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.plutusv1scriptlist_get(this.__wbg_ptr, t);
            return zr.__wrap(e);
        }
        add(t) {
            z(t, zr), r.plutusv1scriptlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const o1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_plutusv2script_free(n >>> 0, 1));
    class qr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(qr.prototype);
            return e.__wbg_ptr = t, o1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, o1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_plutusv2script_free(t, 0);
        }
        hash() {
            const t = r.plutusv2script_hash(this.__wbg_ptr);
            return Zt.__wrap(t);
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv2script_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.plutusv2script_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return qr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv2script_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.plutusv2script_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return qr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv2script_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv2script_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.plutusv2script_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return qr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv2script_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv2script_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.plutusv2script_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return qr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv2script_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv2script_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.plutusv2script_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return qr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const i1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_plutusv2scriptlist_free(n >>> 0, 1));
    class Ca {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ca.prototype);
            return e.__wbg_ptr = t, i1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, i1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_plutusv2scriptlist_free(t, 0);
        }
        static new() {
            const t = r.plutusv2scriptlist_new();
            return Ca.__wrap(t);
        }
        len() {
            return r.plutusv2scriptlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.plutusv2scriptlist_get(this.__wbg_ptr, t);
            return qr.__wrap(e);
        }
        add(t) {
            z(t, qr), r.plutusv2scriptlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const s1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_plutusv3script_free(n >>> 0, 1));
    class Dr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Dr.prototype);
            return e.__wbg_ptr = t, s1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, s1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_plutusv3script_free(t, 0);
        }
        hash() {
            const t = r.plutusv3script_hash(this.__wbg_ptr);
            return Zt.__wrap(t);
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv3script_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.plutusv3script_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Dr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv3script_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.plutusv3script_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Dr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv3script_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv3script_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.plutusv3script_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Dr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv3script_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv3script_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.plutusv3script_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Dr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv3script_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.plutusv3script_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.plutusv3script_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Dr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const c1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_plutusv3scriptlist_free(n >>> 0, 1));
    class ic {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ic.prototype);
            return e.__wbg_ptr = t, c1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, c1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_plutusv3scriptlist_free(t, 0);
        }
        static new() {
            const t = r.plutusv3scriptlist_new();
            return ic.__wrap(t);
        }
        len() {
            return r.plutusv3scriptlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.plutusv3scriptlist_get(this.__wbg_ptr, t);
            return Dr.__wrap(e);
        }
        add(t) {
            z(t, Dr), r.plutusv3scriptlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const d1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_pointer_free(n >>> 0, 1));
    let Bw = class j5 {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(j5.prototype);
            return e.__wbg_ptr = t, d1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, d1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_pointer_free(t, 0);
        }
    };
    const u1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_pointeraddress_free(n >>> 0, 1));
    class Ru {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ru.prototype);
            return e.__wbg_ptr = t, u1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, u1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_pointeraddress_free(t, 0);
        }
        static new(t, e, o) {
            z(e, Pt), z(o, Bw);
            const _ = r.pointeraddress_new(t, e.__wbg_ptr, o.__wbg_ptr);
            return Ru.__wrap(_);
        }
        to_address() {
            const t = r.pointeraddress_to_address(this.__wbg_ptr);
            return ce.__wrap(t);
        }
        static from_address(t) {
            z(t, ce);
            const e = r.pointeraddress_from_address(t.__wbg_ptr);
            return e === 0 ? void 0 : Ru.__wrap(e);
        }
        network_id() {
            return r.pointeraddress_network_id(this.__wbg_ptr);
        }
        payment() {
            const t = r.pointeraddress_payment(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        stake() {
            const t = r.pointeraddress_stake(this.__wbg_ptr);
            return Bw.__wrap(t);
        }
    }
    const l1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_policyidlist_free(n >>> 0, 1));
    class tl {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(tl.prototype);
            return e.__wbg_ptr = t, l1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, l1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_policyidlist_free(t, 0);
        }
        static new() {
            const t = r.policyidlist_new();
            return tl.__wrap(t);
        }
        len() {
            return r.policyidlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.policyidlist_get(this.__wbg_ptr, t);
            return Zt.__wrap(e);
        }
        add(t) {
            z(t, Zt), r.policyidlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const f1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_poolmetadata_free(n >>> 0, 1));
    class yi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(yi.prototype);
            return e.__wbg_ptr = t, f1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, f1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_poolmetadata_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolmetadata_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolmetadata_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.poolmetadata_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return yi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolmetadata_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolmetadata_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.poolmetadata_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return yi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolmetadata_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolmetadata_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.poolmetadata_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return yi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        url() {
            const t = r.poolmetadata_url(this.__wbg_ptr);
            return M_.__wrap(t);
        }
        pool_metadata_hash() {
            const t = r.poolmetadata_pool_metadata_hash(this.__wbg_ptr);
            return Js.__wrap(t);
        }
        static new(t, e) {
            z(t, M_), z(e, Js);
            const o = r.poolmetadata_new(t.__wbg_ptr, e.__wbg_ptr);
            return yi.__wrap(o);
        }
    }
    const g1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_poolmetadatahash_free(n >>> 0, 1));
    class Js {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Js.prototype);
            return e.__wbg_ptr = t, g1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, g1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_poolmetadatahash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.poolmetadatahash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.poolmetadatahash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Js.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolmetadatahash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.poolmetadatahash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Js.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolmetadatahash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.poolmetadatahash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Js.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const p1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_poolparams_free(n >>> 0, 1));
    class no {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(no.prototype);
            return e.__wbg_ptr = t, p1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, p1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_poolparams_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolparams_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolparams_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.poolparams_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return no.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolparams_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolparams_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.poolparams_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return no.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolparams_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolparams_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.poolparams_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return no.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        operator() {
            const t = r.poolparams_operator(this.__wbg_ptr);
            return Kt.__wrap(t);
        }
        vrf_keyhash() {
            const t = r.poolparams_vrf_keyhash(this.__wbg_ptr);
            return Xs.__wrap(t);
        }
        pledge() {
            const t = r.poolparams_pledge(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        cost() {
            const t = r.poolparams_cost(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        margin() {
            const t = r.poolparams_margin(this.__wbg_ptr);
            return re.__wrap(t);
        }
        reward_account() {
            const t = r.poolparams_reward_account(this.__wbg_ptr);
            return wr.__wrap(t);
        }
        pool_owners() {
            const t = r.poolparams_pool_owners(this.__wbg_ptr);
            return pe.__wrap(t);
        }
        relays() {
            const t = r.poolparams_relays(this.__wbg_ptr);
            return rl.__wrap(t);
        }
        pool_metadata() {
            const t = r.poolparams_pool_metadata(this.__wbg_ptr);
            return t === 0 ? void 0 : yi.__wrap(t);
        }
        static new(t, e, o, _, a, c, s, u, l) {
            z(t, Kt), z(e, Xs), z(a, re), z(c, wr), z(s, pe), z(u, rl);
            let f = 0;
            ne(l) || (z(l, yi), f = l.__destroy_into_raw());
            const p = r.poolparams_new(t.__wbg_ptr, e.__wbg_ptr, o, _, a.__wbg_ptr, c.__wbg_ptr, s.__wbg_ptr, u.__wbg_ptr, f);
            return no.__wrap(p);
        }
    }
    const b1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_poolregistration_free(n >>> 0, 1));
    class gs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(gs.prototype);
            return e.__wbg_ptr = t, b1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, b1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_poolregistration_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolregistration_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolregistration_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.poolregistration_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return gs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolregistration_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolregistration_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.poolregistration_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return gs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolregistration_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolregistration_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.poolregistration_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return gs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        pool_params() {
            const t = r.poolregistration_pool_params(this.__wbg_ptr);
            return no.__wrap(t);
        }
        static new(t) {
            z(t, no);
            const e = r.poolregistration_new(t.__wbg_ptr);
            return gs.__wrap(e);
        }
    }
    const w1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_poolretirement_free(n >>> 0, 1));
    class ps {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ps.prototype);
            return e.__wbg_ptr = t, w1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, w1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_poolretirement_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolretirement_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolretirement_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.poolretirement_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ps.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolretirement_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolretirement_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.poolretirement_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ps.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolretirement_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolretirement_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.poolretirement_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ps.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        pool() {
            const t = r.poolretirement_pool(this.__wbg_ptr);
            return Kt.__wrap(t);
        }
        epoch() {
            const t = r.poolretirement_epoch(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e) {
            z(t, Kt);
            const o = r.poolretirement_new(t.__wbg_ptr, e);
            return ps.__wrap(o);
        }
    }
    const y1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_poolvotingthresholds_free(n >>> 0, 1));
    class hi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(hi.prototype);
            return e.__wbg_ptr = t, y1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, y1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_poolvotingthresholds_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolvotingthresholds_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolvotingthresholds_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.poolvotingthresholds_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return hi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolvotingthresholds_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolvotingthresholds_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.poolvotingthresholds_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return hi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolvotingthresholds_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.poolvotingthresholds_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.poolvotingthresholds_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return hi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        motion_no_confidence() {
            const t = r.poolvotingthresholds_motion_no_confidence(this.__wbg_ptr);
            return re.__wrap(t);
        }
        committee_normal() {
            const t = r.poolvotingthresholds_committee_normal(this.__wbg_ptr);
            return re.__wrap(t);
        }
        committee_no_confidence() {
            const t = r.poolvotingthresholds_committee_no_confidence(this.__wbg_ptr);
            return re.__wrap(t);
        }
        hard_fork_initiation() {
            const t = r.poolvotingthresholds_hard_fork_initiation(this.__wbg_ptr);
            return re.__wrap(t);
        }
        security_relevant_parameter_voting_threshold() {
            const t = r.poolvotingthresholds_security_relevant_parameter_voting_threshold(this.__wbg_ptr);
            return re.__wrap(t);
        }
        static new(t, e, o, _, a) {
            z(t, re), z(e, re), z(o, re), z(_, re), z(a, re);
            const c = r.poolvotingthresholds_new(t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr, _.__wbg_ptr, a.__wbg_ptr);
            return hi.__wrap(c);
        }
    }
    const h1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_privatekey_free(n >>> 0, 1));
    class Sn {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Sn.prototype);
            return e.__wbg_ptr = t, h1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, h1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_privatekey_free(t, 0);
        }
        to_public() {
            const t = r.privatekey_to_public(this.__wbg_ptr);
            return lr.__wrap(t);
        }
        static generate_ed25519() {
            const t = r.privatekey_generate_ed25519();
            return Sn.__wrap(t);
        }
        static generate_ed25519extended() {
            const t = r.privatekey_generate_ed25519extended();
            return Sn.__wrap(t);
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.privatekey_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Sn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_bech32() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.privatekey_to_bech32(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.privatekey_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_extended_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.privatekey_from_extended_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Sn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_normal_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.privatekey_from_normal_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Sn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        sign(t) {
            const e = xt(t, r.__wbindgen_malloc), o = $, _ = r.privatekey_sign(this.__wbg_ptr, e, o);
            return Yr.__wrap(_);
        }
    }
    const v1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_proposalbuilder_free(n >>> 0, 1));
    class as {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(as.prototype);
            return e.__wbg_ptr = t, v1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, v1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_proposalbuilder_free(t, 0);
        }
        static new() {
            const t = r.proposalbuilder_new();
            return as.__wrap(t);
        }
        with_proposal(t) {
            try {
                const c = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, R_);
                var e = t.__destroy_into_raw();
                r.proposalbuilder_with_proposal(c, this.__wbg_ptr, e);
                var o = i().getInt32(c + 0, !0), _ = i().getInt32(c + 4, !0), a = i().getInt32(c + 8, !0);
                if (a) throw x(_);
                return as.__wrap(o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        with_native_script_proposal(t, e, o) {
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, R_);
                var _ = t.__destroy_into_raw();
                z(e, he);
                var a = e.__destroy_into_raw();
                z(o, Wr);
                var c = o.__destroy_into_raw();
                r.proposalbuilder_with_native_script_proposal(f, this.__wbg_ptr, _, a, c);
                var s = i().getInt32(f + 0, !0), u = i().getInt32(f + 4, !0), l = i().getInt32(f + 8, !0);
                if (l) throw x(u);
                return as.__wrap(s);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        with_plutus_proposal(t, e, o, _) {
            try {
                const u = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, R_), z(e, d_), z(o, pe), z(_, Vt), r.proposalbuilder_with_plutus_proposal(u, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr, _.__wbg_ptr);
                var a = i().getInt32(u + 0, !0), c = i().getInt32(u + 4, !0), s = i().getInt32(u + 8, !0);
                if (s) throw x(c);
                return as.__wrap(a);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        with_plutus_proposal_inline_datum(t, e, o) {
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, R_);
                var _ = t.__destroy_into_raw();
                z(e, d_);
                var a = e.__destroy_into_raw();
                z(o, pe);
                var c = o.__destroy_into_raw();
                r.proposalbuilder_with_plutus_proposal_inline_datum(f, this.__wbg_ptr, _, a, c);
                var s = i().getInt32(f + 0, !0), u = i().getInt32(f + 4, !0), l = i().getInt32(f + 8, !0);
                if (l) throw x(u);
                return as.__wrap(s);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        build() {
            const t = r.proposalbuilder_build(this.__wbg_ptr);
            return kl.__wrap(t);
        }
    }
    const m1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_proposalbuilderresult_free(n >>> 0, 1));
    class kl {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(kl.prototype);
            return e.__wbg_ptr = t, m1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, m1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_proposalbuilderresult_free(t, 0);
        }
    }
    const I1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_proposalprocedure_free(n >>> 0, 1));
    class R_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(R_.prototype);
            return e.__wbg_ptr = t, I1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, I1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_proposalprocedure_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.proposalprocedure_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.proposalprocedure_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.proposalprocedure_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return R_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.proposalprocedure_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.proposalprocedure_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.proposalprocedure_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return R_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.proposalprocedure_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.proposalprocedure_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.proposalprocedure_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return R_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        deposit() {
            const t = r.proposalprocedure_deposit(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        reward_account() {
            const t = r.proposalprocedure_reward_account(this.__wbg_ptr);
            return wr.__wrap(t);
        }
        gov_action() {
            const t = r.proposalprocedure_gov_action(this.__wbg_ptr);
            return zn.__wrap(t);
        }
        anchor() {
            const t = r.proposalprocedure_anchor(this.__wbg_ptr);
            return Xe.__wrap(t);
        }
        static new(t, e, o, _) {
            z(e, wr), z(o, zn), z(_, Xe);
            const a = r.proposalprocedure_new(t, e.__wbg_ptr, o.__wbg_ptr, _.__wbg_ptr);
            return R_.__wrap(a);
        }
    }
    const k1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_proposalprocedurelist_free(n >>> 0, 1));
    class el {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(el.prototype);
            return e.__wbg_ptr = t, k1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, k1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_proposalprocedurelist_free(t, 0);
        }
        static new() {
            const t = r.proposalprocedurelist_new();
            return el.__wrap(t);
        }
        len() {
            return r.proposalprocedurelist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.proposalprocedurelist_get(this.__wbg_ptr, t);
            return R_.__wrap(e);
        }
        add(t) {
            z(t, R_), r.proposalprocedurelist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const B1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_protocolmagic_free(n >>> 0, 1));
    class i_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(i_.prototype);
            return e.__wbg_ptr = t, B1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, B1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_protocolmagic_free(t, 0);
        }
        static new(t) {
            const e = r.protocolmagic_new(t);
            return i_.__wrap(e);
        }
        to_int() {
            return r.protocolmagic_to_int(this.__wbg_ptr) >>> 0;
        }
    }
    const x1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_protocolparamupdate_free(n >>> 0, 1));
    class _o {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(_o.prototype);
            return e.__wbg_ptr = t, x1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, x1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_protocolparamupdate_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.protocolparamupdate_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return _o.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.protocolparamupdate_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return _o.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.protocolparamupdate_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return _o.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_minfee_a(t) {
            r.protocolparamupdate_set_minfee_a(this.__wbg_ptr, t);
        }
        minfee_a() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_minfee_a(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_minfee_b(t) {
            r.protocolparamupdate_set_minfee_b(this.__wbg_ptr, t);
        }
        minfee_b() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_minfee_b(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_max_block_body_size(t) {
            r.protocolparamupdate_set_max_block_body_size(this.__wbg_ptr, t);
        }
        max_block_body_size() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_max_block_body_size(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_max_transaction_size(t) {
            r.protocolparamupdate_set_max_transaction_size(this.__wbg_ptr, t);
        }
        max_transaction_size() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_max_transaction_size(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_max_block_header_size(t) {
            r.protocolparamupdate_set_max_block_header_size(this.__wbg_ptr, t);
        }
        max_block_header_size() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_max_block_header_size(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_key_deposit(t) {
            r.protocolparamupdate_set_key_deposit(this.__wbg_ptr, t);
        }
        key_deposit() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_key_deposit(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_pool_deposit(t) {
            r.protocolparamupdate_set_pool_deposit(this.__wbg_ptr, t);
        }
        pool_deposit() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_pool_deposit(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_maximum_epoch(t) {
            r.protocolparamupdate_set_maximum_epoch(this.__wbg_ptr, t);
        }
        maximum_epoch() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_maximum_epoch(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_n_opt(t) {
            r.protocolparamupdate_set_n_opt(this.__wbg_ptr, t);
        }
        n_opt() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_n_opt(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_pool_pledge_influence(t) {
            z(t, Kr), r.protocolparamupdate_set_pool_pledge_influence(this.__wbg_ptr, t.__wbg_ptr);
        }
        pool_pledge_influence() {
            const t = r.protocolparamupdate_pool_pledge_influence(this.__wbg_ptr);
            return t === 0 ? void 0 : Kr.__wrap(t);
        }
        set_expansion_rate(t) {
            z(t, re), r.protocolparamupdate_set_expansion_rate(this.__wbg_ptr, t.__wbg_ptr);
        }
        expansion_rate() {
            const t = r.protocolparamupdate_expansion_rate(this.__wbg_ptr);
            return t === 0 ? void 0 : re.__wrap(t);
        }
        set_treasury_growth_rate(t) {
            z(t, re), r.protocolparamupdate_set_treasury_growth_rate(this.__wbg_ptr, t.__wbg_ptr);
        }
        treasury_growth_rate() {
            const t = r.protocolparamupdate_treasury_growth_rate(this.__wbg_ptr);
            return t === 0 ? void 0 : re.__wrap(t);
        }
        set_min_pool_cost(t) {
            r.protocolparamupdate_set_min_pool_cost(this.__wbg_ptr, t);
        }
        min_pool_cost() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_min_pool_cost(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_ada_per_utxo_byte(t) {
            r.protocolparamupdate_set_ada_per_utxo_byte(this.__wbg_ptr, t);
        }
        ada_per_utxo_byte() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_ada_per_utxo_byte(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_cost_models_for_script_languages(t) {
            z(t, C_), r.protocolparamupdate_set_cost_models_for_script_languages(this.__wbg_ptr, t.__wbg_ptr);
        }
        cost_models_for_script_languages() {
            const t = r.protocolparamupdate_cost_models_for_script_languages(this.__wbg_ptr);
            return t === 0 ? void 0 : C_.__wrap(t);
        }
        set_execution_costs(t) {
            z(t, T_), r.protocolparamupdate_set_execution_costs(this.__wbg_ptr, t.__wbg_ptr);
        }
        execution_costs() {
            const t = r.protocolparamupdate_execution_costs(this.__wbg_ptr);
            return t === 0 ? void 0 : T_.__wrap(t);
        }
        set_max_tx_ex_units(t) {
            z(t, Je), r.protocolparamupdate_set_max_tx_ex_units(this.__wbg_ptr, t.__wbg_ptr);
        }
        max_tx_ex_units() {
            const t = r.protocolparamupdate_max_tx_ex_units(this.__wbg_ptr);
            return t === 0 ? void 0 : Je.__wrap(t);
        }
        set_max_block_ex_units(t) {
            z(t, Je), r.protocolparamupdate_set_max_block_ex_units(this.__wbg_ptr, t.__wbg_ptr);
        }
        max_block_ex_units() {
            const t = r.protocolparamupdate_max_block_ex_units(this.__wbg_ptr);
            return t === 0 ? void 0 : Je.__wrap(t);
        }
        set_max_value_size(t) {
            r.protocolparamupdate_set_max_value_size(this.__wbg_ptr, t);
        }
        max_value_size() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_max_value_size(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_collateral_percentage(t) {
            r.protocolparamupdate_set_collateral_percentage(this.__wbg_ptr, t);
        }
        collateral_percentage() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_collateral_percentage(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_max_collateral_inputs(t) {
            r.protocolparamupdate_set_max_collateral_inputs(this.__wbg_ptr, t);
        }
        max_collateral_inputs() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_max_collateral_inputs(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_pool_voting_thresholds(t) {
            z(t, hi), r.protocolparamupdate_set_pool_voting_thresholds(this.__wbg_ptr, t.__wbg_ptr);
        }
        pool_voting_thresholds() {
            const t = r.protocolparamupdate_pool_voting_thresholds(this.__wbg_ptr);
            return t === 0 ? void 0 : hi.__wrap(t);
        }
        set_d_rep_voting_thresholds(t) {
            z(t, gi), r.protocolparamupdate_set_d_rep_voting_thresholds(this.__wbg_ptr, t.__wbg_ptr);
        }
        d_rep_voting_thresholds() {
            const t = r.protocolparamupdate_d_rep_voting_thresholds(this.__wbg_ptr);
            return t === 0 ? void 0 : gi.__wrap(t);
        }
        set_min_committee_size(t) {
            r.protocolparamupdate_set_min_committee_size(this.__wbg_ptr, t);
        }
        min_committee_size() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_min_committee_size(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_committee_term_limit(t) {
            r.protocolparamupdate_set_committee_term_limit(this.__wbg_ptr, t);
        }
        committee_term_limit() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_committee_term_limit(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_governance_action_validity_period(t) {
            r.protocolparamupdate_set_governance_action_validity_period(this.__wbg_ptr, t);
        }
        governance_action_validity_period() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_governance_action_validity_period(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_governance_action_deposit(t) {
            r.protocolparamupdate_set_governance_action_deposit(this.__wbg_ptr, t);
        }
        governance_action_deposit() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_governance_action_deposit(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_d_rep_deposit(t) {
            r.protocolparamupdate_set_d_rep_deposit(this.__wbg_ptr, t);
        }
        d_rep_deposit() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_d_rep_deposit(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_d_rep_inactivity_period(t) {
            r.protocolparamupdate_set_d_rep_inactivity_period(this.__wbg_ptr, t);
        }
        d_rep_inactivity_period() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolparamupdate_d_rep_inactivity_period(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_min_fee_ref_script_cost_per_byte(t) {
            z(t, Kr), r.protocolparamupdate_set_min_fee_ref_script_cost_per_byte(this.__wbg_ptr, t.__wbg_ptr);
        }
        min_fee_ref_script_cost_per_byte() {
            const t = r.protocolparamupdate_min_fee_ref_script_cost_per_byte(this.__wbg_ptr);
            return t === 0 ? void 0 : Kr.__wrap(t);
        }
        static new() {
            const t = r.protocolparamupdate_new();
            return _o.__wrap(t);
        }
    }
    const j1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_protocolversion_free(n >>> 0, 1));
    class X_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(X_.prototype);
            return e.__wbg_ptr = t, j1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, j1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_protocolversion_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolversion_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolversion_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.protocolversion_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return X_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolversion_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolversion_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.protocolversion_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return X_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolversion_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.protocolversion_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.protocolversion_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return X_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        major() {
            const t = r.protocolversion_major(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        minor() {
            const t = r.protocolversion_minor(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e) {
            const o = r.protocolversion_new(t, e);
            return X_.__wrap(o);
        }
    }
    const S1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_publickey_free(n >>> 0, 1));
    class lr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(lr.prototype);
            return e.__wbg_ptr = t, S1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, S1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_publickey_free(t, 0);
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.publickey_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return lr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_bech32() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.publickey_to_bech32(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.publickey_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.publickey_from_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return lr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        verify(t, e) {
            const o = xt(t, r.__wbindgen_malloc), _ = $;
            return z(e, Yr), r.publickey_verify(this.__wbg_ptr, o, _, e.__wbg_ptr) !== 0;
        }
        hash() {
            const t = r.publickey_hash(this.__wbg_ptr);
            return Kt.__wrap(t);
        }
    }
    const E1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_rational_free(n >>> 0, 1));
    class Kr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Kr.prototype);
            return e.__wbg_ptr = t, E1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, E1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_rational_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.rational_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.rational_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.rational_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Kr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.rational_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.rational_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.rational_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Kr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.rational_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.rational_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.rational_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Kr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        numerator() {
            const t = r.rational_numerator(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        denominator() {
            const t = r.rational_denominator(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e) {
            const o = r.rational_new(t, e);
            return Kr.__wrap(o);
        }
    }
    const O1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_redeemerkey_free(n >>> 0, 1));
    class ja {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ja.prototype);
            return e.__wbg_ptr = t, O1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, O1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_redeemerkey_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemerkey_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemerkey_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.redeemerkey_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ja.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemerkey_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemerkey_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.redeemerkey_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ja.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemerkey_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemerkey_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.redeemerkey_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ja.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        tag() {
            return r.redeemerkey_tag(this.__wbg_ptr);
        }
        index() {
            const t = r.redeemerkey_index(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e) {
            const o = r.redeemerkey_new(t, e);
            return ja.__wrap(o);
        }
    }
    const F1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_redeemerkeylist_free(n >>> 0, 1));
    class sg {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(sg.prototype);
            return e.__wbg_ptr = t, F1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, F1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_redeemerkeylist_free(t, 0);
        }
        static new() {
            const t = r.redeemerkeylist_new();
            return sg.__wrap(t);
        }
        len() {
            return r.redeemerkeylist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.redeemerkeylist_get(this.__wbg_ptr, t);
            return ja.__wrap(e);
        }
        add(t) {
            z(t, ja), r.redeemerkeylist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const A1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_redeemersetbuilder_free(n >>> 0, 1));
    class eb {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(eb.prototype);
            return e.__wbg_ptr = t, A1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, A1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_redeemersetbuilder_free(t, 0);
        }
        static new() {
            const t = r.redeemersetbuilder_new();
            return eb.__wrap(t);
        }
        is_empty() {
            return r.redeemersetbuilder_is_empty(this.__wbg_ptr) !== 0;
        }
        update_ex_units(t, e) {
            z(t, Pa), z(e, Je), r.redeemersetbuilder_update_ex_units(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
        }
        add_spend(t) {
            z(t, ta), r.redeemersetbuilder_add_spend(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_mint(t) {
            z(t, Wd), r.redeemersetbuilder_add_mint(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_reward(t) {
            z(t, _c), r.redeemersetbuilder_add_reward(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_cert(t) {
            z(t, xi), r.redeemersetbuilder_add_cert(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_proposal(t) {
            z(t, kl), r.redeemersetbuilder_add_proposal(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_vote(t) {
            z(t, Bl), r.redeemersetbuilder_add_vote(this.__wbg_ptr, t.__wbg_ptr);
        }
        build(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemersetbuilder_build(a, this.__wbg_ptr, t);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return hn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const T1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_redeemerval_free(n >>> 0, 1));
    class ao {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ao.prototype);
            return e.__wbg_ptr = t, T1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, T1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_redeemerval_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemerval_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemerval_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.redeemerval_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ao.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemerval_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemerval_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.redeemerval_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ao.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemerval_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemerval_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.redeemerval_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ao.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        data() {
            const t = r.redeemerval_data(this.__wbg_ptr);
            return Vt.__wrap(t);
        }
        ex_units() {
            const t = r.redeemerval_ex_units(this.__wbg_ptr);
            return Je.__wrap(t);
        }
        static new(t, e) {
            z(t, Vt), z(e, Je);
            const o = r.redeemerval_new(t.__wbg_ptr, e.__wbg_ptr);
            return ao.__wrap(o);
        }
    }
    const P1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_redeemerwitnesskey_free(n >>> 0, 1));
    class Pa {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Pa.prototype);
            return e.__wbg_ptr = t, P1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, P1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_redeemerwitnesskey_free(t, 0);
        }
        static new(t, e) {
            const o = r.redeemerwitnesskey_new(t, e);
            return Pa.__wrap(o);
        }
        static from_redeemer(t) {
            z(t, P_);
            const e = r.redeemerwitnesskey_from_redeemer(t.__wbg_ptr);
            return Pa.__wrap(e);
        }
    }
    const R1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_redeemers_free(n >>> 0, 1));
    class hn {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(hn.prototype);
            return e.__wbg_ptr = t, R1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, R1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_redeemers_free(t, 0);
        }
        to_flat_format() {
            const t = r.redeemers_to_flat_format(this.__wbg_ptr);
            return Pi.__wrap(t);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemers_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemers_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.redeemers_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return hn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemers_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemers_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.redeemers_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return hn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemers_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.redeemers_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.redeemers_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return hn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_arr_legacy_redeemer(t) {
            z(t, Pi);
            const e = r.redeemers_new_arr_legacy_redeemer(t.__wbg_ptr);
            return hn.__wrap(e);
        }
        static new_map_redeemer_key_to_redeemer_val(t) {
            z(t, Xu);
            const e = r.redeemers_new_map_redeemer_key_to_redeemer_val(t.__wbg_ptr);
            return hn.__wrap(e);
        }
        kind() {
            return r.redeemers_kind(this.__wbg_ptr);
        }
        as_arr_legacy_redeemer() {
            const t = r.redeemers_as_arr_legacy_redeemer(this.__wbg_ptr);
            return t === 0 ? void 0 : Pi.__wrap(t);
        }
        as_map_redeemer_key_to_redeemer_val() {
            const t = r.redeemers_as_map_redeemer_key_to_redeemer_val(this.__wbg_ptr);
            return t === 0 ? void 0 : Xu.__wrap(t);
        }
    }
    const U1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_regcert_free(n >>> 0, 1));
    class bs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(bs.prototype);
            return e.__wbg_ptr = t, U1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, U1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_regcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.regcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.regcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.regcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return bs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.regcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.regcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.regcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return bs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.regcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.regcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.regcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return bs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_credential() {
            const t = r.regcert_stake_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        deposit() {
            const t = r.regcert_deposit(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e) {
            z(t, Pt);
            const o = r.regcert_new(t.__wbg_ptr, e);
            return bs.__wrap(o);
        }
    }
    const C1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_regdrepcert_free(n >>> 0, 1));
    class ws {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ws.prototype);
            return e.__wbg_ptr = t, C1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, C1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_regdrepcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.regdrepcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.regdrepcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.regdrepcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ws.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.regdrepcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.regdrepcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.regdrepcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ws.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.regdrepcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.regdrepcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.regdrepcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ws.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        drep_credential() {
            const t = r.regdrepcert_drep_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        deposit() {
            const t = r.regdrepcert_deposit(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        anchor() {
            const t = r.regdrepcert_anchor(this.__wbg_ptr);
            return t === 0 ? void 0 : Xe.__wrap(t);
        }
        static new(t, e, o) {
            z(t, Pt);
            let _ = 0;
            ne(o) || (z(o, Xe), _ = o.__destroy_into_raw());
            const a = r.regdrepcert_new(t.__wbg_ptr, e, _);
            return ws.__wrap(a);
        }
    }
    const N1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_relay_free(n >>> 0, 1));
    class Ba {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ba.prototype);
            return e.__wbg_ptr = t, N1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, N1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_relay_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.relay_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.relay_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.relay_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ba.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.relay_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.relay_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.relay_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ba.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.relay_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.relay_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.relay_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ba.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_single_host_addr(t, e, o) {
            let _ = 0;
            ne(e) || (z(e, Si), _ = e.__destroy_into_raw());
            let a = 0;
            ne(o) || (z(o, Ei), a = o.__destroy_into_raw());
            const c = r.relay_new_single_host_addr(ne(t) ? 16777215 : t, _, a);
            return Ba.__wrap(c);
        }
        static new_single_host_name(t, e) {
            z(e, $_);
            const o = r.relay_new_single_host_name(ne(t) ? 16777215 : t, e.__wbg_ptr);
            return Ba.__wrap(o);
        }
        static new_multi_host_name(t) {
            z(t, $_);
            const e = r.relay_new_multi_host_name(t.__wbg_ptr);
            return Ba.__wrap(e);
        }
        kind() {
            return r.relay_kind(this.__wbg_ptr);
        }
        as_single_host_addr() {
            const t = r.relay_as_single_host_addr(this.__wbg_ptr);
            return t === 0 ? void 0 : xs.__wrap(t);
        }
        as_single_host_name() {
            const t = r.relay_as_single_host_name(this.__wbg_ptr);
            return t === 0 ? void 0 : js.__wrap(t);
        }
        as_multi_host_name() {
            const t = r.relay_as_multi_host_name(this.__wbg_ptr);
            return t === 0 ? void 0 : ds.__wrap(t);
        }
    }
    const M1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_relaylist_free(n >>> 0, 1));
    class rl {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(rl.prototype);
            return e.__wbg_ptr = t, M1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, M1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_relaylist_free(t, 0);
        }
        static new() {
            const t = r.relaylist_new();
            return rl.__wrap(t);
        }
        len() {
            return r.relaylist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.relaylist_get(this.__wbg_ptr, t);
            return Ba.__wrap(e);
        }
        add(t) {
            z(t, Ba), r.relaylist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const L1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_requiredwitnessset_free(n >>> 0, 1));
    class rc {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(rc.prototype);
            return e.__wbg_ptr = t, L1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, L1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_requiredwitnessset_free(t, 0);
        }
        add_vkey_key_hash(t) {
            z(t, Kt), r.requiredwitnessset_add_vkey_key_hash(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_bootstrap(t) {
            z(t, Lr), r.requiredwitnessset_add_bootstrap(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_script_ref(t) {
            z(t, Zt), r.requiredwitnessset_add_script_ref(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_script_hash(t) {
            z(t, Zt), r.requiredwitnessset_add_script_hash(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_plutus_datum_hash(t) {
            z(t, o_), r.requiredwitnessset_add_plutus_datum_hash(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_redeemer_tag(t) {
            z(t, Pa), r.requiredwitnessset_add_redeemer_tag(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_all(t) {
            z(t, rc), r.requiredwitnessset_add_all(this.__wbg_ptr, t.__wbg_ptr);
        }
        static new() {
            const t = r.requiredwitnessset_new();
            return rc.__wrap(t);
        }
        withdrawal_required_wits(t) {
            z(t, wr), r.requiredwitnessset_withdrawal_required_wits(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const z1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_resigncommitteecoldcert_free(n >>> 0, 1));
    class ys {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ys.prototype);
            return e.__wbg_ptr = t, z1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, z1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_resigncommitteecoldcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.resigncommitteecoldcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.resigncommitteecoldcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.resigncommitteecoldcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ys.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.resigncommitteecoldcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.resigncommitteecoldcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.resigncommitteecoldcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ys.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.resigncommitteecoldcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.resigncommitteecoldcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.resigncommitteecoldcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ys.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        committee_cold_credential() {
            const t = r.resigncommitteecoldcert_committee_cold_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        anchor() {
            const t = r.resigncommitteecoldcert_anchor(this.__wbg_ptr);
            return t === 0 ? void 0 : Xe.__wrap(t);
        }
        static new(t, e) {
            z(t, Pt);
            let o = 0;
            ne(e) || (z(e, Xe), o = e.__destroy_into_raw());
            const _ = r.resigncommitteecoldcert_new(t.__wbg_ptr, o);
            return ys.__wrap(_);
        }
    }
    const q1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_rewardaccountlist_free(n >>> 0, 1));
    class cg {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(cg.prototype);
            return e.__wbg_ptr = t, q1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, q1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_rewardaccountlist_free(t, 0);
        }
        static new() {
            const t = r.rewardaccountlist_new();
            return cg.__wrap(t);
        }
        len() {
            return r.rewardaccountlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.rewardaccountlist_get(this.__wbg_ptr, t);
            return wr.__wrap(e);
        }
        add(t) {
            z(t, wr), r.rewardaccountlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const D1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_rewardaddress_free(n >>> 0, 1));
    class wr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(wr.prototype);
            return e.__wbg_ptr = t, D1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, D1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_rewardaddress_free(t, 0);
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.rewardaddress_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.rewardaddress_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.rewardaddress_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return wr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(t, e) {
            z(e, Pt);
            const o = r.rewardaddress_new(t, e.__wbg_ptr);
            return wr.__wrap(o);
        }
        to_address() {
            const t = r.rewardaddress_to_address(this.__wbg_ptr);
            return ce.__wrap(t);
        }
        static from_address(t) {
            z(t, ce);
            const e = r.rewardaddress_from_address(t.__wbg_ptr);
            return e === 0 ? void 0 : wr.__wrap(e);
        }
        network_id() {
            return r.rewardaddress_network_id(this.__wbg_ptr);
        }
        payment() {
            const t = r.rewardaddress_payment(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
    }
    const G1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_script_free(n >>> 0, 1));
    class vr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(vr.prototype);
            return e.__wbg_ptr = t, G1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, G1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_script_free(t, 0);
        }
        hash() {
            const t = r.script_hash(this.__wbg_ptr);
            return Zt.__wrap(t);
        }
        language() {
            const t = r.script_language(this.__wbg_ptr);
            return t === 3 ? void 0 : t;
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.script_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.script_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.script_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return vr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.script_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.script_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.script_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return vr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.script_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.script_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.script_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return vr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_native(t) {
            z(t, he);
            const e = r.script_new_native(t.__wbg_ptr);
            return vr.__wrap(e);
        }
        static new_plutus_v1(t) {
            z(t, zr);
            const e = r.script_new_plutus_v1(t.__wbg_ptr);
            return vr.__wrap(e);
        }
        static new_plutus_v2(t) {
            z(t, qr);
            const e = r.script_new_plutus_v2(t.__wbg_ptr);
            return vr.__wrap(e);
        }
        static new_plutus_v3(t) {
            z(t, Dr);
            const e = r.script_new_plutus_v3(t.__wbg_ptr);
            return vr.__wrap(e);
        }
        kind() {
            return r.script_kind(this.__wbg_ptr);
        }
        as_native() {
            const t = r.script_as_native(this.__wbg_ptr);
            return t === 0 ? void 0 : he.__wrap(t);
        }
        as_plutus_v1() {
            const t = r.script_as_plutus_v1(this.__wbg_ptr);
            return t === 0 ? void 0 : zr.__wrap(t);
        }
        as_plutus_v2() {
            const t = r.script_as_plutus_v2(this.__wbg_ptr);
            return t === 0 ? void 0 : qr.__wrap(t);
        }
        as_plutus_v3() {
            const t = r.script_as_plutus_v3(this.__wbg_ptr);
            return t === 0 ? void 0 : Dr.__wrap(t);
        }
    }
    const H1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_scriptall_free(n >>> 0, 1));
    class hs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(hs.prototype);
            return e.__wbg_ptr = t, H1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, H1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_scriptall_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptall_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptall_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.scriptall_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return hs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptall_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptall_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptall_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return hs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptall_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptall_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptall_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return hs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        native_scripts() {
            const t = r.scriptall_native_scripts(this.__wbg_ptr);
            return Qe.__wrap(t);
        }
        static new(t) {
            z(t, Qe);
            const e = r.scriptall_new(t.__wbg_ptr);
            return hs.__wrap(e);
        }
    }
    const K1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_scriptany_free(n >>> 0, 1));
    class vs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(vs.prototype);
            return e.__wbg_ptr = t, K1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, K1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_scriptany_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptany_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptany_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.scriptany_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return vs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptany_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptany_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptany_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return vs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptany_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptany_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptany_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return vs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        native_scripts() {
            const t = r.scriptany_native_scripts(this.__wbg_ptr);
            return Qe.__wrap(t);
        }
        static new(t) {
            z(t, Qe);
            const e = r.scriptany_new(t.__wbg_ptr);
            return vs.__wrap(e);
        }
    }
    const V1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_scriptdatahash_free(n >>> 0, 1));
    class Oa {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Oa.prototype);
            return e.__wbg_ptr = t, V1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, V1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_scriptdatahash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.scriptdatahash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptdatahash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Oa.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptdatahash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.scriptdatahash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Oa.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptdatahash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptdatahash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Oa.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Z1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_scripthash_free(n >>> 0, 1));
    class Zt {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Zt.prototype);
            return e.__wbg_ptr = t, Z1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Z1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_scripthash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.scripthash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scripthash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Zt.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scripthash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.scripthash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Zt.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scripthash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scripthash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Zt.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Y1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_scriptinvalidbefore_free(n >>> 0, 1));
    class ms {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ms.prototype);
            return e.__wbg_ptr = t, Y1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Y1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_scriptinvalidbefore_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptinvalidbefore_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptinvalidbefore_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.scriptinvalidbefore_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ms.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptinvalidbefore_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptinvalidbefore_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptinvalidbefore_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ms.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptinvalidbefore_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptinvalidbefore_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptinvalidbefore_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ms.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        before() {
            const t = r.scriptinvalidbefore_before(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t) {
            const e = r.scriptinvalidbefore_new(t);
            return ms.__wrap(e);
        }
    }
    const W1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_scriptinvalidhereafter_free(n >>> 0, 1));
    class Is {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Is.prototype);
            return e.__wbg_ptr = t, W1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, W1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_scriptinvalidhereafter_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptinvalidhereafter_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptinvalidhereafter_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.scriptinvalidhereafter_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Is.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptinvalidhereafter_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptinvalidhereafter_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptinvalidhereafter_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Is.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptinvalidhereafter_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptinvalidhereafter_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptinvalidhereafter_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Is.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        after() {
            const t = r.scriptinvalidhereafter_after(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t) {
            const e = r.scriptinvalidhereafter_new(t);
            return Is.__wrap(e);
        }
    }
    const J1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_scriptnofk_free(n >>> 0, 1));
    class ks {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ks.prototype);
            return e.__wbg_ptr = t, J1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, J1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_scriptnofk_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptnofk_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptnofk_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.scriptnofk_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ks.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptnofk_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptnofk_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptnofk_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ks.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptnofk_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptnofk_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptnofk_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ks.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        n() {
            const t = r.scriptnofk_n(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        native_scripts() {
            const t = r.scriptnofk_native_scripts(this.__wbg_ptr);
            return Qe.__wrap(t);
        }
        static new(t, e) {
            z(e, Qe);
            const o = r.scriptnofk_new(t, e.__wbg_ptr);
            return ks.__wrap(o);
        }
    }
    const X1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_scriptpubkey_free(n >>> 0, 1));
    class Bs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Bs.prototype);
            return e.__wbg_ptr = t, X1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, X1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_scriptpubkey_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptpubkey_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptpubkey_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.scriptpubkey_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Bs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptpubkey_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptpubkey_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptpubkey_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Bs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptpubkey_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.scriptpubkey_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.scriptpubkey_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Bs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        ed25519_key_hash() {
            const t = r.scriptpubkey_ed25519_key_hash(this.__wbg_ptr);
            return Kt.__wrap(t);
        }
        static new(t) {
            z(t, Kt);
            const e = r.scriptpubkey_new(t.__wbg_ptr);
            return Bs.__wrap(e);
        }
    }
    const Q1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_shelleymaformatauxdata_free(n >>> 0, 1));
    class vi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(vi.prototype);
            return e.__wbg_ptr = t, Q1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Q1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_shelleymaformatauxdata_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.shelleymaformatauxdata_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.shelleymaformatauxdata_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.shelleymaformatauxdata_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return vi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.shelleymaformatauxdata_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.shelleymaformatauxdata_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.shelleymaformatauxdata_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return vi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.shelleymaformatauxdata_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.shelleymaformatauxdata_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.shelleymaformatauxdata_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return vi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        transaction_metadata() {
            const t = r.shelleymaformatauxdata_transaction_metadata(this.__wbg_ptr);
            return On.__wrap(t);
        }
        auxiliary_scripts() {
            const t = r.shelleymaformatauxdata_auxiliary_scripts(this.__wbg_ptr);
            return Qe.__wrap(t);
        }
        static new(t, e) {
            z(t, On), z(e, Qe);
            const o = r.shelleymaformatauxdata_new(t.__wbg_ptr, e.__wbg_ptr);
            return vi.__wrap(o);
        }
    }
    const $1 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_signedtxbuilder_free(n >>> 0, 1));
    class Uu {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Uu.prototype);
            return e.__wbg_ptr = t, $1.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, $1.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_signedtxbuilder_free(t, 0);
        }
        static new_with_data(t, e, o, _) {
            z(t, Zr), z(e, Ra), z(_, tr);
            const a = r.signedtxbuilder_new_with_data(t.__wbg_ptr, e.__wbg_ptr, o, _.__wbg_ptr);
            return Uu.__wrap(a);
        }
        static new_without_data(t, e, o) {
            z(t, Zr), z(e, Ra);
            const _ = r.signedtxbuilder_new_without_data(t.__wbg_ptr, e.__wbg_ptr, o);
            return Uu.__wrap(_);
        }
        build_checked() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.signedtxbuilder_build_checked(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return Vr.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        build_unchecked() {
            const t = r.signedtxbuilder_build_unchecked(this.__wbg_ptr);
            return Vr.__wrap(t);
        }
        add_vkey(t) {
            z(t, Q_), r.signedtxbuilder_add_vkey(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_bootstrap(t) {
            z(t, A_), r.signedtxbuilder_add_bootstrap(this.__wbg_ptr, t.__wbg_ptr);
        }
        body() {
            const t = r.signedtxbuilder_body(this.__wbg_ptr);
            return Zr.__wrap(t);
        }
        witness_set() {
            const t = r.signedtxbuilder_witness_set(this.__wbg_ptr);
            return Ra.__wrap(t);
        }
        is_valid() {
            return r.signedtxbuilder_is_valid(this.__wbg_ptr) !== 0;
        }
        auxiliary_data() {
            const t = r.signedtxbuilder_auxiliary_data(this.__wbg_ptr);
            return t === 0 ? void 0 : tr.__wrap(t);
        }
    }
    const tm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_singlecertificatebuilder_free(n >>> 0, 1));
    class Qr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Qr.prototype);
            return e.__wbg_ptr = t, tm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, tm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_singlecertificatebuilder_free(t, 0);
        }
        static new(t) {
            z(t, de);
            const e = r.singlecertificatebuilder_new(t.__wbg_ptr);
            return Qr.__wrap(e);
        }
        skip_witness() {
            const t = r.singlecertificatebuilder_skip_witness(this.__wbg_ptr);
            return xi.__wrap(t);
        }
        payment_key() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlecertificatebuilder_payment_key(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return xi.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        native_script(t, e) {
            try {
                const c = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, he), z(e, Wr), r.singlecertificatebuilder_native_script(c, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
                var o = i().getInt32(c + 0, !0), _ = i().getInt32(c + 4, !0), a = i().getInt32(c + 8, !0);
                if (a) throw x(_);
                return xi.__wrap(o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        plutus_script(t, e) {
            try {
                const c = this.__destroy_into_raw(), s = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, d_), z(e, pe), r.singlecertificatebuilder_plutus_script(s, c, t.__wbg_ptr, e.__wbg_ptr);
                var o = i().getInt32(s + 0, !0), _ = i().getInt32(s + 4, !0), a = i().getInt32(s + 8, !0);
                if (a) throw x(_);
                return xi.__wrap(o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const em = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_singlehostaddr_free(n >>> 0, 1));
    class xs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(xs.prototype);
            return e.__wbg_ptr = t, em.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, em.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_singlehostaddr_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlehostaddr_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlehostaddr_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.singlehostaddr_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return xs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlehostaddr_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlehostaddr_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.singlehostaddr_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return xs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlehostaddr_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlehostaddr_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.singlehostaddr_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return xs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        port() {
            const t = r.singlehostaddr_port(this.__wbg_ptr);
            return t === 16777215 ? void 0 : t;
        }
        ipv4() {
            const t = r.singlehostaddr_ipv4(this.__wbg_ptr);
            return t === 0 ? void 0 : Si.__wrap(t);
        }
        ipv6() {
            const t = r.singlehostaddr_ipv6(this.__wbg_ptr);
            return t === 0 ? void 0 : Ei.__wrap(t);
        }
        static new(t, e, o) {
            let _ = 0;
            ne(e) || (z(e, Si), _ = e.__destroy_into_raw());
            let a = 0;
            ne(o) || (z(o, Ei), a = o.__destroy_into_raw());
            const c = r.singlehostaddr_new(ne(t) ? 16777215 : t, _, a);
            return xs.__wrap(c);
        }
    }
    const rm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_singlehostname_free(n >>> 0, 1));
    class js {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(js.prototype);
            return e.__wbg_ptr = t, rm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, rm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_singlehostname_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlehostname_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlehostname_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.singlehostname_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return js.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlehostname_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlehostname_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.singlehostname_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return js.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlehostname_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlehostname_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.singlehostname_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return js.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        port() {
            const t = r.singlehostname_port(this.__wbg_ptr);
            return t === 16777215 ? void 0 : t;
        }
        dns_name() {
            const t = r.singlehostname_dns_name(this.__wbg_ptr);
            return $_.__wrap(t);
        }
        static new(t, e) {
            z(e, $_);
            const o = r.singlehostname_new(ne(t) ? 16777215 : t, e.__wbg_ptr);
            return js.__wrap(o);
        }
    }
    const nm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_singleinputbuilder_free(n >>> 0, 1));
    class nc {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(nc.prototype);
            return e.__wbg_ptr = t, nm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, nm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_singleinputbuilder_free(t, 0);
        }
        static new(t, e) {
            z(t, U_), z(e, mr);
            const o = r.singleinputbuilder_new(t.__wbg_ptr, e.__wbg_ptr);
            return nc.__wrap(o);
        }
        static from_transaction_unspent_output(t) {
            z(t, Fa);
            const e = r.singleinputbuilder_from_transaction_unspent_output(t.__wbg_ptr);
            return nc.__wrap(e);
        }
        payment_key() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.singleinputbuilder_payment_key(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return ta.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        native_script(t, e) {
            try {
                const c = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, he), z(e, Wr), r.singleinputbuilder_native_script(c, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
                var o = i().getInt32(c + 0, !0), _ = i().getInt32(c + 4, !0), a = i().getInt32(c + 8, !0);
                if (a) throw x(_);
                return ta.__wrap(o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        plutus_script(t, e, o) {
            try {
                const s = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, d_), z(e, pe), z(o, Vt), r.singleinputbuilder_plutus_script(s, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr);
                var _ = i().getInt32(s + 0, !0), a = i().getInt32(s + 4, !0), c = i().getInt32(s + 8, !0);
                if (c) throw x(a);
                return ta.__wrap(_);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        plutus_script_inline_datum(t, e) {
            try {
                const c = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, d_), z(e, pe), r.singleinputbuilder_plutus_script_inline_datum(c, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
                var o = i().getInt32(c + 0, !0), _ = i().getInt32(c + 4, !0), a = i().getInt32(c + 8, !0);
                if (a) throw x(_);
                return ta.__wrap(o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const _m = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_singlemintbuilder_free(n >>> 0, 1));
    class Cu {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Cu.prototype);
            return e.__wbg_ptr = t, _m.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, _m.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_singlemintbuilder_free(t, 0);
        }
        static new(t) {
            z(t, Ri);
            const e = r.singlemintbuilder_new(t.__wbg_ptr);
            return Cu.__wrap(e);
        }
        static new_single_asset(t, e) {
            z(t, Ye);
            const o = r.singlemintbuilder_new_single_asset(t.__wbg_ptr, e);
            return Cu.__wrap(o);
        }
        native_script(t, e) {
            const o = this.__destroy_into_raw();
            z(t, he), z(e, Wr);
            const _ = r.singlemintbuilder_native_script(o, t.__wbg_ptr, e.__wbg_ptr);
            return Wd.__wrap(_);
        }
        plutus_script(t, e) {
            const o = this.__destroy_into_raw();
            z(t, d_), z(e, pe);
            const _ = r.singlemintbuilder_plutus_script(o, t.__wbg_ptr, e.__wbg_ptr);
            return Wd.__wrap(_);
        }
    }
    const am = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_singleoutputbuilderresult_free(n >>> 0, 1));
    class Jd {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Jd.prototype);
            return e.__wbg_ptr = t, am.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, am.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_singleoutputbuilderresult_free(t, 0);
        }
        static new(t) {
            z(t, mr);
            const e = r.singleoutputbuilderresult_new(t.__wbg_ptr);
            return Jd.__wrap(e);
        }
        output() {
            const t = r.singleoutputbuilderresult_output(this.__wbg_ptr);
            return mr.__wrap(t);
        }
        communication_datum() {
            const t = r.singleoutputbuilderresult_communication_datum(this.__wbg_ptr);
            return t === 0 ? void 0 : Vt.__wrap(t);
        }
    }
    const om = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_singlewithdrawalbuilder_free(n >>> 0, 1));
    class dg {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(dg.prototype);
            return e.__wbg_ptr = t, om.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, om.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_singlewithdrawalbuilder_free(t, 0);
        }
        static new(t, e) {
            z(t, wr);
            const o = r.singlewithdrawalbuilder_new(t.__wbg_ptr, e);
            return dg.__wrap(o);
        }
        payment_key() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.singlewithdrawalbuilder_payment_key(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return _c.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        native_script(t, e) {
            try {
                const c = this.__destroy_into_raw(), s = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, he), z(e, Wr), r.singlewithdrawalbuilder_native_script(s, c, t.__wbg_ptr, e.__wbg_ptr);
                var o = i().getInt32(s + 0, !0), _ = i().getInt32(s + 4, !0), a = i().getInt32(s + 8, !0);
                if (a) throw x(_);
                return _c.__wrap(o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        plutus_script(t, e) {
            try {
                const u = this.__destroy_into_raw(), l = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, d_);
                var o = t.__destroy_into_raw();
                z(e, pe);
                var _ = e.__destroy_into_raw();
                r.singlewithdrawalbuilder_plutus_script(l, u, o, _);
                var a = i().getInt32(l + 0, !0), c = i().getInt32(l + 4, !0), s = i().getInt32(l + 8, !0);
                if (s) throw x(c);
                return _c.__wrap(a);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const im = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_spendingdata_free(n >>> 0, 1));
    class Qa {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Qa.prototype);
            return e.__wbg_ptr = t, im.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, im.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_spendingdata_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.spendingdata_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.spendingdata_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Qa.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.spendingdata_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.spendingdata_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Qa.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_spending_data_pub_key(t) {
            z(t, a_);
            const e = r.spendingdata_new_spending_data_pub_key(t.__wbg_ptr);
            return Qa.__wrap(e);
        }
        static new_spending_data_script(t) {
            z(t, Hs);
            const e = r.spendingdata_new_spending_data_script(t.__wbg_ptr);
            return Qa.__wrap(e);
        }
        static new_spending_data_redeem(t) {
            z(t, lr);
            const e = r.spendingdata_new_spending_data_redeem(t.__wbg_ptr);
            return Qa.__wrap(e);
        }
        kind() {
            return r.spendingdata_kind(this.__wbg_ptr);
        }
        as_spending_data_pub_key() {
            const t = r.spendingdata_as_spending_data_pub_key(this.__wbg_ptr);
            return t === 0 ? void 0 : a_.__wrap(t);
        }
        as_spending_data_script() {
            const t = r.spendingdata_as_spending_data_script(this.__wbg_ptr);
            return t === 0 ? void 0 : Hs.__wrap(t);
        }
        as_spending_data_redeem() {
            const t = r.spendingdata_as_spending_data_redeem(this.__wbg_ptr);
            return t === 0 ? void 0 : lr.__wrap(t);
        }
    }
    const sm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_stakecredentiallist_free(n >>> 0, 1));
    class ug {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ug.prototype);
            return e.__wbg_ptr = t, sm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, sm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_stakecredentiallist_free(t, 0);
        }
        static new() {
            const t = r.stakecredentiallist_new();
            return ug.__wrap(t);
        }
        len() {
            return r.stakecredentiallist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.stakecredentiallist_get(this.__wbg_ptr, t);
            return Pt.__wrap(e);
        }
        add(t) {
            z(t, Pt), r.stakecredentiallist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const cm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_stakedelegation_free(n >>> 0, 1));
    class Ss {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ss.prototype);
            return e.__wbg_ptr = t, cm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, cm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_stakedelegation_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakedelegation_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakedelegation_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.stakedelegation_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ss.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakedelegation_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakedelegation_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakedelegation_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ss.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakedelegation_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakedelegation_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakedelegation_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ss.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_credential() {
            const t = r.stakedelegation_stake_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        pool() {
            const t = r.stakedelegation_pool(this.__wbg_ptr);
            return Kt.__wrap(t);
        }
        static new(t, e) {
            z(t, Pt), z(e, Kt);
            const o = r.stakedelegation_new(t.__wbg_ptr, e.__wbg_ptr);
            return Ss.__wrap(o);
        }
    }
    const dm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_stakederegistration_free(n >>> 0, 1));
    class Es {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Es.prototype);
            return e.__wbg_ptr = t, dm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, dm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_stakederegistration_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakederegistration_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakederegistration_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.stakederegistration_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Es.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakederegistration_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakederegistration_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakederegistration_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Es.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakederegistration_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakederegistration_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakederegistration_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Es.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_credential() {
            const t = r.stakederegistration_stake_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        static new(t) {
            z(t, Pt);
            const e = r.stakederegistration_new(t.__wbg_ptr);
            return Es.__wrap(e);
        }
    }
    const um = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_stakedistribution_free(n >>> 0, 1));
    class mi {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(mi.prototype);
            return e.__wbg_ptr = t, um.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, um.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_stakedistribution_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakedistribution_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.stakedistribution_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return mi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakedistribution_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakedistribution_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return mi.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_single_key(t) {
            z(t, Ii);
            const e = r.stakedistribution_new_single_key(t.__wbg_ptr);
            return mi.__wrap(e);
        }
        static new_bootstrap_era() {
            const t = r.stakedistribution_new_bootstrap_era();
            return mi.__wrap(t);
        }
        kind() {
            return r.stakedistribution_kind(this.__wbg_ptr);
        }
        as_single_key() {
            const t = r.stakedistribution_as_single_key(this.__wbg_ptr);
            return t === 0 ? void 0 : Ii.__wrap(t);
        }
    }
    const lm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_stakeregdelegcert_free(n >>> 0, 1));
    class Os {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Os.prototype);
            return e.__wbg_ptr = t, lm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, lm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_stakeregdelegcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeregdelegcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeregdelegcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.stakeregdelegcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Os.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeregdelegcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeregdelegcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakeregdelegcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Os.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeregdelegcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeregdelegcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakeregdelegcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Os.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_credential() {
            const t = r.stakeregdelegcert_stake_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        pool() {
            const t = r.stakeregdelegcert_pool(this.__wbg_ptr);
            return Kt.__wrap(t);
        }
        deposit() {
            const t = r.stakeregdelegcert_deposit(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e, o) {
            z(t, Pt), z(e, Kt);
            const _ = r.stakeregdelegcert_new(t.__wbg_ptr, e.__wbg_ptr, o);
            return Os.__wrap(_);
        }
    }
    const fm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_stakeregistration_free(n >>> 0, 1));
    class Fs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Fs.prototype);
            return e.__wbg_ptr = t, fm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, fm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_stakeregistration_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeregistration_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeregistration_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.stakeregistration_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Fs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeregistration_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeregistration_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakeregistration_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Fs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeregistration_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeregistration_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakeregistration_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Fs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_credential() {
            const t = r.stakeregistration_stake_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        static new(t) {
            z(t, Pt);
            const e = r.stakeregistration_new(t.__wbg_ptr);
            return Fs.__wrap(e);
        }
    }
    const gm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_stakevotedelegcert_free(n >>> 0, 1));
    class As {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(As.prototype);
            return e.__wbg_ptr = t, gm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, gm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_stakevotedelegcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakevotedelegcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakevotedelegcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.stakevotedelegcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return As.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakevotedelegcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakevotedelegcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakevotedelegcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return As.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakevotedelegcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakevotedelegcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakevotedelegcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return As.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_credential() {
            const t = r.stakevotedelegcert_stake_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        pool() {
            const t = r.stakevotedelegcert_pool(this.__wbg_ptr);
            return Kt.__wrap(t);
        }
        d_rep() {
            const t = r.stakevotedelegcert_d_rep(this.__wbg_ptr);
            return Ze.__wrap(t);
        }
        static new(t, e, o) {
            z(t, Pt), z(e, Kt), z(o, Ze);
            const _ = r.stakevotedelegcert_new(t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr);
            return As.__wrap(_);
        }
    }
    const pm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_stakevoteregdelegcert_free(n >>> 0, 1));
    class Ts {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ts.prototype);
            return e.__wbg_ptr = t, pm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, pm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_stakevoteregdelegcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakevoteregdelegcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakevoteregdelegcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.stakevoteregdelegcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ts.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakevoteregdelegcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakevoteregdelegcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakevoteregdelegcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ts.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakevoteregdelegcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakevoteregdelegcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakevoteregdelegcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ts.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_credential() {
            const t = r.stakevoteregdelegcert_stake_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        pool() {
            const t = r.stakevoteregdelegcert_pool(this.__wbg_ptr);
            return Kt.__wrap(t);
        }
        d_rep() {
            const t = r.stakevoteregdelegcert_d_rep(this.__wbg_ptr);
            return Ze.__wrap(t);
        }
        deposit() {
            const t = r.stakevoteregdelegcert_deposit(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e, o, _) {
            z(t, Pt), z(e, Kt), z(o, Ze);
            const a = r.stakevoteregdelegcert_new(t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr, _);
            return Ts.__wrap(a);
        }
    }
    const bm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_stakeholderid_free(n >>> 0, 1));
    class Ii {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ii.prototype);
            return e.__wbg_ptr = t, bm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, bm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_stakeholderid_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.stakeholderid_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakeholderid_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ii.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeholderid_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.stakeholderid_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ii.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.stakeholderid_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.stakeholderid_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ii.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(t) {
            z(t, a_);
            const e = r.stakeholderid_new(t.__wbg_ptr);
            return Ii.__wrap(e);
        }
    }
    const Kj = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_subcoin_free(n >>> 0, 1));
    class Vj {
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Kj.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_subcoin_free(t, 0);
        }
        static from_base10_f32(t) {
            const e = r.subcoin_from_base10_f32(t);
            return Kr.__wrap(e);
        }
    }
    const wm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transaction_free(n >>> 0, 1));
    class Vr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Vr.prototype);
            return e.__wbg_ptr = t, wm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, wm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transaction_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transaction_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transaction_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.transaction_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Vr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transaction_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transaction_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transaction_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Vr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.transaction_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transaction_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transaction_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Vr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        body() {
            const t = r.transaction_body(this.__wbg_ptr);
            return Zr.__wrap(t);
        }
        witness_set() {
            const t = r.transaction_witness_set(this.__wbg_ptr);
            return Gr.__wrap(t);
        }
        is_valid() {
            return r.transaction_is_valid(this.__wbg_ptr) !== 0;
        }
        auxiliary_data() {
            const t = r.transaction_auxiliary_data(this.__wbg_ptr);
            return t === 0 ? void 0 : tr.__wrap(t);
        }
        static new(t, e, o, _) {
            z(t, Zr), z(e, Gr);
            let a = 0;
            ne(_) || (z(_, tr), a = _.__destroy_into_raw());
            const c = r.transaction_new(t.__wbg_ptr, e.__wbg_ptr, o, a);
            return Vr.__wrap(c);
        }
    }
    const ym = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionbody_free(n >>> 0, 1));
    class Zr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Zr.prototype);
            return e.__wbg_ptr = t, ym.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, ym.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionbody_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbody_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbody_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.transactionbody_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Zr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbody_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbody_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactionbody_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Zr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbody_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbody_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactionbody_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Zr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        inputs() {
            const t = r.transactionbody_inputs(this.__wbg_ptr);
            return $a.__wrap(t);
        }
        outputs() {
            const t = r.transactionbody_outputs(this.__wbg_ptr);
            return _l.__wrap(t);
        }
        fee() {
            const t = r.transactionbody_fee(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        set_ttl(t) {
            r.transactionbody_set_ttl(this.__wbg_ptr, t);
        }
        ttl() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbody_ttl(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_certs(t) {
            z(t, Zu), r.transactionbody_set_certs(this.__wbg_ptr, t.__wbg_ptr);
        }
        certs() {
            const t = r.transactionbody_certs(this.__wbg_ptr);
            return t === 0 ? void 0 : Zu.__wrap(t);
        }
        set_withdrawals(t) {
            z(t, io), r.transactionbody_set_withdrawals(this.__wbg_ptr, t.__wbg_ptr);
        }
        withdrawals() {
            const t = r.transactionbody_withdrawals(this.__wbg_ptr);
            return t === 0 ? void 0 : io.__wrap(t);
        }
        set_auxiliary_data_hash(t) {
            z(t, Bi), r.transactionbody_set_auxiliary_data_hash(this.__wbg_ptr, t.__wbg_ptr);
        }
        auxiliary_data_hash() {
            const t = r.transactionbody_auxiliary_data_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Bi.__wrap(t);
        }
        set_validity_interval_start(t) {
            r.transactionbody_set_validity_interval_start(this.__wbg_ptr, t);
        }
        validity_interval_start() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbody_validity_interval_start(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_mint(t) {
            z(t, xa), r.transactionbody_set_mint(this.__wbg_ptr, t.__wbg_ptr);
        }
        mint() {
            const t = r.transactionbody_mint(this.__wbg_ptr);
            return t === 0 ? void 0 : xa.__wrap(t);
        }
        set_script_data_hash(t) {
            z(t, Oa), r.transactionbody_set_script_data_hash(this.__wbg_ptr, t.__wbg_ptr);
        }
        script_data_hash() {
            const t = r.transactionbody_script_data_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Oa.__wrap(t);
        }
        set_collateral_inputs(t) {
            z(t, $a), r.transactionbody_set_collateral_inputs(this.__wbg_ptr, t.__wbg_ptr);
        }
        collateral_inputs() {
            const t = r.transactionbody_collateral_inputs(this.__wbg_ptr);
            return t === 0 ? void 0 : $a.__wrap(t);
        }
        set_required_signers(t) {
            z(t, pe), r.transactionbody_set_required_signers(this.__wbg_ptr, t.__wbg_ptr);
        }
        required_signers() {
            const t = r.transactionbody_required_signers(this.__wbg_ptr);
            return t === 0 ? void 0 : pe.__wrap(t);
        }
        set_network_id(t) {
            z(t, O_), r.transactionbody_set_network_id(this.__wbg_ptr, t.__wbg_ptr);
        }
        network_id() {
            const t = r.transactionbody_network_id(this.__wbg_ptr);
            return t === 0 ? void 0 : O_.__wrap(t);
        }
        set_collateral_return(t) {
            z(t, mr), r.transactionbody_set_collateral_return(this.__wbg_ptr, t.__wbg_ptr);
        }
        collateral_return() {
            const t = r.transactionbody_collateral_return(this.__wbg_ptr);
            return t === 0 ? void 0 : mr.__wrap(t);
        }
        set_total_collateral(t) {
            r.transactionbody_set_total_collateral(this.__wbg_ptr, t);
        }
        total_collateral() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbody_total_collateral(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_reference_inputs(t) {
            z(t, $a), r.transactionbody_set_reference_inputs(this.__wbg_ptr, t.__wbg_ptr);
        }
        reference_inputs() {
            const t = r.transactionbody_reference_inputs(this.__wbg_ptr);
            return t === 0 ? void 0 : $a.__wrap(t);
        }
        set_voting_procedures(t) {
            z(t, il), r.transactionbody_set_voting_procedures(this.__wbg_ptr, t.__wbg_ptr);
        }
        voting_procedures() {
            const t = r.transactionbody_voting_procedures(this.__wbg_ptr);
            return t === 0 ? void 0 : il.__wrap(t);
        }
        set_proposal_procedures(t) {
            z(t, el), r.transactionbody_set_proposal_procedures(this.__wbg_ptr, t.__wbg_ptr);
        }
        proposal_procedures() {
            const t = r.transactionbody_proposal_procedures(this.__wbg_ptr);
            return t === 0 ? void 0 : el.__wrap(t);
        }
        set_current_treasury_value(t) {
            r.transactionbody_set_current_treasury_value(this.__wbg_ptr, t);
        }
        current_treasury_value() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbody_current_treasury_value(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_donation(t) {
            r.transactionbody_set_donation(this.__wbg_ptr, t);
        }
        donation() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbody_donation(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(t, e, o) {
            z(t, $a), z(e, _l);
            const _ = r.transactionbody_new(t.__wbg_ptr, e.__wbg_ptr, o);
            return Zr.__wrap(_);
        }
    }
    const hm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionbodylist_free(n >>> 0, 1));
    class nl {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(nl.prototype);
            return e.__wbg_ptr = t, hm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, hm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionbodylist_free(t, 0);
        }
        static new() {
            const t = r.transactionbodylist_new();
            return nl.__wrap(t);
        }
        len() {
            return r.transactionbodylist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.transactionbodylist_get(this.__wbg_ptr, t);
            return Zr.__wrap(e);
        }
        add(t) {
            z(t, Zr), r.transactionbodylist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const vm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionbuilder_free(n >>> 0, 1));
    class lg {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(lg.prototype);
            return e.__wbg_ptr = t, vm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, vm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionbuilder_free(t, 0);
        }
        select_utxos(t) {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbuilder_select_utxos(_, this.__wbg_ptr, t);
                var e = i().getInt32(_ + 0, !0), o = i().getInt32(_ + 4, !0);
                if (o) throw x(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        add_input(t) {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, ta), r.transactionbuilder_add_input(_, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(_ + 0, !0), o = i().getInt32(_ + 4, !0);
                if (o) throw x(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        add_utxo(t) {
            z(t, ta), r.transactionbuilder_add_utxo(this.__wbg_ptr, t.__wbg_ptr);
        }
        fee_for_input(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, ta), r.transactionbuilder_fee_for_input(a, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getBigInt64(a + 0, !0), o = i().getInt32(a + 8, !0), _ = i().getInt32(a + 12, !0);
                if (_) throw x(o);
                return BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        add_reference_input(t) {
            z(t, Fa), r.transactionbuilder_add_reference_input(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_output(t) {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Jd), r.transactionbuilder_add_output(_, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(_ + 0, !0), o = i().getInt32(_ + 4, !0);
                if (o) throw x(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        fee_for_output(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Jd), r.transactionbuilder_fee_for_output(a, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getBigInt64(a + 0, !0), o = i().getInt32(a + 8, !0), _ = i().getInt32(a + 12, !0);
                if (_) throw x(o);
                return BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_fee(t) {
            r.transactionbuilder_set_fee(this.__wbg_ptr, t);
        }
        set_ttl(t) {
            r.transactionbuilder_set_ttl(this.__wbg_ptr, t);
        }
        set_validity_start_interval(t) {
            r.transactionbuilder_set_validity_start_interval(this.__wbg_ptr, t);
        }
        add_cert(t) {
            z(t, xi), r.transactionbuilder_add_cert(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_proposal(t) {
            z(t, kl);
            var e = t.__destroy_into_raw();
            r.transactionbuilder_add_proposal(this.__wbg_ptr, e);
        }
        add_vote(t) {
            z(t, Bl);
            var e = t.__destroy_into_raw();
            r.transactionbuilder_add_vote(this.__wbg_ptr, e);
        }
        get_withdrawals() {
            const t = r.transactionbuilder_get_withdrawals(this.__wbg_ptr);
            return t === 0 ? void 0 : io.__wrap(t);
        }
        add_withdrawal(t) {
            z(t, _c), r.transactionbuilder_add_withdrawal(this.__wbg_ptr, t.__wbg_ptr);
        }
        get_auxiliary_data() {
            const t = r.transactionbuilder_get_auxiliary_data(this.__wbg_ptr);
            return t === 0 ? void 0 : tr.__wrap(t);
        }
        set_auxiliary_data(t) {
            z(t, tr), r.transactionbuilder_set_auxiliary_data(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_auxiliary_data(t) {
            z(t, tr), r.transactionbuilder_add_auxiliary_data(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_mint(t) {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Wd), r.transactionbuilder_add_mint(_, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(_ + 0, !0), o = i().getInt32(_ + 4, !0);
                if (o) throw x(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get_mint() {
            const t = r.transactionbuilder_get_mint(this.__wbg_ptr);
            return t === 0 ? void 0 : xa.__wrap(t);
        }
        static new(t) {
            z(t, Fg);
            const e = r.transactionbuilder_new(t.__wbg_ptr);
            return lg.__wrap(e);
        }
        add_collateral(t) {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, ta), r.transactionbuilder_add_collateral(_, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(_ + 0, !0), o = i().getInt32(_ + 4, !0);
                if (o) throw x(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        add_required_signer(t) {
            z(t, Kt), r.transactionbuilder_add_required_signer(this.__wbg_ptr, t.__wbg_ptr);
        }
        set_network_id(t) {
            z(t, O_), r.transactionbuilder_set_network_id(this.__wbg_ptr, t.__wbg_ptr);
        }
        network_id() {
            const t = r.transactionbuilder_network_id(this.__wbg_ptr);
            return t === 0 ? void 0 : O_.__wrap(t);
        }
        get_explicit_input() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbuilder_get_explicit_input(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return Ue.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get_implicit_input() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbuilder_get_implicit_input(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return Ue.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get_total_input() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbuilder_get_total_input(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return Ue.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get_total_output() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbuilder_get_total_output(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return Ue.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get_explicit_output() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbuilder_get_explicit_output(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return Ue.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get_deposit() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbuilder_get_deposit(_, this.__wbg_ptr);
                var t = i().getBigInt64(_ + 0, !0), e = i().getInt32(_ + 8, !0), o = i().getInt32(_ + 12, !0);
                if (o) throw x(e);
                return BigInt.asUintN(64, t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get_fee_if_set() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbuilder_get_fee_if_set(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getBigInt64(o + 8, !0);
                return t === 0 ? void 0 : BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_collateral_return(t) {
            z(t, mr), r.transactionbuilder_set_collateral_return(this.__wbg_ptr, t.__wbg_ptr);
        }
        full_size() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbuilder_full_size(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return t >>> 0;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        output_sizes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbuilder_output_sizes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = Q7(t, e).slice();
                return r.__wbindgen_free(t, e * 4, 4), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        build_for_evaluation(t, e) {
            try {
                const c = r.__wbindgen_add_to_stack_pointer(-16);
                z(e, ce), r.transactionbuilder_build_for_evaluation(c, this.__wbg_ptr, t, e.__wbg_ptr);
                var o = i().getInt32(c + 0, !0), _ = i().getInt32(c + 4, !0), a = i().getInt32(c + 8, !0);
                if (a) throw x(_);
                return kb.__wrap(o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        build(t, e) {
            try {
                const c = r.__wbindgen_add_to_stack_pointer(-16);
                z(e, ce), r.transactionbuilder_build(c, this.__wbg_ptr, t, e.__wbg_ptr);
                var o = i().getInt32(c + 0, !0), _ = i().getInt32(c + 4, !0), a = i().getInt32(c + 8, !0);
                if (a) throw x(_);
                return Uu.__wrap(o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_exunits(t, e) {
            z(t, Pa), z(e, Je), r.transactionbuilder_set_exunits(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
        }
        min_fee(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbuilder_min_fee(a, this.__wbg_ptr, t);
                var e = i().getBigInt64(a + 0, !0), o = i().getInt32(a + 8, !0), _ = i().getInt32(a + 12, !0);
                if (_) throw x(o);
                return BigInt.asUintN(64, e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        add_change_if_needed(t, e) {
            try {
                const c = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, ce), r.transactionbuilder_add_change_if_needed(c, this.__wbg_ptr, t.__wbg_ptr, e);
                var o = i().getInt32(c + 0, !0), _ = i().getInt32(c + 4, !0), a = i().getInt32(c + 8, !0);
                if (a) throw x(_);
                return o !== 0;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const mm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionbuilderconfig_free(n >>> 0, 1));
    class Fg {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Fg.prototype);
            return e.__wbg_ptr = t, mm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, mm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionbuilderconfig_free(t, 0);
        }
    }
    const Im = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionbuilderconfigbuilder_free(n >>> 0, 1));
    class Bn {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Bn.prototype);
            return e.__wbg_ptr = t, Im.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Im.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionbuilderconfigbuilder_free(t, 0);
        }
        static new() {
            const t = r.transactionbuilderconfigbuilder_new();
            return Bn.__wrap(t);
        }
        fee_algo(t) {
            z(t, oc);
            const e = r.transactionbuilderconfigbuilder_fee_algo(this.__wbg_ptr, t.__wbg_ptr);
            return Bn.__wrap(e);
        }
        coins_per_utxo_byte(t) {
            const e = r.transactionbuilderconfigbuilder_coins_per_utxo_byte(this.__wbg_ptr, t);
            return Bn.__wrap(e);
        }
        pool_deposit(t) {
            const e = r.transactionbuilderconfigbuilder_pool_deposit(this.__wbg_ptr, t);
            return Bn.__wrap(e);
        }
        key_deposit(t) {
            const e = r.transactionbuilderconfigbuilder_key_deposit(this.__wbg_ptr, t);
            return Bn.__wrap(e);
        }
        max_value_size(t) {
            const e = r.transactionbuilderconfigbuilder_max_value_size(this.__wbg_ptr, t);
            return Bn.__wrap(e);
        }
        max_tx_size(t) {
            const e = r.transactionbuilderconfigbuilder_max_tx_size(this.__wbg_ptr, t);
            return Bn.__wrap(e);
        }
        prefer_pure_change(t) {
            const e = r.transactionbuilderconfigbuilder_prefer_pure_change(this.__wbg_ptr, t);
            return Bn.__wrap(e);
        }
        ex_unit_prices(t) {
            z(t, T_);
            const e = r.transactionbuilderconfigbuilder_ex_unit_prices(this.__wbg_ptr, t.__wbg_ptr);
            return Bn.__wrap(e);
        }
        cost_models(t) {
            z(t, C_);
            const e = r.transactionbuilderconfigbuilder_cost_models(this.__wbg_ptr, t.__wbg_ptr);
            return Bn.__wrap(e);
        }
        collateral_percentage(t) {
            const e = r.transactionbuilderconfigbuilder_collateral_percentage(this.__wbg_ptr, t);
            return Bn.__wrap(e);
        }
        max_collateral_inputs(t) {
            const e = r.transactionbuilderconfigbuilder_max_collateral_inputs(this.__wbg_ptr, t);
            return Bn.__wrap(e);
        }
        build() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionbuilderconfigbuilder_build(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return Fg.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const km = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionhash_free(n >>> 0, 1));
    class Vn {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Vn.prototype);
            return e.__wbg_ptr = t, km.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, km.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionhash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.transactionhash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactionhash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Vn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionhash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.transactionhash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Vn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionhash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactionhash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Vn.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Bm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactioninput_free(n >>> 0, 1));
    class U_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(U_.prototype);
            return e.__wbg_ptr = t, Bm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Bm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactioninput_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactioninput_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactioninput_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.transactioninput_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return U_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactioninput_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactioninput_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactioninput_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return U_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactioninput_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactioninput_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactioninput_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return U_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        transaction_id() {
            const t = r.transactioninput_transaction_id(this.__wbg_ptr);
            return Vn.__wrap(t);
        }
        index() {
            const t = r.transactioninput_index(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e) {
            z(t, Vn);
            const o = r.transactioninput_new(t.__wbg_ptr, e);
            return U_.__wrap(o);
        }
    }
    const xm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactioninputlist_free(n >>> 0, 1));
    class $a {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create($a.prototype);
            return e.__wbg_ptr = t, xm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, xm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactioninputlist_free(t, 0);
        }
        static new() {
            const t = r.transactioninputlist_new();
            return $a.__wrap(t);
        }
        len() {
            return r.transactioninputlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.transactioninputlist_get(this.__wbg_ptr, t);
            return U_.__wrap(e);
        }
        add(t) {
            z(t, U_), r.transactioninputlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const jm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionmetadatum_free(n >>> 0, 1));
    class Te {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Te.prototype);
            return e.__wbg_ptr = t, jm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, jm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionmetadatum_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionmetadatum_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.transactionmetadatum_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Te.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionmetadatum_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_json_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionmetadatum_to_json_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactionmetadatum_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Te.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_map(t) {
            z(t, $u);
            const e = r.transactionmetadatum_new_map(t.__wbg_ptr);
            return Te.__wrap(e);
        }
        static new_list(t) {
            z(t, Yd);
            const e = r.transactionmetadatum_new_list(t.__wbg_ptr);
            return Te.__wrap(e);
        }
        static new_int(t) {
            z(t, En);
            const e = r.transactionmetadatum_new_int(t.__wbg_ptr);
            return Te.__wrap(e);
        }
        static new_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.transactionmetadatum_new_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Te.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_text(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactionmetadatum_new_text(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Te.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        kind() {
            return r.transactionmetadatum_kind(this.__wbg_ptr);
        }
        as_map() {
            const t = r.transactionmetadatum_as_map(this.__wbg_ptr);
            return t === 0 ? void 0 : $u.__wrap(t);
        }
        as_list() {
            const t = r.transactionmetadatum_as_list(this.__wbg_ptr);
            return t === 0 ? void 0 : Yd.__wrap(t);
        }
        as_int() {
            const t = r.transactionmetadatum_as_int(this.__wbg_ptr);
            return t === 0 ? void 0 : En.__wrap(t);
        }
        as_bytes() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionmetadatum_as_bytes(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getInt32(o + 4, !0);
                let _;
                return t !== 0 && (_ = yt(t, e).slice(), r.__wbindgen_free(t, e * 1, 1)), _;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        as_text() {
            try {
                const o = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionmetadatum_as_text(o, this.__wbg_ptr);
                var t = i().getInt32(o + 0, !0), e = i().getInt32(o + 4, !0);
                let _;
                return t !== 0 && (_ = _t(t, e).slice(), r.__wbindgen_free(t, e * 1, 1)), _;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Sm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionmetadatumlabels_free(n >>> 0, 1));
    class fg {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(fg.prototype);
            return e.__wbg_ptr = t, Sm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Sm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionmetadatumlabels_free(t, 0);
        }
        static new() {
            const t = r.transactionmetadatumlabels_new();
            return fg.__wrap(t);
        }
        len() {
            return r.transactionmetadatumlabels_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.transactionmetadatumlabels_get(this.__wbg_ptr, t);
            return BigInt.asUintN(64, e);
        }
        add(t) {
            r.transactionmetadatumlabels_add(this.__wbg_ptr, t);
        }
    }
    const Em = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionmetadatumlist_free(n >>> 0, 1));
    class Xd {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Xd.prototype);
            return e.__wbg_ptr = t, Em.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Em.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionmetadatumlist_free(t, 0);
        }
        static new() {
            const t = r.transactionmetadatumlist_new();
            return Xd.__wrap(t);
        }
        len() {
            return r.transactionmetadatumlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.transactionmetadatumlist_get(this.__wbg_ptr, t);
            return Te.__wrap(e);
        }
        add(t) {
            z(t, Te), r.transactionmetadatumlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const Om = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionoutput_free(n >>> 0, 1));
    class mr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(mr.prototype);
            return e.__wbg_ptr = t, Om.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Om.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionoutput_free(t, 0);
        }
        static new(t, e, o, _) {
            z(t, ce), z(e, Ue);
            let a = 0;
            ne(o) || (z(o, jn), a = o.__destroy_into_raw());
            let c = 0;
            ne(_) || (z(_, vr), c = _.__destroy_into_raw());
            const s = r.transactionoutput_new(t.__wbg_ptr, e.__wbg_ptr, a, c);
            return mr.__wrap(s);
        }
        address() {
            const t = r.transactionoutput_address(this.__wbg_ptr);
            return ce.__wrap(t);
        }
        amount() {
            const t = r.transactionoutput_amount(this.__wbg_ptr);
            return Ue.__wrap(t);
        }
        set_amount(t) {
            z(t, Ue), r.transactionoutput_set_amount(this.__wbg_ptr, t.__wbg_ptr);
        }
        datum() {
            const t = r.transactionoutput_datum(this.__wbg_ptr);
            return t === 0 ? void 0 : jn.__wrap(t);
        }
        datum_hash() {
            const t = r.transactionoutput_datum_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : o_.__wrap(t);
        }
        script_ref() {
            const t = r.transactionoutput_script_ref(this.__wbg_ptr);
            return t === 0 ? void 0 : vr.__wrap(t);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionoutput_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionoutput_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.transactionoutput_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return mr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionoutput_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionoutput_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactionoutput_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return mr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionoutput_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionoutput_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactionoutput_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return mr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_alonzo_format_tx_out(t) {
            z(t, oi);
            const e = r.transactionoutput_new_alonzo_format_tx_out(t.__wbg_ptr);
            return mr.__wrap(e);
        }
        static new_conway_format_tx_out(t) {
            z(t, fi);
            const e = r.transactionoutput_new_conway_format_tx_out(t.__wbg_ptr);
            return mr.__wrap(e);
        }
        kind() {
            return r.transactionoutput_kind(this.__wbg_ptr);
        }
        as_alonzo_format_tx_out() {
            const t = r.transactionoutput_as_alonzo_format_tx_out(this.__wbg_ptr);
            return t === 0 ? void 0 : oi.__wrap(t);
        }
        as_conway_format_tx_out() {
            const t = r.transactionoutput_as_conway_format_tx_out(this.__wbg_ptr);
            return t === 0 ? void 0 : fi.__wrap(t);
        }
    }
    const Fm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionoutputamountbuilder_free(n >>> 0, 1));
    class Nu {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Nu.prototype);
            return e.__wbg_ptr = t, Fm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Fm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionoutputamountbuilder_free(t, 0);
        }
        with_value(t) {
            z(t, Ue);
            const e = r.transactionoutputamountbuilder_with_value(this.__wbg_ptr, t.__wbg_ptr);
            return Nu.__wrap(e);
        }
        with_asset_and_min_required_coin(t, e) {
            try {
                const c = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, wn), r.transactionoutputamountbuilder_with_asset_and_min_required_coin(c, this.__wbg_ptr, t.__wbg_ptr, e);
                var o = i().getInt32(c + 0, !0), _ = i().getInt32(c + 4, !0), a = i().getInt32(c + 8, !0);
                if (a) throw x(_);
                return Nu.__wrap(o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        build() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionoutputamountbuilder_build(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return Jd.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Am = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionoutputbuilder_free(n >>> 0, 1));
    class F_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(F_.prototype);
            return e.__wbg_ptr = t, Am.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Am.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionoutputbuilder_free(t, 0);
        }
        static new() {
            const t = r.transactionoutputbuilder_new();
            return F_.__wrap(t);
        }
        with_address(t) {
            z(t, ce);
            const e = r.transactionoutputbuilder_with_address(this.__wbg_ptr, t.__wbg_ptr);
            return F_.__wrap(e);
        }
        with_communication_data(t) {
            z(t, Vt);
            const e = r.transactionoutputbuilder_with_communication_data(this.__wbg_ptr, t.__wbg_ptr);
            return F_.__wrap(e);
        }
        with_data(t) {
            z(t, jn);
            const e = r.transactionoutputbuilder_with_data(this.__wbg_ptr, t.__wbg_ptr);
            return F_.__wrap(e);
        }
        with_reference_script(t) {
            z(t, vr);
            const e = r.transactionoutputbuilder_with_reference_script(this.__wbg_ptr, t.__wbg_ptr);
            return F_.__wrap(e);
        }
        next() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionoutputbuilder_next(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return Nu.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Tm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionoutputlist_free(n >>> 0, 1));
    class _l {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(_l.prototype);
            return e.__wbg_ptr = t, Tm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Tm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionoutputlist_free(t, 0);
        }
        static new() {
            const t = r.transactionoutputlist_new();
            return _l.__wrap(t);
        }
        len() {
            return r.transactionoutputlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.transactionoutputlist_get(this.__wbg_ptr, t);
            return mr.__wrap(e);
        }
        add(t) {
            z(t, mr), r.transactionoutputlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const Pm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionunspentoutput_free(n >>> 0, 1));
    class Fa {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Fa.prototype);
            return e.__wbg_ptr = t, Pm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Pm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionunspentoutput_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionunspentoutput_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.transactionunspentoutput_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Fa.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionunspentoutput_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactionunspentoutput_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Fa.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(t, e) {
            z(t, U_), z(e, mr);
            const o = r.transactionunspentoutput_new(t.__wbg_ptr, e.__wbg_ptr);
            return Fa.__wrap(o);
        }
        input() {
            const t = r.transactionunspentoutput_input(this.__wbg_ptr);
            return U_.__wrap(t);
        }
        output() {
            const t = r.transactionunspentoutput_output(this.__wbg_ptr);
            return mr.__wrap(t);
        }
    }
    const Rm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionwitnessset_free(n >>> 0, 1));
    class Gr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Gr.prototype);
            return e.__wbg_ptr = t, Rm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Rm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionwitnessset_free(t, 0);
        }
        add_all_witnesses(t) {
            z(t, Gr), r.transactionwitnessset_add_all_witnesses(this.__wbg_ptr, t.__wbg_ptr);
        }
        languages() {
            const t = r.transactionwitnessset_languages(this.__wbg_ptr);
            return Ju.__wrap(t);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionwitnessset_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionwitnessset_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.transactionwitnessset_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Gr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionwitnessset_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionwitnessset_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactionwitnessset_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Gr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionwitnessset_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionwitnessset_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.transactionwitnessset_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Gr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_vkeywitnesses(t) {
            z(t, ol), r.transactionwitnessset_set_vkeywitnesses(this.__wbg_ptr, t.__wbg_ptr);
        }
        vkeywitnesses() {
            const t = r.transactionwitnessset_vkeywitnesses(this.__wbg_ptr);
            return t === 0 ? void 0 : ol.__wrap(t);
        }
        set_native_scripts(t) {
            z(t, Qe), r.transactionwitnessset_set_native_scripts(this.__wbg_ptr, t.__wbg_ptr);
        }
        native_scripts() {
            const t = r.transactionwitnessset_native_scripts(this.__wbg_ptr);
            return t === 0 ? void 0 : Qe.__wrap(t);
        }
        set_bootstrap_witnesses(t) {
            z(t, Hu), r.transactionwitnessset_set_bootstrap_witnesses(this.__wbg_ptr, t.__wbg_ptr);
        }
        bootstrap_witnesses() {
            const t = r.transactionwitnessset_bootstrap_witnesses(this.__wbg_ptr);
            return t === 0 ? void 0 : Hu.__wrap(t);
        }
        set_plutus_v1_scripts(t) {
            z(t, Ua), r.transactionwitnessset_set_plutus_v1_scripts(this.__wbg_ptr, t.__wbg_ptr);
        }
        plutus_v1_scripts() {
            const t = r.transactionwitnessset_plutus_v1_scripts(this.__wbg_ptr);
            return t === 0 ? void 0 : Ua.__wrap(t);
        }
        set_plutus_datums(t) {
            z(t, Xr), r.transactionwitnessset_set_plutus_datums(this.__wbg_ptr, t.__wbg_ptr);
        }
        plutus_datums() {
            const t = r.transactionwitnessset_plutus_datums(this.__wbg_ptr);
            return t === 0 ? void 0 : Xr.__wrap(t);
        }
        set_redeemers(t) {
            z(t, hn), r.transactionwitnessset_set_redeemers(this.__wbg_ptr, t.__wbg_ptr);
        }
        redeemers() {
            const t = r.transactionwitnessset_redeemers(this.__wbg_ptr);
            return t === 0 ? void 0 : hn.__wrap(t);
        }
        set_plutus_v2_scripts(t) {
            z(t, Ca), r.transactionwitnessset_set_plutus_v2_scripts(this.__wbg_ptr, t.__wbg_ptr);
        }
        plutus_v2_scripts() {
            const t = r.transactionwitnessset_plutus_v2_scripts(this.__wbg_ptr);
            return t === 0 ? void 0 : Ca.__wrap(t);
        }
        set_plutus_v3_scripts(t) {
            z(t, ic), r.transactionwitnessset_set_plutus_v3_scripts(this.__wbg_ptr, t.__wbg_ptr);
        }
        plutus_v3_scripts() {
            const t = r.transactionwitnessset_plutus_v3_scripts(this.__wbg_ptr);
            return t === 0 ? void 0 : ic.__wrap(t);
        }
        static new() {
            const t = r.transactionwitnessset_new();
            return Gr.__wrap(t);
        }
    }
    const Um = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionwitnesssetbuilder_free(n >>> 0, 1));
    class Ra {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ra.prototype);
            return e.__wbg_ptr = t, Um.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Um.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionwitnesssetbuilder_free(t, 0);
        }
        add_vkey(t) {
            z(t, Q_), r.transactionwitnesssetbuilder_add_vkey(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_bootstrap(t) {
            z(t, A_), r.transactionwitnesssetbuilder_add_bootstrap(this.__wbg_ptr, t.__wbg_ptr);
        }
        add_script(t) {
            z(t, vr), r.transactionwitnesssetbuilder_add_script(this.__wbg_ptr, t.__wbg_ptr);
        }
        get_native_script() {
            const t = r.transactionwitnesssetbuilder_get_native_script(this.__wbg_ptr);
            return Qe.__wrap(t);
        }
        get_plutus_v1_script() {
            const t = r.transactionwitnesssetbuilder_get_plutus_v1_script(this.__wbg_ptr);
            return Ua.__wrap(t);
        }
        get_plutus_v2_script() {
            const t = r.transactionwitnesssetbuilder_get_plutus_v2_script(this.__wbg_ptr);
            return Ca.__wrap(t);
        }
        add_plutus_datum(t) {
            z(t, Vt);
            var e = t.__destroy_into_raw();
            r.transactionwitnesssetbuilder_add_plutus_datum(this.__wbg_ptr, e);
        }
        get_plutus_datum() {
            const t = r.transactionwitnesssetbuilder_get_plutus_datum(this.__wbg_ptr);
            return Xr.__wrap(t);
        }
        add_redeemer(t) {
            z(t, P_), r.transactionwitnesssetbuilder_add_redeemer(this.__wbg_ptr, t.__wbg_ptr);
        }
        get_redeemer() {
            const t = r.transactionwitnesssetbuilder_get_redeemer(this.__wbg_ptr);
            return Pi.__wrap(t);
        }
        add_required_wits(t) {
            z(t, rc), r.transactionwitnesssetbuilder_add_required_wits(this.__wbg_ptr, t.__wbg_ptr);
        }
        static new() {
            const t = r.transactionwitnesssetbuilder_new();
            return Ra.__wrap(t);
        }
        add_existing(t) {
            z(t, Gr), r.transactionwitnesssetbuilder_add_existing(this.__wbg_ptr, t.__wbg_ptr);
        }
        build() {
            const t = r.transactionwitnesssetbuilder_build(this.__wbg_ptr);
            return Gr.__wrap(t);
        }
        remaining_wits() {
            const t = r.transactionwitnesssetbuilder_remaining_wits(this.__wbg_ptr);
            return rc.__wrap(t);
        }
        try_build() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.transactionwitnesssetbuilder_try_build(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return Gr.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        merge_fake_witness(t) {
            z(t, rc), r.transactionwitnesssetbuilder_merge_fake_witness(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const Cm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_transactionwitnesssetlist_free(n >>> 0, 1));
    class al {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(al.prototype);
            return e.__wbg_ptr = t, Cm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Cm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_transactionwitnesssetlist_free(t, 0);
        }
        static new() {
            const t = r.transactionwitnesssetlist_new();
            return al.__wrap(t);
        }
        len() {
            return r.transactionwitnesssetlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.transactionwitnesssetlist_get(this.__wbg_ptr, t);
            return Gr.__wrap(e);
        }
        add(t) {
            z(t, Gr), r.transactionwitnesssetlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const Nm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_treasurywithdrawalsaction_free(n >>> 0, 1));
    class Ps {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ps.prototype);
            return e.__wbg_ptr = t, Nm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Nm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_treasurywithdrawalsaction_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.treasurywithdrawalsaction_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.treasurywithdrawalsaction_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.treasurywithdrawalsaction_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ps.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.treasurywithdrawalsaction_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.treasurywithdrawalsaction_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.treasurywithdrawalsaction_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ps.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.treasurywithdrawalsaction_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.treasurywithdrawalsaction_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.treasurywithdrawalsaction_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ps.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        withdrawal() {
            const t = r.treasurywithdrawalsaction_withdrawal(this.__wbg_ptr);
            return io.__wrap(t);
        }
        policy_hash() {
            const t = r.treasurywithdrawalsaction_policy_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Zt.__wrap(t);
        }
        static new(t, e) {
            z(t, io);
            let o = 0;
            ne(e) || (z(e, Zt), o = e.__destroy_into_raw());
            const _ = r.treasurywithdrawalsaction_new(t.__wbg_ptr, o);
            return Ps.__wrap(_);
        }
    }
    const Mm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_txredeemerbuilder_free(n >>> 0, 1));
    class kb {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(kb.prototype);
            return e.__wbg_ptr = t, Mm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Mm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_txredeemerbuilder_free(t, 0);
        }
        build() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.txredeemerbuilder_build(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return hn.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_exunits(t, e) {
            z(t, Pa), z(e, Je), r.txredeemerbuilder_set_exunits(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
        }
        draft_body() {
            const t = r.txredeemerbuilder_draft_body(this.__wbg_ptr);
            return Zr.__wrap(t);
        }
        auxiliary_data() {
            const t = r.txredeemerbuilder_auxiliary_data(this.__wbg_ptr);
            return t === 0 ? void 0 : tr.__wrap(t);
        }
        draft_tx() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.txredeemerbuilder_draft_tx(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return Vr.__wrap(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Lm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_unitinterval_free(n >>> 0, 1));
    class re {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(re.prototype);
            return e.__wbg_ptr = t, Lm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Lm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_unitinterval_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.unitinterval_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.unitinterval_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.unitinterval_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return re.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.unitinterval_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.unitinterval_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.unitinterval_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return re.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.unitinterval_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.unitinterval_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.unitinterval_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return re.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        start() {
            const t = r.unitinterval_start(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        end() {
            const t = r.unitinterval_end(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e) {
            const o = r.unitinterval_new(t, e);
            return re.__wrap(o);
        }
    }
    const zm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_unregcert_free(n >>> 0, 1));
    class Rs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Rs.prototype);
            return e.__wbg_ptr = t, zm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, zm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_unregcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.unregcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.unregcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.unregcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Rs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.unregcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.unregcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.unregcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Rs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.unregcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.unregcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.unregcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Rs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_credential() {
            const t = r.unregcert_stake_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        deposit() {
            const t = r.unregcert_deposit(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e) {
            z(t, Pt);
            const o = r.unregcert_new(t.__wbg_ptr, e);
            return Rs.__wrap(o);
        }
    }
    const qm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_unregdrepcert_free(n >>> 0, 1));
    class Us {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Us.prototype);
            return e.__wbg_ptr = t, qm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, qm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_unregdrepcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.unregdrepcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.unregdrepcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.unregdrepcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Us.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.unregdrepcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.unregdrepcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.unregdrepcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Us.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.unregdrepcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.unregdrepcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.unregdrepcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Us.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        drep_credential() {
            const t = r.unregdrepcert_drep_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        deposit() {
            const t = r.unregdrepcert_deposit(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e) {
            z(t, Pt);
            const o = r.unregdrepcert_new(t.__wbg_ptr, e);
            return Us.__wrap(o);
        }
    }
    const Dm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_untaggedredeemer_free(n >>> 0, 1));
    class rb {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(rb.prototype);
            return e.__wbg_ptr = t, Dm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Dm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_untaggedredeemer_free(t, 0);
        }
        static new(t, e) {
            z(t, Vt), z(e, Je);
            const o = r.untaggedredeemer_new(t.__wbg_ptr, e.__wbg_ptr);
            return rb.__wrap(o);
        }
    }
    const Gm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_updatecommittee_free(n >>> 0, 1));
    class Cs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Cs.prototype);
            return e.__wbg_ptr = t, Gm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Gm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_updatecommittee_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.updatecommittee_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.updatecommittee_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.updatecommittee_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Cs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.updatecommittee_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.updatecommittee_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.updatecommittee_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Cs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.updatecommittee_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.updatecommittee_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.updatecommittee_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Cs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        action_id() {
            const t = r.updatecommittee_action_id(this.__wbg_ptr);
            return t === 0 ? void 0 : Ce.__wrap(t);
        }
        cold_credentials() {
            const t = r.updatecommittee_cold_credentials(this.__wbg_ptr);
            return ac.__wrap(t);
        }
        credentials() {
            const t = r.updatecommittee_credentials(this.__wbg_ptr);
            return Zd.__wrap(t);
        }
        unit_interval() {
            const t = r.updatecommittee_unit_interval(this.__wbg_ptr);
            return re.__wrap(t);
        }
        static new(t, e, o, _) {
            let a = 0;
            ne(t) || (z(t, Ce), a = t.__destroy_into_raw()), z(e, ac), z(o, Zd), z(_, re);
            const c = r.updatecommittee_new(a, e.__wbg_ptr, o.__wbg_ptr, _.__wbg_ptr);
            return Cs.__wrap(c);
        }
    }
    const Hm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_updatedrepcert_free(n >>> 0, 1));
    class Ns {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ns.prototype);
            return e.__wbg_ptr = t, Hm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Hm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_updatedrepcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.updatedrepcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.updatedrepcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.updatedrepcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ns.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.updatedrepcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.updatedrepcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.updatedrepcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ns.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.updatedrepcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.updatedrepcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.updatedrepcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ns.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        drep_credential() {
            const t = r.updatedrepcert_drep_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        anchor() {
            const t = r.updatedrepcert_anchor(this.__wbg_ptr);
            return t === 0 ? void 0 : Xe.__wrap(t);
        }
        static new(t, e) {
            z(t, Pt);
            let o = 0;
            ne(e) || (z(e, Xe), o = e.__destroy_into_raw());
            const _ = r.updatedrepcert_new(t.__wbg_ptr, o);
            return Ns.__wrap(_);
        }
    }
    const Km = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_url_free(n >>> 0, 1));
    class M_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(M_.prototype);
            return e.__wbg_ptr = t, Km.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Km.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_url_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.url_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.url_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.url_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return M_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.url_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.url_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.url_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return M_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.url_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.url_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.url_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return M_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        get() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.url_get(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
    }
    const Vm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_vrfcert_free(n >>> 0, 1));
    class ki {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ki.prototype);
            return e.__wbg_ptr = t, Vm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Vm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_vrfcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.vrfcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.vrfcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.vrfcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ki.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.vrfcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.vrfcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.vrfcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ki.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.vrfcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.vrfcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.vrfcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return ki.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        output() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.vrfcert_output(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        proof() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.vrfcert_proof(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(t, e) {
            try {
                const c = r.__wbindgen_add_to_stack_pointer(-16), s = xt(t, r.__wbindgen_malloc), u = $, l = xt(e, r.__wbindgen_malloc), f = $;
                r.vrfcert_new(c, s, u, l, f);
                var o = i().getInt32(c + 0, !0), _ = i().getInt32(c + 4, !0), a = i().getInt32(c + 8, !0);
                if (a) throw x(_);
                return ki.__wrap(o);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Zm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_vrfkeyhash_free(n >>> 0, 1));
    class Xs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Xs.prototype);
            return e.__wbg_ptr = t, Zm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Zm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_vrfkeyhash_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.vrfkeyhash_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.vrfkeyhash_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Xs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.vrfkeyhash_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.vrfkeyhash_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Xs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.vrfkeyhash_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.vrfkeyhash_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Xs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Ym = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_vrfvkey_free(n >>> 0, 1));
    class Qs {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Qs.prototype);
            return e.__wbg_ptr = t, Ym.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Ym.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_vrfvkey_free(t, 0);
        }
        to_bech32(t) {
            let e, o;
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16), p = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), g = $;
                r.vrfvkey_to_bech32(f, this.__wbg_ptr, p, g);
                var _ = i().getInt32(f + 0, !0), a = i().getInt32(f + 4, !0), c = i().getInt32(f + 8, !0), s = i().getInt32(f + 12, !0), u = _, l = a;
                if (s) throw u = 0, l = 0, x(c);
                return e = u, o = l, _t(u, l);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(e, o, 1);
            }
        }
        static from_bech32(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.vrfvkey_from_bech32(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Qs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_raw_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.vrfvkey_to_raw_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_raw_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.vrfvkey_from_raw_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Qs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.vrfvkey_to_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.vrfvkey_from_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Qs.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
    }
    const Wm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_value_free(n >>> 0, 1));
    class Ue {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ue.prototype);
            return e.__wbg_ptr = t, Wm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Wm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_value_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.value_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.value_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.value_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ue.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.value_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.value_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.value_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ue.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.value_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.value_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.value_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ue.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_coin(t) {
            const e = r.value_from_coin(t);
            return Ue.__wrap(e);
        }
        static new(t, e) {
            z(e, wn);
            const o = r.value_new(t, e.__wbg_ptr);
            return Ue.__wrap(o);
        }
        coin() {
            const t = r.value_coin(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        multi_asset() {
            const t = r.value_multi_asset(this.__wbg_ptr);
            return wn.__wrap(t);
        }
        static zero() {
            const t = r.value_zero();
            return Ue.__wrap(t);
        }
        is_zero() {
            return r.value_is_zero(this.__wbg_ptr) !== 0;
        }
        has_multiassets() {
            return r.value_has_multiassets(this.__wbg_ptr) !== 0;
        }
        checked_add(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Ue), r.value_checked_add(a, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ue.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        checked_sub(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Ue), r.value_checked_sub(a, this.__wbg_ptr, t.__wbg_ptr);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ue.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        clamped_sub(t) {
            z(t, Ue);
            const e = r.value_clamped_sub(this.__wbg_ptr, t.__wbg_ptr);
            return Ue.__wrap(e);
        }
    }
    const Jm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_vkeywitness_free(n >>> 0, 1));
    class Q_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Q_.prototype);
            return e.__wbg_ptr = t, Jm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Jm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_vkeywitness_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.vkeywitness_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.vkeywitness_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.vkeywitness_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Q_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.vkeywitness_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.vkeywitness_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.vkeywitness_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Q_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.vkeywitness_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.vkeywitness_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.vkeywitness_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Q_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        vkey() {
            const t = r.vkeywitness_vkey(this.__wbg_ptr);
            return lr.__wrap(t);
        }
        ed25519_signature() {
            const t = r.vkeywitness_ed25519_signature(this.__wbg_ptr);
            return Yr.__wrap(t);
        }
        static new(t, e) {
            z(t, lr), z(e, Yr);
            const o = r.vkeywitness_new(t.__wbg_ptr, e.__wbg_ptr);
            return Q_.__wrap(o);
        }
    }
    const Xm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_vkeywitnesslist_free(n >>> 0, 1));
    class ol {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(ol.prototype);
            return e.__wbg_ptr = t, Xm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Xm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_vkeywitnesslist_free(t, 0);
        }
        static new() {
            const t = r.vkeywitnesslist_new();
            return ol.__wrap(t);
        }
        len() {
            return r.vkeywitnesslist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.vkeywitnesslist_get(this.__wbg_ptr, t);
            return Q_.__wrap(e);
        }
        add(t) {
            z(t, Q_), r.vkeywitnesslist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const Qm = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_votebuilder_free(n >>> 0, 1));
    class os {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(os.prototype);
            return e.__wbg_ptr = t, Qm.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, Qm.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_votebuilder_free(t, 0);
        }
        static new() {
            const t = r.votebuilder_new();
            return os.__wrap(t);
        }
        with_vote(t, e, o) {
            try {
                const s = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Rr), z(e, Ce), z(o, n_), r.votebuilder_with_vote(s, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr);
                var _ = i().getInt32(s + 0, !0), a = i().getInt32(s + 4, !0), c = i().getInt32(s + 8, !0);
                if (c) throw x(a);
                return os.__wrap(_);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        with_native_script_vote(t, e, o, _, a) {
            try {
                const p = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Rr), z(e, Ce), z(o, n_), z(_, he);
                var c = _.__destroy_into_raw();
                z(a, Wr);
                var s = a.__destroy_into_raw();
                r.votebuilder_with_native_script_vote(p, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr, c, s);
                var u = i().getInt32(p + 0, !0), l = i().getInt32(p + 4, !0), f = i().getInt32(p + 8, !0);
                if (f) throw x(l);
                return os.__wrap(u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        with_plutus_vote(t, e, o, _, a, c) {
            try {
                const f = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Rr), z(e, Ce), z(o, n_), z(_, d_), z(a, pe), z(c, Vt), r.votebuilder_with_plutus_vote(f, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr, _.__wbg_ptr, a.__wbg_ptr, c.__wbg_ptr);
                var s = i().getInt32(f + 0, !0), u = i().getInt32(f + 4, !0), l = i().getInt32(f + 8, !0);
                if (l) throw x(u);
                return os.__wrap(s);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        with_plutus_vote_inline_datum(t, e, o, _, a) {
            try {
                const p = r.__wbindgen_add_to_stack_pointer(-16);
                z(t, Rr), z(e, Ce), z(o, n_), z(_, d_);
                var c = _.__destroy_into_raw();
                z(a, pe);
                var s = a.__destroy_into_raw();
                r.votebuilder_with_plutus_vote_inline_datum(p, this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr, o.__wbg_ptr, c, s);
                var u = i().getInt32(p + 0, !0), l = i().getInt32(p + 4, !0), f = i().getInt32(p + 8, !0);
                if (f) throw x(l);
                return os.__wrap(u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        build() {
            const t = r.votebuilder_build(this.__wbg_ptr);
            return Bl.__wrap(t);
        }
    }
    const $m = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_votebuilderresult_free(n >>> 0, 1));
    class Bl {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Bl.prototype);
            return e.__wbg_ptr = t, $m.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, $m.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_votebuilderresult_free(t, 0);
        }
    }
    const t3 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_votedelegcert_free(n >>> 0, 1));
    class Ms {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ms.prototype);
            return e.__wbg_ptr = t, t3.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, t3.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_votedelegcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.votedelegcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.votedelegcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.votedelegcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ms.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.votedelegcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.votedelegcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.votedelegcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ms.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.votedelegcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.votedelegcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.votedelegcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ms.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_credential() {
            const t = r.votedelegcert_stake_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        d_rep() {
            const t = r.votedelegcert_d_rep(this.__wbg_ptr);
            return Ze.__wrap(t);
        }
        static new(t, e) {
            z(t, Pt), z(e, Ze);
            const o = r.votedelegcert_new(t.__wbg_ptr, e.__wbg_ptr);
            return Ms.__wrap(o);
        }
    }
    const e3 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_voteregdelegcert_free(n >>> 0, 1));
    class Ls {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Ls.prototype);
            return e.__wbg_ptr = t, e3.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, e3.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_voteregdelegcert_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.voteregdelegcert_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.voteregdelegcert_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.voteregdelegcert_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ls.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.voteregdelegcert_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.voteregdelegcert_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.voteregdelegcert_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ls.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.voteregdelegcert_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.voteregdelegcert_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.voteregdelegcert_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Ls.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        stake_credential() {
            const t = r.voteregdelegcert_stake_credential(this.__wbg_ptr);
            return Pt.__wrap(t);
        }
        d_rep() {
            const t = r.voteregdelegcert_d_rep(this.__wbg_ptr);
            return Ze.__wrap(t);
        }
        deposit() {
            const t = r.voteregdelegcert_deposit(this.__wbg_ptr);
            return BigInt.asUintN(64, t);
        }
        static new(t, e, o) {
            z(t, Pt), z(e, Ze);
            const _ = r.voteregdelegcert_new(t.__wbg_ptr, e.__wbg_ptr, o);
            return Ls.__wrap(_);
        }
    }
    const r3 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_voter_free(n >>> 0, 1));
    class Rr {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(Rr.prototype);
            return e.__wbg_ptr = t, r3.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, r3.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_voter_free(t, 0);
        }
        key_hash() {
            const t = r.voter_key_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Kt.__wrap(t);
        }
        script_hash() {
            const t = r.voter_script_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Zt.__wrap(t);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.voter_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.voter_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.voter_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Rr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.voter_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.voter_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.voter_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Rr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.voter_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.voter_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.voter_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return Rr.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_constitutional_committee_hot_key_hash(t) {
            z(t, Kt);
            const e = r.voter_new_constitutional_committee_hot_key_hash(t.__wbg_ptr);
            return Rr.__wrap(e);
        }
        static new_constitutional_committee_hot_script_hash(t) {
            z(t, Zt);
            const e = r.voter_new_constitutional_committee_hot_script_hash(t.__wbg_ptr);
            return Rr.__wrap(e);
        }
        static new_d_rep_key_hash(t) {
            z(t, Kt);
            const e = r.voter_new_d_rep_key_hash(t.__wbg_ptr);
            return Rr.__wrap(e);
        }
        static new_d_rep_script_hash(t) {
            z(t, Zt);
            const e = r.voter_new_d_rep_script_hash(t.__wbg_ptr);
            return Rr.__wrap(e);
        }
        static new_staking_pool_key_hash(t) {
            z(t, Kt);
            const e = r.voter_new_staking_pool_key_hash(t.__wbg_ptr);
            return Rr.__wrap(e);
        }
        kind() {
            return r.voter_kind(this.__wbg_ptr);
        }
        as_constitutional_committee_hot_key_hash() {
            const t = r.voter_as_constitutional_committee_hot_key_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Kt.__wrap(t);
        }
        as_constitutional_committee_hot_script_hash() {
            const t = r.voter_as_constitutional_committee_hot_script_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Zt.__wrap(t);
        }
        as_d_rep_key_hash() {
            const t = r.voter_as_d_rep_key_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Kt.__wrap(t);
        }
        as_d_rep_script_hash() {
            const t = r.voter_as_d_rep_script_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Zt.__wrap(t);
        }
        as_staking_pool_key_hash() {
            const t = r.voter_as_staking_pool_key_hash(this.__wbg_ptr);
            return t === 0 ? void 0 : Kt.__wrap(t);
        }
    }
    const n3 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_voterlist_free(n >>> 0, 1));
    class gg {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(gg.prototype);
            return e.__wbg_ptr = t, n3.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, n3.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_voterlist_free(t, 0);
        }
        static new() {
            const t = r.voterlist_new();
            return gg.__wrap(t);
        }
        len() {
            return r.voterlist_len(this.__wbg_ptr) >>> 0;
        }
        get(t) {
            const e = r.voterlist_get(this.__wbg_ptr, t);
            return Rr.__wrap(e);
        }
        add(t) {
            z(t, Rr), r.voterlist_add(this.__wbg_ptr, t.__wbg_ptr);
        }
    }
    const _3 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_votingprocedure_free(n >>> 0, 1));
    class n_ {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(n_.prototype);
            return e.__wbg_ptr = t, _3.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, _3.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_votingprocedure_free(t, 0);
        }
        to_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.votingprocedure_to_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_canonical_cbor_bytes() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.votingprocedure_to_canonical_cbor_bytes(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = yt(t, e).slice();
                return r.__wbindgen_free(t, e * 1, 1), o;
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_cbor_bytes(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = xt(t, r.__wbindgen_malloc), s = $;
                r.votingprocedure_from_cbor_bytes(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return n_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.votingprocedure_to_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_canonical_cbor_hex() {
            let t, e;
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16);
                r.votingprocedure_to_canonical_cbor_hex(a, this.__wbg_ptr);
                var o = i().getInt32(a + 0, !0), _ = i().getInt32(a + 4, !0);
                return t = o, e = _, _t(o, _);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        static from_cbor_hex(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.votingprocedure_from_cbor_hex(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return n_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_json() {
            let t, e;
            try {
                const l = r.__wbindgen_add_to_stack_pointer(-16);
                r.votingprocedure_to_json(l, this.__wbg_ptr);
                var o = i().getInt32(l + 0, !0), _ = i().getInt32(l + 4, !0), a = i().getInt32(l + 8, !0), c = i().getInt32(l + 12, !0), s = o, u = _;
                if (c) throw s = 0, u = 0, x(a);
                return t = s, e = u, _t(s, u);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16), r.__wbindgen_free(t, e, 1);
            }
        }
        to_js_value() {
            try {
                const _ = r.__wbindgen_add_to_stack_pointer(-16);
                r.votingprocedure_to_js_value(_, this.__wbg_ptr);
                var t = i().getInt32(_ + 0, !0), e = i().getInt32(_ + 4, !0), o = i().getInt32(_ + 8, !0);
                if (o) throw x(e);
                return x(t);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_json(t) {
            try {
                const a = r.__wbindgen_add_to_stack_pointer(-16), c = lt(t, r.__wbindgen_malloc, r.__wbindgen_realloc), s = $;
                r.votingprocedure_from_json(a, c, s);
                var e = i().getInt32(a + 0, !0), o = i().getInt32(a + 4, !0), _ = i().getInt32(a + 8, !0);
                if (_) throw x(o);
                return n_.__wrap(e);
            } finally{
                r.__wbindgen_add_to_stack_pointer(16);
            }
        }
        vote() {
            return r.votingprocedure_vote(this.__wbg_ptr);
        }
        anchor() {
            const t = r.votingprocedure_anchor(this.__wbg_ptr);
            return t === 0 ? void 0 : Xe.__wrap(t);
        }
        static new(t, e) {
            let o = 0;
            ne(e) || (z(e, Xe), o = e.__destroy_into_raw());
            const _ = r.votingprocedure_new(t, o);
            return n_.__wrap(_);
        }
    }
    const a3 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_votingprocedures_free(n >>> 0, 1));
    class il {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(il.prototype);
            return e.__wbg_ptr = t, a3.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, a3.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_votingprocedures_free(t, 0);
        }
        static new() {
            const t = r.votingprocedures_new();
            return il.__wrap(t);
        }
        len() {
            return r.votingprocedures_len(this.__wbg_ptr) >>> 0;
        }
        insert(t, e) {
            z(t, Rr), z(e, Dd);
            const o = r.votingprocedures_insert(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr);
            return o === 0 ? void 0 : Dd.__wrap(o);
        }
        get(t) {
            z(t, Rr);
            const e = r.votingprocedures_get(this.__wbg_ptr, t.__wbg_ptr);
            return e === 0 ? void 0 : Dd.__wrap(e);
        }
        keys() {
            const t = r.votingprocedures_keys(this.__wbg_ptr);
            return gg.__wrap(t);
        }
    }
    const o3 = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((n)=>r.__wbg_withdrawalbuilderresult_free(n >>> 0, 1));
    class _c {
        static __wrap(t) {
            t = t >>> 0;
            const e = Object.create(_c.prototype);
            return e.__wbg_ptr = t, o3.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const t = this.__wbg_ptr;
            return this.__wbg_ptr = 0, o3.unregister(this), t;
        }
        free() {
            const t = this.__destroy_into_raw();
            r.__wbg_withdrawalbuilderresult_free(t, 0);
        }
    }
    function S5(n) {
        const t = Re(n);
        return typeof t == "object" && t !== null;
    }
    function E5(n, t) {
        const e = _t(n, t);
        return Ne(e);
    }
    function O5(n) {
        x(n);
    }
    function F5(n, t) {
        throw new Error(_t(n, t));
    }
    function A5() {
        const n = r.memory;
        return Ne(n);
    }
    function T5(n) {
        return typeof Re(n) == "function";
    }
    function P5(n) {
        return typeof Re(n) == "string";
    }
    function R5(n) {
        const t = Re(n);
        return Ne(t);
    }
    function U5(n) {
        const t = Re(n).buffer;
        return Ne(t);
    }
    function C5() {
        const n = new Array;
        return Ne(n);
    }
    function N5(n) {
        return Ne(n);
    }
    function M5(n, t) {
        const e = new Function(_t(n, t));
        return Ne(e);
    }
    function L5() {
        return Ne(new Map);
    }
    function z5() {
        const n = new Object;
        return Ne(n);
    }
    function q5() {
        return Di(function() {
            const n = self.self;
            return Ne(n);
        }, arguments);
    }
    function D5() {
        return Di(function() {
            const n = window.window;
            return Ne(n);
        }, arguments);
    }
    function G5() {
        return Di(function() {
            const n = globalThis.globalThis;
            return Ne(n);
        }, arguments);
    }
    function H5() {
        return Di(function() {
            const n = globalThis.global;
            return Ne(n);
        }, arguments);
    }
    function K5(n) {
        return Re(n) === void 0;
    }
    function V5(n, t, e) {
        Re(n)[t >>> 0] = x(e);
    }
    function Z5() {
        return Di(function(n, t) {
            const e = Re(n).call(Re(t));
            return Ne(e);
        }, arguments);
    }
    function Y5() {
        return Di(function(n, t, e) {
            const o = Re(n).call(Re(t), Re(e));
            return Ne(o);
        }, arguments);
    }
    function W5(n, t, e) {
        const o = Re(n).set(Re(t), Re(e));
        return Ne(o);
    }
    function J5(n, t, e) {
        const o = new Uint8Array(Re(n), t >>> 0, e >>> 0);
        return Ne(o);
    }
    function X5(n) {
        const t = new Uint8Array(Re(n));
        return Ne(t);
    }
    function Q5(n) {
        const t = new Uint8Array(n >>> 0);
        return Ne(t);
    }
    function $5(n, t, e) {
        const o = Re(n).subarray(t >>> 0, e >>> 0);
        return Ne(o);
    }
    function tk(n, t, e) {
        Re(n).set(Re(t), e >>> 0);
    }
    function ek(n) {
        const t = Re(n).crypto;
        return Ne(t);
    }
    function rk(n) {
        const t = Re(n).process;
        return Ne(t);
    }
    function nk(n) {
        const t = Re(n).versions;
        return Ne(t);
    }
    function _k(n) {
        const t = Re(n).node;
        return Ne(t);
    }
    function ak() {
        return Di(function() {
            const n = module.require;
            return Ne(n);
        }, arguments);
    }
    function ok(n) {
        const t = Re(n).msCrypto;
        return Ne(t);
    }
    function ik() {
        return Di(function(n, t) {
            Re(n).randomFillSync(x(t));
        }, arguments);
    }
    function sk() {
        return Di(function(n, t) {
            Re(n).getRandomValues(Re(t));
        }, arguments);
    }
    function ck(n, t) {
        const e = String(Re(t)), o = lt(e, r.__wbindgen_malloc, r.__wbindgen_realloc), _ = $;
        i().setInt32(n + 4, _, !0), i().setInt32(n + 0, o, !0);
    }
    function dk(n, t) {
        const e = new Error(_t(n, t));
        return Ne(e);
    }
    function uk(n) {
        return Ne(n);
    }
    function lk(n) {
        const t = BigInt.asUintN(64, n);
        return Ne(t);
    }
    function fk(n, t, e) {
        Re(n)[x(t)] = x(e);
    }
    URL = globalThis.URL;
    const d = await Q8({
        "./cardano_multiplatform_lib_bg.js": {
            __wbindgen_is_object: S5,
            __wbindgen_string_new: E5,
            __wbindgen_object_drop_ref: O5,
            __wbindgen_throw: F5,
            __wbindgen_memory: A5,
            __wbindgen_is_function: T5,
            __wbindgen_is_string: P5,
            __wbindgen_object_clone_ref: R5,
            __wbg_buffer_b7b08af79b0b0974: U5,
            __wbg_new_a220cf903aa02ca2: C5,
            __wbindgen_number_new: N5,
            __wbg_newnoargs_76313bd6ff35d0f2: M5,
            __wbg_new_8608a2b51a5f6737: L5,
            __wbg_new_525245e2b9901204: z5,
            __wbg_self_3093d5d1f7bcb682: q5,
            __wbg_window_3bcfc4d31bc012f8: D5,
            __wbg_globalThis_86b222e13bdf32ed: G5,
            __wbg_global_e5a3fe56f8be9485: H5,
            __wbindgen_is_undefined: K5,
            __wbg_set_673dda6c73d19609: V5,
            __wbg_call_1084a111329e68ce: Z5,
            __wbg_call_89af060b4e1523f2: Y5,
            __wbg_set_49185437f0ab06f8: W5,
            __wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9: J5,
            __wbg_new_ea1883e1e5e86686: X5,
            __wbg_newwithlength_ec548f448387c968: Q5,
            __wbg_subarray_7c2e3576afe181d1: $5,
            __wbg_set_d1e79e2388520f18: tk,
            __wbg_crypto_1d1f22824a6a080c: ek,
            __wbg_process_4a72847cc503995b: rk,
            __wbg_versions_f686565e586dd935: nk,
            __wbg_node_104a2ff8d6ea03a2: _k,
            __wbg_require_cca90b1a94a0255b: ak,
            __wbg_msCrypto_eb05e62b530a1508: ok,
            __wbg_randomFillSync_5c9c955aa56b6049: ik,
            __wbg_getRandomValues_3aa56aa6edec874c: sk,
            __wbg_String_91fba7ded13ba54c: ck,
            __wbindgen_error_new: dk,
            __wbindgen_bigint_from_i64: uk,
            __wbindgen_bigint_from_u64: lk,
            __wbg_set_20cbc34131e76824: fk
        }
    }, U7), Zj = d.memory, Yj = d.__wbg_cip36delegation_free, Wj = d.cip36delegation_to_cbor_bytes, Jj = d.cip36delegation_to_canonical_cbor_bytes, Xj = d.cip36delegation_from_cbor_bytes, Qj = d.cip36delegation_to_cbor_hex, $j = d.cip36delegation_to_canonical_cbor_hex, tS = d.cip36delegation_from_cbor_hex, eS = d.cip36delegation_to_json, rS = d.cip36delegation_to_js_value, nS = d.cip36delegation_from_json, _S = d.cip36delegation_voting_pub_key, aS = d.cip36delegation_weight, oS = d.cip36delegation_new, iS = d.__wbg_cip36delegationdistribution_free, sS = d.cip36delegationdistribution_to_cbor_bytes, cS = d.cip36delegationdistribution_to_canonical_cbor_bytes, dS = d.cip36delegationdistribution_from_cbor_bytes, uS = d.cip36delegationdistribution_to_cbor_hex, lS = d.cip36delegationdistribution_to_canonical_cbor_hex, fS = d.cip36delegationdistribution_from_cbor_hex, gS = d.cip36delegationdistribution_to_json, pS = d.cip36delegationdistribution_to_js_value, bS = d.cip36delegationdistribution_from_json, wS = d.cip36delegationdistribution_new_weighted, yS = d.cip36delegationdistribution_new_legacy, hS = d.cip36delegationdistribution_kind, vS = d.cip36delegationdistribution_as_weighted, mS = d.cip36delegationdistribution_as_legacy, IS = d.__wbg_cip36delegationlist_free, kS = d.cip36delegationlist_new, BS = d.cip36delegationlist_len, xS = d.cip36delegationlist_get, jS = d.cip36delegationlist_add, SS = d.__wbg_cip36deregistrationcbor_free, ES = d.cip36deregistrationcbor_to_json, OS = d.cip36deregistrationcbor_to_js_value, FS = d.cip36deregistrationcbor_from_json, AS = d.cip36deregistrationcbor_key_deregistration, TS = d.cip36deregistrationcbor_deregistration_witness, PS = d.cip36deregistrationcbor_new, RS = d.__wbg_cip36deregistrationwitness_free, US = d.cip36deregistrationwitness_to_cbor_bytes, CS = d.cip36deregistrationwitness_to_canonical_cbor_bytes, NS = d.cip36deregistrationwitness_from_cbor_bytes, MS = d.cip36deregistrationwitness_to_cbor_hex, LS = d.cip36deregistrationwitness_to_canonical_cbor_hex, zS = d.cip36deregistrationwitness_from_cbor_hex, qS = d.cip36deregistrationwitness_to_json, DS = d.cip36deregistrationwitness_to_js_value, GS = d.cip36deregistrationwitness_from_json, HS = d.cip36deregistrationwitness_stake_witness, KS = d.cip36deregistrationwitness_new, VS = d.__wbg_cip36keyderegistration_free, ZS = d.cip36keyderegistration_to_cbor_bytes, YS = d.cip36keyderegistration_to_canonical_cbor_bytes, WS = d.cip36keyderegistration_from_cbor_bytes, JS = d.cip36keyderegistration_to_cbor_hex, XS = d.cip36keyderegistration_to_canonical_cbor_hex, QS = d.cip36keyderegistration_from_cbor_hex, $S = d.cip36keyderegistration_to_json, tE = d.cip36keyderegistration_to_js_value, eE = d.cip36keyderegistration_from_json, rE = d.cip36keyderegistration_stake_credential, nE = d.cip36keyderegistration_nonce, _E = d.cip36keyderegistration_set_voting_purpose, aE = d.cip36keyderegistration_voting_purpose, oE = d.__wbg_cip36keyregistration_free, iE = d.cip36keyregistration_to_cbor_bytes, sE = d.cip36keyregistration_to_canonical_cbor_bytes, cE = d.cip36keyregistration_from_cbor_bytes, dE = d.cip36keyregistration_to_cbor_hex, uE = d.cip36keyregistration_to_canonical_cbor_hex, lE = d.cip36keyregistration_from_cbor_hex, fE = d.cip36keyregistration_to_json, gE = d.cip36keyregistration_to_js_value, pE = d.cip36keyregistration_from_json, bE = d.cip36keyregistration_delegation, wE = d.cip36keyregistration_stake_credential, yE = d.cip36keyregistration_payment_address, hE = d.cip36keyregistration_nonce, vE = d.cip36keyregistration_set_voting_purpose, mE = d.cip36keyregistration_voting_purpose, IE = d.__wbg_cip36registrationcbor_free, kE = d.cip36registrationcbor_to_json, BE = d.cip36registrationcbor_to_js_value, xE = d.cip36registrationcbor_from_json, jE = d.cip36registrationcbor_key_registration, SE = d.cip36registrationcbor_registration_witness, EE = d.cip36registrationcbor_new, OE = d.__wbg_cip36registrationwitness_free, FE = d.cip36registrationwitness_to_cbor_bytes, AE = d.cip36registrationwitness_to_canonical_cbor_bytes, TE = d.cip36registrationwitness_from_cbor_bytes, PE = d.cip36registrationwitness_to_cbor_hex, RE = d.cip36registrationwitness_to_canonical_cbor_hex, UE = d.cip36registrationwitness_from_cbor_hex, CE = d.cip36registrationwitness_to_json, NE = d.cip36registrationwitness_to_js_value, ME = d.cip36registrationwitness_from_json, LE = d.cip36registrationwitness_stake_witness, zE = d.cip36registrationwitness_new, qE = d.__wbg_cip25metadata_free, DE = d.cip25metadata_to_json, GE = d.cip25metadata_to_js_value, HE = d.cip25metadata_from_json, KE = d.cip25metadata_to_cbor_bytes, VE = d.cip25metadata_from_cbor_bytes, ZE = d.cip25metadata_key_721, YE = d.cip25metadata_new, WE = d.__wbg_cip25chunkablestring_free, JE = d.cip25chunkablestring_to_cbor_bytes, XE = d.cip25chunkablestring_from_cbor_bytes, QE = d.cip25chunkablestring_to_cbor_hex, $E = d.cip25chunkablestring_from_cbor_hex, tO = d.cip25chunkablestring_to_json, eO = d.cip25chunkablestring_to_js_value, rO = d.cip25chunkablestring_from_json, nO = d.cip25chunkablestring_new_single, _O = d.cip25chunkablestring_new_chunked, aO = d.cip25chunkablestring_kind, oO = d.cip25chunkablestring_as_single, iO = d.cip25chunkablestring_as_chunked, sO = d.__wbg_cip25filesdetails_free, cO = d.cip25filesdetails_to_cbor_bytes, dO = d.cip25filesdetails_from_cbor_bytes, uO = d.cip25filesdetails_to_cbor_hex, lO = d.cip25filesdetails_from_cbor_hex, fO = d.cip25filesdetails_to_json, gO = d.cip25filesdetails_to_js_value, pO = d.cip25filesdetails_from_json, bO = d.cip25filesdetails_name, wO = d.cip25filesdetails_media_type, yO = d.cip25filesdetails_src, hO = d.cip25filesdetails_new, vO = d.__wbg_filesdetailslist_free, mO = d.filesdetailslist_new, IO = d.filesdetailslist_len, kO = d.filesdetailslist_get, BO = d.filesdetailslist_add, xO = d.__wbg_cip25metadatadetails_free, jO = d.cip25metadatadetails_to_cbor_bytes, SO = d.cip25metadatadetails_from_cbor_bytes, EO = d.cip25metadatadetails_to_cbor_hex, OO = d.cip25metadatadetails_from_cbor_hex, FO = d.cip25metadatadetails_to_json, AO = d.cip25metadatadetails_to_js_value, TO = d.cip25metadatadetails_from_json, PO = d.cip25metadatadetails_name, RO = d.cip25metadatadetails_image, UO = d.cip25metadatadetails_set_media_type, CO = d.cip25metadatadetails_media_type, NO = d.cip25metadatadetails_set_description, MO = d.cip25metadatadetails_description, LO = d.cip25metadatadetails_set_files, zO = d.cip25metadatadetails_files, qO = d.cip25metadatadetails_new, DO = d.__wbg_cip25string64_free, GO = d.cip25string64_to_cbor_bytes, HO = d.cip25string64_from_cbor_bytes, KO = d.cip25string64_to_cbor_hex, VO = d.cip25string64_from_cbor_hex, ZO = d.cip25string64_to_json, YO = d.cip25string64_to_js_value, WO = d.cip25string64_from_json, JO = d.cip25string64_get, XO = d.__wbg_cip25string64list_free, QO = d.cip25string64list_new, $O = d.cip25string64list_len, tF = d.cip25string64list_get, eF = d.cip25string64list_add, rF = d.cip25metadata_to_metadata, nF = d.cip25metadata_from_metadata, _F = d.cip25metadata_add_to_metadata, aF = d.cip25string64_new, oF = d.cip25string64_to_str, iF = d.cip25string64_get_str, sF = d.cip25chunkablestring_from_string, cF = d.cip25chunkablestring_to_string, dF = d.__wbg_cip25minimetadatadetails_free, uF = d.cip25minimetadatadetails_to_json, lF = d.cip25minimetadatadetails_to_js_value, fF = d.cip25minimetadatadetails_from_json, gF = d.cip25minimetadatadetails_new, pF = d.cip25minimetadatadetails_set_name, bF = d.cip25minimetadatadetails_name, wF = d.cip25minimetadatadetails_set_image, yF = d.cip25minimetadatadetails_image, hF = d.cip25minimetadatadetails_loose_parse, vF = d.__wbg_cip25labelmetadata_free, mF = d.cip25labelmetadata_to_cbor_bytes, IF = d.cip25labelmetadata_from_cbor_bytes, kF = d.cip25labelmetadata_to_cbor_hex, BF = d.cip25labelmetadata_from_cbor_hex, xF = d.cip25labelmetadata_to_json, jF = d.cip25labelmetadata_to_js_value, SF = d.cip25labelmetadata_from_json, EF = d.cip25labelmetadata_new, OF = d.cip25labelmetadata_set, FF = d.cip25labelmetadata_get, AF = d.cip25labelmetadata_version, TF = d.__wbg_certificatebuilderresult_free, PF = d.__wbg_singlecertificatebuilder_free, RF = d.singlecertificatebuilder_new, UF = d.singlecertificatebuilder_skip_witness, CF = d.singlecertificatebuilder_payment_key, NF = d.singlecertificatebuilder_native_script, MF = d.singlecertificatebuilder_plutus_script, LF = d.__wbg_proposalbuilderresult_free, zF = d.__wbg_proposalbuilder_free, qF = d.proposalbuilder_new, DF = d.proposalbuilder_with_proposal, GF = d.proposalbuilder_with_native_script_proposal, HF = d.proposalbuilder_with_plutus_proposal, KF = d.proposalbuilder_with_plutus_proposal_inline_datum, VF = d.proposalbuilder_build, ZF = d.__wbg_redeemerwitnesskey_free, YF = d.redeemerwitnesskey_new, WF = d.redeemerwitnesskey_from_redeemer, JF = d.__wbg_untaggedredeemer_free, XF = d.untaggedredeemer_new, QF = d.__wbg_redeemersetbuilder_free, $F = d.redeemersetbuilder_new, tA = d.redeemersetbuilder_is_empty, eA = d.redeemersetbuilder_update_ex_units, rA = d.redeemersetbuilder_add_spend, nA = d.redeemersetbuilder_add_mint, _A = d.redeemersetbuilder_add_reward, aA = d.redeemersetbuilder_add_cert, oA = d.redeemersetbuilder_add_proposal, iA = d.redeemersetbuilder_add_vote, sA = d.redeemersetbuilder_build, cA = d.__wbg_transactionunspentoutput_free, dA = d.transactionunspentoutput_to_cbor_bytes, uA = d.transactionunspentoutput_from_cbor_bytes, lA = d.transactionunspentoutput_to_cbor_hex, fA = d.transactionunspentoutput_from_cbor_hex, gA = d.transactionunspentoutput_new, pA = d.transactionunspentoutput_input, bA = d.transactionunspentoutput_output, wA = d.__wbg_transactionbuilderconfig_free, yA = d.__wbg_transactionbuilderconfigbuilder_free, hA = d.transactionbuilderconfigbuilder_new, vA = d.transactionbuilderconfigbuilder_fee_algo, mA = d.transactionbuilderconfigbuilder_coins_per_utxo_byte, IA = d.transactionbuilderconfigbuilder_pool_deposit, kA = d.transactionbuilderconfigbuilder_key_deposit, BA = d.transactionbuilderconfigbuilder_max_value_size, xA = d.transactionbuilderconfigbuilder_max_tx_size, jA = d.transactionbuilderconfigbuilder_prefer_pure_change, SA = d.transactionbuilderconfigbuilder_ex_unit_prices, EA = d.transactionbuilderconfigbuilder_cost_models, OA = d.transactionbuilderconfigbuilder_collateral_percentage, FA = d.transactionbuilderconfigbuilder_max_collateral_inputs, AA = d.transactionbuilderconfigbuilder_build, TA = d.__wbg_transactionbuilder_free, PA = d.transactionbuilder_select_utxos, RA = d.transactionbuilder_add_input, UA = d.transactionbuilder_add_utxo, CA = d.transactionbuilder_fee_for_input, NA = d.transactionbuilder_add_reference_input, MA = d.transactionbuilder_add_output, LA = d.transactionbuilder_fee_for_output, zA = d.transactionbuilder_set_fee, qA = d.transactionbuilder_set_ttl, DA = d.transactionbuilder_set_validity_start_interval, GA = d.transactionbuilder_add_cert, HA = d.transactionbuilder_add_proposal, KA = d.transactionbuilder_add_vote, VA = d.transactionbuilder_get_withdrawals, ZA = d.transactionbuilder_add_withdrawal, YA = d.transactionbuilder_get_auxiliary_data, WA = d.transactionbuilder_set_auxiliary_data, JA = d.transactionbuilder_add_auxiliary_data, XA = d.transactionbuilder_add_mint, QA = d.transactionbuilder_get_mint, $A = d.transactionbuilder_new, tT = d.transactionbuilder_add_collateral, eT = d.transactionbuilder_add_required_signer, rT = d.transactionbuilder_set_network_id, nT = d.transactionbuilder_network_id, _T = d.transactionbuilder_get_explicit_input, aT = d.transactionbuilder_get_implicit_input, oT = d.transactionbuilder_get_total_input, iT = d.transactionbuilder_get_total_output, sT = d.transactionbuilder_get_explicit_output, cT = d.transactionbuilder_get_deposit, dT = d.transactionbuilder_get_fee_if_set, uT = d.transactionbuilder_set_collateral_return, lT = d.transactionbuilder_full_size, fT = d.transactionbuilder_output_sizes, gT = d.transactionbuilder_build_for_evaluation, pT = d.transactionbuilder_build, bT = d.transactionbuilder_set_exunits, wT = d.transactionbuilder_min_fee, yT = d.transactionbuilder_add_change_if_needed, hT = d.__wbg_txredeemerbuilder_free, vT = d.txredeemerbuilder_build, mT = d.txredeemerbuilder_set_exunits, IT = d.txredeemerbuilder_draft_body, kT = d.txredeemerbuilder_auxiliary_data, BT = d.txredeemerbuilder_draft_tx, xT = d.__wbg_signedtxbuilder_free, jT = d.signedtxbuilder_new_with_data, ST = d.signedtxbuilder_new_without_data, ET = d.signedtxbuilder_build_checked, OT = d.signedtxbuilder_build_unchecked, FT = d.signedtxbuilder_add_vkey, AT = d.signedtxbuilder_add_bootstrap, TT = d.signedtxbuilder_body, PT = d.signedtxbuilder_witness_set, RT = d.signedtxbuilder_is_valid, UT = d.signedtxbuilder_auxiliary_data, CT = d.hash_auxiliary_data, NT = d.hash_transaction, MT = d.hash_plutus_data, LT = d.hash_script_data, zT = d.calc_script_data_hash, qT = d.calc_script_data_hash_from_witness, DT = d.bootstrapwitness_to_address, GT = d.make_vkey_witness, HT = d.get_implicit_input, KT = d.get_deposit, VT = d.govaction_script_hash, ZT = d.voter_key_hash, YT = d.voter_script_hash, WT = d.__wbg_anchor_free, JT = d.anchor_to_cbor_bytes, XT = d.anchor_to_canonical_cbor_bytes, QT = d.anchor_from_cbor_bytes, $T = d.anchor_to_cbor_hex, tP = d.anchor_to_canonical_cbor_hex, eP = d.anchor_from_cbor_hex, rP = d.anchor_to_json, nP = d.anchor_to_js_value, _P = d.anchor_from_json, aP = d.anchor_anchor_url, oP = d.anchor_anchor_doc_hash, iP = d.anchor_new, sP = d.__wbg_constitution_free, cP = d.constitution_to_cbor_bytes, dP = d.constitution_to_canonical_cbor_bytes, uP = d.constitution_from_cbor_bytes, lP = d.constitution_to_cbor_hex, fP = d.constitution_to_canonical_cbor_hex, gP = d.constitution_from_cbor_hex, pP = d.constitution_to_json, bP = d.constitution_to_js_value, wP = d.constitution_from_json, yP = d.constitution_anchor, hP = d.constitution_script_hash, vP = d.constitution_new, mP = d.__wbg_govaction_free, IP = d.govaction_to_cbor_bytes, kP = d.govaction_to_canonical_cbor_bytes, BP = d.govaction_from_cbor_bytes, xP = d.govaction_to_cbor_hex, jP = d.govaction_to_canonical_cbor_hex, SP = d.govaction_from_cbor_hex, EP = d.govaction_to_json, OP = d.govaction_to_js_value, FP = d.govaction_from_json, AP = d.govaction_new_parameter_change_action, TP = d.govaction_new_hard_fork_initiation_action, PP = d.govaction_new_treasury_withdrawals_action, RP = d.govaction_new_no_confidence, UP = d.govaction_new_update_committee, CP = d.govaction_new_new_constitution, NP = d.govaction_new_info_action, MP = d.govaction_kind, LP = d.govaction_as_parameter_change_action, zP = d.govaction_as_hard_fork_initiation_action, qP = d.govaction_as_treasury_withdrawals_action, DP = d.govaction_as_no_confidence, GP = d.govaction_as_update_committee, HP = d.govaction_as_new_constitution, KP = d.__wbg_govactionid_free, VP = d.govactionid_to_cbor_bytes, ZP = d.govactionid_to_canonical_cbor_bytes, YP = d.govactionid_from_cbor_bytes, WP = d.govactionid_to_cbor_hex, JP = d.govactionid_to_canonical_cbor_hex, XP = d.govactionid_from_cbor_hex, QP = d.govactionid_to_json, $P = d.govactionid_to_js_value, tR = d.govactionid_from_json, eR = d.govactionid_transaction_id, rR = d.govactionid_gov_action_index, nR = d.govactionid_new, _R = d.__wbg_hardforkinitiationaction_free, aR = d.hardforkinitiationaction_to_cbor_bytes, oR = d.hardforkinitiationaction_to_canonical_cbor_bytes, iR = d.hardforkinitiationaction_from_cbor_bytes, sR = d.hardforkinitiationaction_to_cbor_hex, cR = d.hardforkinitiationaction_to_canonical_cbor_hex, dR = d.hardforkinitiationaction_from_cbor_hex, uR = d.hardforkinitiationaction_to_json, lR = d.hardforkinitiationaction_to_js_value, fR = d.hardforkinitiationaction_from_json, gR = d.hardforkinitiationaction_action_id, pR = d.hardforkinitiationaction_version, bR = d.hardforkinitiationaction_new, wR = d.__wbg_newconstitution_free, yR = d.newconstitution_to_cbor_bytes, hR = d.newconstitution_to_canonical_cbor_bytes, vR = d.newconstitution_from_cbor_bytes, mR = d.newconstitution_to_cbor_hex, IR = d.newconstitution_to_canonical_cbor_hex, kR = d.newconstitution_from_cbor_hex, BR = d.newconstitution_to_json, xR = d.newconstitution_to_js_value, jR = d.newconstitution_from_json, SR = d.newconstitution_action_id, ER = d.newconstitution_constitution, OR = d.newconstitution_new, FR = d.__wbg_noconfidence_free, AR = d.noconfidence_to_cbor_bytes, TR = d.noconfidence_to_canonical_cbor_bytes, PR = d.noconfidence_from_cbor_bytes, RR = d.noconfidence_to_cbor_hex, UR = d.noconfidence_to_canonical_cbor_hex, CR = d.noconfidence_from_cbor_hex, NR = d.noconfidence_to_json, MR = d.noconfidence_to_js_value, LR = d.noconfidence_from_json, zR = d.noconfidence_action_id, qR = d.noconfidence_new, DR = d.__wbg_parameterchangeaction_free, GR = d.parameterchangeaction_to_cbor_bytes, HR = d.parameterchangeaction_to_canonical_cbor_bytes, KR = d.parameterchangeaction_from_cbor_bytes, VR = d.parameterchangeaction_to_cbor_hex, ZR = d.parameterchangeaction_to_canonical_cbor_hex, YR = d.parameterchangeaction_from_cbor_hex, WR = d.parameterchangeaction_to_json, JR = d.parameterchangeaction_to_js_value, XR = d.parameterchangeaction_from_json, QR = d.parameterchangeaction_action_id, $R = d.parameterchangeaction_update, tU = d.parameterchangeaction_policy_hash, eU = d.parameterchangeaction_new, rU = d.__wbg_proposalprocedure_free, nU = d.proposalprocedure_to_cbor_bytes, _U = d.proposalprocedure_to_canonical_cbor_bytes, aU = d.proposalprocedure_from_cbor_bytes, oU = d.proposalprocedure_to_cbor_hex, iU = d.proposalprocedure_to_canonical_cbor_hex, sU = d.proposalprocedure_from_cbor_hex, cU = d.proposalprocedure_to_json, dU = d.proposalprocedure_to_js_value, uU = d.proposalprocedure_from_json, lU = d.proposalprocedure_deposit, fU = d.proposalprocedure_reward_account, gU = d.proposalprocedure_gov_action, pU = d.proposalprocedure_anchor, bU = d.proposalprocedure_new, wU = d.__wbg_treasurywithdrawalsaction_free, yU = d.treasurywithdrawalsaction_to_cbor_bytes, hU = d.treasurywithdrawalsaction_to_canonical_cbor_bytes, vU = d.treasurywithdrawalsaction_from_cbor_bytes, mU = d.treasurywithdrawalsaction_to_cbor_hex, IU = d.treasurywithdrawalsaction_to_canonical_cbor_hex, kU = d.treasurywithdrawalsaction_from_cbor_hex, BU = d.treasurywithdrawalsaction_to_json, xU = d.treasurywithdrawalsaction_to_js_value, jU = d.treasurywithdrawalsaction_from_json, SU = d.treasurywithdrawalsaction_withdrawal, EU = d.treasurywithdrawalsaction_policy_hash, OU = d.treasurywithdrawalsaction_new, FU = d.__wbg_updatecommittee_free, AU = d.updatecommittee_to_cbor_bytes, TU = d.updatecommittee_to_canonical_cbor_bytes, PU = d.updatecommittee_from_cbor_bytes, RU = d.updatecommittee_to_cbor_hex, UU = d.updatecommittee_to_canonical_cbor_hex, CU = d.updatecommittee_from_cbor_hex, NU = d.updatecommittee_to_json, MU = d.updatecommittee_to_js_value, LU = d.updatecommittee_from_json, zU = d.updatecommittee_action_id, qU = d.updatecommittee_cold_credentials, DU = d.updatecommittee_credentials, GU = d.updatecommittee_unit_interval, HU = d.updatecommittee_new, KU = d.__wbg_voter_free, VU = d.voter_to_cbor_bytes, ZU = d.voter_to_canonical_cbor_bytes, YU = d.voter_from_cbor_bytes, WU = d.voter_to_cbor_hex, JU = d.voter_to_canonical_cbor_hex, XU = d.voter_from_cbor_hex, QU = d.voter_to_json, $U = d.voter_to_js_value, tC = d.voter_from_json, eC = d.voter_new_constitutional_committee_hot_key_hash, rC = d.voter_new_constitutional_committee_hot_script_hash, nC = d.voter_new_d_rep_key_hash, _C = d.voter_new_d_rep_script_hash, aC = d.voter_new_staking_pool_key_hash, oC = d.voter_kind, iC = d.voter_as_constitutional_committee_hot_key_hash, sC = d.voter_as_constitutional_committee_hot_script_hash, cC = d.voter_as_d_rep_key_hash, dC = d.voter_as_d_rep_script_hash, uC = d.voter_as_staking_pool_key_hash, lC = d.__wbg_votingprocedure_free, fC = d.votingprocedure_to_cbor_bytes, gC = d.votingprocedure_to_canonical_cbor_bytes, pC = d.votingprocedure_from_cbor_bytes, bC = d.votingprocedure_to_cbor_hex, wC = d.votingprocedure_to_canonical_cbor_hex, yC = d.votingprocedure_from_cbor_hex, hC = d.votingprocedure_to_json, vC = d.votingprocedure_to_js_value, mC = d.votingprocedure_from_json, IC = d.votingprocedure_vote, kC = d.votingprocedure_anchor, BC = d.votingprocedure_new, xC = d.__wbg_votingprocedures_free, jC = d.votingprocedures_new, SC = d.votingprocedures_len, EC = d.votingprocedures_insert, OC = d.votingprocedures_get, FC = d.votingprocedures_keys, AC = d.encode_json_str_to_metadatum, TC = d.decode_metadatum_to_json_str, PC = d.encode_json_str_to_plutus_datum, RC = d.decode_plutus_datum_to_json_str, UC = d.min_ada_required, CC = d.__wbg_mapu64toarri64_free, NC = d.mapu64toarri64_get, MC = d.mapu64toarri64_insert, LC = d.mapu64toarri64_new, zC = d.mapu64toarri64_len, qC = d.mapu64toarri64_is_empty, DC = d.mapu64toarri64_keys, GC = d.__wbg_costmodels_free, HC = d.costmodels_to_cbor_bytes, KC = d.costmodels_to_canonical_cbor_bytes, VC = d.costmodels_from_cbor_bytes, ZC = d.costmodels_to_cbor_hex, YC = d.costmodels_to_canonical_cbor_hex, WC = d.costmodels_from_cbor_hex, JC = d.costmodels_to_json, XC = d.costmodels_to_js_value, QC = d.costmodels_from_json, $C = d.costmodels_inner, tN = d.__wbg_exunitprices_free, eN = d.exunitprices_to_cbor_bytes, rN = d.exunitprices_to_canonical_cbor_bytes, nN = d.exunitprices_from_cbor_bytes, _N = d.exunitprices_to_cbor_hex, aN = d.exunitprices_to_canonical_cbor_hex, oN = d.exunitprices_from_cbor_hex, iN = d.exunitprices_to_json, sN = d.exunitprices_to_js_value, cN = d.exunitprices_from_json, dN = d.exunitprices_mem_price, uN = d.exunitprices_step_price, lN = d.exunitprices_new, fN = d.__wbg_exunits_free, gN = d.exunits_to_cbor_bytes, pN = d.exunits_to_canonical_cbor_bytes, bN = d.exunits_from_cbor_bytes, wN = d.exunits_to_cbor_hex, yN = d.exunits_to_canonical_cbor_hex, hN = d.exunits_from_cbor_hex, vN = d.exunits_to_json, mN = d.exunits_to_js_value, IN = d.exunits_from_json, kN = d.exunits_mem, BN = d.exunits_steps, xN = d.exunits_new, jN = d.__wbg_legacyredeemer_free, SN = d.legacyredeemer_to_cbor_bytes, EN = d.legacyredeemer_to_canonical_cbor_bytes, ON = d.legacyredeemer_from_cbor_bytes, FN = d.legacyredeemer_to_cbor_hex, AN = d.legacyredeemer_to_canonical_cbor_hex, TN = d.legacyredeemer_from_cbor_hex, PN = d.legacyredeemer_to_json, RN = d.legacyredeemer_to_js_value, UN = d.legacyredeemer_from_json, CN = d.legacyredeemer_tag, NN = d.legacyredeemer_index, MN = d.legacyredeemer_data, LN = d.legacyredeemer_ex_units, zN = d.legacyredeemer_new, qN = d.__wbg_plutusdata_free, DN = d.plutusdata_to_cbor_bytes, GN = d.plutusdata_to_canonical_cbor_bytes, HN = d.plutusdata_from_cbor_bytes, KN = d.plutusdata_to_cbor_hex, VN = d.plutusdata_to_canonical_cbor_hex, ZN = d.plutusdata_from_cbor_hex, YN = d.plutusdata_to_json, WN = d.plutusdata_to_js_value, JN = d.plutusdata_from_json, XN = d.plutusdata_new_constr_plutus_data, QN = d.plutusdata_new_map, $N = d.plutusdata_new_list, tM = d.plutusdata_new_integer, eM = d.plutusdata_new_bytes, rM = d.plutusdata_kind, nM = d.plutusdata_as_constr_plutus_data, _M = d.plutusdata_as_map, aM = d.plutusdata_as_list, oM = d.plutusdata_as_integer, iM = d.plutusdata_as_bytes, sM = d.__wbg_plutusv1script_free, cM = d.plutusv1script_to_cbor_bytes, dM = d.plutusv1script_to_canonical_cbor_bytes, uM = d.plutusv1script_from_cbor_bytes, lM = d.plutusv1script_to_cbor_hex, fM = d.plutusv1script_to_canonical_cbor_hex, gM = d.plutusv1script_from_cbor_hex, pM = d.plutusv1script_to_json, bM = d.plutusv1script_to_js_value, wM = d.plutusv1script_from_json, yM = d.__wbg_plutusv2script_free, hM = d.plutusv2script_to_cbor_bytes, vM = d.plutusv2script_to_canonical_cbor_bytes, mM = d.plutusv2script_from_cbor_bytes, IM = d.plutusv2script_to_cbor_hex, kM = d.plutusv2script_to_canonical_cbor_hex, BM = d.plutusv2script_from_cbor_hex, xM = d.plutusv2script_to_json, jM = d.plutusv2script_to_js_value, SM = d.plutusv2script_from_json, EM = d.__wbg_plutusv3script_free, OM = d.plutusv3script_to_cbor_bytes, FM = d.plutusv3script_to_canonical_cbor_bytes, AM = d.plutusv3script_from_cbor_bytes, TM = d.plutusv3script_to_cbor_hex, PM = d.plutusv3script_to_canonical_cbor_hex, RM = d.plutusv3script_from_cbor_hex, UM = d.plutusv3script_to_json, CM = d.plutusv3script_to_js_value, NM = d.plutusv3script_from_json, MM = d.__wbg_redeemerkey_free, LM = d.redeemerkey_to_cbor_bytes, zM = d.redeemerkey_to_canonical_cbor_bytes, qM = d.redeemerkey_from_cbor_bytes, DM = d.redeemerkey_to_cbor_hex, GM = d.redeemerkey_to_canonical_cbor_hex, HM = d.redeemerkey_from_cbor_hex, KM = d.redeemerkey_to_json, VM = d.redeemerkey_to_js_value, ZM = d.redeemerkey_from_json, YM = d.redeemerkey_tag, WM = d.redeemerkey_index, JM = d.redeemerkey_new, XM = d.__wbg_redeemerval_free, QM = d.redeemerval_to_cbor_bytes, $M = d.redeemerval_to_canonical_cbor_bytes, tL = d.redeemerval_from_cbor_bytes, eL = d.redeemerval_to_cbor_hex, rL = d.redeemerval_to_canonical_cbor_hex, nL = d.redeemerval_from_cbor_hex, _L = d.redeemerval_to_json, aL = d.redeemerval_to_js_value, oL = d.redeemerval_from_json, iL = d.redeemerval_data, sL = d.redeemerval_ex_units, cL = d.redeemerval_new, dL = d.__wbg_redeemers_free, uL = d.redeemers_to_cbor_bytes, lL = d.redeemers_to_canonical_cbor_bytes, fL = d.redeemers_from_cbor_bytes, gL = d.redeemers_to_cbor_hex, pL = d.redeemers_to_canonical_cbor_hex, bL = d.redeemers_from_cbor_hex, wL = d.redeemers_to_json, yL = d.redeemers_to_js_value, hL = d.redeemers_from_json, vL = d.redeemers_new_arr_legacy_redeemer, mL = d.redeemers_new_map_redeemer_key_to_redeemer_val, IL = d.redeemers_kind, kL = d.redeemers_as_arr_legacy_redeemer, BL = d.redeemers_as_map_redeemer_key_to_redeemer_val, xL = d.__wbg_crc32_free, jL = d.crc32_new, SL = d.crc32_update, EL = d.crc32_finalize, OL = d.__wbg_addrattributes_free, FL = d.addrattributes_to_cbor_bytes, AL = d.addrattributes_from_cbor_bytes, TL = d.addrattributes_to_cbor_hex, PL = d.addrattributes_from_cbor_hex, RL = d.addrattributes_set_stake_distribution, UL = d.addrattributes_stake_distribution, CL = d.addrattributes_set_derivation_path, NL = d.addrattributes_derivation_path, ML = d.addrattributes_set_protocol_magic, LL = d.addrattributes_protocol_magic, zL = d.addrattributes_new, qL = d.__wbg_addresscontent_free, DL = d.addresscontent_to_cbor_bytes, GL = d.addresscontent_from_cbor_bytes, HL = d.addresscontent_to_cbor_hex, KL = d.addresscontent_from_cbor_hex, VL = d.addresscontent_address_id, ZL = d.addresscontent_addr_attributes, YL = d.addresscontent_addr_type, WL = d.addresscontent_new, JL = d.__wbg_byronaddress_free, XL = d.byronaddress_to_cbor_bytes, QL = d.byronaddress_from_cbor_bytes, $L = d.byronaddress_to_cbor_hex, tz = d.byronaddress_from_cbor_hex, ez = d.byronaddress_content, rz = d.byronaddress_crc, nz = d.byronaddress_new, _z = d.__wbg_hdaddresspayload_free, az = d.hdaddresspayload_to_cbor_bytes, oz = d.hdaddresspayload_from_cbor_bytes, iz = d.hdaddresspayload_to_cbor_hex, sz = d.hdaddresspayload_from_cbor_hex, cz = d.hdaddresspayload_get, dz = d.__wbg_spendingdata_free, uz = d.spendingdata_to_cbor_bytes, lz = d.spendingdata_from_cbor_bytes, fz = d.spendingdata_to_cbor_hex, gz = d.spendingdata_from_cbor_hex, pz = d.spendingdata_new_spending_data_pub_key, bz = d.spendingdata_new_spending_data_script, wz = d.spendingdata_new_spending_data_redeem, yz = d.spendingdata_kind, hz = d.spendingdata_as_spending_data_pub_key, vz = d.spendingdata_as_spending_data_script, mz = d.spendingdata_as_spending_data_redeem, Iz = d.__wbg_stakedistribution_free, kz = d.stakedistribution_to_cbor_bytes, Bz = d.stakedistribution_from_cbor_bytes, xz = d.stakedistribution_to_cbor_hex, jz = d.stakedistribution_from_cbor_hex, Sz = d.stakedistribution_new_single_key, Ez = d.stakedistribution_new_bootstrap_era, Oz = d.stakedistribution_kind, Fz = d.stakedistribution_as_single_key, Az = d.__wbg_byrontxout_free, Tz = d.byrontxout_to_cbor_bytes, Pz = d.byrontxout_from_cbor_bytes, Rz = d.byrontxout_to_cbor_hex, Uz = d.byrontxout_from_cbor_hex, Cz = d.byrontxout_address, Nz = d.byrontxout_amount, Mz = d.byrontxout_new, Lz = d.__wbg_authcommitteehotcert_free, zz = d.authcommitteehotcert_to_cbor_bytes, qz = d.authcommitteehotcert_to_canonical_cbor_bytes, Dz = d.authcommitteehotcert_from_cbor_bytes, Gz = d.authcommitteehotcert_to_cbor_hex, Hz = d.authcommitteehotcert_to_canonical_cbor_hex, Kz = d.authcommitteehotcert_from_cbor_hex, Vz = d.authcommitteehotcert_to_json, Zz = d.authcommitteehotcert_to_js_value, Yz = d.authcommitteehotcert_from_json, Wz = d.authcommitteehotcert_committee_cold_credential, Jz = d.authcommitteehotcert_committee_hot_credential, Xz = d.authcommitteehotcert_new, Qz = d.__wbg_certificate_free, $z = d.certificate_to_cbor_bytes, tq = d.certificate_to_canonical_cbor_bytes, eq = d.certificate_from_cbor_bytes, rq = d.certificate_to_cbor_hex, nq = d.certificate_to_canonical_cbor_hex, _q = d.certificate_from_cbor_hex, aq = d.certificate_to_json, oq = d.certificate_to_js_value, iq = d.certificate_from_json, sq = d.certificate_new_stake_registration, cq = d.certificate_new_stake_deregistration, dq = d.certificate_new_stake_delegation, uq = d.certificate_new_pool_registration, lq = d.certificate_new_pool_retirement, fq = d.certificate_new_reg_cert, gq = d.certificate_new_unreg_cert, pq = d.certificate_new_vote_deleg_cert, bq = d.certificate_new_stake_vote_deleg_cert, wq = d.certificate_new_stake_reg_deleg_cert, yq = d.certificate_new_vote_reg_deleg_cert, hq = d.certificate_new_stake_vote_reg_deleg_cert, vq = d.certificate_new_auth_committee_hot_cert, mq = d.certificate_new_resign_committee_cold_cert, Iq = d.certificate_new_reg_drep_cert, kq = d.certificate_new_unreg_drep_cert, Bq = d.certificate_new_update_drep_cert, xq = d.certificate_kind, jq = d.certificate_as_stake_registration, Sq = d.certificate_as_stake_deregistration, Eq = d.certificate_as_stake_delegation, Oq = d.certificate_as_pool_registration, Fq = d.certificate_as_pool_retirement, Aq = d.certificate_as_reg_cert, Tq = d.certificate_as_unreg_cert, Pq = d.certificate_as_vote_deleg_cert, Rq = d.certificate_as_stake_vote_deleg_cert, Uq = d.certificate_as_stake_reg_deleg_cert, Cq = d.certificate_as_vote_reg_deleg_cert, Nq = d.certificate_as_stake_vote_reg_deleg_cert, Mq = d.certificate_as_auth_committee_hot_cert, Lq = d.certificate_as_resign_committee_cold_cert, zq = d.certificate_as_reg_drep_cert, qq = d.certificate_as_unreg_drep_cert, Dq = d.certificate_as_update_drep_cert, Gq = d.__wbg_credential_free, Hq = d.credential_to_cbor_bytes, Kq = d.credential_to_canonical_cbor_bytes, Vq = d.credential_from_cbor_bytes, Zq = d.credential_to_cbor_hex, Yq = d.credential_to_canonical_cbor_hex, Wq = d.credential_from_cbor_hex, Jq = d.credential_to_json, Xq = d.credential_to_js_value, Qq = d.credential_from_json, $q = d.credential_new_pub_key, tD = d.credential_new_script, eD = d.credential_kind, rD = d.credential_as_pub_key, nD = d.credential_as_script, _D = d.__wbg_dnsname_free, aD = d.dnsname_to_cbor_bytes, oD = d.dnsname_to_canonical_cbor_bytes, iD = d.dnsname_from_cbor_bytes, sD = d.dnsname_to_cbor_hex, cD = d.dnsname_to_canonical_cbor_hex, dD = d.dnsname_from_cbor_hex, uD = d.dnsname_to_json, lD = d.dnsname_to_js_value, fD = d.dnsname_from_json, gD = d.dnsname_get, pD = d.__wbg_drep_free, bD = d.drep_to_cbor_bytes, wD = d.drep_to_canonical_cbor_bytes, yD = d.drep_from_cbor_bytes, hD = d.drep_to_cbor_hex, vD = d.drep_to_canonical_cbor_hex, mD = d.drep_from_cbor_hex, ID = d.drep_to_json, kD = d.drep_to_js_value, BD = d.drep_from_json, xD = d.drep_new_key, jD = d.drep_new_script, SD = d.drep_new_always_abstain, ED = d.drep_new_always_no_confidence, OD = d.drep_kind, FD = d.drep_as_key, AD = d.drep_as_script, TD = d.__wbg_ipv4_free, PD = d.ipv4_to_cbor_bytes, RD = d.ipv4_to_canonical_cbor_bytes, UD = d.ipv4_from_cbor_bytes, CD = d.ipv4_to_cbor_hex, ND = d.ipv4_to_canonical_cbor_hex, MD = d.ipv4_from_cbor_hex, LD = d.ipv4_to_json, zD = d.ipv4_to_js_value, qD = d.ipv4_from_json, DD = d.ipv4_get, GD = d.__wbg_ipv6_free, HD = d.ipv6_to_cbor_bytes, KD = d.ipv6_to_canonical_cbor_bytes, VD = d.ipv6_from_cbor_bytes, ZD = d.ipv6_to_cbor_hex, YD = d.ipv6_to_canonical_cbor_hex, WD = d.ipv6_from_cbor_hex, JD = d.ipv6_to_json, XD = d.ipv6_to_js_value, QD = d.ipv6_from_json, $D = d.ipv6_get, tG = d.__wbg_multihostname_free, eG = d.multihostname_to_cbor_bytes, rG = d.multihostname_to_canonical_cbor_bytes, nG = d.multihostname_from_cbor_bytes, _G = d.multihostname_to_cbor_hex, aG = d.multihostname_to_canonical_cbor_hex, oG = d.multihostname_from_cbor_hex, iG = d.multihostname_to_json, sG = d.multihostname_to_js_value, cG = d.multihostname_from_json, dG = d.multihostname_dns_name, uG = d.multihostname_new, lG = d.__wbg_poolmetadata_free, fG = d.poolmetadata_to_cbor_bytes, gG = d.poolmetadata_to_canonical_cbor_bytes, pG = d.poolmetadata_from_cbor_bytes, bG = d.poolmetadata_to_cbor_hex, wG = d.poolmetadata_to_canonical_cbor_hex, yG = d.poolmetadata_from_cbor_hex, hG = d.poolmetadata_to_json, vG = d.poolmetadata_to_js_value, mG = d.poolmetadata_from_json, IG = d.poolmetadata_url, kG = d.poolmetadata_pool_metadata_hash, BG = d.poolmetadata_new, xG = d.__wbg_poolparams_free, jG = d.poolparams_to_cbor_bytes, SG = d.poolparams_to_canonical_cbor_bytes, EG = d.poolparams_from_cbor_bytes, OG = d.poolparams_to_cbor_hex, FG = d.poolparams_to_canonical_cbor_hex, AG = d.poolparams_from_cbor_hex, TG = d.poolparams_to_json, PG = d.poolparams_to_js_value, RG = d.poolparams_from_json, UG = d.poolparams_operator, CG = d.poolparams_vrf_keyhash, NG = d.poolparams_pledge, MG = d.poolparams_cost, LG = d.poolparams_margin, zG = d.poolparams_reward_account, qG = d.poolparams_pool_owners, DG = d.poolparams_relays, GG = d.poolparams_pool_metadata, HG = d.poolparams_new, KG = d.__wbg_poolregistration_free, VG = d.poolregistration_to_cbor_bytes, ZG = d.poolregistration_to_canonical_cbor_bytes, YG = d.poolregistration_from_cbor_bytes, WG = d.poolregistration_to_cbor_hex, JG = d.poolregistration_to_canonical_cbor_hex, XG = d.poolregistration_from_cbor_hex, QG = d.poolregistration_to_json, $G = d.poolregistration_to_js_value, tH = d.poolregistration_from_json, eH = d.poolregistration_pool_params, rH = d.poolregistration_new, nH = d.__wbg_poolretirement_free, _H = d.poolretirement_to_cbor_bytes, aH = d.poolretirement_to_canonical_cbor_bytes, oH = d.poolretirement_from_cbor_bytes, iH = d.poolretirement_to_cbor_hex, sH = d.poolretirement_to_canonical_cbor_hex, cH = d.poolretirement_from_cbor_hex, dH = d.poolretirement_to_json, uH = d.poolretirement_to_js_value, lH = d.poolretirement_from_json, fH = d.poolretirement_pool, gH = d.poolretirement_epoch, pH = d.poolretirement_new, bH = d.__wbg_regcert_free, wH = d.regcert_to_cbor_bytes, yH = d.regcert_to_canonical_cbor_bytes, hH = d.regcert_from_cbor_bytes, vH = d.regcert_to_cbor_hex, mH = d.regcert_to_canonical_cbor_hex, IH = d.regcert_from_cbor_hex, kH = d.regcert_to_json, BH = d.regcert_to_js_value, xH = d.regcert_from_json, jH = d.regcert_stake_credential, SH = d.regcert_deposit, EH = d.regcert_new, OH = d.__wbg_regdrepcert_free, FH = d.regdrepcert_to_cbor_bytes, AH = d.regdrepcert_to_canonical_cbor_bytes, TH = d.regdrepcert_from_cbor_bytes, PH = d.regdrepcert_to_cbor_hex, RH = d.regdrepcert_to_canonical_cbor_hex, UH = d.regdrepcert_from_cbor_hex, CH = d.regdrepcert_to_json, NH = d.regdrepcert_to_js_value, MH = d.regdrepcert_from_json, LH = d.regdrepcert_drep_credential, zH = d.regdrepcert_deposit, qH = d.regdrepcert_anchor, DH = d.regdrepcert_new, GH = d.__wbg_relay_free, HH = d.relay_to_cbor_bytes, KH = d.relay_to_canonical_cbor_bytes, VH = d.relay_from_cbor_bytes, ZH = d.relay_to_cbor_hex, YH = d.relay_to_canonical_cbor_hex, WH = d.relay_from_cbor_hex, JH = d.relay_to_json, XH = d.relay_to_js_value, QH = d.relay_from_json, $H = d.relay_new_single_host_addr, tK = d.relay_new_single_host_name, eK = d.relay_new_multi_host_name, rK = d.relay_kind, nK = d.relay_as_single_host_addr, _K = d.relay_as_single_host_name, aK = d.relay_as_multi_host_name, oK = d.__wbg_resigncommitteecoldcert_free, iK = d.resigncommitteecoldcert_to_cbor_bytes, sK = d.resigncommitteecoldcert_to_canonical_cbor_bytes, cK = d.resigncommitteecoldcert_from_cbor_bytes, dK = d.resigncommitteecoldcert_to_cbor_hex, uK = d.resigncommitteecoldcert_to_canonical_cbor_hex, lK = d.resigncommitteecoldcert_from_cbor_hex, fK = d.resigncommitteecoldcert_to_json, gK = d.resigncommitteecoldcert_to_js_value, pK = d.resigncommitteecoldcert_from_json, bK = d.resigncommitteecoldcert_committee_cold_credential, wK = d.resigncommitteecoldcert_anchor, yK = d.resigncommitteecoldcert_new, hK = d.__wbg_singlehostaddr_free, vK = d.singlehostaddr_to_cbor_bytes, mK = d.singlehostaddr_to_canonical_cbor_bytes, IK = d.singlehostaddr_from_cbor_bytes, kK = d.singlehostaddr_to_cbor_hex, BK = d.singlehostaddr_to_canonical_cbor_hex, xK = d.singlehostaddr_from_cbor_hex, jK = d.singlehostaddr_to_json, SK = d.singlehostaddr_to_js_value, EK = d.singlehostaddr_from_json, OK = d.singlehostaddr_port, FK = d.singlehostaddr_ipv4, AK = d.singlehostaddr_ipv6, TK = d.singlehostaddr_new, PK = d.__wbg_singlehostname_free, RK = d.singlehostname_to_cbor_bytes, UK = d.singlehostname_to_canonical_cbor_bytes, CK = d.singlehostname_from_cbor_bytes, NK = d.singlehostname_to_cbor_hex, MK = d.singlehostname_to_canonical_cbor_hex, LK = d.singlehostname_from_cbor_hex, zK = d.singlehostname_to_json, qK = d.singlehostname_to_js_value, DK = d.singlehostname_from_json, GK = d.singlehostname_port, HK = d.singlehostname_dns_name, KK = d.singlehostname_new, VK = d.__wbg_stakedelegation_free, ZK = d.stakedelegation_to_cbor_bytes, YK = d.stakedelegation_to_canonical_cbor_bytes, WK = d.stakedelegation_from_cbor_bytes, JK = d.stakedelegation_to_cbor_hex, XK = d.stakedelegation_to_canonical_cbor_hex, QK = d.stakedelegation_from_cbor_hex, $K = d.stakedelegation_to_json, tV = d.stakedelegation_to_js_value, eV = d.stakedelegation_from_json, rV = d.stakedelegation_stake_credential, nV = d.stakedelegation_pool, _V = d.stakedelegation_new, aV = d.__wbg_stakederegistration_free, oV = d.stakederegistration_to_cbor_bytes, iV = d.stakederegistration_to_canonical_cbor_bytes, sV = d.stakederegistration_from_cbor_bytes, cV = d.stakederegistration_to_cbor_hex, dV = d.stakederegistration_to_canonical_cbor_hex, uV = d.stakederegistration_from_cbor_hex, lV = d.stakederegistration_to_json, fV = d.stakederegistration_to_js_value, gV = d.stakederegistration_from_json, pV = d.stakederegistration_stake_credential, bV = d.stakederegistration_new, wV = d.__wbg_stakeregdelegcert_free, yV = d.stakeregdelegcert_to_cbor_bytes, hV = d.stakeregdelegcert_to_canonical_cbor_bytes, vV = d.stakeregdelegcert_from_cbor_bytes, mV = d.stakeregdelegcert_to_cbor_hex, IV = d.stakeregdelegcert_to_canonical_cbor_hex, kV = d.stakeregdelegcert_from_cbor_hex, BV = d.stakeregdelegcert_to_json, xV = d.stakeregdelegcert_to_js_value, jV = d.stakeregdelegcert_from_json, SV = d.stakeregdelegcert_stake_credential, EV = d.stakeregdelegcert_pool, OV = d.stakeregdelegcert_deposit, FV = d.stakeregdelegcert_new, AV = d.__wbg_stakeregistration_free, TV = d.stakeregistration_to_cbor_bytes, PV = d.stakeregistration_to_canonical_cbor_bytes, RV = d.stakeregistration_from_cbor_bytes, UV = d.stakeregistration_to_cbor_hex, CV = d.stakeregistration_to_canonical_cbor_hex, NV = d.stakeregistration_from_cbor_hex, MV = d.stakeregistration_to_json, LV = d.stakeregistration_to_js_value, zV = d.stakeregistration_from_json, qV = d.stakeregistration_stake_credential, DV = d.stakeregistration_new, GV = d.__wbg_stakevotedelegcert_free, HV = d.stakevotedelegcert_to_cbor_bytes, KV = d.stakevotedelegcert_to_canonical_cbor_bytes, VV = d.stakevotedelegcert_from_cbor_bytes, ZV = d.stakevotedelegcert_to_cbor_hex, YV = d.stakevotedelegcert_to_canonical_cbor_hex, WV = d.stakevotedelegcert_from_cbor_hex, JV = d.stakevotedelegcert_to_json, XV = d.stakevotedelegcert_to_js_value, QV = d.stakevotedelegcert_from_json, $V = d.stakevotedelegcert_stake_credential, tZ = d.stakevotedelegcert_pool, eZ = d.stakevotedelegcert_d_rep, rZ = d.stakevotedelegcert_new, nZ = d.__wbg_stakevoteregdelegcert_free, _Z = d.stakevoteregdelegcert_to_cbor_bytes, aZ = d.stakevoteregdelegcert_to_canonical_cbor_bytes, oZ = d.stakevoteregdelegcert_from_cbor_bytes, iZ = d.stakevoteregdelegcert_to_cbor_hex, sZ = d.stakevoteregdelegcert_to_canonical_cbor_hex, cZ = d.stakevoteregdelegcert_from_cbor_hex, dZ = d.stakevoteregdelegcert_to_json, uZ = d.stakevoteregdelegcert_to_js_value, lZ = d.stakevoteregdelegcert_from_json, fZ = d.stakevoteregdelegcert_stake_credential, gZ = d.stakevoteregdelegcert_pool, pZ = d.stakevoteregdelegcert_d_rep, bZ = d.stakevoteregdelegcert_deposit, wZ = d.stakevoteregdelegcert_new, yZ = d.__wbg_unregcert_free, hZ = d.unregcert_to_cbor_bytes, vZ = d.unregcert_to_canonical_cbor_bytes, mZ = d.unregcert_from_cbor_bytes, IZ = d.unregcert_to_cbor_hex, kZ = d.unregcert_to_canonical_cbor_hex, BZ = d.unregcert_from_cbor_hex, xZ = d.unregcert_to_json, jZ = d.unregcert_to_js_value, SZ = d.unregcert_from_json, EZ = d.unregcert_stake_credential, OZ = d.unregcert_deposit, FZ = d.unregcert_new, AZ = d.__wbg_unregdrepcert_free, TZ = d.unregdrepcert_to_cbor_bytes, PZ = d.unregdrepcert_to_canonical_cbor_bytes, RZ = d.unregdrepcert_from_cbor_bytes, UZ = d.unregdrepcert_to_cbor_hex, CZ = d.unregdrepcert_to_canonical_cbor_hex, NZ = d.unregdrepcert_from_cbor_hex, MZ = d.unregdrepcert_to_json, LZ = d.unregdrepcert_to_js_value, zZ = d.unregdrepcert_from_json, qZ = d.unregdrepcert_drep_credential, DZ = d.unregdrepcert_deposit, GZ = d.unregdrepcert_new, HZ = d.__wbg_updatedrepcert_free, KZ = d.updatedrepcert_to_cbor_bytes, VZ = d.updatedrepcert_to_canonical_cbor_bytes, ZZ = d.updatedrepcert_from_cbor_bytes, YZ = d.updatedrepcert_to_cbor_hex, WZ = d.updatedrepcert_to_canonical_cbor_hex, JZ = d.updatedrepcert_from_cbor_hex, XZ = d.updatedrepcert_to_json, QZ = d.updatedrepcert_to_js_value, $Z = d.updatedrepcert_from_json, tY = d.updatedrepcert_drep_credential, eY = d.updatedrepcert_anchor, rY = d.updatedrepcert_new, nY = d.__wbg_url_free, _Y = d.url_to_cbor_bytes, aY = d.url_to_canonical_cbor_bytes, oY = d.url_from_cbor_bytes, iY = d.url_to_cbor_hex, sY = d.url_to_canonical_cbor_hex, cY = d.url_from_cbor_hex, dY = d.url_to_json, uY = d.url_to_js_value, lY = d.url_from_json, fY = d.url_get, gY = d.__wbg_votedelegcert_free, pY = d.votedelegcert_to_cbor_bytes, bY = d.votedelegcert_to_canonical_cbor_bytes, wY = d.votedelegcert_from_cbor_bytes, yY = d.votedelegcert_to_cbor_hex, hY = d.votedelegcert_to_canonical_cbor_hex, vY = d.votedelegcert_from_cbor_hex, mY = d.votedelegcert_to_json, IY = d.votedelegcert_to_js_value, kY = d.votedelegcert_from_json, BY = d.votedelegcert_stake_credential, xY = d.votedelegcert_d_rep, jY = d.votedelegcert_new, SY = d.__wbg_voteregdelegcert_free, EY = d.voteregdelegcert_to_cbor_bytes, OY = d.voteregdelegcert_to_canonical_cbor_bytes, FY = d.voteregdelegcert_from_cbor_bytes, AY = d.voteregdelegcert_to_cbor_hex, TY = d.voteregdelegcert_to_canonical_cbor_hex, PY = d.voteregdelegcert_from_cbor_hex, RY = d.voteregdelegcert_to_json, UY = d.voteregdelegcert_to_js_value, CY = d.voteregdelegcert_from_json, NY = d.voteregdelegcert_stake_credential, MY = d.voteregdelegcert_d_rep, LY = d.voteregdelegcert_deposit, zY = d.voteregdelegcert_new, qY = d.__wbg_bootstrapwitness_free, DY = d.bootstrapwitness_to_cbor_bytes, GY = d.bootstrapwitness_to_canonical_cbor_bytes, HY = d.bootstrapwitness_from_cbor_bytes, KY = d.bootstrapwitness_to_cbor_hex, VY = d.bootstrapwitness_to_canonical_cbor_hex, ZY = d.bootstrapwitness_from_cbor_hex, YY = d.bootstrapwitness_to_json, WY = d.bootstrapwitness_to_js_value, JY = d.bootstrapwitness_from_json, XY = d.bootstrapwitness_public_key, QY = d.bootstrapwitness_signature, $Y = d.bootstrapwitness_chain_code, tW = d.bootstrapwitness_attributes, eW = d.bootstrapwitness_new, rW = d.__wbg_kessignature_free, nW = d.kessignature_to_cbor_bytes, _W = d.kessignature_to_canonical_cbor_bytes, aW = d.kessignature_from_cbor_bytes, oW = d.kessignature_to_cbor_hex, iW = d.kessignature_to_canonical_cbor_hex, sW = d.kessignature_from_cbor_hex, cW = d.kessignature_to_json, dW = d.kessignature_to_js_value, uW = d.kessignature_from_json, lW = d.kessignature_get, fW = d.__wbg_nonce_free, gW = d.nonce_to_cbor_bytes, pW = d.nonce_to_canonical_cbor_bytes, bW = d.nonce_from_cbor_bytes, wW = d.nonce_to_cbor_hex, yW = d.nonce_to_canonical_cbor_hex, hW = d.nonce_from_cbor_hex, vW = d.nonce_to_json, mW = d.nonce_to_js_value, IW = d.nonce_from_json, kW = d.nonce_new_identity, BW = d.nonce_new_hash, xW = d.nonce_kind, jW = d.nonce_as_hash, SW = d.__wbg_vrfcert_free, EW = d.vrfcert_to_cbor_bytes, OW = d.vrfcert_to_canonical_cbor_bytes, FW = d.vrfcert_from_cbor_bytes, AW = d.vrfcert_to_cbor_hex, TW = d.vrfcert_to_canonical_cbor_hex, PW = d.vrfcert_from_cbor_hex, RW = d.vrfcert_to_json, UW = d.vrfcert_to_js_value, CW = d.vrfcert_from_json, NW = d.vrfcert_output, MW = d.vrfcert_proof, LW = d.vrfcert_new, zW = d.__wbg_vkeywitness_free, qW = d.vkeywitness_to_cbor_bytes, DW = d.vkeywitness_to_canonical_cbor_bytes, GW = d.vkeywitness_from_cbor_bytes, HW = d.vkeywitness_to_cbor_hex, KW = d.vkeywitness_to_canonical_cbor_hex, VW = d.vkeywitness_from_cbor_hex, ZW = d.vkeywitness_to_json, YW = d.vkeywitness_to_js_value, WW = d.vkeywitness_from_json, JW = d.vkeywitness_vkey, XW = d.vkeywitness_ed25519_signature, QW = d.vkeywitness_new, $W = d.__wbg_networkinfo_free, tJ = d.networkinfo_new, eJ = d.networkinfo_network_id, rJ = d.networkinfo_protocol_magic, nJ = d.networkinfo_testnet, _J = d.networkinfo_mainnet, aJ = d.networkinfo_preview, oJ = d.networkinfo_preprod, iJ = d.networkinfo_sancho_testnet, sJ = d.__wbg_block_free, cJ = d.block_to_cbor_bytes, dJ = d.block_to_canonical_cbor_bytes, uJ = d.block_from_cbor_bytes, lJ = d.block_to_cbor_hex, fJ = d.block_to_canonical_cbor_hex, gJ = d.block_from_cbor_hex, pJ = d.block_to_json, bJ = d.block_to_js_value, wJ = d.block_from_json, yJ = d.block_header, hJ = d.block_transaction_bodies, vJ = d.block_transaction_witness_sets, mJ = d.block_auxiliary_data_set, IJ = d.block_invalid_transactions, kJ = d.block_new, BJ = d.__wbg_header_free, xJ = d.header_to_cbor_bytes, jJ = d.header_to_canonical_cbor_bytes, SJ = d.header_from_cbor_bytes, EJ = d.header_to_cbor_hex, OJ = d.header_to_canonical_cbor_hex, FJ = d.header_from_cbor_hex, AJ = d.header_to_json, TJ = d.header_to_js_value, PJ = d.header_from_json, RJ = d.header_header_body, UJ = d.header_body_signature, CJ = d.header_new, NJ = d.__wbg_headerbody_free, MJ = d.headerbody_to_cbor_bytes, LJ = d.headerbody_to_canonical_cbor_bytes, zJ = d.headerbody_from_cbor_bytes, qJ = d.headerbody_to_cbor_hex, DJ = d.headerbody_to_canonical_cbor_hex, GJ = d.headerbody_from_cbor_hex, HJ = d.headerbody_to_json, KJ = d.headerbody_to_js_value, VJ = d.headerbody_from_json, ZJ = d.headerbody_block_number, YJ = d.headerbody_slot, WJ = d.headerbody_prev_hash, JJ = d.headerbody_issuer_vkey, XJ = d.headerbody_vrf_vkey, QJ = d.headerbody_vrf_result, $J = d.headerbody_block_body_size, tX = d.headerbody_block_body_hash, eX = d.headerbody_operational_cert, rX = d.headerbody_protocol_version, nX = d.headerbody_new, _X = d.__wbg_operationalcert_free, aX = d.operationalcert_to_cbor_bytes, oX = d.operationalcert_to_canonical_cbor_bytes, iX = d.operationalcert_from_cbor_bytes, sX = d.operationalcert_to_cbor_hex, cX = d.operationalcert_to_canonical_cbor_hex, dX = d.operationalcert_from_cbor_hex, uX = d.operationalcert_to_json, lX = d.operationalcert_to_js_value, fX = d.operationalcert_from_json, gX = d.operationalcert_hot_vkey, pX = d.operationalcert_sequence_number, bX = d.operationalcert_kes_period, wX = d.operationalcert_sigma, yX = d.operationalcert_new, hX = d.__wbg_protocolversion_free, vX = d.protocolversion_to_cbor_bytes, mX = d.protocolversion_to_canonical_cbor_bytes, IX = d.protocolversion_from_cbor_bytes, kX = d.protocolversion_to_cbor_hex, BX = d.protocolversion_to_canonical_cbor_hex, xX = d.protocolversion_from_cbor_hex, jX = d.protocolversion_to_json, SX = d.protocolversion_to_js_value, EX = d.protocolversion_from_json, OX = d.protocolversion_major, FX = d.protocolversion_minor, AX = d.protocolversion_new, TX = d.__wbg_assetnamelist_free, PX = d.assetnamelist_new, RX = d.assetnamelist_len, UX = d.assetnamelist_get, CX = d.assetnamelist_add, NX = d.__wbg_bootstrapwitnesslist_free, MX = d.bootstrapwitnesslist_new, LX = d.bootstrapwitnesslist_len, zX = d.bootstrapwitnesslist_get, qX = d.bootstrapwitnesslist_add, DX = d.__wbg_certificatelist_free, GX = d.certificatelist_new, HX = d.certificatelist_len, KX = d.certificatelist_get, VX = d.certificatelist_add, ZX = d.__wbg_committeecoldcredentiallist_free, YX = d.committeecoldcredentiallist_new, WX = d.committeecoldcredentiallist_len, JX = d.committeecoldcredentiallist_get, XX = d.committeecoldcredentiallist_add, QX = d.__wbg_drepvotingthresholds_free, $X = d.drepvotingthresholds_to_cbor_bytes, tQ = d.drepvotingthresholds_to_canonical_cbor_bytes, eQ = d.drepvotingthresholds_from_cbor_bytes, rQ = d.drepvotingthresholds_to_cbor_hex, nQ = d.drepvotingthresholds_to_canonical_cbor_hex, _Q = d.drepvotingthresholds_from_cbor_hex, aQ = d.drepvotingthresholds_to_json, oQ = d.drepvotingthresholds_to_js_value, iQ = d.drepvotingthresholds_from_json, sQ = d.drepvotingthresholds_motion_no_confidence, cQ = d.drepvotingthresholds_committee_normal, dQ = d.drepvotingthresholds_committee_no_confidence, uQ = d.drepvotingthresholds_update_constitution, lQ = d.drepvotingthresholds_hard_fork_initiation, fQ = d.drepvotingthresholds_pp_network_group, gQ = d.drepvotingthresholds_pp_economic_group, pQ = d.drepvotingthresholds_pp_technical_group, bQ = d.drepvotingthresholds_pp_governance_group, wQ = d.drepvotingthresholds_treasury_withdrawal, yQ = d.drepvotingthresholds_new, hQ = d.__wbg_ed25519keyhashlist_free, vQ = d.ed25519keyhashlist_new, mQ = d.ed25519keyhashlist_len, IQ = d.ed25519keyhashlist_get, kQ = d.ed25519keyhashlist_add, BQ = d.__wbg_govactionidlist_free, xQ = d.govactionidlist_new, jQ = d.govactionidlist_len, SQ = d.govactionidlist_get, EQ = d.govactionidlist_add, OQ = d.__wbg_intlist_free, FQ = d.intlist_new, AQ = d.intlist_len, TQ = d.intlist_get, PQ = d.intlist_add, RQ = d.__wbg_legacyredeemerlist_free, UQ = d.legacyredeemerlist_new, CQ = d.legacyredeemerlist_len, NQ = d.legacyredeemerlist_get, MQ = d.legacyredeemerlist_add, LQ = d.__wbg_mapassetnametononzeroint64_free, zQ = d.mapassetnametononzeroint64_new, qQ = d.mapassetnametononzeroint64_len, DQ = d.mapassetnametononzeroint64_insert, GQ = d.mapassetnametononzeroint64_get, HQ = d.mapassetnametononzeroint64_keys, KQ = d.__wbg_mapassetnametou64_free, VQ = d.mapassetnametou64_new, ZQ = d.mapassetnametou64_len, YQ = d.mapassetnametou64_insert, WQ = d.mapassetnametou64_get, JQ = d.mapassetnametou64_keys, XQ = d.__wbg_mapcommitteecoldcredentialtoepoch_free, QQ = d.mapcommitteecoldcredentialtoepoch_new, $Q = d.mapcommitteecoldcredentialtoepoch_len, t$ = d.mapcommitteecoldcredentialtoepoch_insert, e$ = d.mapcommitteecoldcredentialtoepoch_get, r$ = d.mapcommitteecoldcredentialtoepoch_keys, n$ = d.__wbg_mapgovactionidtovotingprocedure_free, _$ = d.mapgovactionidtovotingprocedure_new, a$ = d.mapgovactionidtovotingprocedure_len, o$ = d.mapgovactionidtovotingprocedure_insert, i$ = d.mapgovactionidtovotingprocedure_get, s$ = d.mapgovactionidtovotingprocedure_keys, c$ = d.__wbg_mapplutusdatatoplutusdata_free, d$ = d.mapplutusdatatoplutusdata_new, u$ = d.mapplutusdatatoplutusdata_len, l$ = d.mapplutusdatatoplutusdata_insert, f$ = d.mapplutusdatatoplutusdata_get, g$ = d.mapplutusdatatoplutusdata_keys, p$ = d.__wbg_mapredeemerkeytoredeemerval_free, b$ = d.mapredeemerkeytoredeemerval_new, w$ = d.mapredeemerkeytoredeemerval_len, y$ = d.mapredeemerkeytoredeemerval_insert, h$ = d.mapredeemerkeytoredeemerval_get, v$ = d.mapredeemerkeytoredeemerval_keys, m$ = d.__wbg_maprewardaccounttocoin_free, I$ = d.maprewardaccounttocoin_new, k$ = d.maprewardaccounttocoin_len, B$ = d.maprewardaccounttocoin_insert, x$ = d.maprewardaccounttocoin_get, j$ = d.maprewardaccounttocoin_keys, S$ = d.__wbg_mapstakecredentialtodeltacoin_free, E$ = d.mapstakecredentialtodeltacoin_new, O$ = d.mapstakecredentialtodeltacoin_len, F$ = d.mapstakecredentialtodeltacoin_insert, A$ = d.mapstakecredentialtodeltacoin_get, T$ = d.mapstakecredentialtodeltacoin_keys, P$ = d.__wbg_maptransactionindextoauxiliarydata_free, R$ = d.maptransactionindextoauxiliarydata_new, U$ = d.maptransactionindextoauxiliarydata_len, C$ = d.maptransactionindextoauxiliarydata_insert, N$ = d.maptransactionindextoauxiliarydata_get, M$ = d.maptransactionindextoauxiliarydata_keys, L$ = d.__wbg_maptransactionmetadatumtotransactionmetadatum_free, z$ = d.maptransactionmetadatumtotransactionmetadatum_new, q$ = d.maptransactionmetadatumtotransactionmetadatum_len, D$ = d.maptransactionmetadatumtotransactionmetadatum_insert, G$ = d.maptransactionmetadatumtotransactionmetadatum_get, H$ = d.maptransactionmetadatumtotransactionmetadatum_keys, K$ = d.__wbg_nativescriptlist_free, V$ = d.nativescriptlist_new, Z$ = d.nativescriptlist_len, Y$ = d.nativescriptlist_get, W$ = d.nativescriptlist_add, J$ = d.__wbg_plutusdatalist_free, X$ = d.plutusdatalist_new, Q$ = d.plutusdatalist_len, $$ = d.plutusdatalist_get, ttt = d.plutusdatalist_add, ett = d.__wbg_plutusv1scriptlist_free, rtt = d.plutusv1scriptlist_new, ntt = d.plutusv1scriptlist_len, _tt = d.plutusv1scriptlist_get, att = d.plutusv1scriptlist_add, ott = d.__wbg_plutusv2scriptlist_free, itt = d.plutusv2scriptlist_new, stt = d.plutusv2scriptlist_len, ctt = d.plutusv2scriptlist_get, dtt = d.plutusv2scriptlist_add, utt = d.__wbg_plutusv3scriptlist_free, ltt = d.plutusv3scriptlist_new, ftt = d.plutusv3scriptlist_len, gtt = d.plutusv3scriptlist_get, ptt = d.plutusv3scriptlist_add, btt = d.__wbg_policyidlist_free, wtt = d.policyidlist_new, ytt = d.policyidlist_len, htt = d.policyidlist_get, vtt = d.policyidlist_add, mtt = d.__wbg_poolvotingthresholds_free, Itt = d.poolvotingthresholds_to_cbor_bytes, ktt = d.poolvotingthresholds_to_canonical_cbor_bytes, Btt = d.poolvotingthresholds_from_cbor_bytes, xtt = d.poolvotingthresholds_to_cbor_hex, jtt = d.poolvotingthresholds_to_canonical_cbor_hex, Stt = d.poolvotingthresholds_from_cbor_hex, Ett = d.poolvotingthresholds_to_json, Ott = d.poolvotingthresholds_to_js_value, Ftt = d.poolvotingthresholds_from_json, Att = d.poolvotingthresholds_motion_no_confidence, Ttt = d.poolvotingthresholds_committee_normal, Ptt = d.poolvotingthresholds_committee_no_confidence, Rtt = d.poolvotingthresholds_hard_fork_initiation, Utt = d.poolvotingthresholds_security_relevant_parameter_voting_threshold, Ctt = d.poolvotingthresholds_new, Ntt = d.__wbg_proposalprocedurelist_free, Mtt = d.proposalprocedurelist_new, Ltt = d.proposalprocedurelist_len, ztt = d.proposalprocedurelist_get, qtt = d.proposalprocedurelist_add, Dtt = d.__wbg_protocolparamupdate_free, Gtt = d.protocolparamupdate_to_cbor_bytes, Htt = d.protocolparamupdate_to_canonical_cbor_bytes, Ktt = d.protocolparamupdate_from_cbor_bytes, Vtt = d.protocolparamupdate_to_cbor_hex, Ztt = d.protocolparamupdate_to_canonical_cbor_hex, Ytt = d.protocolparamupdate_from_cbor_hex, Wtt = d.protocolparamupdate_to_json, Jtt = d.protocolparamupdate_to_js_value, Xtt = d.protocolparamupdate_from_json, Qtt = d.protocolparamupdate_set_minfee_a, $tt = d.protocolparamupdate_minfee_a, tet = d.protocolparamupdate_set_minfee_b, eet = d.protocolparamupdate_minfee_b, ret = d.protocolparamupdate_set_max_block_body_size, net = d.protocolparamupdate_max_block_body_size, _et = d.protocolparamupdate_set_max_transaction_size, aet = d.protocolparamupdate_max_transaction_size, oet = d.protocolparamupdate_set_max_block_header_size, iet = d.protocolparamupdate_max_block_header_size, set = d.protocolparamupdate_set_key_deposit, cet = d.protocolparamupdate_key_deposit, det = d.protocolparamupdate_set_pool_deposit, uet = d.protocolparamupdate_pool_deposit, fet = d.protocolparamupdate_set_maximum_epoch, get = d.protocolparamupdate_maximum_epoch, pet = d.protocolparamupdate_set_n_opt, bet = d.protocolparamupdate_n_opt, wet = d.protocolparamupdate_set_pool_pledge_influence, yet = d.protocolparamupdate_pool_pledge_influence, het = d.protocolparamupdate_set_expansion_rate, vet = d.protocolparamupdate_expansion_rate, met = d.protocolparamupdate_set_treasury_growth_rate, Iet = d.protocolparamupdate_treasury_growth_rate, ket = d.protocolparamupdate_set_min_pool_cost, Bet = d.protocolparamupdate_min_pool_cost, xet = d.protocolparamupdate_set_ada_per_utxo_byte, jet = d.protocolparamupdate_ada_per_utxo_byte, Eet = d.protocolparamupdate_set_cost_models_for_script_languages, Oet = d.protocolparamupdate_cost_models_for_script_languages, Fet = d.protocolparamupdate_set_execution_costs, Aet = d.protocolparamupdate_execution_costs, Tet = d.protocolparamupdate_set_max_tx_ex_units, Pet = d.protocolparamupdate_max_tx_ex_units, Ret = d.protocolparamupdate_set_max_block_ex_units, Uet = d.protocolparamupdate_max_block_ex_units, Cet = d.protocolparamupdate_set_max_value_size, Net = d.protocolparamupdate_max_value_size, Met = d.protocolparamupdate_set_collateral_percentage, Let = d.protocolparamupdate_collateral_percentage, zet = d.protocolparamupdate_set_max_collateral_inputs, qet = d.protocolparamupdate_max_collateral_inputs, Det = d.protocolparamupdate_set_pool_voting_thresholds, Get = d.protocolparamupdate_pool_voting_thresholds, Het = d.protocolparamupdate_set_d_rep_voting_thresholds, Ket = d.protocolparamupdate_d_rep_voting_thresholds, Vet = d.protocolparamupdate_set_min_committee_size, Zet = d.protocolparamupdate_min_committee_size, Yet = d.protocolparamupdate_set_committee_term_limit, Wet = d.protocolparamupdate_committee_term_limit, Jet = d.protocolparamupdate_set_governance_action_validity_period, Xet = d.protocolparamupdate_governance_action_validity_period, Qet = d.protocolparamupdate_set_governance_action_deposit, $et = d.protocolparamupdate_governance_action_deposit, trt = d.protocolparamupdate_set_d_rep_deposit, ert = d.protocolparamupdate_d_rep_deposit, rrt = d.protocolparamupdate_set_d_rep_inactivity_period, nrt = d.protocolparamupdate_d_rep_inactivity_period, _rt = d.protocolparamupdate_set_min_fee_ref_script_cost_per_byte, art = d.protocolparamupdate_min_fee_ref_script_cost_per_byte, ort = d.protocolparamupdate_new, irt = d.__wbg_rational_free, srt = d.rational_to_cbor_bytes, crt = d.rational_to_canonical_cbor_bytes, drt = d.rational_from_cbor_bytes, urt = d.rational_to_cbor_hex, lrt = d.rational_to_canonical_cbor_hex, frt = d.rational_from_cbor_hex, grt = d.rational_to_json, prt = d.rational_to_js_value, brt = d.rational_from_json, wrt = d.rational_numerator, yrt = d.rational_denominator, hrt = d.rational_new, vrt = d.__wbg_redeemerkeylist_free, mrt = d.redeemerkeylist_new, Irt = d.redeemerkeylist_len, krt = d.redeemerkeylist_get, Brt = d.redeemerkeylist_add, xrt = d.__wbg_relaylist_free, jrt = d.relaylist_new, Srt = d.relaylist_len, Ert = d.relaylist_get, Ort = d.relaylist_add, Frt = d.__wbg_rewardaccountlist_free, Art = d.rewardaccountlist_new, Trt = d.rewardaccountlist_len, Prt = d.rewardaccountlist_get, Rrt = d.rewardaccountlist_add, Urt = d.__wbg_script_free, Crt = d.script_to_cbor_bytes, Nrt = d.script_to_canonical_cbor_bytes, Mrt = d.script_from_cbor_bytes, Lrt = d.script_to_cbor_hex, zrt = d.script_to_canonical_cbor_hex, qrt = d.script_from_cbor_hex, Drt = d.script_to_json, Grt = d.script_to_js_value, Hrt = d.script_from_json, Krt = d.script_new_native, Vrt = d.script_new_plutus_v1, Zrt = d.script_new_plutus_v2, Yrt = d.script_new_plutus_v3, Wrt = d.script_kind, Jrt = d.script_as_native, Xrt = d.script_as_plutus_v1, Qrt = d.script_as_plutus_v2, $rt = d.script_as_plutus_v3, tnt = d.__wbg_stakecredentiallist_free, ent = d.stakecredentiallist_new, rnt = d.stakecredentiallist_len, nnt = d.stakecredentiallist_get, _nt = d.stakecredentiallist_add, ant = d.__wbg_transactionbodylist_free, ont = d.transactionbodylist_new, int = d.transactionbodylist_len, snt = d.transactionbodylist_get, cnt = d.transactionbodylist_add, dnt = d.__wbg_transactioninputlist_free, unt = d.transactioninputlist_new, lnt = d.transactioninputlist_len, fnt = d.transactioninputlist_get, gnt = d.transactioninputlist_add, pnt = d.__wbg_transactionoutputlist_free, bnt = d.transactionoutputlist_new, wnt = d.transactionoutputlist_len, ynt = d.transactionoutputlist_get, hnt = d.transactionoutputlist_add, vnt = d.__wbg_transactionwitnesssetlist_free, mnt = d.transactionwitnesssetlist_new, Int = d.transactionwitnesssetlist_len, knt = d.transactionwitnesssetlist_get, Bnt = d.transactionwitnesssetlist_add, xnt = d.__wbg_unitinterval_free, jnt = d.unitinterval_to_cbor_bytes, Snt = d.unitinterval_to_canonical_cbor_bytes, Ent = d.unitinterval_from_cbor_bytes, Ont = d.unitinterval_to_cbor_hex, Fnt = d.unitinterval_to_canonical_cbor_hex, Ant = d.unitinterval_from_cbor_hex, Tnt = d.unitinterval_to_json, Pnt = d.unitinterval_to_js_value, Rnt = d.unitinterval_from_json, Unt = d.unitinterval_start, Cnt = d.unitinterval_end, Nnt = d.unitinterval_new, Mnt = d.__wbg_vkeywitnesslist_free, Lnt = d.vkeywitnesslist_new, znt = d.vkeywitnesslist_len, qnt = d.vkeywitnesslist_get, Dnt = d.vkeywitnesslist_add, Gnt = d.__wbg_voterlist_free, Hnt = d.voterlist_new, Knt = d.voterlist_len, Vnt = d.voterlist_get, Znt = d.voterlist_add, Ynt = d.__wbg_address_free, Wnt = d.address_to_json, Jnt = d.address_to_js_value, Xnt = d.address_from_json, Qnt = d.address_header, $nt = d.address_header_matches_kind, t_t = d.address_to_bech32, e_t = d.address_from_bech32, r_t = d.address_is_valid_bech32, n_t = d.address_is_valid, __t = d.address_network_id, a_t = d.address_payment_cred, o_t = d.address_staking_cred, i_t = d.address_kind, s_t = d.address_to_raw_bytes, c_t = d.address_from_raw_bytes, d_t = d.address_to_hex, u_t = d.address_from_hex, l_t = d.__wbg_baseaddress_free, f_t = d.baseaddress_new, g_t = d.baseaddress_to_address, p_t = d.baseaddress_from_address, b_t = d.baseaddress_network_id, w_t = d.baseaddress_payment, y_t = d.baseaddress_stake, h_t = d.__wbg_enterpriseaddress_free, v_t = d.enterpriseaddress_new, m_t = d.enterpriseaddress_to_address, I_t = d.enterpriseaddress_from_address, k_t = d.enterpriseaddress_network_id, B_t = d.enterpriseaddress_payment, x_t = d.__wbg_pointer_free, j_t = d.__wbg_pointeraddress_free, S_t = d.pointeraddress_new, E_t = d.pointeraddress_to_address, O_t = d.pointeraddress_from_address, F_t = d.pointeraddress_network_id, A_t = d.pointeraddress_payment, T_t = d.pointeraddress_stake, P_t = d.__wbg_rewardaddress_free, R_t = d.rewardaddress_to_json, U_t = d.rewardaddress_to_js_value, C_t = d.rewardaddress_from_json, N_t = d.rewardaddress_new, M_t = d.rewardaddress_to_address, L_t = d.rewardaddress_from_address, z_t = d.rewardaddress_network_id, q_t = d.rewardaddress_payment, D_t = d.__wbg_withdrawalbuilderresult_free, G_t = d.__wbg_singlewithdrawalbuilder_free, H_t = d.singlewithdrawalbuilder_new, K_t = d.singlewithdrawalbuilder_payment_key, V_t = d.singlewithdrawalbuilder_native_script, Z_t = d.singlewithdrawalbuilder_plutus_script, Y_t = d.__wbg_assetname_free, W_t = d.assetname_to_cbor_bytes, J_t = d.assetname_to_canonical_cbor_bytes, X_t = d.assetname_from_cbor_bytes, Q_t = d.assetname_to_cbor_hex, $_t = d.assetname_to_canonical_cbor_hex, tat = d.assetname_from_cbor_hex, eat = d.assetname_to_json, rat = d.assetname_to_js_value, nat = d.assetname_from_json, _at = d.__wbg_metadatumlist_free, aat = d.metadatumlist_new, oat = d.metadatumlist_len, iat = d.metadatumlist_get, sat = d.metadatumlist_add, cat = d.__wbg_transactionmetadatumlabels_free, dat = d.transactionmetadatumlabels_new, uat = d.transactionmetadatumlabels_len, lat = d.transactionmetadatumlabels_get, fat = d.transactionmetadatumlabels_add, gat = d.__wbg_metadatummap_free, pat = d.metadatummap_new, bat = d.metadatummap_len, wat = d.metadatummap_set, yat = d.metadatummap_get, hat = d.metadatummap_get_all, vat = d.metadatummap_keys, mat = d.__wbg_transactionmetadatumlist_free, Iat = d.transactionmetadatumlist_new, kat = d.transactionmetadatumlist_len, Bat = d.transactionmetadatumlist_get, xat = d.transactionmetadatumlist_add, jat = d.__wbg_metadata_free, Sat = d.metadata_new, Eat = d.metadata_len, Oat = d.metadata_set, Fat = d.metadata_get, Aat = d.metadata_get_all, Tat = d.metadata_labels, Pat = d.__wbg_transactionmetadatum_free, Rat = d.transactionmetadatum_to_cbor_bytes, Uat = d.transactionmetadatum_from_cbor_bytes, Cat = d.transactionmetadatum_to_json, Nat = d.transactionmetadatum_to_json_value, Mat = d.transactionmetadatum_from_json, Lat = d.transactionmetadatum_new_map, zat = d.transactionmetadatum_new_list, qat = d.transactionmetadatum_new_int, Dat = d.transactionmetadatum_new_bytes, Gat = d.transactionmetadatum_new_text, Hat = d.transactionmetadatum_kind, Kat = d.transactionmetadatum_as_map, Vat = d.transactionmetadatum_as_list, Zat = d.transactionmetadatum_as_int, Yat = d.transactionmetadatum_as_bytes, Wat = d.transactionmetadatum_as_text, Jat = d.encode_arbitrary_bytes_as_metadatum, Xat = d.decode_arbitrary_bytes_from_metadatum, Qat = d.__wbg_linearfee_free, $at = d.linearfee_new, tot = d.linearfee_coefficient, eot = d.linearfee_constant, rot = d.linearfee_ref_script_cost_per_byte, not = d.min_script_fee, _ot = d.min_no_script_fee, aot = d.min_fee, oot = d.__wbg_languagelist_free, iot = d.languagelist_new, sot = d.languagelist_len, cot = d.languagelist_get, dot = d.languagelist_add, uot = d.__wbg_biginteger_free, lot = d.biginteger_to_cbor_bytes, fot = d.biginteger_to_canonical_cbor_bytes, got = d.biginteger_from_cbor_bytes, pot = d.biginteger_to_cbor_hex, bot = d.biginteger_to_canonical_cbor_hex, wot = d.biginteger_from_cbor_hex, yot = d.biginteger_to_json, hot = d.biginteger_to_js_value, vot = d.biginteger_from_json, mot = d.biginteger_from_int, Iot = d.biginteger_from_str, kot = d.biginteger_to_str, Bot = d.biginteger_as_u64, xot = d.biginteger_as_int, jot = d.script_hash, Sot = d.script_language, Eot = d.__wbg_networkid_free, Oot = d.networkid_to_cbor_bytes, Fot = d.networkid_to_canonical_cbor_bytes, Aot = d.networkid_from_cbor_bytes, Tot = d.networkid_to_cbor_hex, Pot = d.networkid_to_canonical_cbor_hex, Rot = d.networkid_from_cbor_hex, Uot = d.networkid_to_json, Cot = d.networkid_to_js_value, Not = d.networkid_from_json, Mot = d.networkid_new, Lot = d.networkid_mainnet, zot = d.networkid_testnet, qot = d.networkid_network, Dot = d.subcoin_from_base10_f32, Got = d.__wbg_mapassetnametocoin_free, Hot = d.mapassetnametocoin_get, Kot = d.mapassetnametocoin_insert, Vot = d.mapassetnametocoin_new, Zot = d.mapassetnametocoin_len, Yot = d.mapassetnametocoin_is_empty, Wot = d.mapassetnametocoin_keys, Jot = d.assetname_from_str, Xot = d.assetname_to_str, Qot = d.assetname_to_raw_bytes, $ot = d.assetname_from_raw_bytes, tit = d.assetname_to_hex, eit = d.assetname_from_hex, rit = d.__wbg_multiasset_free, nit = d.multiasset_new, _it = d.multiasset_policy_count, ait = d.multiasset_insert_assets, oit = d.multiasset_get_assets, iit = d.multiasset_get, sit = d.multiasset_set, cit = d.multiasset_keys, dit = d.multiasset_checked_add, uit = d.multiasset_checked_sub, lit = d.multiasset_clamped_sub, fit = d.__wbg_mint_free, git = d.mint_new, pit = d.mint_policy_count, bit = d.mint_insert_assets, wit = d.mint_get_assets, yit = d.mint_get, hit = d.mint_set, vit = d.mint_keys, mit = d.mint_checked_add, Iit = d.mint_checked_sub, kit = d.mint_as_positive_multiasset, Bit = d.mint_as_negative_multiasset, xit = d.__wbg_value_free, jit = d.value_to_cbor_bytes, Sit = d.value_to_canonical_cbor_bytes, Eit = d.value_from_cbor_bytes, Oit = d.value_to_cbor_hex, Fit = d.value_to_canonical_cbor_hex, Ait = d.value_from_cbor_hex, Tit = d.value_to_json, Pit = d.value_to_js_value, Rit = d.value_from_json, Uit = d.value_from_coin, Cit = d.value_new, Nit = d.value_coin, Mit = d.value_multi_asset, Lit = d.value_zero, zit = d.value_is_zero, qit = d.value_has_multiassets, Dit = d.value_checked_add, Git = d.value_checked_sub, Hit = d.value_clamped_sub, Kit = d.auxiliarydata_new, Vit = d.auxiliarydata_metadata, Zit = d.auxiliarydata_native_scripts, Yit = d.auxiliarydata_plutus_v1_scripts, Wit = d.auxiliarydata_plutus_v2_scripts, Jit = d.auxiliarydata_add_metadata, Xit = d.auxiliarydata_add_native_scripts, Qit = d.auxiliarydata_add_plutus_v1_scripts, $it = d.auxiliarydata_add_plutus_v2_scripts, tst = d.auxiliarydata_add, est = d.__wbg_auxiliarydata_free, rst = d.auxiliarydata_to_cbor_bytes, nst = d.auxiliarydata_to_canonical_cbor_bytes, _st = d.auxiliarydata_from_cbor_bytes, ast = d.auxiliarydata_to_cbor_hex, ost = d.auxiliarydata_to_canonical_cbor_hex, ist = d.auxiliarydata_from_cbor_hex, sst = d.auxiliarydata_to_json, cst = d.auxiliarydata_to_js_value, dst = d.auxiliarydata_from_json, ust = d.auxiliarydata_new_shelley, lst = d.auxiliarydata_new_shelley_ma, fst = d.auxiliarydata_new_conway, gst = d.auxiliarydata_kind, pst = d.auxiliarydata_as_shelley, bst = d.auxiliarydata_as_shelley_ma, wst = d.auxiliarydata_as_conway, yst = d.__wbg_conwayformatauxdata_free, hst = d.conwayformatauxdata_to_cbor_bytes, vst = d.conwayformatauxdata_to_canonical_cbor_bytes, mst = d.conwayformatauxdata_from_cbor_bytes, Ist = d.conwayformatauxdata_to_cbor_hex, kst = d.conwayformatauxdata_to_canonical_cbor_hex, Bst = d.conwayformatauxdata_from_cbor_hex, xst = d.conwayformatauxdata_to_json, jst = d.conwayformatauxdata_to_js_value, Sst = d.conwayformatauxdata_from_json, Est = d.conwayformatauxdata_set_metadata, Ost = d.conwayformatauxdata_metadata, Fst = d.conwayformatauxdata_set_native_scripts, Ast = d.conwayformatauxdata_native_scripts, Tst = d.conwayformatauxdata_set_plutus_v1_scripts, Pst = d.conwayformatauxdata_plutus_v1_scripts, Rst = d.conwayformatauxdata_set_plutus_v2_scripts, Ust = d.conwayformatauxdata_plutus_v2_scripts, Cst = d.conwayformatauxdata_set_plutus_v3_scripts, Nst = d.conwayformatauxdata_plutus_v3_scripts, Mst = d.conwayformatauxdata_new, Lst = d.__wbg_shelleymaformatauxdata_free, zst = d.shelleymaformatauxdata_to_cbor_bytes, qst = d.shelleymaformatauxdata_to_canonical_cbor_bytes, Dst = d.shelleymaformatauxdata_from_cbor_bytes, Gst = d.shelleymaformatauxdata_to_cbor_hex, Hst = d.shelleymaformatauxdata_to_canonical_cbor_hex, Kst = d.shelleymaformatauxdata_from_cbor_hex, Vst = d.shelleymaformatauxdata_to_json, Zst = d.shelleymaformatauxdata_to_js_value, Yst = d.shelleymaformatauxdata_from_json, Wst = d.shelleymaformatauxdata_transaction_metadata, Jst = d.shelleymaformatauxdata_auxiliary_scripts, Xst = d.shelleymaformatauxdata_new, Qst = d.__wbg_inputbuilderresult_free, $st = d.__wbg_singleinputbuilder_free, tct = d.singleinputbuilder_new, ect = d.singleinputbuilder_from_transaction_unspent_output, rct = d.singleinputbuilder_payment_key, nct = d.singleinputbuilder_native_script, _ct = d.singleinputbuilder_plutus_script, act = d.singleinputbuilder_plutus_script_inline_datum, oct = d.__wbg_mintbuilderresult_free, ict = d.__wbg_singlemintbuilder_free, sct = d.singlemintbuilder_new, cct = d.singlemintbuilder_new_single_asset, dct = d.singlemintbuilder_native_script, uct = d.singlemintbuilder_plutus_script, lct = d.__wbg_transactionoutputbuilder_free, fct = d.transactionoutputbuilder_new, gct = d.transactionoutputbuilder_with_address, pct = d.transactionoutputbuilder_with_communication_data, bct = d.transactionoutputbuilder_with_data, wct = d.transactionoutputbuilder_with_reference_script, yct = d.transactionoutputbuilder_next, hct = d.__wbg_transactionoutputamountbuilder_free, vct = d.transactionoutputamountbuilder_with_value, mct = d.transactionoutputamountbuilder_with_asset_and_min_required_coin, Ict = d.transactionoutputamountbuilder_build, kct = d.__wbg_singleoutputbuilderresult_free, Bct = d.singleoutputbuilderresult_new, xct = d.singleoutputbuilderresult_output, jct = d.singleoutputbuilderresult_communication_datum, Sct = d.__wbg_votebuilderresult_free, Ect = d.__wbg_votebuilder_free, Oct = d.votebuilder_new, Fct = d.votebuilder_with_vote, Act = d.votebuilder_with_native_script_vote, Tct = d.votebuilder_with_plutus_vote, Pct = d.votebuilder_with_plutus_vote_inline_datum, Rct = d.votebuilder_build, Uct = d.__wbg_plutusscriptwitness_free, Cct = d.plutusscriptwitness_new_script, Nct = d.plutusscriptwitness_new_ref, Mct = d.plutusscriptwitness_hash, Lct = d.__wbg_partialplutuswitness_free, zct = d.partialplutuswitness_new, qct = d.partialplutuswitness_script, Dct = d.partialplutuswitness_data, Gct = d.__wbg_inputaggregatewitnessdata_free, Hct = d.inputaggregatewitnessdata_plutus_data, Kct = d.__wbg_requiredwitnessset_free, Vct = d.requiredwitnessset_add_vkey_key_hash, Zct = d.requiredwitnessset_add_bootstrap, Yct = d.requiredwitnessset_add_script_ref, Wct = d.requiredwitnessset_add_script_hash, Jct = d.requiredwitnessset_add_plutus_datum_hash, Xct = d.requiredwitnessset_add_redeemer_tag, Qct = d.requiredwitnessset_add_all, $ct = d.requiredwitnessset_new, tdt = d.requiredwitnessset_withdrawal_required_wits, edt = d.__wbg_transactionwitnesssetbuilder_free, rdt = d.transactionwitnesssetbuilder_add_vkey, ndt = d.transactionwitnesssetbuilder_add_bootstrap, _dt = d.transactionwitnesssetbuilder_add_script, adt = d.transactionwitnesssetbuilder_get_native_script, odt = d.transactionwitnesssetbuilder_get_plutus_v1_script, idt = d.transactionwitnesssetbuilder_get_plutus_v2_script, sdt = d.transactionwitnesssetbuilder_add_plutus_datum, cdt = d.transactionwitnesssetbuilder_get_plutus_datum, ddt = d.transactionwitnesssetbuilder_add_redeemer, udt = d.transactionwitnesssetbuilder_get_redeemer, ldt = d.transactionwitnesssetbuilder_add_required_wits, fdt = d.transactionwitnesssetbuilder_new, gdt = d.transactionwitnesssetbuilder_add_existing, pdt = d.transactionwitnesssetbuilder_build, bdt = d.transactionwitnesssetbuilder_remaining_wits, wdt = d.transactionwitnesssetbuilder_try_build, ydt = d.transactionwitnesssetbuilder_merge_fake_witness, hdt = d.__wbg_nativescriptwitnessinfo_free, vdt = d.nativescriptwitnessinfo_num_signatures, mdt = d.nativescriptwitnessinfo_vkeys, Idt = d.nativescriptwitnessinfo_assume_signature_count, kdt = d.__wbg_addressid_free, Bdt = d.addressid_to_bech32, xdt = d.addressid_from_bech32, jdt = d.addressid_to_raw_bytes, Sdt = d.addressid_from_raw_bytes, Edt = d.addressid_to_hex, Odt = d.addressid_from_hex, Fdt = d.__wbg_byronscript_free, Adt = d.byronscript_to_bech32, Tdt = d.byronscript_from_bech32, Pdt = d.byronscript_to_raw_bytes, Rdt = d.byronscript_from_raw_bytes, Udt = d.byronscript_to_hex, Cdt = d.byronscript_from_hex, Ndt = d.__wbg_stakeholderid_free, Mdt = d.stakeholderid_to_bech32, Ldt = d.stakeholderid_from_bech32, zdt = d.stakeholderid_to_raw_bytes, qdt = d.stakeholderid_from_raw_bytes, Ddt = d.stakeholderid_to_hex, Gdt = d.stakeholderid_from_hex, Hdt = d.stakeholderid_new, Kdt = d.addrattributes_new_bootstrap_era, Vdt = d.addrattributes_new_single_key, Zdt = d.addressid_new, Ydt = d.addresscontent_hash_and_create, Wdt = d.addresscontent_new_redeem, Jdt = d.addresscontent_new_simple, Xdt = d.addresscontent_to_address, Qdt = d.addresscontent_byron_protocol_magic, $dt = d.addresscontent_network_id, tut = d.addresscontent_icarus_from_key, eut = d.addresscontent_identical_with_pubkey, rut = d.byronaddress_to_base58, nut = d.byronaddress_from_base58, _ut = d.byronaddress_is_valid, aut = d.byronaddress_to_address, out = d.byronaddress_from_address, iut = d.byronaddress_from_address_content, sut = d.__wbg_protocolmagic_free, cut = d.protocolmagic_new, dut = d.protocolmagic_to_int, uut = d.make_daedalus_bootstrap_witness, lut = d.make_icarus_bootstrap_witness, fut = d.__wbg_constrplutusdata_free, gut = d.constrplutusdata_to_cbor_bytes, put = d.constrplutusdata_to_canonical_cbor_bytes, but = d.constrplutusdata_from_cbor_bytes, wut = d.constrplutusdata_to_cbor_hex, yut = d.constrplutusdata_to_canonical_cbor_hex, hut = d.constrplutusdata_from_cbor_hex, vut = d.constrplutusdata_to_json, mut = d.constrplutusdata_to_js_value, Iut = d.constrplutusdata_from_json, kut = d.constrplutusdata_alternative, But = d.constrplutusdata_fields, xut = d.constrplutusdata_new, jut = d.plutusdata_to_cardano_node_format, Sut = d.__wbg_plutusmap_free, Eut = d.plutusmap_to_cbor_bytes, Out = d.plutusmap_to_canonical_cbor_bytes, Fut = d.plutusmap_from_cbor_bytes, Aut = d.plutusmap_to_cbor_hex, Tut = d.plutusmap_to_canonical_cbor_hex, Put = d.plutusmap_from_cbor_hex, Rut = d.plutusmap_new, Uut = d.plutusmap_len, Cut = d.plutusmap_is_empty, Nut = d.plutusmap_set, Mut = d.plutusmap_get, Lut = d.plutusmap_get_all, zut = d.plutusmap_keys, qut = d.__wbg_plutusscript_free, Dut = d.plutusscript_from_v1, Gut = d.plutusscript_from_v2, Hut = d.plutusscript_from_v3, Kut = d.plutusscript_hash, Vut = d.plutusscript_as_v1, Zut = d.plutusscript_as_v2, Yut = d.plutusscript_as_v3, Wut = d.plutusscript_version, Jut = d.plutusv1script_hash, Xut = d.plutusv2script_hash, Qut = d.plutusv3script_hash, $ut = d.plutusv1script_to_raw_bytes, tlt = d.plutusv1script_from_raw_bytes, elt = d.plutusv1script_to_hex, rlt = d.plutusv1script_from_hex, nlt = d.plutusv2script_to_raw_bytes, _lt = d.plutusv2script_from_raw_bytes, alt = d.plutusv2script_to_hex, olt = d.plutusv2script_from_hex, ilt = d.plutusv3script_to_raw_bytes, slt = d.plutusv3script_from_raw_bytes, clt = d.plutusv3script_to_hex, dlt = d.plutusv3script_from_hex, ult = d.redeemers_to_flat_format, llt = d.exunits_checked_add, flt = d.compute_total_ex_units, glt = d.transactionoutput_new, plt = d.transactionoutput_address, blt = d.transactionoutput_amount, wlt = d.transactionoutput_set_amount, ylt = d.transactionoutput_datum, hlt = d.transactionoutput_datum_hash, vlt = d.transactionoutput_script_ref, mlt = d.nativescript_get_required_signers, Ilt = d.nativescript_hash, klt = d.nativescript_verify, Blt = d.transactionwitnessset_add_all_witnesses, xlt = d.transactionwitnessset_languages, jlt = d.__wbg_alonzoformattxout_free, Slt = d.alonzoformattxout_to_cbor_bytes, Elt = d.alonzoformattxout_to_canonical_cbor_bytes, Olt = d.alonzoformattxout_from_cbor_bytes, Flt = d.alonzoformattxout_to_cbor_hex, Alt = d.alonzoformattxout_to_canonical_cbor_hex, Tlt = d.alonzoformattxout_from_cbor_hex, Plt = d.alonzoformattxout_to_json, Rlt = d.alonzoformattxout_to_js_value, Ult = d.alonzoformattxout_from_json, Clt = d.alonzoformattxout_address, Nlt = d.alonzoformattxout_amount, Mlt = d.alonzoformattxout_set_datum_hash, Llt = d.alonzoformattxout_datum_hash, zlt = d.alonzoformattxout_new, qlt = d.__wbg_conwayformattxout_free, Dlt = d.conwayformattxout_to_cbor_bytes, Glt = d.conwayformattxout_to_canonical_cbor_bytes, Hlt = d.conwayformattxout_from_cbor_bytes, Klt = d.conwayformattxout_to_cbor_hex, Vlt = d.conwayformattxout_to_canonical_cbor_hex, Zlt = d.conwayformattxout_from_cbor_hex, Ylt = d.conwayformattxout_to_json, Wlt = d.conwayformattxout_to_js_value, Jlt = d.conwayformattxout_from_json, Xlt = d.conwayformattxout_address, Qlt = d.conwayformattxout_amount, $lt = d.conwayformattxout_set_datum_option, tft = d.conwayformattxout_datum_option, eft = d.conwayformattxout_set_script_reference, rft = d.conwayformattxout_script_reference, nft = d.conwayformattxout_new, _ft = d.__wbg_datumoption_free, aft = d.datumoption_to_cbor_bytes, oft = d.datumoption_to_canonical_cbor_bytes, ift = d.datumoption_from_cbor_bytes, sft = d.datumoption_to_cbor_hex, cft = d.datumoption_to_canonical_cbor_hex, dft = d.datumoption_from_cbor_hex, uft = d.datumoption_to_json, lft = d.datumoption_to_js_value, fft = d.datumoption_from_json, gft = d.datumoption_new_hash, pft = d.datumoption_new_datum, bft = d.datumoption_kind, wft = d.datumoption_as_hash, yft = d.datumoption_as_datum, hft = d.__wbg_nativescript_free, vft = d.nativescript_to_cbor_bytes, mft = d.nativescript_to_canonical_cbor_bytes, Ift = d.nativescript_from_cbor_bytes, kft = d.nativescript_to_cbor_hex, Bft = d.nativescript_to_canonical_cbor_hex, xft = d.nativescript_from_cbor_hex, jft = d.nativescript_to_json, Sft = d.nativescript_to_js_value, Eft = d.nativescript_from_json, Oft = d.nativescript_new_script_pubkey, Fft = d.nativescript_new_script_all, Aft = d.nativescript_new_script_any, Tft = d.nativescript_new_script_n_of_k, Pft = d.nativescript_new_script_invalid_before, Rft = d.nativescript_new_script_invalid_hereafter, Uft = d.nativescript_kind, Cft = d.nativescript_as_script_pubkey, Nft = d.nativescript_as_script_all, Mft = d.nativescript_as_script_any, Lft = d.nativescript_as_script_n_of_k, zft = d.nativescript_as_script_invalid_before, qft = d.nativescript_as_script_invalid_hereafter, Dft = d.__wbg_scriptall_free, Gft = d.scriptall_to_cbor_bytes, Hft = d.scriptall_to_canonical_cbor_bytes, Kft = d.scriptall_from_cbor_bytes, Vft = d.scriptall_to_cbor_hex, Zft = d.scriptall_to_canonical_cbor_hex, Yft = d.scriptall_from_cbor_hex, Wft = d.scriptall_to_json, Jft = d.scriptall_to_js_value, Xft = d.scriptall_from_json, Qft = d.scriptall_native_scripts, $ft = d.scriptall_new, tgt = d.__wbg_scriptany_free, egt = d.scriptany_to_cbor_bytes, rgt = d.scriptany_to_canonical_cbor_bytes, ngt = d.scriptany_from_cbor_bytes, _gt = d.scriptany_to_cbor_hex, agt = d.scriptany_to_canonical_cbor_hex, ogt = d.scriptany_from_cbor_hex, igt = d.scriptany_to_json, sgt = d.scriptany_to_js_value, cgt = d.scriptany_from_json, dgt = d.scriptany_native_scripts, ugt = d.scriptany_new, lgt = d.__wbg_scriptinvalidbefore_free, fgt = d.scriptinvalidbefore_to_cbor_bytes, ggt = d.scriptinvalidbefore_to_canonical_cbor_bytes, pgt = d.scriptinvalidbefore_from_cbor_bytes, bgt = d.scriptinvalidbefore_to_cbor_hex, wgt = d.scriptinvalidbefore_to_canonical_cbor_hex, ygt = d.scriptinvalidbefore_from_cbor_hex, hgt = d.scriptinvalidbefore_to_json, vgt = d.scriptinvalidbefore_to_js_value, mgt = d.scriptinvalidbefore_from_json, Igt = d.scriptinvalidbefore_before, kgt = d.scriptinvalidbefore_new, Bgt = d.__wbg_scriptinvalidhereafter_free, xgt = d.scriptinvalidhereafter_to_cbor_bytes, jgt = d.scriptinvalidhereafter_to_canonical_cbor_bytes, Sgt = d.scriptinvalidhereafter_from_cbor_bytes, Egt = d.scriptinvalidhereafter_to_cbor_hex, Ogt = d.scriptinvalidhereafter_to_canonical_cbor_hex, Fgt = d.scriptinvalidhereafter_from_cbor_hex, Agt = d.scriptinvalidhereafter_to_json, Tgt = d.scriptinvalidhereafter_to_js_value, Pgt = d.scriptinvalidhereafter_from_json, Rgt = d.scriptinvalidhereafter_after, Ugt = d.scriptinvalidhereafter_new, Cgt = d.__wbg_scriptnofk_free, Ngt = d.scriptnofk_to_cbor_bytes, Mgt = d.scriptnofk_to_canonical_cbor_bytes, Lgt = d.scriptnofk_from_cbor_bytes, zgt = d.scriptnofk_to_cbor_hex, qgt = d.scriptnofk_to_canonical_cbor_hex, Dgt = d.scriptnofk_from_cbor_hex, Ggt = d.scriptnofk_to_json, Hgt = d.scriptnofk_to_js_value, Kgt = d.scriptnofk_from_json, Vgt = d.scriptnofk_n, Zgt = d.scriptnofk_native_scripts, Ygt = d.scriptnofk_new, Wgt = d.__wbg_scriptpubkey_free, Jgt = d.scriptpubkey_to_cbor_bytes, Xgt = d.scriptpubkey_to_canonical_cbor_bytes, Qgt = d.scriptpubkey_from_cbor_bytes, $gt = d.scriptpubkey_to_cbor_hex, tpt = d.scriptpubkey_to_canonical_cbor_hex, ept = d.scriptpubkey_from_cbor_hex, rpt = d.scriptpubkey_to_json, npt = d.scriptpubkey_to_js_value, _pt = d.scriptpubkey_from_json, apt = d.scriptpubkey_ed25519_key_hash, opt = d.scriptpubkey_new, ipt = d.__wbg_transaction_free, spt = d.transaction_to_cbor_bytes, cpt = d.transaction_to_canonical_cbor_bytes, dpt = d.transaction_from_cbor_bytes, upt = d.transaction_to_cbor_hex, lpt = d.transaction_to_canonical_cbor_hex, fpt = d.transaction_from_cbor_hex, gpt = d.transaction_to_json, ppt = d.transaction_to_js_value, bpt = d.transaction_from_json, wpt = d.transaction_body, ypt = d.transaction_witness_set, hpt = d.transaction_is_valid, vpt = d.transaction_auxiliary_data, mpt = d.transaction_new, Ipt = d.__wbg_transactionbody_free, kpt = d.transactionbody_to_cbor_bytes, Bpt = d.transactionbody_to_canonical_cbor_bytes, xpt = d.transactionbody_from_cbor_bytes, jpt = d.transactionbody_to_cbor_hex, Spt = d.transactionbody_to_canonical_cbor_hex, Ept = d.transactionbody_from_cbor_hex, Opt = d.transactionbody_to_json, Fpt = d.transactionbody_to_js_value, Apt = d.transactionbody_from_json, Tpt = d.transactionbody_inputs, Ppt = d.transactionbody_outputs, Rpt = d.transactionbody_fee, Upt = d.transactionbody_set_ttl, Cpt = d.transactionbody_ttl, Npt = d.transactionbody_set_certs, Mpt = d.transactionbody_certs, Lpt = d.transactionbody_set_withdrawals, zpt = d.transactionbody_withdrawals, qpt = d.transactionbody_set_auxiliary_data_hash, Dpt = d.transactionbody_auxiliary_data_hash, Gpt = d.transactionbody_set_validity_interval_start, Hpt = d.transactionbody_validity_interval_start, Kpt = d.transactionbody_set_mint, Vpt = d.transactionbody_mint, Zpt = d.transactionbody_set_script_data_hash, Ypt = d.transactionbody_script_data_hash, Wpt = d.transactionbody_set_collateral_inputs, Jpt = d.transactionbody_collateral_inputs, Xpt = d.transactionbody_set_required_signers, Qpt = d.transactionbody_required_signers, $pt = d.transactionbody_set_network_id, tbt = d.transactionbody_network_id, ebt = d.transactionbody_set_collateral_return, rbt = d.transactionbody_collateral_return, nbt = d.transactionbody_set_total_collateral, _bt = d.transactionbody_total_collateral, abt = d.transactionbody_set_reference_inputs, obt = d.transactionbody_reference_inputs, ibt = d.transactionbody_set_voting_procedures, sbt = d.transactionbody_voting_procedures, cbt = d.transactionbody_set_proposal_procedures, dbt = d.transactionbody_proposal_procedures, ubt = d.transactionbody_set_current_treasury_value, lbt = d.transactionbody_current_treasury_value, fbt = d.transactionbody_set_donation, gbt = d.transactionbody_donation, pbt = d.transactionbody_new, bbt = d.__wbg_transactioninput_free, wbt = d.transactioninput_to_cbor_bytes, ybt = d.transactioninput_to_canonical_cbor_bytes, hbt = d.transactioninput_from_cbor_bytes, vbt = d.transactioninput_to_cbor_hex, mbt = d.transactioninput_to_canonical_cbor_hex, Ibt = d.transactioninput_from_cbor_hex, kbt = d.transactioninput_to_json, Bbt = d.transactioninput_to_js_value, xbt = d.transactioninput_from_json, jbt = d.transactioninput_transaction_id, Sbt = d.transactioninput_index, Ebt = d.transactioninput_new, Obt = d.__wbg_transactionoutput_free, Fbt = d.transactionoutput_to_cbor_bytes, Abt = d.transactionoutput_to_canonical_cbor_bytes, Tbt = d.transactionoutput_from_cbor_bytes, Pbt = d.transactionoutput_to_cbor_hex, Rbt = d.transactionoutput_to_canonical_cbor_hex, Ubt = d.transactionoutput_from_cbor_hex, Cbt = d.transactionoutput_to_json, Nbt = d.transactionoutput_to_js_value, Mbt = d.transactionoutput_from_json, Lbt = d.transactionoutput_new_alonzo_format_tx_out, zbt = d.transactionoutput_new_conway_format_tx_out, qbt = d.transactionoutput_kind, Dbt = d.transactionoutput_as_alonzo_format_tx_out, Gbt = d.transactionoutput_as_conway_format_tx_out, Hbt = d.__wbg_transactionwitnessset_free, Kbt = d.transactionwitnessset_to_cbor_bytes, Vbt = d.transactionwitnessset_to_canonical_cbor_bytes, Zbt = d.transactionwitnessset_from_cbor_bytes, Ybt = d.transactionwitnessset_to_cbor_hex, Wbt = d.transactionwitnessset_to_canonical_cbor_hex, Jbt = d.transactionwitnessset_from_cbor_hex, Xbt = d.transactionwitnessset_to_json, Qbt = d.transactionwitnessset_to_js_value, $bt = d.transactionwitnessset_from_json, t0t = d.transactionwitnessset_set_vkeywitnesses, e0t = d.transactionwitnessset_vkeywitnesses, r0t = d.transactionwitnessset_set_native_scripts, n0t = d.transactionwitnessset_native_scripts, _0t = d.transactionwitnessset_set_bootstrap_witnesses, a0t = d.transactionwitnessset_bootstrap_witnesses, o0t = d.transactionwitnessset_set_plutus_v1_scripts, i0t = d.transactionwitnessset_plutus_v1_scripts, s0t = d.transactionwitnessset_set_plutus_datums, c0t = d.transactionwitnessset_plutus_datums, d0t = d.transactionwitnessset_set_redeemers, u0t = d.transactionwitnessset_redeemers, l0t = d.transactionwitnessset_set_plutus_v2_scripts, f0t = d.transactionwitnessset_plutus_v2_scripts, g0t = d.transactionwitnessset_set_plutus_v3_scripts, p0t = d.transactionwitnessset_plutus_v3_scripts, b0t = d.transactionwitnessset_new, w0t = d.__wbg_bip32privatekey_free, y0t = d.bip32privatekey_derive, h0t = d.bip32privatekey_from_128_xprv, v0t = d.bip32privatekey_to_128_xprv, m0t = d.bip32privatekey_generate_ed25519_bip32, I0t = d.bip32privatekey_to_raw_key, k0t = d.bip32privatekey_to_public, B0t = d.bip32privatekey_from_raw_bytes, x0t = d.bip32privatekey_to_raw_bytes, j0t = d.bip32privatekey_from_bech32, S0t = d.bip32privatekey_to_bech32, E0t = d.bip32privatekey_from_bip39_entropy, O0t = d.bip32privatekey_chaincode, F0t = d.__wbg_bip32publickey_free, A0t = d.bip32publickey_derive, T0t = d.bip32publickey_to_raw_key, P0t = d.bip32publickey_from_raw_bytes, R0t = d.bip32publickey_to_raw_bytes, U0t = d.bip32publickey_from_bech32, C0t = d.bip32publickey_to_bech32, N0t = d.bip32publickey_chaincode, M0t = d.__wbg_privatekey_free, L0t = d.privatekey_to_public, z0t = d.privatekey_generate_ed25519, q0t = d.privatekey_generate_ed25519extended, D0t = d.privatekey_from_bech32, G0t = d.privatekey_to_bech32, H0t = d.privatekey_to_raw_bytes, K0t = d.privatekey_from_extended_bytes, V0t = d.privatekey_from_normal_bytes, Z0t = d.privatekey_sign, Y0t = d.__wbg_publickey_free, W0t = d.publickey_from_bech32, J0t = d.publickey_to_bech32, X0t = d.publickey_to_raw_bytes, Q0t = d.publickey_from_bytes, $0t = d.publickey_verify, twt = d.publickey_hash, ewt = d.__wbg_ed25519signature_free, rwt = d.ed25519signature_to_bech32, nwt = d.ed25519signature_from_bech32, _wt = d.ed25519signature_to_raw_bytes, awt = d.ed25519signature_from_raw_bytes, owt = d.ed25519signature_to_hex, iwt = d.ed25519signature_from_hex, swt = d.__wbg_ed25519keyhash_free, cwt = d.ed25519keyhash_to_bech32, dwt = d.ed25519keyhash_from_bech32, uwt = d.ed25519keyhash_to_raw_bytes, lwt = d.ed25519keyhash_from_raw_bytes, fwt = d.ed25519keyhash_to_hex, gwt = d.ed25519keyhash_from_hex, pwt = d.__wbg_scripthash_free, bwt = d.scripthash_to_bech32, wwt = d.scripthash_from_bech32, ywt = d.scripthash_to_raw_bytes, hwt = d.scripthash_from_raw_bytes, vwt = d.scripthash_to_hex, mwt = d.scripthash_from_hex, Iwt = d.__wbg_transactionhash_free, kwt = d.transactionhash_to_bech32, Bwt = d.transactionhash_from_bech32, xwt = d.transactionhash_to_raw_bytes, jwt = d.transactionhash_from_raw_bytes, Swt = d.transactionhash_to_hex, Ewt = d.transactionhash_from_hex, Owt = d.__wbg_genesisdelegatehash_free, Fwt = d.genesisdelegatehash_to_bech32, Awt = d.genesisdelegatehash_from_bech32, Twt = d.genesisdelegatehash_to_raw_bytes, Pwt = d.genesisdelegatehash_from_raw_bytes, Rwt = d.genesisdelegatehash_to_hex, Uwt = d.genesisdelegatehash_from_hex, Cwt = d.__wbg_genesishash_free, Nwt = d.genesishash_to_bech32, Mwt = d.genesishash_from_bech32, Lwt = d.genesishash_to_raw_bytes, zwt = d.genesishash_from_raw_bytes, qwt = d.genesishash_to_hex, Dwt = d.genesishash_from_hex, Gwt = d.__wbg_auxiliarydatahash_free, Hwt = d.auxiliarydatahash_to_bech32, Kwt = d.auxiliarydatahash_from_bech32, Vwt = d.auxiliarydatahash_to_raw_bytes, Zwt = d.auxiliarydatahash_from_raw_bytes, Ywt = d.auxiliarydatahash_to_hex, Wwt = d.auxiliarydatahash_from_hex, Jwt = d.__wbg_poolmetadatahash_free, Xwt = d.poolmetadatahash_to_bech32, Qwt = d.poolmetadatahash_from_bech32, $wt = d.poolmetadatahash_to_raw_bytes, tyt = d.poolmetadatahash_from_raw_bytes, eyt = d.poolmetadatahash_to_hex, ryt = d.poolmetadatahash_from_hex, nyt = d.__wbg_vrfkeyhash_free, _yt = d.vrfkeyhash_to_bech32, ayt = d.vrfkeyhash_from_bech32, oyt = d.vrfkeyhash_to_raw_bytes, iyt = d.vrfkeyhash_from_raw_bytes, syt = d.vrfkeyhash_to_hex, cyt = d.vrfkeyhash_from_hex, dyt = d.__wbg_blockbodyhash_free, uyt = d.blockbodyhash_to_bech32, lyt = d.blockbodyhash_from_bech32, fyt = d.blockbodyhash_to_raw_bytes, gyt = d.blockbodyhash_from_raw_bytes, pyt = d.blockbodyhash_to_hex, byt = d.blockbodyhash_from_hex, wyt = d.__wbg_blockheaderhash_free, yyt = d.blockheaderhash_to_bech32, hyt = d.blockheaderhash_from_bech32, vyt = d.blockheaderhash_to_raw_bytes, myt = d.blockheaderhash_from_raw_bytes, Iyt = d.blockheaderhash_to_hex, kyt = d.blockheaderhash_from_hex, Byt = d.__wbg_datumhash_free, xyt = d.datumhash_to_bech32, jyt = d.datumhash_from_bech32, Syt = d.datumhash_to_raw_bytes, Eyt = d.datumhash_from_raw_bytes, Oyt = d.datumhash_to_hex, Fyt = d.datumhash_from_hex, Ayt = d.__wbg_scriptdatahash_free, Tyt = d.scriptdatahash_to_bech32, Pyt = d.scriptdatahash_from_bech32, Ryt = d.scriptdatahash_to_raw_bytes, Uyt = d.scriptdatahash_from_raw_bytes, Cyt = d.scriptdatahash_to_hex, Nyt = d.scriptdatahash_from_hex, Myt = d.__wbg_vrfvkey_free, Lyt = d.vrfvkey_to_bech32, zyt = d.vrfvkey_from_bech32, qyt = d.vrfvkey_to_raw_bytes, Dyt = d.vrfvkey_from_raw_bytes, Gyt = d.vrfvkey_to_hex, Hyt = d.vrfvkey_from_hex, Kyt = d.__wbg_kesvkey_free, Vyt = d.kesvkey_to_bech32, Zyt = d.kesvkey_from_bech32, Yyt = d.kesvkey_to_raw_bytes, Wyt = d.kesvkey_from_raw_bytes, Jyt = d.kesvkey_to_hex, Xyt = d.kesvkey_from_hex, Qyt = d.__wbg_noncehash_free, $yt = d.noncehash_to_bech32, tht = d.noncehash_from_bech32, eht = d.noncehash_to_raw_bytes, rht = d.noncehash_from_raw_bytes, nht = d.noncehash_to_hex, _ht = d.noncehash_from_hex, aht = d.__wbg_anchordochash_free, oht = d.anchordochash_to_bech32, iht = d.anchordochash_from_bech32, sht = d.anchordochash_to_raw_bytes, cht = d.anchordochash_from_raw_bytes, dht = d.anchordochash_to_hex, uht = d.anchordochash_from_hex, lht = d.__wbg_legacydaedalusprivatekey_free, fht = d.legacydaedalusprivatekey_chaincode, ght = d.emip3_encrypt_with_password, pht = d.emip3_decrypt_with_password, bht = d.__wbg_int_free, wht = d.int_to_cbor_bytes, yht = d.int_from_cbor_bytes, hht = d.int_to_json, vht = d.int_to_json_value, mht = d.int_from_json, Iht = d.int_new, kht = d.int_to_str, Bht = d.int_from_str, xht = d.__wbindgen_exn_store, jht = d.__wbindgen_malloc, Sht = d.__wbindgen_realloc, Eht = d.__wbindgen_add_to_stack_pointer, Oht = d.__wbindgen_free, Fht = Object.freeze(Object.defineProperty({
        __proto__: null,
        __wbg_addrattributes_free: OL,
        __wbg_address_free: Ynt,
        __wbg_addresscontent_free: qL,
        __wbg_addressid_free: kdt,
        __wbg_alonzoformattxout_free: jlt,
        __wbg_anchor_free: WT,
        __wbg_anchordochash_free: aht,
        __wbg_assetname_free: Y_t,
        __wbg_assetnamelist_free: TX,
        __wbg_authcommitteehotcert_free: Lz,
        __wbg_auxiliarydata_free: est,
        __wbg_auxiliarydatahash_free: Gwt,
        __wbg_baseaddress_free: l_t,
        __wbg_biginteger_free: uot,
        __wbg_bip32privatekey_free: w0t,
        __wbg_bip32publickey_free: F0t,
        __wbg_block_free: sJ,
        __wbg_blockbodyhash_free: dyt,
        __wbg_blockheaderhash_free: wyt,
        __wbg_bootstrapwitness_free: qY,
        __wbg_bootstrapwitnesslist_free: NX,
        __wbg_byronaddress_free: JL,
        __wbg_byronscript_free: Fdt,
        __wbg_byrontxout_free: Az,
        __wbg_certificate_free: Qz,
        __wbg_certificatebuilderresult_free: TF,
        __wbg_certificatelist_free: DX,
        __wbg_cip25chunkablestring_free: WE,
        __wbg_cip25filesdetails_free: sO,
        __wbg_cip25labelmetadata_free: vF,
        __wbg_cip25metadata_free: qE,
        __wbg_cip25metadatadetails_free: xO,
        __wbg_cip25minimetadatadetails_free: dF,
        __wbg_cip25string64_free: DO,
        __wbg_cip25string64list_free: XO,
        __wbg_cip36delegation_free: Yj,
        __wbg_cip36delegationdistribution_free: iS,
        __wbg_cip36delegationlist_free: IS,
        __wbg_cip36deregistrationcbor_free: SS,
        __wbg_cip36deregistrationwitness_free: RS,
        __wbg_cip36keyderegistration_free: VS,
        __wbg_cip36keyregistration_free: oE,
        __wbg_cip36registrationcbor_free: IE,
        __wbg_cip36registrationwitness_free: OE,
        __wbg_committeecoldcredentiallist_free: ZX,
        __wbg_constitution_free: sP,
        __wbg_constrplutusdata_free: fut,
        __wbg_conwayformatauxdata_free: yst,
        __wbg_conwayformattxout_free: qlt,
        __wbg_costmodels_free: GC,
        __wbg_crc32_free: xL,
        __wbg_credential_free: Gq,
        __wbg_datumhash_free: Byt,
        __wbg_datumoption_free: _ft,
        __wbg_dnsname_free: _D,
        __wbg_drep_free: pD,
        __wbg_drepvotingthresholds_free: QX,
        __wbg_ed25519keyhash_free: swt,
        __wbg_ed25519keyhashlist_free: hQ,
        __wbg_ed25519signature_free: ewt,
        __wbg_enterpriseaddress_free: h_t,
        __wbg_exunitprices_free: tN,
        __wbg_exunits_free: fN,
        __wbg_filesdetailslist_free: vO,
        __wbg_genesisdelegatehash_free: Owt,
        __wbg_genesishash_free: Cwt,
        __wbg_govaction_free: mP,
        __wbg_govactionid_free: KP,
        __wbg_govactionidlist_free: BQ,
        __wbg_hardforkinitiationaction_free: _R,
        __wbg_hdaddresspayload_free: _z,
        __wbg_header_free: BJ,
        __wbg_headerbody_free: NJ,
        __wbg_inputaggregatewitnessdata_free: Gct,
        __wbg_inputbuilderresult_free: Qst,
        __wbg_int_free: bht,
        __wbg_intlist_free: OQ,
        __wbg_ipv4_free: TD,
        __wbg_ipv6_free: GD,
        __wbg_kessignature_free: rW,
        __wbg_kesvkey_free: Kyt,
        __wbg_languagelist_free: oot,
        __wbg_legacydaedalusprivatekey_free: lht,
        __wbg_legacyredeemer_free: jN,
        __wbg_legacyredeemerlist_free: RQ,
        __wbg_linearfee_free: Qat,
        __wbg_mapassetnametocoin_free: Got,
        __wbg_mapassetnametononzeroint64_free: LQ,
        __wbg_mapassetnametou64_free: KQ,
        __wbg_mapcommitteecoldcredentialtoepoch_free: XQ,
        __wbg_mapgovactionidtovotingprocedure_free: n$,
        __wbg_mapplutusdatatoplutusdata_free: c$,
        __wbg_mapredeemerkeytoredeemerval_free: p$,
        __wbg_maprewardaccounttocoin_free: m$,
        __wbg_mapstakecredentialtodeltacoin_free: S$,
        __wbg_maptransactionindextoauxiliarydata_free: P$,
        __wbg_maptransactionmetadatumtotransactionmetadatum_free: L$,
        __wbg_mapu64toarri64_free: CC,
        __wbg_metadata_free: jat,
        __wbg_metadatumlist_free: _at,
        __wbg_metadatummap_free: gat,
        __wbg_mint_free: fit,
        __wbg_mintbuilderresult_free: oct,
        __wbg_multiasset_free: rit,
        __wbg_multihostname_free: tG,
        __wbg_nativescript_free: hft,
        __wbg_nativescriptlist_free: K$,
        __wbg_nativescriptwitnessinfo_free: hdt,
        __wbg_networkid_free: Eot,
        __wbg_networkinfo_free: $W,
        __wbg_newconstitution_free: wR,
        __wbg_noconfidence_free: FR,
        __wbg_nonce_free: fW,
        __wbg_noncehash_free: Qyt,
        __wbg_operationalcert_free: _X,
        __wbg_parameterchangeaction_free: DR,
        __wbg_partialplutuswitness_free: Lct,
        __wbg_plutusdata_free: qN,
        __wbg_plutusdatalist_free: J$,
        __wbg_plutusmap_free: Sut,
        __wbg_plutusscript_free: qut,
        __wbg_plutusscriptwitness_free: Uct,
        __wbg_plutusv1script_free: sM,
        __wbg_plutusv1scriptlist_free: ett,
        __wbg_plutusv2script_free: yM,
        __wbg_plutusv2scriptlist_free: ott,
        __wbg_plutusv3script_free: EM,
        __wbg_plutusv3scriptlist_free: utt,
        __wbg_pointer_free: x_t,
        __wbg_pointeraddress_free: j_t,
        __wbg_policyidlist_free: btt,
        __wbg_poolmetadata_free: lG,
        __wbg_poolmetadatahash_free: Jwt,
        __wbg_poolparams_free: xG,
        __wbg_poolregistration_free: KG,
        __wbg_poolretirement_free: nH,
        __wbg_poolvotingthresholds_free: mtt,
        __wbg_privatekey_free: M0t,
        __wbg_proposalbuilder_free: zF,
        __wbg_proposalbuilderresult_free: LF,
        __wbg_proposalprocedure_free: rU,
        __wbg_proposalprocedurelist_free: Ntt,
        __wbg_protocolmagic_free: sut,
        __wbg_protocolparamupdate_free: Dtt,
        __wbg_protocolversion_free: hX,
        __wbg_publickey_free: Y0t,
        __wbg_rational_free: irt,
        __wbg_redeemerkey_free: MM,
        __wbg_redeemerkeylist_free: vrt,
        __wbg_redeemers_free: dL,
        __wbg_redeemersetbuilder_free: QF,
        __wbg_redeemerval_free: XM,
        __wbg_redeemerwitnesskey_free: ZF,
        __wbg_regcert_free: bH,
        __wbg_regdrepcert_free: OH,
        __wbg_relay_free: GH,
        __wbg_relaylist_free: xrt,
        __wbg_requiredwitnessset_free: Kct,
        __wbg_resigncommitteecoldcert_free: oK,
        __wbg_rewardaccountlist_free: Frt,
        __wbg_rewardaddress_free: P_t,
        __wbg_script_free: Urt,
        __wbg_scriptall_free: Dft,
        __wbg_scriptany_free: tgt,
        __wbg_scriptdatahash_free: Ayt,
        __wbg_scripthash_free: pwt,
        __wbg_scriptinvalidbefore_free: lgt,
        __wbg_scriptinvalidhereafter_free: Bgt,
        __wbg_scriptnofk_free: Cgt,
        __wbg_scriptpubkey_free: Wgt,
        __wbg_shelleymaformatauxdata_free: Lst,
        __wbg_signedtxbuilder_free: xT,
        __wbg_singlecertificatebuilder_free: PF,
        __wbg_singlehostaddr_free: hK,
        __wbg_singlehostname_free: PK,
        __wbg_singleinputbuilder_free: $st,
        __wbg_singlemintbuilder_free: ict,
        __wbg_singleoutputbuilderresult_free: kct,
        __wbg_singlewithdrawalbuilder_free: G_t,
        __wbg_spendingdata_free: dz,
        __wbg_stakecredentiallist_free: tnt,
        __wbg_stakedelegation_free: VK,
        __wbg_stakederegistration_free: aV,
        __wbg_stakedistribution_free: Iz,
        __wbg_stakeholderid_free: Ndt,
        __wbg_stakeregdelegcert_free: wV,
        __wbg_stakeregistration_free: AV,
        __wbg_stakevotedelegcert_free: GV,
        __wbg_stakevoteregdelegcert_free: nZ,
        __wbg_transaction_free: ipt,
        __wbg_transactionbody_free: Ipt,
        __wbg_transactionbodylist_free: ant,
        __wbg_transactionbuilder_free: TA,
        __wbg_transactionbuilderconfig_free: wA,
        __wbg_transactionbuilderconfigbuilder_free: yA,
        __wbg_transactionhash_free: Iwt,
        __wbg_transactioninput_free: bbt,
        __wbg_transactioninputlist_free: dnt,
        __wbg_transactionmetadatum_free: Pat,
        __wbg_transactionmetadatumlabels_free: cat,
        __wbg_transactionmetadatumlist_free: mat,
        __wbg_transactionoutput_free: Obt,
        __wbg_transactionoutputamountbuilder_free: hct,
        __wbg_transactionoutputbuilder_free: lct,
        __wbg_transactionoutputlist_free: pnt,
        __wbg_transactionunspentoutput_free: cA,
        __wbg_transactionwitnessset_free: Hbt,
        __wbg_transactionwitnesssetbuilder_free: edt,
        __wbg_transactionwitnesssetlist_free: vnt,
        __wbg_treasurywithdrawalsaction_free: wU,
        __wbg_txredeemerbuilder_free: hT,
        __wbg_unitinterval_free: xnt,
        __wbg_unregcert_free: yZ,
        __wbg_unregdrepcert_free: AZ,
        __wbg_untaggedredeemer_free: JF,
        __wbg_updatecommittee_free: FU,
        __wbg_updatedrepcert_free: HZ,
        __wbg_url_free: nY,
        __wbg_value_free: xit,
        __wbg_vkeywitness_free: zW,
        __wbg_vkeywitnesslist_free: Mnt,
        __wbg_votebuilder_free: Ect,
        __wbg_votebuilderresult_free: Sct,
        __wbg_votedelegcert_free: gY,
        __wbg_voter_free: KU,
        __wbg_voteregdelegcert_free: SY,
        __wbg_voterlist_free: Gnt,
        __wbg_votingprocedure_free: lC,
        __wbg_votingprocedures_free: xC,
        __wbg_vrfcert_free: SW,
        __wbg_vrfkeyhash_free: nyt,
        __wbg_vrfvkey_free: Myt,
        __wbg_withdrawalbuilderresult_free: D_t,
        __wbindgen_add_to_stack_pointer: Eht,
        __wbindgen_exn_store: xht,
        __wbindgen_free: Oht,
        __wbindgen_malloc: jht,
        __wbindgen_realloc: Sht,
        addrattributes_derivation_path: NL,
        addrattributes_from_cbor_bytes: AL,
        addrattributes_from_cbor_hex: PL,
        addrattributes_new: zL,
        addrattributes_new_bootstrap_era: Kdt,
        addrattributes_new_single_key: Vdt,
        addrattributes_protocol_magic: LL,
        addrattributes_set_derivation_path: CL,
        addrattributes_set_protocol_magic: ML,
        addrattributes_set_stake_distribution: RL,
        addrattributes_stake_distribution: UL,
        addrattributes_to_cbor_bytes: FL,
        addrattributes_to_cbor_hex: TL,
        address_from_bech32: e_t,
        address_from_hex: u_t,
        address_from_json: Xnt,
        address_from_raw_bytes: c_t,
        address_header: Qnt,
        address_header_matches_kind: $nt,
        address_is_valid: n_t,
        address_is_valid_bech32: r_t,
        address_kind: i_t,
        address_network_id: __t,
        address_payment_cred: a_t,
        address_staking_cred: o_t,
        address_to_bech32: t_t,
        address_to_hex: d_t,
        address_to_js_value: Jnt,
        address_to_json: Wnt,
        address_to_raw_bytes: s_t,
        addresscontent_addr_attributes: ZL,
        addresscontent_addr_type: YL,
        addresscontent_address_id: VL,
        addresscontent_byron_protocol_magic: Qdt,
        addresscontent_from_cbor_bytes: GL,
        addresscontent_from_cbor_hex: KL,
        addresscontent_hash_and_create: Ydt,
        addresscontent_icarus_from_key: tut,
        addresscontent_identical_with_pubkey: eut,
        addresscontent_network_id: $dt,
        addresscontent_new: WL,
        addresscontent_new_redeem: Wdt,
        addresscontent_new_simple: Jdt,
        addresscontent_to_address: Xdt,
        addresscontent_to_cbor_bytes: DL,
        addresscontent_to_cbor_hex: HL,
        addressid_from_bech32: xdt,
        addressid_from_hex: Odt,
        addressid_from_raw_bytes: Sdt,
        addressid_new: Zdt,
        addressid_to_bech32: Bdt,
        addressid_to_hex: Edt,
        addressid_to_raw_bytes: jdt,
        alonzoformattxout_address: Clt,
        alonzoformattxout_amount: Nlt,
        alonzoformattxout_datum_hash: Llt,
        alonzoformattxout_from_cbor_bytes: Olt,
        alonzoformattxout_from_cbor_hex: Tlt,
        alonzoformattxout_from_json: Ult,
        alonzoformattxout_new: zlt,
        alonzoformattxout_set_datum_hash: Mlt,
        alonzoformattxout_to_canonical_cbor_bytes: Elt,
        alonzoformattxout_to_canonical_cbor_hex: Alt,
        alonzoformattxout_to_cbor_bytes: Slt,
        alonzoformattxout_to_cbor_hex: Flt,
        alonzoformattxout_to_js_value: Rlt,
        alonzoformattxout_to_json: Plt,
        anchor_anchor_doc_hash: oP,
        anchor_anchor_url: aP,
        anchor_from_cbor_bytes: QT,
        anchor_from_cbor_hex: eP,
        anchor_from_json: _P,
        anchor_new: iP,
        anchor_to_canonical_cbor_bytes: XT,
        anchor_to_canonical_cbor_hex: tP,
        anchor_to_cbor_bytes: JT,
        anchor_to_cbor_hex: $T,
        anchor_to_js_value: nP,
        anchor_to_json: rP,
        anchordochash_from_bech32: iht,
        anchordochash_from_hex: uht,
        anchordochash_from_raw_bytes: cht,
        anchordochash_to_bech32: oht,
        anchordochash_to_hex: dht,
        anchordochash_to_raw_bytes: sht,
        assetname_from_cbor_bytes: X_t,
        assetname_from_cbor_hex: tat,
        assetname_from_hex: eit,
        assetname_from_json: nat,
        assetname_from_raw_bytes: $ot,
        assetname_from_str: Jot,
        assetname_to_canonical_cbor_bytes: J_t,
        assetname_to_canonical_cbor_hex: $_t,
        assetname_to_cbor_bytes: W_t,
        assetname_to_cbor_hex: Q_t,
        assetname_to_hex: tit,
        assetname_to_js_value: rat,
        assetname_to_json: eat,
        assetname_to_raw_bytes: Qot,
        assetname_to_str: Xot,
        assetnamelist_add: CX,
        assetnamelist_get: UX,
        assetnamelist_len: RX,
        assetnamelist_new: PX,
        authcommitteehotcert_committee_cold_credential: Wz,
        authcommitteehotcert_committee_hot_credential: Jz,
        authcommitteehotcert_from_cbor_bytes: Dz,
        authcommitteehotcert_from_cbor_hex: Kz,
        authcommitteehotcert_from_json: Yz,
        authcommitteehotcert_new: Xz,
        authcommitteehotcert_to_canonical_cbor_bytes: qz,
        authcommitteehotcert_to_canonical_cbor_hex: Hz,
        authcommitteehotcert_to_cbor_bytes: zz,
        authcommitteehotcert_to_cbor_hex: Gz,
        authcommitteehotcert_to_js_value: Zz,
        authcommitteehotcert_to_json: Vz,
        auxiliarydata_add: tst,
        auxiliarydata_add_metadata: Jit,
        auxiliarydata_add_native_scripts: Xit,
        auxiliarydata_add_plutus_v1_scripts: Qit,
        auxiliarydata_add_plutus_v2_scripts: $it,
        auxiliarydata_as_conway: wst,
        auxiliarydata_as_shelley: pst,
        auxiliarydata_as_shelley_ma: bst,
        auxiliarydata_from_cbor_bytes: _st,
        auxiliarydata_from_cbor_hex: ist,
        auxiliarydata_from_json: dst,
        auxiliarydata_kind: gst,
        auxiliarydata_metadata: Vit,
        auxiliarydata_native_scripts: Zit,
        auxiliarydata_new: Kit,
        auxiliarydata_new_conway: fst,
        auxiliarydata_new_shelley: ust,
        auxiliarydata_new_shelley_ma: lst,
        auxiliarydata_plutus_v1_scripts: Yit,
        auxiliarydata_plutus_v2_scripts: Wit,
        auxiliarydata_to_canonical_cbor_bytes: nst,
        auxiliarydata_to_canonical_cbor_hex: ost,
        auxiliarydata_to_cbor_bytes: rst,
        auxiliarydata_to_cbor_hex: ast,
        auxiliarydata_to_js_value: cst,
        auxiliarydata_to_json: sst,
        auxiliarydatahash_from_bech32: Kwt,
        auxiliarydatahash_from_hex: Wwt,
        auxiliarydatahash_from_raw_bytes: Zwt,
        auxiliarydatahash_to_bech32: Hwt,
        auxiliarydatahash_to_hex: Ywt,
        auxiliarydatahash_to_raw_bytes: Vwt,
        baseaddress_from_address: p_t,
        baseaddress_network_id: b_t,
        baseaddress_new: f_t,
        baseaddress_payment: w_t,
        baseaddress_stake: y_t,
        baseaddress_to_address: g_t,
        biginteger_as_int: xot,
        biginteger_as_u64: Bot,
        biginteger_from_cbor_bytes: got,
        biginteger_from_cbor_hex: wot,
        biginteger_from_int: mot,
        biginteger_from_json: vot,
        biginteger_from_str: Iot,
        biginteger_to_canonical_cbor_bytes: fot,
        biginteger_to_canonical_cbor_hex: bot,
        biginteger_to_cbor_bytes: lot,
        biginteger_to_cbor_hex: pot,
        biginteger_to_js_value: hot,
        biginteger_to_json: yot,
        biginteger_to_str: kot,
        bip32privatekey_chaincode: O0t,
        bip32privatekey_derive: y0t,
        bip32privatekey_from_128_xprv: h0t,
        bip32privatekey_from_bech32: j0t,
        bip32privatekey_from_bip39_entropy: E0t,
        bip32privatekey_from_raw_bytes: B0t,
        bip32privatekey_generate_ed25519_bip32: m0t,
        bip32privatekey_to_128_xprv: v0t,
        bip32privatekey_to_bech32: S0t,
        bip32privatekey_to_public: k0t,
        bip32privatekey_to_raw_bytes: x0t,
        bip32privatekey_to_raw_key: I0t,
        bip32publickey_chaincode: N0t,
        bip32publickey_derive: A0t,
        bip32publickey_from_bech32: U0t,
        bip32publickey_from_raw_bytes: P0t,
        bip32publickey_to_bech32: C0t,
        bip32publickey_to_raw_bytes: R0t,
        bip32publickey_to_raw_key: T0t,
        block_auxiliary_data_set: mJ,
        block_from_cbor_bytes: uJ,
        block_from_cbor_hex: gJ,
        block_from_json: wJ,
        block_header: yJ,
        block_invalid_transactions: IJ,
        block_new: kJ,
        block_to_canonical_cbor_bytes: dJ,
        block_to_canonical_cbor_hex: fJ,
        block_to_cbor_bytes: cJ,
        block_to_cbor_hex: lJ,
        block_to_js_value: bJ,
        block_to_json: pJ,
        block_transaction_bodies: hJ,
        block_transaction_witness_sets: vJ,
        blockbodyhash_from_bech32: lyt,
        blockbodyhash_from_hex: byt,
        blockbodyhash_from_raw_bytes: gyt,
        blockbodyhash_to_bech32: uyt,
        blockbodyhash_to_hex: pyt,
        blockbodyhash_to_raw_bytes: fyt,
        blockheaderhash_from_bech32: hyt,
        blockheaderhash_from_hex: kyt,
        blockheaderhash_from_raw_bytes: myt,
        blockheaderhash_to_bech32: yyt,
        blockheaderhash_to_hex: Iyt,
        blockheaderhash_to_raw_bytes: vyt,
        bootstrapwitness_attributes: tW,
        bootstrapwitness_chain_code: $Y,
        bootstrapwitness_from_cbor_bytes: HY,
        bootstrapwitness_from_cbor_hex: ZY,
        bootstrapwitness_from_json: JY,
        bootstrapwitness_new: eW,
        bootstrapwitness_public_key: XY,
        bootstrapwitness_signature: QY,
        bootstrapwitness_to_address: DT,
        bootstrapwitness_to_canonical_cbor_bytes: GY,
        bootstrapwitness_to_canonical_cbor_hex: VY,
        bootstrapwitness_to_cbor_bytes: DY,
        bootstrapwitness_to_cbor_hex: KY,
        bootstrapwitness_to_js_value: WY,
        bootstrapwitness_to_json: YY,
        bootstrapwitnesslist_add: qX,
        bootstrapwitnesslist_get: zX,
        bootstrapwitnesslist_len: LX,
        bootstrapwitnesslist_new: MX,
        byronaddress_content: ez,
        byronaddress_crc: rz,
        byronaddress_from_address: out,
        byronaddress_from_address_content: iut,
        byronaddress_from_base58: nut,
        byronaddress_from_cbor_bytes: QL,
        byronaddress_from_cbor_hex: tz,
        byronaddress_is_valid: _ut,
        byronaddress_new: nz,
        byronaddress_to_address: aut,
        byronaddress_to_base58: rut,
        byronaddress_to_cbor_bytes: XL,
        byronaddress_to_cbor_hex: $L,
        byronscript_from_bech32: Tdt,
        byronscript_from_hex: Cdt,
        byronscript_from_raw_bytes: Rdt,
        byronscript_to_bech32: Adt,
        byronscript_to_hex: Udt,
        byronscript_to_raw_bytes: Pdt,
        byrontxout_address: Cz,
        byrontxout_amount: Nz,
        byrontxout_from_cbor_bytes: Pz,
        byrontxout_from_cbor_hex: Uz,
        byrontxout_new: Mz,
        byrontxout_to_cbor_bytes: Tz,
        byrontxout_to_cbor_hex: Rz,
        calc_script_data_hash: zT,
        calc_script_data_hash_from_witness: qT,
        certificate_as_auth_committee_hot_cert: Mq,
        certificate_as_pool_registration: Oq,
        certificate_as_pool_retirement: Fq,
        certificate_as_reg_cert: Aq,
        certificate_as_reg_drep_cert: zq,
        certificate_as_resign_committee_cold_cert: Lq,
        certificate_as_stake_delegation: Eq,
        certificate_as_stake_deregistration: Sq,
        certificate_as_stake_reg_deleg_cert: Uq,
        certificate_as_stake_registration: jq,
        certificate_as_stake_vote_deleg_cert: Rq,
        certificate_as_stake_vote_reg_deleg_cert: Nq,
        certificate_as_unreg_cert: Tq,
        certificate_as_unreg_drep_cert: qq,
        certificate_as_update_drep_cert: Dq,
        certificate_as_vote_deleg_cert: Pq,
        certificate_as_vote_reg_deleg_cert: Cq,
        certificate_from_cbor_bytes: eq,
        certificate_from_cbor_hex: _q,
        certificate_from_json: iq,
        certificate_kind: xq,
        certificate_new_auth_committee_hot_cert: vq,
        certificate_new_pool_registration: uq,
        certificate_new_pool_retirement: lq,
        certificate_new_reg_cert: fq,
        certificate_new_reg_drep_cert: Iq,
        certificate_new_resign_committee_cold_cert: mq,
        certificate_new_stake_delegation: dq,
        certificate_new_stake_deregistration: cq,
        certificate_new_stake_reg_deleg_cert: wq,
        certificate_new_stake_registration: sq,
        certificate_new_stake_vote_deleg_cert: bq,
        certificate_new_stake_vote_reg_deleg_cert: hq,
        certificate_new_unreg_cert: gq,
        certificate_new_unreg_drep_cert: kq,
        certificate_new_update_drep_cert: Bq,
        certificate_new_vote_deleg_cert: pq,
        certificate_new_vote_reg_deleg_cert: yq,
        certificate_to_canonical_cbor_bytes: tq,
        certificate_to_canonical_cbor_hex: nq,
        certificate_to_cbor_bytes: $z,
        certificate_to_cbor_hex: rq,
        certificate_to_js_value: oq,
        certificate_to_json: aq,
        certificatelist_add: VX,
        certificatelist_get: KX,
        certificatelist_len: HX,
        certificatelist_new: GX,
        cip25chunkablestring_as_chunked: iO,
        cip25chunkablestring_as_single: oO,
        cip25chunkablestring_from_cbor_bytes: XE,
        cip25chunkablestring_from_cbor_hex: $E,
        cip25chunkablestring_from_json: rO,
        cip25chunkablestring_from_string: sF,
        cip25chunkablestring_kind: aO,
        cip25chunkablestring_new_chunked: _O,
        cip25chunkablestring_new_single: nO,
        cip25chunkablestring_to_cbor_bytes: JE,
        cip25chunkablestring_to_cbor_hex: QE,
        cip25chunkablestring_to_js_value: eO,
        cip25chunkablestring_to_json: tO,
        cip25chunkablestring_to_string: cF,
        cip25filesdetails_from_cbor_bytes: dO,
        cip25filesdetails_from_cbor_hex: lO,
        cip25filesdetails_from_json: pO,
        cip25filesdetails_media_type: wO,
        cip25filesdetails_name: bO,
        cip25filesdetails_new: hO,
        cip25filesdetails_src: yO,
        cip25filesdetails_to_cbor_bytes: cO,
        cip25filesdetails_to_cbor_hex: uO,
        cip25filesdetails_to_js_value: gO,
        cip25filesdetails_to_json: fO,
        cip25labelmetadata_from_cbor_bytes: IF,
        cip25labelmetadata_from_cbor_hex: BF,
        cip25labelmetadata_from_json: SF,
        cip25labelmetadata_get: FF,
        cip25labelmetadata_new: EF,
        cip25labelmetadata_set: OF,
        cip25labelmetadata_to_cbor_bytes: mF,
        cip25labelmetadata_to_cbor_hex: kF,
        cip25labelmetadata_to_js_value: jF,
        cip25labelmetadata_to_json: xF,
        cip25labelmetadata_version: AF,
        cip25metadata_add_to_metadata: _F,
        cip25metadata_from_cbor_bytes: VE,
        cip25metadata_from_json: HE,
        cip25metadata_from_metadata: nF,
        cip25metadata_key_721: ZE,
        cip25metadata_new: YE,
        cip25metadata_to_cbor_bytes: KE,
        cip25metadata_to_js_value: GE,
        cip25metadata_to_json: DE,
        cip25metadata_to_metadata: rF,
        cip25metadatadetails_description: MO,
        cip25metadatadetails_files: zO,
        cip25metadatadetails_from_cbor_bytes: SO,
        cip25metadatadetails_from_cbor_hex: OO,
        cip25metadatadetails_from_json: TO,
        cip25metadatadetails_image: RO,
        cip25metadatadetails_media_type: CO,
        cip25metadatadetails_name: PO,
        cip25metadatadetails_new: qO,
        cip25metadatadetails_set_description: NO,
        cip25metadatadetails_set_files: LO,
        cip25metadatadetails_set_media_type: UO,
        cip25metadatadetails_to_cbor_bytes: jO,
        cip25metadatadetails_to_cbor_hex: EO,
        cip25metadatadetails_to_js_value: AO,
        cip25metadatadetails_to_json: FO,
        cip25minimetadatadetails_from_json: fF,
        cip25minimetadatadetails_image: yF,
        cip25minimetadatadetails_loose_parse: hF,
        cip25minimetadatadetails_name: bF,
        cip25minimetadatadetails_new: gF,
        cip25minimetadatadetails_set_image: wF,
        cip25minimetadatadetails_set_name: pF,
        cip25minimetadatadetails_to_js_value: lF,
        cip25minimetadatadetails_to_json: uF,
        cip25string64_from_cbor_bytes: HO,
        cip25string64_from_cbor_hex: VO,
        cip25string64_from_json: WO,
        cip25string64_get: JO,
        cip25string64_get_str: iF,
        cip25string64_new: aF,
        cip25string64_to_cbor_bytes: GO,
        cip25string64_to_cbor_hex: KO,
        cip25string64_to_js_value: YO,
        cip25string64_to_json: ZO,
        cip25string64_to_str: oF,
        cip25string64list_add: eF,
        cip25string64list_get: tF,
        cip25string64list_len: $O,
        cip25string64list_new: QO,
        cip36delegation_from_cbor_bytes: Xj,
        cip36delegation_from_cbor_hex: tS,
        cip36delegation_from_json: nS,
        cip36delegation_new: oS,
        cip36delegation_to_canonical_cbor_bytes: Jj,
        cip36delegation_to_canonical_cbor_hex: $j,
        cip36delegation_to_cbor_bytes: Wj,
        cip36delegation_to_cbor_hex: Qj,
        cip36delegation_to_js_value: rS,
        cip36delegation_to_json: eS,
        cip36delegation_voting_pub_key: _S,
        cip36delegation_weight: aS,
        cip36delegationdistribution_as_legacy: mS,
        cip36delegationdistribution_as_weighted: vS,
        cip36delegationdistribution_from_cbor_bytes: dS,
        cip36delegationdistribution_from_cbor_hex: fS,
        cip36delegationdistribution_from_json: bS,
        cip36delegationdistribution_kind: hS,
        cip36delegationdistribution_new_legacy: yS,
        cip36delegationdistribution_new_weighted: wS,
        cip36delegationdistribution_to_canonical_cbor_bytes: cS,
        cip36delegationdistribution_to_canonical_cbor_hex: lS,
        cip36delegationdistribution_to_cbor_bytes: sS,
        cip36delegationdistribution_to_cbor_hex: uS,
        cip36delegationdistribution_to_js_value: pS,
        cip36delegationdistribution_to_json: gS,
        cip36delegationlist_add: jS,
        cip36delegationlist_get: xS,
        cip36delegationlist_len: BS,
        cip36delegationlist_new: kS,
        cip36deregistrationcbor_deregistration_witness: TS,
        cip36deregistrationcbor_from_json: FS,
        cip36deregistrationcbor_key_deregistration: AS,
        cip36deregistrationcbor_new: PS,
        cip36deregistrationcbor_to_js_value: OS,
        cip36deregistrationcbor_to_json: ES,
        cip36deregistrationwitness_from_cbor_bytes: NS,
        cip36deregistrationwitness_from_cbor_hex: zS,
        cip36deregistrationwitness_from_json: GS,
        cip36deregistrationwitness_new: KS,
        cip36deregistrationwitness_stake_witness: HS,
        cip36deregistrationwitness_to_canonical_cbor_bytes: CS,
        cip36deregistrationwitness_to_canonical_cbor_hex: LS,
        cip36deregistrationwitness_to_cbor_bytes: US,
        cip36deregistrationwitness_to_cbor_hex: MS,
        cip36deregistrationwitness_to_js_value: DS,
        cip36deregistrationwitness_to_json: qS,
        cip36keyderegistration_from_cbor_bytes: WS,
        cip36keyderegistration_from_cbor_hex: QS,
        cip36keyderegistration_from_json: eE,
        cip36keyderegistration_nonce: nE,
        cip36keyderegistration_set_voting_purpose: _E,
        cip36keyderegistration_stake_credential: rE,
        cip36keyderegistration_to_canonical_cbor_bytes: YS,
        cip36keyderegistration_to_canonical_cbor_hex: XS,
        cip36keyderegistration_to_cbor_bytes: ZS,
        cip36keyderegistration_to_cbor_hex: JS,
        cip36keyderegistration_to_js_value: tE,
        cip36keyderegistration_to_json: $S,
        cip36keyderegistration_voting_purpose: aE,
        cip36keyregistration_delegation: bE,
        cip36keyregistration_from_cbor_bytes: cE,
        cip36keyregistration_from_cbor_hex: lE,
        cip36keyregistration_from_json: pE,
        cip36keyregistration_nonce: hE,
        cip36keyregistration_payment_address: yE,
        cip36keyregistration_set_voting_purpose: vE,
        cip36keyregistration_stake_credential: wE,
        cip36keyregistration_to_canonical_cbor_bytes: sE,
        cip36keyregistration_to_canonical_cbor_hex: uE,
        cip36keyregistration_to_cbor_bytes: iE,
        cip36keyregistration_to_cbor_hex: dE,
        cip36keyregistration_to_js_value: gE,
        cip36keyregistration_to_json: fE,
        cip36keyregistration_voting_purpose: mE,
        cip36registrationcbor_from_json: xE,
        cip36registrationcbor_key_registration: jE,
        cip36registrationcbor_new: EE,
        cip36registrationcbor_registration_witness: SE,
        cip36registrationcbor_to_js_value: BE,
        cip36registrationcbor_to_json: kE,
        cip36registrationwitness_from_cbor_bytes: TE,
        cip36registrationwitness_from_cbor_hex: UE,
        cip36registrationwitness_from_json: ME,
        cip36registrationwitness_new: zE,
        cip36registrationwitness_stake_witness: LE,
        cip36registrationwitness_to_canonical_cbor_bytes: AE,
        cip36registrationwitness_to_canonical_cbor_hex: RE,
        cip36registrationwitness_to_cbor_bytes: FE,
        cip36registrationwitness_to_cbor_hex: PE,
        cip36registrationwitness_to_js_value: NE,
        cip36registrationwitness_to_json: CE,
        committeecoldcredentiallist_add: XX,
        committeecoldcredentiallist_get: JX,
        committeecoldcredentiallist_len: WX,
        committeecoldcredentiallist_new: YX,
        compute_total_ex_units: flt,
        constitution_anchor: yP,
        constitution_from_cbor_bytes: uP,
        constitution_from_cbor_hex: gP,
        constitution_from_json: wP,
        constitution_new: vP,
        constitution_script_hash: hP,
        constitution_to_canonical_cbor_bytes: dP,
        constitution_to_canonical_cbor_hex: fP,
        constitution_to_cbor_bytes: cP,
        constitution_to_cbor_hex: lP,
        constitution_to_js_value: bP,
        constitution_to_json: pP,
        constrplutusdata_alternative: kut,
        constrplutusdata_fields: But,
        constrplutusdata_from_cbor_bytes: but,
        constrplutusdata_from_cbor_hex: hut,
        constrplutusdata_from_json: Iut,
        constrplutusdata_new: xut,
        constrplutusdata_to_canonical_cbor_bytes: put,
        constrplutusdata_to_canonical_cbor_hex: yut,
        constrplutusdata_to_cbor_bytes: gut,
        constrplutusdata_to_cbor_hex: wut,
        constrplutusdata_to_js_value: mut,
        constrplutusdata_to_json: vut,
        conwayformatauxdata_from_cbor_bytes: mst,
        conwayformatauxdata_from_cbor_hex: Bst,
        conwayformatauxdata_from_json: Sst,
        conwayformatauxdata_metadata: Ost,
        conwayformatauxdata_native_scripts: Ast,
        conwayformatauxdata_new: Mst,
        conwayformatauxdata_plutus_v1_scripts: Pst,
        conwayformatauxdata_plutus_v2_scripts: Ust,
        conwayformatauxdata_plutus_v3_scripts: Nst,
        conwayformatauxdata_set_metadata: Est,
        conwayformatauxdata_set_native_scripts: Fst,
        conwayformatauxdata_set_plutus_v1_scripts: Tst,
        conwayformatauxdata_set_plutus_v2_scripts: Rst,
        conwayformatauxdata_set_plutus_v3_scripts: Cst,
        conwayformatauxdata_to_canonical_cbor_bytes: vst,
        conwayformatauxdata_to_canonical_cbor_hex: kst,
        conwayformatauxdata_to_cbor_bytes: hst,
        conwayformatauxdata_to_cbor_hex: Ist,
        conwayformatauxdata_to_js_value: jst,
        conwayformatauxdata_to_json: xst,
        conwayformattxout_address: Xlt,
        conwayformattxout_amount: Qlt,
        conwayformattxout_datum_option: tft,
        conwayformattxout_from_cbor_bytes: Hlt,
        conwayformattxout_from_cbor_hex: Zlt,
        conwayformattxout_from_json: Jlt,
        conwayformattxout_new: nft,
        conwayformattxout_script_reference: rft,
        conwayformattxout_set_datum_option: $lt,
        conwayformattxout_set_script_reference: eft,
        conwayformattxout_to_canonical_cbor_bytes: Glt,
        conwayformattxout_to_canonical_cbor_hex: Vlt,
        conwayformattxout_to_cbor_bytes: Dlt,
        conwayformattxout_to_cbor_hex: Klt,
        conwayformattxout_to_js_value: Wlt,
        conwayformattxout_to_json: Ylt,
        costmodels_from_cbor_bytes: VC,
        costmodels_from_cbor_hex: WC,
        costmodels_from_json: QC,
        costmodels_inner: $C,
        costmodels_to_canonical_cbor_bytes: KC,
        costmodels_to_canonical_cbor_hex: YC,
        costmodels_to_cbor_bytes: HC,
        costmodels_to_cbor_hex: ZC,
        costmodels_to_js_value: XC,
        costmodels_to_json: JC,
        crc32_finalize: EL,
        crc32_new: jL,
        crc32_update: SL,
        credential_as_pub_key: rD,
        credential_as_script: nD,
        credential_from_cbor_bytes: Vq,
        credential_from_cbor_hex: Wq,
        credential_from_json: Qq,
        credential_kind: eD,
        credential_new_pub_key: $q,
        credential_new_script: tD,
        credential_to_canonical_cbor_bytes: Kq,
        credential_to_canonical_cbor_hex: Yq,
        credential_to_cbor_bytes: Hq,
        credential_to_cbor_hex: Zq,
        credential_to_js_value: Xq,
        credential_to_json: Jq,
        datumhash_from_bech32: jyt,
        datumhash_from_hex: Fyt,
        datumhash_from_raw_bytes: Eyt,
        datumhash_to_bech32: xyt,
        datumhash_to_hex: Oyt,
        datumhash_to_raw_bytes: Syt,
        datumoption_as_datum: yft,
        datumoption_as_hash: wft,
        datumoption_from_cbor_bytes: ift,
        datumoption_from_cbor_hex: dft,
        datumoption_from_json: fft,
        datumoption_kind: bft,
        datumoption_new_datum: pft,
        datumoption_new_hash: gft,
        datumoption_to_canonical_cbor_bytes: oft,
        datumoption_to_canonical_cbor_hex: cft,
        datumoption_to_cbor_bytes: aft,
        datumoption_to_cbor_hex: sft,
        datumoption_to_js_value: lft,
        datumoption_to_json: uft,
        decode_arbitrary_bytes_from_metadatum: Xat,
        decode_metadatum_to_json_str: TC,
        decode_plutus_datum_to_json_str: RC,
        dnsname_from_cbor_bytes: iD,
        dnsname_from_cbor_hex: dD,
        dnsname_from_json: fD,
        dnsname_get: gD,
        dnsname_to_canonical_cbor_bytes: oD,
        dnsname_to_canonical_cbor_hex: cD,
        dnsname_to_cbor_bytes: aD,
        dnsname_to_cbor_hex: sD,
        dnsname_to_js_value: lD,
        dnsname_to_json: uD,
        drep_as_key: FD,
        drep_as_script: AD,
        drep_from_cbor_bytes: yD,
        drep_from_cbor_hex: mD,
        drep_from_json: BD,
        drep_kind: OD,
        drep_new_always_abstain: SD,
        drep_new_always_no_confidence: ED,
        drep_new_key: xD,
        drep_new_script: jD,
        drep_to_canonical_cbor_bytes: wD,
        drep_to_canonical_cbor_hex: vD,
        drep_to_cbor_bytes: bD,
        drep_to_cbor_hex: hD,
        drep_to_js_value: kD,
        drep_to_json: ID,
        drepvotingthresholds_committee_no_confidence: dQ,
        drepvotingthresholds_committee_normal: cQ,
        drepvotingthresholds_from_cbor_bytes: eQ,
        drepvotingthresholds_from_cbor_hex: _Q,
        drepvotingthresholds_from_json: iQ,
        drepvotingthresholds_hard_fork_initiation: lQ,
        drepvotingthresholds_motion_no_confidence: sQ,
        drepvotingthresholds_new: yQ,
        drepvotingthresholds_pp_economic_group: gQ,
        drepvotingthresholds_pp_governance_group: bQ,
        drepvotingthresholds_pp_network_group: fQ,
        drepvotingthresholds_pp_technical_group: pQ,
        drepvotingthresholds_to_canonical_cbor_bytes: tQ,
        drepvotingthresholds_to_canonical_cbor_hex: nQ,
        drepvotingthresholds_to_cbor_bytes: $X,
        drepvotingthresholds_to_cbor_hex: rQ,
        drepvotingthresholds_to_js_value: oQ,
        drepvotingthresholds_to_json: aQ,
        drepvotingthresholds_treasury_withdrawal: wQ,
        drepvotingthresholds_update_constitution: uQ,
        ed25519keyhash_from_bech32: dwt,
        ed25519keyhash_from_hex: gwt,
        ed25519keyhash_from_raw_bytes: lwt,
        ed25519keyhash_to_bech32: cwt,
        ed25519keyhash_to_hex: fwt,
        ed25519keyhash_to_raw_bytes: uwt,
        ed25519keyhashlist_add: kQ,
        ed25519keyhashlist_get: IQ,
        ed25519keyhashlist_len: mQ,
        ed25519keyhashlist_new: vQ,
        ed25519signature_from_bech32: nwt,
        ed25519signature_from_hex: iwt,
        ed25519signature_from_raw_bytes: awt,
        ed25519signature_to_bech32: rwt,
        ed25519signature_to_hex: owt,
        ed25519signature_to_raw_bytes: _wt,
        emip3_decrypt_with_password: pht,
        emip3_encrypt_with_password: ght,
        encode_arbitrary_bytes_as_metadatum: Jat,
        encode_json_str_to_metadatum: AC,
        encode_json_str_to_plutus_datum: PC,
        enterpriseaddress_from_address: I_t,
        enterpriseaddress_network_id: k_t,
        enterpriseaddress_new: v_t,
        enterpriseaddress_payment: B_t,
        enterpriseaddress_to_address: m_t,
        exunitprices_from_cbor_bytes: nN,
        exunitprices_from_cbor_hex: oN,
        exunitprices_from_json: cN,
        exunitprices_mem_price: dN,
        exunitprices_new: lN,
        exunitprices_step_price: uN,
        exunitprices_to_canonical_cbor_bytes: rN,
        exunitprices_to_canonical_cbor_hex: aN,
        exunitprices_to_cbor_bytes: eN,
        exunitprices_to_cbor_hex: _N,
        exunitprices_to_js_value: sN,
        exunitprices_to_json: iN,
        exunits_checked_add: llt,
        exunits_from_cbor_bytes: bN,
        exunits_from_cbor_hex: hN,
        exunits_from_json: IN,
        exunits_mem: kN,
        exunits_new: xN,
        exunits_steps: BN,
        exunits_to_canonical_cbor_bytes: pN,
        exunits_to_canonical_cbor_hex: yN,
        exunits_to_cbor_bytes: gN,
        exunits_to_cbor_hex: wN,
        exunits_to_js_value: mN,
        exunits_to_json: vN,
        filesdetailslist_add: BO,
        filesdetailslist_get: kO,
        filesdetailslist_len: IO,
        filesdetailslist_new: mO,
        genesisdelegatehash_from_bech32: Awt,
        genesisdelegatehash_from_hex: Uwt,
        genesisdelegatehash_from_raw_bytes: Pwt,
        genesisdelegatehash_to_bech32: Fwt,
        genesisdelegatehash_to_hex: Rwt,
        genesisdelegatehash_to_raw_bytes: Twt,
        genesishash_from_bech32: Mwt,
        genesishash_from_hex: Dwt,
        genesishash_from_raw_bytes: zwt,
        genesishash_to_bech32: Nwt,
        genesishash_to_hex: qwt,
        genesishash_to_raw_bytes: Lwt,
        get_deposit: KT,
        get_implicit_input: HT,
        govaction_as_hard_fork_initiation_action: zP,
        govaction_as_new_constitution: HP,
        govaction_as_no_confidence: DP,
        govaction_as_parameter_change_action: LP,
        govaction_as_treasury_withdrawals_action: qP,
        govaction_as_update_committee: GP,
        govaction_from_cbor_bytes: BP,
        govaction_from_cbor_hex: SP,
        govaction_from_json: FP,
        govaction_kind: MP,
        govaction_new_hard_fork_initiation_action: TP,
        govaction_new_info_action: NP,
        govaction_new_new_constitution: CP,
        govaction_new_no_confidence: RP,
        govaction_new_parameter_change_action: AP,
        govaction_new_treasury_withdrawals_action: PP,
        govaction_new_update_committee: UP,
        govaction_script_hash: VT,
        govaction_to_canonical_cbor_bytes: kP,
        govaction_to_canonical_cbor_hex: jP,
        govaction_to_cbor_bytes: IP,
        govaction_to_cbor_hex: xP,
        govaction_to_js_value: OP,
        govaction_to_json: EP,
        govactionid_from_cbor_bytes: YP,
        govactionid_from_cbor_hex: XP,
        govactionid_from_json: tR,
        govactionid_gov_action_index: rR,
        govactionid_new: nR,
        govactionid_to_canonical_cbor_bytes: ZP,
        govactionid_to_canonical_cbor_hex: JP,
        govactionid_to_cbor_bytes: VP,
        govactionid_to_cbor_hex: WP,
        govactionid_to_js_value: $P,
        govactionid_to_json: QP,
        govactionid_transaction_id: eR,
        govactionidlist_add: EQ,
        govactionidlist_get: SQ,
        govactionidlist_len: jQ,
        govactionidlist_new: xQ,
        hardforkinitiationaction_action_id: gR,
        hardforkinitiationaction_from_cbor_bytes: iR,
        hardforkinitiationaction_from_cbor_hex: dR,
        hardforkinitiationaction_from_json: fR,
        hardforkinitiationaction_new: bR,
        hardforkinitiationaction_to_canonical_cbor_bytes: oR,
        hardforkinitiationaction_to_canonical_cbor_hex: cR,
        hardforkinitiationaction_to_cbor_bytes: aR,
        hardforkinitiationaction_to_cbor_hex: sR,
        hardforkinitiationaction_to_js_value: lR,
        hardforkinitiationaction_to_json: uR,
        hardforkinitiationaction_version: pR,
        hash_auxiliary_data: CT,
        hash_plutus_data: MT,
        hash_script_data: LT,
        hash_transaction: NT,
        hdaddresspayload_from_cbor_bytes: oz,
        hdaddresspayload_from_cbor_hex: sz,
        hdaddresspayload_get: cz,
        hdaddresspayload_to_cbor_bytes: az,
        hdaddresspayload_to_cbor_hex: iz,
        header_body_signature: UJ,
        header_from_cbor_bytes: SJ,
        header_from_cbor_hex: FJ,
        header_from_json: PJ,
        header_header_body: RJ,
        header_new: CJ,
        header_to_canonical_cbor_bytes: jJ,
        header_to_canonical_cbor_hex: OJ,
        header_to_cbor_bytes: xJ,
        header_to_cbor_hex: EJ,
        header_to_js_value: TJ,
        header_to_json: AJ,
        headerbody_block_body_hash: tX,
        headerbody_block_body_size: $J,
        headerbody_block_number: ZJ,
        headerbody_from_cbor_bytes: zJ,
        headerbody_from_cbor_hex: GJ,
        headerbody_from_json: VJ,
        headerbody_issuer_vkey: JJ,
        headerbody_new: nX,
        headerbody_operational_cert: eX,
        headerbody_prev_hash: WJ,
        headerbody_protocol_version: rX,
        headerbody_slot: YJ,
        headerbody_to_canonical_cbor_bytes: LJ,
        headerbody_to_canonical_cbor_hex: DJ,
        headerbody_to_cbor_bytes: MJ,
        headerbody_to_cbor_hex: qJ,
        headerbody_to_js_value: KJ,
        headerbody_to_json: HJ,
        headerbody_vrf_result: QJ,
        headerbody_vrf_vkey: XJ,
        inputaggregatewitnessdata_plutus_data: Hct,
        int_from_cbor_bytes: yht,
        int_from_json: mht,
        int_from_str: Bht,
        int_new: Iht,
        int_to_cbor_bytes: wht,
        int_to_json: hht,
        int_to_json_value: vht,
        int_to_str: kht,
        intlist_add: PQ,
        intlist_get: TQ,
        intlist_len: AQ,
        intlist_new: FQ,
        ipv4_from_cbor_bytes: UD,
        ipv4_from_cbor_hex: MD,
        ipv4_from_json: qD,
        ipv4_get: DD,
        ipv4_to_canonical_cbor_bytes: RD,
        ipv4_to_canonical_cbor_hex: ND,
        ipv4_to_cbor_bytes: PD,
        ipv4_to_cbor_hex: CD,
        ipv4_to_js_value: zD,
        ipv4_to_json: LD,
        ipv6_from_cbor_bytes: VD,
        ipv6_from_cbor_hex: WD,
        ipv6_from_json: QD,
        ipv6_get: $D,
        ipv6_to_canonical_cbor_bytes: KD,
        ipv6_to_canonical_cbor_hex: YD,
        ipv6_to_cbor_bytes: HD,
        ipv6_to_cbor_hex: ZD,
        ipv6_to_js_value: XD,
        ipv6_to_json: JD,
        kessignature_from_cbor_bytes: aW,
        kessignature_from_cbor_hex: sW,
        kessignature_from_json: uW,
        kessignature_get: lW,
        kessignature_to_canonical_cbor_bytes: _W,
        kessignature_to_canonical_cbor_hex: iW,
        kessignature_to_cbor_bytes: nW,
        kessignature_to_cbor_hex: oW,
        kessignature_to_js_value: dW,
        kessignature_to_json: cW,
        kesvkey_from_bech32: Zyt,
        kesvkey_from_hex: Xyt,
        kesvkey_from_raw_bytes: Wyt,
        kesvkey_to_bech32: Vyt,
        kesvkey_to_hex: Jyt,
        kesvkey_to_raw_bytes: Yyt,
        languagelist_add: dot,
        languagelist_get: cot,
        languagelist_len: sot,
        languagelist_new: iot,
        legacydaedalusprivatekey_chaincode: fht,
        legacyredeemer_data: MN,
        legacyredeemer_ex_units: LN,
        legacyredeemer_from_cbor_bytes: ON,
        legacyredeemer_from_cbor_hex: TN,
        legacyredeemer_from_json: UN,
        legacyredeemer_index: NN,
        legacyredeemer_new: zN,
        legacyredeemer_tag: CN,
        legacyredeemer_to_canonical_cbor_bytes: EN,
        legacyredeemer_to_canonical_cbor_hex: AN,
        legacyredeemer_to_cbor_bytes: SN,
        legacyredeemer_to_cbor_hex: FN,
        legacyredeemer_to_js_value: RN,
        legacyredeemer_to_json: PN,
        legacyredeemerlist_add: MQ,
        legacyredeemerlist_get: NQ,
        legacyredeemerlist_len: CQ,
        legacyredeemerlist_new: UQ,
        linearfee_coefficient: tot,
        linearfee_constant: eot,
        linearfee_new: $at,
        linearfee_ref_script_cost_per_byte: rot,
        make_daedalus_bootstrap_witness: uut,
        make_icarus_bootstrap_witness: lut,
        make_vkey_witness: GT,
        mapassetnametocoin_get: Hot,
        mapassetnametocoin_insert: Kot,
        mapassetnametocoin_is_empty: Yot,
        mapassetnametocoin_keys: Wot,
        mapassetnametocoin_len: Zot,
        mapassetnametocoin_new: Vot,
        mapassetnametononzeroint64_get: GQ,
        mapassetnametononzeroint64_insert: DQ,
        mapassetnametononzeroint64_keys: HQ,
        mapassetnametononzeroint64_len: qQ,
        mapassetnametononzeroint64_new: zQ,
        mapassetnametou64_get: WQ,
        mapassetnametou64_insert: YQ,
        mapassetnametou64_keys: JQ,
        mapassetnametou64_len: ZQ,
        mapassetnametou64_new: VQ,
        mapcommitteecoldcredentialtoepoch_get: e$,
        mapcommitteecoldcredentialtoepoch_insert: t$,
        mapcommitteecoldcredentialtoepoch_keys: r$,
        mapcommitteecoldcredentialtoepoch_len: $Q,
        mapcommitteecoldcredentialtoepoch_new: QQ,
        mapgovactionidtovotingprocedure_get: i$,
        mapgovactionidtovotingprocedure_insert: o$,
        mapgovactionidtovotingprocedure_keys: s$,
        mapgovactionidtovotingprocedure_len: a$,
        mapgovactionidtovotingprocedure_new: _$,
        mapplutusdatatoplutusdata_get: f$,
        mapplutusdatatoplutusdata_insert: l$,
        mapplutusdatatoplutusdata_keys: g$,
        mapplutusdatatoplutusdata_len: u$,
        mapplutusdatatoplutusdata_new: d$,
        mapredeemerkeytoredeemerval_get: h$,
        mapredeemerkeytoredeemerval_insert: y$,
        mapredeemerkeytoredeemerval_keys: v$,
        mapredeemerkeytoredeemerval_len: w$,
        mapredeemerkeytoredeemerval_new: b$,
        maprewardaccounttocoin_get: x$,
        maprewardaccounttocoin_insert: B$,
        maprewardaccounttocoin_keys: j$,
        maprewardaccounttocoin_len: k$,
        maprewardaccounttocoin_new: I$,
        mapstakecredentialtodeltacoin_get: A$,
        mapstakecredentialtodeltacoin_insert: F$,
        mapstakecredentialtodeltacoin_keys: T$,
        mapstakecredentialtodeltacoin_len: O$,
        mapstakecredentialtodeltacoin_new: E$,
        maptransactionindextoauxiliarydata_get: N$,
        maptransactionindextoauxiliarydata_insert: C$,
        maptransactionindextoauxiliarydata_keys: M$,
        maptransactionindextoauxiliarydata_len: U$,
        maptransactionindextoauxiliarydata_new: R$,
        maptransactionmetadatumtotransactionmetadatum_get: G$,
        maptransactionmetadatumtotransactionmetadatum_insert: D$,
        maptransactionmetadatumtotransactionmetadatum_keys: H$,
        maptransactionmetadatumtotransactionmetadatum_len: q$,
        maptransactionmetadatumtotransactionmetadatum_new: z$,
        mapu64toarri64_get: NC,
        mapu64toarri64_insert: MC,
        mapu64toarri64_is_empty: qC,
        mapu64toarri64_keys: DC,
        mapu64toarri64_len: zC,
        mapu64toarri64_new: LC,
        memory: Zj,
        metadata_get: Fat,
        metadata_get_all: Aat,
        metadata_labels: Tat,
        metadata_len: Eat,
        metadata_new: Sat,
        metadata_set: Oat,
        metadatumlist_add: sat,
        metadatumlist_get: iat,
        metadatumlist_len: oat,
        metadatumlist_new: aat,
        metadatummap_get: yat,
        metadatummap_get_all: hat,
        metadatummap_keys: vat,
        metadatummap_len: bat,
        metadatummap_new: pat,
        metadatummap_set: wat,
        min_ada_required: UC,
        min_fee: aot,
        min_no_script_fee: _ot,
        min_script_fee: not,
        mint_as_negative_multiasset: Bit,
        mint_as_positive_multiasset: kit,
        mint_checked_add: mit,
        mint_checked_sub: Iit,
        mint_get: yit,
        mint_get_assets: wit,
        mint_insert_assets: bit,
        mint_keys: vit,
        mint_new: git,
        mint_policy_count: pit,
        mint_set: hit,
        multiasset_checked_add: dit,
        multiasset_checked_sub: uit,
        multiasset_clamped_sub: lit,
        multiasset_get: iit,
        multiasset_get_assets: oit,
        multiasset_insert_assets: ait,
        multiasset_keys: cit,
        multiasset_new: nit,
        multiasset_policy_count: _it,
        multiasset_set: sit,
        multihostname_dns_name: dG,
        multihostname_from_cbor_bytes: nG,
        multihostname_from_cbor_hex: oG,
        multihostname_from_json: cG,
        multihostname_new: uG,
        multihostname_to_canonical_cbor_bytes: rG,
        multihostname_to_canonical_cbor_hex: aG,
        multihostname_to_cbor_bytes: eG,
        multihostname_to_cbor_hex: _G,
        multihostname_to_js_value: sG,
        multihostname_to_json: iG,
        nativescript_as_script_all: Nft,
        nativescript_as_script_any: Mft,
        nativescript_as_script_invalid_before: zft,
        nativescript_as_script_invalid_hereafter: qft,
        nativescript_as_script_n_of_k: Lft,
        nativescript_as_script_pubkey: Cft,
        nativescript_from_cbor_bytes: Ift,
        nativescript_from_cbor_hex: xft,
        nativescript_from_json: Eft,
        nativescript_get_required_signers: mlt,
        nativescript_hash: Ilt,
        nativescript_kind: Uft,
        nativescript_new_script_all: Fft,
        nativescript_new_script_any: Aft,
        nativescript_new_script_invalid_before: Pft,
        nativescript_new_script_invalid_hereafter: Rft,
        nativescript_new_script_n_of_k: Tft,
        nativescript_new_script_pubkey: Oft,
        nativescript_to_canonical_cbor_bytes: mft,
        nativescript_to_canonical_cbor_hex: Bft,
        nativescript_to_cbor_bytes: vft,
        nativescript_to_cbor_hex: kft,
        nativescript_to_js_value: Sft,
        nativescript_to_json: jft,
        nativescript_verify: klt,
        nativescriptlist_add: W$,
        nativescriptlist_get: Y$,
        nativescriptlist_len: Z$,
        nativescriptlist_new: V$,
        nativescriptwitnessinfo_assume_signature_count: Idt,
        nativescriptwitnessinfo_num_signatures: vdt,
        nativescriptwitnessinfo_vkeys: mdt,
        networkid_from_cbor_bytes: Aot,
        networkid_from_cbor_hex: Rot,
        networkid_from_json: Not,
        networkid_mainnet: Lot,
        networkid_network: qot,
        networkid_new: Mot,
        networkid_testnet: zot,
        networkid_to_canonical_cbor_bytes: Fot,
        networkid_to_canonical_cbor_hex: Pot,
        networkid_to_cbor_bytes: Oot,
        networkid_to_cbor_hex: Tot,
        networkid_to_js_value: Cot,
        networkid_to_json: Uot,
        networkinfo_mainnet: _J,
        networkinfo_network_id: eJ,
        networkinfo_new: tJ,
        networkinfo_preprod: oJ,
        networkinfo_preview: aJ,
        networkinfo_protocol_magic: rJ,
        networkinfo_sancho_testnet: iJ,
        networkinfo_testnet: nJ,
        newconstitution_action_id: SR,
        newconstitution_constitution: ER,
        newconstitution_from_cbor_bytes: vR,
        newconstitution_from_cbor_hex: kR,
        newconstitution_from_json: jR,
        newconstitution_new: OR,
        newconstitution_to_canonical_cbor_bytes: hR,
        newconstitution_to_canonical_cbor_hex: IR,
        newconstitution_to_cbor_bytes: yR,
        newconstitution_to_cbor_hex: mR,
        newconstitution_to_js_value: xR,
        newconstitution_to_json: BR,
        noconfidence_action_id: zR,
        noconfidence_from_cbor_bytes: PR,
        noconfidence_from_cbor_hex: CR,
        noconfidence_from_json: LR,
        noconfidence_new: qR,
        noconfidence_to_canonical_cbor_bytes: TR,
        noconfidence_to_canonical_cbor_hex: UR,
        noconfidence_to_cbor_bytes: AR,
        noconfidence_to_cbor_hex: RR,
        noconfidence_to_js_value: MR,
        noconfidence_to_json: NR,
        nonce_as_hash: jW,
        nonce_from_cbor_bytes: bW,
        nonce_from_cbor_hex: hW,
        nonce_from_json: IW,
        nonce_kind: xW,
        nonce_new_hash: BW,
        nonce_new_identity: kW,
        nonce_to_canonical_cbor_bytes: pW,
        nonce_to_canonical_cbor_hex: yW,
        nonce_to_cbor_bytes: gW,
        nonce_to_cbor_hex: wW,
        nonce_to_js_value: mW,
        nonce_to_json: vW,
        noncehash_from_bech32: tht,
        noncehash_from_hex: _ht,
        noncehash_from_raw_bytes: rht,
        noncehash_to_bech32: $yt,
        noncehash_to_hex: nht,
        noncehash_to_raw_bytes: eht,
        operationalcert_from_cbor_bytes: iX,
        operationalcert_from_cbor_hex: dX,
        operationalcert_from_json: fX,
        operationalcert_hot_vkey: gX,
        operationalcert_kes_period: bX,
        operationalcert_new: yX,
        operationalcert_sequence_number: pX,
        operationalcert_sigma: wX,
        operationalcert_to_canonical_cbor_bytes: oX,
        operationalcert_to_canonical_cbor_hex: cX,
        operationalcert_to_cbor_bytes: aX,
        operationalcert_to_cbor_hex: sX,
        operationalcert_to_js_value: lX,
        operationalcert_to_json: uX,
        parameterchangeaction_action_id: QR,
        parameterchangeaction_from_cbor_bytes: KR,
        parameterchangeaction_from_cbor_hex: YR,
        parameterchangeaction_from_json: XR,
        parameterchangeaction_new: eU,
        parameterchangeaction_policy_hash: tU,
        parameterchangeaction_to_canonical_cbor_bytes: HR,
        parameterchangeaction_to_canonical_cbor_hex: ZR,
        parameterchangeaction_to_cbor_bytes: GR,
        parameterchangeaction_to_cbor_hex: VR,
        parameterchangeaction_to_js_value: JR,
        parameterchangeaction_to_json: WR,
        parameterchangeaction_update: $R,
        partialplutuswitness_data: Dct,
        partialplutuswitness_new: zct,
        partialplutuswitness_script: qct,
        plutusdata_as_bytes: iM,
        plutusdata_as_constr_plutus_data: nM,
        plutusdata_as_integer: oM,
        plutusdata_as_list: aM,
        plutusdata_as_map: _M,
        plutusdata_from_cbor_bytes: HN,
        plutusdata_from_cbor_hex: ZN,
        plutusdata_from_json: JN,
        plutusdata_kind: rM,
        plutusdata_new_bytes: eM,
        plutusdata_new_constr_plutus_data: XN,
        plutusdata_new_integer: tM,
        plutusdata_new_list: $N,
        plutusdata_new_map: QN,
        plutusdata_to_canonical_cbor_bytes: GN,
        plutusdata_to_canonical_cbor_hex: VN,
        plutusdata_to_cardano_node_format: jut,
        plutusdata_to_cbor_bytes: DN,
        plutusdata_to_cbor_hex: KN,
        plutusdata_to_js_value: WN,
        plutusdata_to_json: YN,
        plutusdatalist_add: ttt,
        plutusdatalist_get: $$,
        plutusdatalist_len: Q$,
        plutusdatalist_new: X$,
        plutusmap_from_cbor_bytes: Fut,
        plutusmap_from_cbor_hex: Put,
        plutusmap_get: Mut,
        plutusmap_get_all: Lut,
        plutusmap_is_empty: Cut,
        plutusmap_keys: zut,
        plutusmap_len: Uut,
        plutusmap_new: Rut,
        plutusmap_set: Nut,
        plutusmap_to_canonical_cbor_bytes: Out,
        plutusmap_to_canonical_cbor_hex: Tut,
        plutusmap_to_cbor_bytes: Eut,
        plutusmap_to_cbor_hex: Aut,
        plutusscript_as_v1: Vut,
        plutusscript_as_v2: Zut,
        plutusscript_as_v3: Yut,
        plutusscript_from_v1: Dut,
        plutusscript_from_v2: Gut,
        plutusscript_from_v3: Hut,
        plutusscript_hash: Kut,
        plutusscript_version: Wut,
        plutusscriptwitness_hash: Mct,
        plutusscriptwitness_new_ref: Nct,
        plutusscriptwitness_new_script: Cct,
        plutusv1script_from_cbor_bytes: uM,
        plutusv1script_from_cbor_hex: gM,
        plutusv1script_from_hex: rlt,
        plutusv1script_from_json: wM,
        plutusv1script_from_raw_bytes: tlt,
        plutusv1script_hash: Jut,
        plutusv1script_to_canonical_cbor_bytes: dM,
        plutusv1script_to_canonical_cbor_hex: fM,
        plutusv1script_to_cbor_bytes: cM,
        plutusv1script_to_cbor_hex: lM,
        plutusv1script_to_hex: elt,
        plutusv1script_to_js_value: bM,
        plutusv1script_to_json: pM,
        plutusv1script_to_raw_bytes: $ut,
        plutusv1scriptlist_add: att,
        plutusv1scriptlist_get: _tt,
        plutusv1scriptlist_len: ntt,
        plutusv1scriptlist_new: rtt,
        plutusv2script_from_cbor_bytes: mM,
        plutusv2script_from_cbor_hex: BM,
        plutusv2script_from_hex: olt,
        plutusv2script_from_json: SM,
        plutusv2script_from_raw_bytes: _lt,
        plutusv2script_hash: Xut,
        plutusv2script_to_canonical_cbor_bytes: vM,
        plutusv2script_to_canonical_cbor_hex: kM,
        plutusv2script_to_cbor_bytes: hM,
        plutusv2script_to_cbor_hex: IM,
        plutusv2script_to_hex: alt,
        plutusv2script_to_js_value: jM,
        plutusv2script_to_json: xM,
        plutusv2script_to_raw_bytes: nlt,
        plutusv2scriptlist_add: dtt,
        plutusv2scriptlist_get: ctt,
        plutusv2scriptlist_len: stt,
        plutusv2scriptlist_new: itt,
        plutusv3script_from_cbor_bytes: AM,
        plutusv3script_from_cbor_hex: RM,
        plutusv3script_from_hex: dlt,
        plutusv3script_from_json: NM,
        plutusv3script_from_raw_bytes: slt,
        plutusv3script_hash: Qut,
        plutusv3script_to_canonical_cbor_bytes: FM,
        plutusv3script_to_canonical_cbor_hex: PM,
        plutusv3script_to_cbor_bytes: OM,
        plutusv3script_to_cbor_hex: TM,
        plutusv3script_to_hex: clt,
        plutusv3script_to_js_value: CM,
        plutusv3script_to_json: UM,
        plutusv3script_to_raw_bytes: ilt,
        plutusv3scriptlist_add: ptt,
        plutusv3scriptlist_get: gtt,
        plutusv3scriptlist_len: ftt,
        plutusv3scriptlist_new: ltt,
        pointeraddress_from_address: O_t,
        pointeraddress_network_id: F_t,
        pointeraddress_new: S_t,
        pointeraddress_payment: A_t,
        pointeraddress_stake: T_t,
        pointeraddress_to_address: E_t,
        policyidlist_add: vtt,
        policyidlist_get: htt,
        policyidlist_len: ytt,
        policyidlist_new: wtt,
        poolmetadata_from_cbor_bytes: pG,
        poolmetadata_from_cbor_hex: yG,
        poolmetadata_from_json: mG,
        poolmetadata_new: BG,
        poolmetadata_pool_metadata_hash: kG,
        poolmetadata_to_canonical_cbor_bytes: gG,
        poolmetadata_to_canonical_cbor_hex: wG,
        poolmetadata_to_cbor_bytes: fG,
        poolmetadata_to_cbor_hex: bG,
        poolmetadata_to_js_value: vG,
        poolmetadata_to_json: hG,
        poolmetadata_url: IG,
        poolmetadatahash_from_bech32: Qwt,
        poolmetadatahash_from_hex: ryt,
        poolmetadatahash_from_raw_bytes: tyt,
        poolmetadatahash_to_bech32: Xwt,
        poolmetadatahash_to_hex: eyt,
        poolmetadatahash_to_raw_bytes: $wt,
        poolparams_cost: MG,
        poolparams_from_cbor_bytes: EG,
        poolparams_from_cbor_hex: AG,
        poolparams_from_json: RG,
        poolparams_margin: LG,
        poolparams_new: HG,
        poolparams_operator: UG,
        poolparams_pledge: NG,
        poolparams_pool_metadata: GG,
        poolparams_pool_owners: qG,
        poolparams_relays: DG,
        poolparams_reward_account: zG,
        poolparams_to_canonical_cbor_bytes: SG,
        poolparams_to_canonical_cbor_hex: FG,
        poolparams_to_cbor_bytes: jG,
        poolparams_to_cbor_hex: OG,
        poolparams_to_js_value: PG,
        poolparams_to_json: TG,
        poolparams_vrf_keyhash: CG,
        poolregistration_from_cbor_bytes: YG,
        poolregistration_from_cbor_hex: XG,
        poolregistration_from_json: tH,
        poolregistration_new: rH,
        poolregistration_pool_params: eH,
        poolregistration_to_canonical_cbor_bytes: ZG,
        poolregistration_to_canonical_cbor_hex: JG,
        poolregistration_to_cbor_bytes: VG,
        poolregistration_to_cbor_hex: WG,
        poolregistration_to_js_value: $G,
        poolregistration_to_json: QG,
        poolretirement_epoch: gH,
        poolretirement_from_cbor_bytes: oH,
        poolretirement_from_cbor_hex: cH,
        poolretirement_from_json: lH,
        poolretirement_new: pH,
        poolretirement_pool: fH,
        poolretirement_to_canonical_cbor_bytes: aH,
        poolretirement_to_canonical_cbor_hex: sH,
        poolretirement_to_cbor_bytes: _H,
        poolretirement_to_cbor_hex: iH,
        poolretirement_to_js_value: uH,
        poolretirement_to_json: dH,
        poolvotingthresholds_committee_no_confidence: Ptt,
        poolvotingthresholds_committee_normal: Ttt,
        poolvotingthresholds_from_cbor_bytes: Btt,
        poolvotingthresholds_from_cbor_hex: Stt,
        poolvotingthresholds_from_json: Ftt,
        poolvotingthresholds_hard_fork_initiation: Rtt,
        poolvotingthresholds_motion_no_confidence: Att,
        poolvotingthresholds_new: Ctt,
        poolvotingthresholds_security_relevant_parameter_voting_threshold: Utt,
        poolvotingthresholds_to_canonical_cbor_bytes: ktt,
        poolvotingthresholds_to_canonical_cbor_hex: jtt,
        poolvotingthresholds_to_cbor_bytes: Itt,
        poolvotingthresholds_to_cbor_hex: xtt,
        poolvotingthresholds_to_js_value: Ott,
        poolvotingthresholds_to_json: Ett,
        privatekey_from_bech32: D0t,
        privatekey_from_extended_bytes: K0t,
        privatekey_from_normal_bytes: V0t,
        privatekey_generate_ed25519: z0t,
        privatekey_generate_ed25519extended: q0t,
        privatekey_sign: Z0t,
        privatekey_to_bech32: G0t,
        privatekey_to_public: L0t,
        privatekey_to_raw_bytes: H0t,
        proposalbuilder_build: VF,
        proposalbuilder_new: qF,
        proposalbuilder_with_native_script_proposal: GF,
        proposalbuilder_with_plutus_proposal: HF,
        proposalbuilder_with_plutus_proposal_inline_datum: KF,
        proposalbuilder_with_proposal: DF,
        proposalprocedure_anchor: pU,
        proposalprocedure_deposit: lU,
        proposalprocedure_from_cbor_bytes: aU,
        proposalprocedure_from_cbor_hex: sU,
        proposalprocedure_from_json: uU,
        proposalprocedure_gov_action: gU,
        proposalprocedure_new: bU,
        proposalprocedure_reward_account: fU,
        proposalprocedure_to_canonical_cbor_bytes: _U,
        proposalprocedure_to_canonical_cbor_hex: iU,
        proposalprocedure_to_cbor_bytes: nU,
        proposalprocedure_to_cbor_hex: oU,
        proposalprocedure_to_js_value: dU,
        proposalprocedure_to_json: cU,
        proposalprocedurelist_add: qtt,
        proposalprocedurelist_get: ztt,
        proposalprocedurelist_len: Ltt,
        proposalprocedurelist_new: Mtt,
        protocolmagic_new: cut,
        protocolmagic_to_int: dut,
        protocolparamupdate_ada_per_utxo_byte: jet,
        protocolparamupdate_collateral_percentage: Let,
        protocolparamupdate_committee_term_limit: Wet,
        protocolparamupdate_cost_models_for_script_languages: Oet,
        protocolparamupdate_d_rep_deposit: ert,
        protocolparamupdate_d_rep_inactivity_period: nrt,
        protocolparamupdate_d_rep_voting_thresholds: Ket,
        protocolparamupdate_execution_costs: Aet,
        protocolparamupdate_expansion_rate: vet,
        protocolparamupdate_from_cbor_bytes: Ktt,
        protocolparamupdate_from_cbor_hex: Ytt,
        protocolparamupdate_from_json: Xtt,
        protocolparamupdate_governance_action_deposit: $et,
        protocolparamupdate_governance_action_validity_period: Xet,
        protocolparamupdate_key_deposit: cet,
        protocolparamupdate_max_block_body_size: net,
        protocolparamupdate_max_block_ex_units: Uet,
        protocolparamupdate_max_block_header_size: iet,
        protocolparamupdate_max_collateral_inputs: qet,
        protocolparamupdate_max_transaction_size: aet,
        protocolparamupdate_max_tx_ex_units: Pet,
        protocolparamupdate_max_value_size: Net,
        protocolparamupdate_maximum_epoch: get,
        protocolparamupdate_min_committee_size: Zet,
        protocolparamupdate_min_fee_ref_script_cost_per_byte: art,
        protocolparamupdate_min_pool_cost: Bet,
        protocolparamupdate_minfee_a: $tt,
        protocolparamupdate_minfee_b: eet,
        protocolparamupdate_n_opt: bet,
        protocolparamupdate_new: ort,
        protocolparamupdate_pool_deposit: uet,
        protocolparamupdate_pool_pledge_influence: yet,
        protocolparamupdate_pool_voting_thresholds: Get,
        protocolparamupdate_set_ada_per_utxo_byte: xet,
        protocolparamupdate_set_collateral_percentage: Met,
        protocolparamupdate_set_committee_term_limit: Yet,
        protocolparamupdate_set_cost_models_for_script_languages: Eet,
        protocolparamupdate_set_d_rep_deposit: trt,
        protocolparamupdate_set_d_rep_inactivity_period: rrt,
        protocolparamupdate_set_d_rep_voting_thresholds: Het,
        protocolparamupdate_set_execution_costs: Fet,
        protocolparamupdate_set_expansion_rate: het,
        protocolparamupdate_set_governance_action_deposit: Qet,
        protocolparamupdate_set_governance_action_validity_period: Jet,
        protocolparamupdate_set_key_deposit: set,
        protocolparamupdate_set_max_block_body_size: ret,
        protocolparamupdate_set_max_block_ex_units: Ret,
        protocolparamupdate_set_max_block_header_size: oet,
        protocolparamupdate_set_max_collateral_inputs: zet,
        protocolparamupdate_set_max_transaction_size: _et,
        protocolparamupdate_set_max_tx_ex_units: Tet,
        protocolparamupdate_set_max_value_size: Cet,
        protocolparamupdate_set_maximum_epoch: fet,
        protocolparamupdate_set_min_committee_size: Vet,
        protocolparamupdate_set_min_fee_ref_script_cost_per_byte: _rt,
        protocolparamupdate_set_min_pool_cost: ket,
        protocolparamupdate_set_minfee_a: Qtt,
        protocolparamupdate_set_minfee_b: tet,
        protocolparamupdate_set_n_opt: pet,
        protocolparamupdate_set_pool_deposit: det,
        protocolparamupdate_set_pool_pledge_influence: wet,
        protocolparamupdate_set_pool_voting_thresholds: Det,
        protocolparamupdate_set_treasury_growth_rate: met,
        protocolparamupdate_to_canonical_cbor_bytes: Htt,
        protocolparamupdate_to_canonical_cbor_hex: Ztt,
        protocolparamupdate_to_cbor_bytes: Gtt,
        protocolparamupdate_to_cbor_hex: Vtt,
        protocolparamupdate_to_js_value: Jtt,
        protocolparamupdate_to_json: Wtt,
        protocolparamupdate_treasury_growth_rate: Iet,
        protocolversion_from_cbor_bytes: IX,
        protocolversion_from_cbor_hex: xX,
        protocolversion_from_json: EX,
        protocolversion_major: OX,
        protocolversion_minor: FX,
        protocolversion_new: AX,
        protocolversion_to_canonical_cbor_bytes: mX,
        protocolversion_to_canonical_cbor_hex: BX,
        protocolversion_to_cbor_bytes: vX,
        protocolversion_to_cbor_hex: kX,
        protocolversion_to_js_value: SX,
        protocolversion_to_json: jX,
        publickey_from_bech32: W0t,
        publickey_from_bytes: Q0t,
        publickey_hash: twt,
        publickey_to_bech32: J0t,
        publickey_to_raw_bytes: X0t,
        publickey_verify: $0t,
        rational_denominator: yrt,
        rational_from_cbor_bytes: drt,
        rational_from_cbor_hex: frt,
        rational_from_json: brt,
        rational_new: hrt,
        rational_numerator: wrt,
        rational_to_canonical_cbor_bytes: crt,
        rational_to_canonical_cbor_hex: lrt,
        rational_to_cbor_bytes: srt,
        rational_to_cbor_hex: urt,
        rational_to_js_value: prt,
        rational_to_json: grt,
        redeemerkey_from_cbor_bytes: qM,
        redeemerkey_from_cbor_hex: HM,
        redeemerkey_from_json: ZM,
        redeemerkey_index: WM,
        redeemerkey_new: JM,
        redeemerkey_tag: YM,
        redeemerkey_to_canonical_cbor_bytes: zM,
        redeemerkey_to_canonical_cbor_hex: GM,
        redeemerkey_to_cbor_bytes: LM,
        redeemerkey_to_cbor_hex: DM,
        redeemerkey_to_js_value: VM,
        redeemerkey_to_json: KM,
        redeemerkeylist_add: Brt,
        redeemerkeylist_get: krt,
        redeemerkeylist_len: Irt,
        redeemerkeylist_new: mrt,
        redeemers_as_arr_legacy_redeemer: kL,
        redeemers_as_map_redeemer_key_to_redeemer_val: BL,
        redeemers_from_cbor_bytes: fL,
        redeemers_from_cbor_hex: bL,
        redeemers_from_json: hL,
        redeemers_kind: IL,
        redeemers_new_arr_legacy_redeemer: vL,
        redeemers_new_map_redeemer_key_to_redeemer_val: mL,
        redeemers_to_canonical_cbor_bytes: lL,
        redeemers_to_canonical_cbor_hex: pL,
        redeemers_to_cbor_bytes: uL,
        redeemers_to_cbor_hex: gL,
        redeemers_to_flat_format: ult,
        redeemers_to_js_value: yL,
        redeemers_to_json: wL,
        redeemersetbuilder_add_cert: aA,
        redeemersetbuilder_add_mint: nA,
        redeemersetbuilder_add_proposal: oA,
        redeemersetbuilder_add_reward: _A,
        redeemersetbuilder_add_spend: rA,
        redeemersetbuilder_add_vote: iA,
        redeemersetbuilder_build: sA,
        redeemersetbuilder_is_empty: tA,
        redeemersetbuilder_new: $F,
        redeemersetbuilder_update_ex_units: eA,
        redeemerval_data: iL,
        redeemerval_ex_units: sL,
        redeemerval_from_cbor_bytes: tL,
        redeemerval_from_cbor_hex: nL,
        redeemerval_from_json: oL,
        redeemerval_new: cL,
        redeemerval_to_canonical_cbor_bytes: $M,
        redeemerval_to_canonical_cbor_hex: rL,
        redeemerval_to_cbor_bytes: QM,
        redeemerval_to_cbor_hex: eL,
        redeemerval_to_js_value: aL,
        redeemerval_to_json: _L,
        redeemerwitnesskey_from_redeemer: WF,
        redeemerwitnesskey_new: YF,
        regcert_deposit: SH,
        regcert_from_cbor_bytes: hH,
        regcert_from_cbor_hex: IH,
        regcert_from_json: xH,
        regcert_new: EH,
        regcert_stake_credential: jH,
        regcert_to_canonical_cbor_bytes: yH,
        regcert_to_canonical_cbor_hex: mH,
        regcert_to_cbor_bytes: wH,
        regcert_to_cbor_hex: vH,
        regcert_to_js_value: BH,
        regcert_to_json: kH,
        regdrepcert_anchor: qH,
        regdrepcert_deposit: zH,
        regdrepcert_drep_credential: LH,
        regdrepcert_from_cbor_bytes: TH,
        regdrepcert_from_cbor_hex: UH,
        regdrepcert_from_json: MH,
        regdrepcert_new: DH,
        regdrepcert_to_canonical_cbor_bytes: AH,
        regdrepcert_to_canonical_cbor_hex: RH,
        regdrepcert_to_cbor_bytes: FH,
        regdrepcert_to_cbor_hex: PH,
        regdrepcert_to_js_value: NH,
        regdrepcert_to_json: CH,
        relay_as_multi_host_name: aK,
        relay_as_single_host_addr: nK,
        relay_as_single_host_name: _K,
        relay_from_cbor_bytes: VH,
        relay_from_cbor_hex: WH,
        relay_from_json: QH,
        relay_kind: rK,
        relay_new_multi_host_name: eK,
        relay_new_single_host_addr: $H,
        relay_new_single_host_name: tK,
        relay_to_canonical_cbor_bytes: KH,
        relay_to_canonical_cbor_hex: YH,
        relay_to_cbor_bytes: HH,
        relay_to_cbor_hex: ZH,
        relay_to_js_value: XH,
        relay_to_json: JH,
        relaylist_add: Ort,
        relaylist_get: Ert,
        relaylist_len: Srt,
        relaylist_new: jrt,
        requiredwitnessset_add_all: Qct,
        requiredwitnessset_add_bootstrap: Zct,
        requiredwitnessset_add_plutus_datum_hash: Jct,
        requiredwitnessset_add_redeemer_tag: Xct,
        requiredwitnessset_add_script_hash: Wct,
        requiredwitnessset_add_script_ref: Yct,
        requiredwitnessset_add_vkey_key_hash: Vct,
        requiredwitnessset_new: $ct,
        requiredwitnessset_withdrawal_required_wits: tdt,
        resigncommitteecoldcert_anchor: wK,
        resigncommitteecoldcert_committee_cold_credential: bK,
        resigncommitteecoldcert_from_cbor_bytes: cK,
        resigncommitteecoldcert_from_cbor_hex: lK,
        resigncommitteecoldcert_from_json: pK,
        resigncommitteecoldcert_new: yK,
        resigncommitteecoldcert_to_canonical_cbor_bytes: sK,
        resigncommitteecoldcert_to_canonical_cbor_hex: uK,
        resigncommitteecoldcert_to_cbor_bytes: iK,
        resigncommitteecoldcert_to_cbor_hex: dK,
        resigncommitteecoldcert_to_js_value: gK,
        resigncommitteecoldcert_to_json: fK,
        rewardaccountlist_add: Rrt,
        rewardaccountlist_get: Prt,
        rewardaccountlist_len: Trt,
        rewardaccountlist_new: Art,
        rewardaddress_from_address: L_t,
        rewardaddress_from_json: C_t,
        rewardaddress_network_id: z_t,
        rewardaddress_new: N_t,
        rewardaddress_payment: q_t,
        rewardaddress_to_address: M_t,
        rewardaddress_to_js_value: U_t,
        rewardaddress_to_json: R_t,
        script_as_native: Jrt,
        script_as_plutus_v1: Xrt,
        script_as_plutus_v2: Qrt,
        script_as_plutus_v3: $rt,
        script_from_cbor_bytes: Mrt,
        script_from_cbor_hex: qrt,
        script_from_json: Hrt,
        script_hash: jot,
        script_kind: Wrt,
        script_language: Sot,
        script_new_native: Krt,
        script_new_plutus_v1: Vrt,
        script_new_plutus_v2: Zrt,
        script_new_plutus_v3: Yrt,
        script_to_canonical_cbor_bytes: Nrt,
        script_to_canonical_cbor_hex: zrt,
        script_to_cbor_bytes: Crt,
        script_to_cbor_hex: Lrt,
        script_to_js_value: Grt,
        script_to_json: Drt,
        scriptall_from_cbor_bytes: Kft,
        scriptall_from_cbor_hex: Yft,
        scriptall_from_json: Xft,
        scriptall_native_scripts: Qft,
        scriptall_new: $ft,
        scriptall_to_canonical_cbor_bytes: Hft,
        scriptall_to_canonical_cbor_hex: Zft,
        scriptall_to_cbor_bytes: Gft,
        scriptall_to_cbor_hex: Vft,
        scriptall_to_js_value: Jft,
        scriptall_to_json: Wft,
        scriptany_from_cbor_bytes: ngt,
        scriptany_from_cbor_hex: ogt,
        scriptany_from_json: cgt,
        scriptany_native_scripts: dgt,
        scriptany_new: ugt,
        scriptany_to_canonical_cbor_bytes: rgt,
        scriptany_to_canonical_cbor_hex: agt,
        scriptany_to_cbor_bytes: egt,
        scriptany_to_cbor_hex: _gt,
        scriptany_to_js_value: sgt,
        scriptany_to_json: igt,
        scriptdatahash_from_bech32: Pyt,
        scriptdatahash_from_hex: Nyt,
        scriptdatahash_from_raw_bytes: Uyt,
        scriptdatahash_to_bech32: Tyt,
        scriptdatahash_to_hex: Cyt,
        scriptdatahash_to_raw_bytes: Ryt,
        scripthash_from_bech32: wwt,
        scripthash_from_hex: mwt,
        scripthash_from_raw_bytes: hwt,
        scripthash_to_bech32: bwt,
        scripthash_to_hex: vwt,
        scripthash_to_raw_bytes: ywt,
        scriptinvalidbefore_before: Igt,
        scriptinvalidbefore_from_cbor_bytes: pgt,
        scriptinvalidbefore_from_cbor_hex: ygt,
        scriptinvalidbefore_from_json: mgt,
        scriptinvalidbefore_new: kgt,
        scriptinvalidbefore_to_canonical_cbor_bytes: ggt,
        scriptinvalidbefore_to_canonical_cbor_hex: wgt,
        scriptinvalidbefore_to_cbor_bytes: fgt,
        scriptinvalidbefore_to_cbor_hex: bgt,
        scriptinvalidbefore_to_js_value: vgt,
        scriptinvalidbefore_to_json: hgt,
        scriptinvalidhereafter_after: Rgt,
        scriptinvalidhereafter_from_cbor_bytes: Sgt,
        scriptinvalidhereafter_from_cbor_hex: Fgt,
        scriptinvalidhereafter_from_json: Pgt,
        scriptinvalidhereafter_new: Ugt,
        scriptinvalidhereafter_to_canonical_cbor_bytes: jgt,
        scriptinvalidhereafter_to_canonical_cbor_hex: Ogt,
        scriptinvalidhereafter_to_cbor_bytes: xgt,
        scriptinvalidhereafter_to_cbor_hex: Egt,
        scriptinvalidhereafter_to_js_value: Tgt,
        scriptinvalidhereafter_to_json: Agt,
        scriptnofk_from_cbor_bytes: Lgt,
        scriptnofk_from_cbor_hex: Dgt,
        scriptnofk_from_json: Kgt,
        scriptnofk_n: Vgt,
        scriptnofk_native_scripts: Zgt,
        scriptnofk_new: Ygt,
        scriptnofk_to_canonical_cbor_bytes: Mgt,
        scriptnofk_to_canonical_cbor_hex: qgt,
        scriptnofk_to_cbor_bytes: Ngt,
        scriptnofk_to_cbor_hex: zgt,
        scriptnofk_to_js_value: Hgt,
        scriptnofk_to_json: Ggt,
        scriptpubkey_ed25519_key_hash: apt,
        scriptpubkey_from_cbor_bytes: Qgt,
        scriptpubkey_from_cbor_hex: ept,
        scriptpubkey_from_json: _pt,
        scriptpubkey_new: opt,
        scriptpubkey_to_canonical_cbor_bytes: Xgt,
        scriptpubkey_to_canonical_cbor_hex: tpt,
        scriptpubkey_to_cbor_bytes: Jgt,
        scriptpubkey_to_cbor_hex: $gt,
        scriptpubkey_to_js_value: npt,
        scriptpubkey_to_json: rpt,
        shelleymaformatauxdata_auxiliary_scripts: Jst,
        shelleymaformatauxdata_from_cbor_bytes: Dst,
        shelleymaformatauxdata_from_cbor_hex: Kst,
        shelleymaformatauxdata_from_json: Yst,
        shelleymaformatauxdata_new: Xst,
        shelleymaformatauxdata_to_canonical_cbor_bytes: qst,
        shelleymaformatauxdata_to_canonical_cbor_hex: Hst,
        shelleymaformatauxdata_to_cbor_bytes: zst,
        shelleymaformatauxdata_to_cbor_hex: Gst,
        shelleymaformatauxdata_to_js_value: Zst,
        shelleymaformatauxdata_to_json: Vst,
        shelleymaformatauxdata_transaction_metadata: Wst,
        signedtxbuilder_add_bootstrap: AT,
        signedtxbuilder_add_vkey: FT,
        signedtxbuilder_auxiliary_data: UT,
        signedtxbuilder_body: TT,
        signedtxbuilder_build_checked: ET,
        signedtxbuilder_build_unchecked: OT,
        signedtxbuilder_is_valid: RT,
        signedtxbuilder_new_with_data: jT,
        signedtxbuilder_new_without_data: ST,
        signedtxbuilder_witness_set: PT,
        singlecertificatebuilder_native_script: NF,
        singlecertificatebuilder_new: RF,
        singlecertificatebuilder_payment_key: CF,
        singlecertificatebuilder_plutus_script: MF,
        singlecertificatebuilder_skip_witness: UF,
        singlehostaddr_from_cbor_bytes: IK,
        singlehostaddr_from_cbor_hex: xK,
        singlehostaddr_from_json: EK,
        singlehostaddr_ipv4: FK,
        singlehostaddr_ipv6: AK,
        singlehostaddr_new: TK,
        singlehostaddr_port: OK,
        singlehostaddr_to_canonical_cbor_bytes: mK,
        singlehostaddr_to_canonical_cbor_hex: BK,
        singlehostaddr_to_cbor_bytes: vK,
        singlehostaddr_to_cbor_hex: kK,
        singlehostaddr_to_js_value: SK,
        singlehostaddr_to_json: jK,
        singlehostname_dns_name: HK,
        singlehostname_from_cbor_bytes: CK,
        singlehostname_from_cbor_hex: LK,
        singlehostname_from_json: DK,
        singlehostname_new: KK,
        singlehostname_port: GK,
        singlehostname_to_canonical_cbor_bytes: UK,
        singlehostname_to_canonical_cbor_hex: MK,
        singlehostname_to_cbor_bytes: RK,
        singlehostname_to_cbor_hex: NK,
        singlehostname_to_js_value: qK,
        singlehostname_to_json: zK,
        singleinputbuilder_from_transaction_unspent_output: ect,
        singleinputbuilder_native_script: nct,
        singleinputbuilder_new: tct,
        singleinputbuilder_payment_key: rct,
        singleinputbuilder_plutus_script: _ct,
        singleinputbuilder_plutus_script_inline_datum: act,
        singlemintbuilder_native_script: dct,
        singlemintbuilder_new: sct,
        singlemintbuilder_new_single_asset: cct,
        singlemintbuilder_plutus_script: uct,
        singleoutputbuilderresult_communication_datum: jct,
        singleoutputbuilderresult_new: Bct,
        singleoutputbuilderresult_output: xct,
        singlewithdrawalbuilder_native_script: V_t,
        singlewithdrawalbuilder_new: H_t,
        singlewithdrawalbuilder_payment_key: K_t,
        singlewithdrawalbuilder_plutus_script: Z_t,
        spendingdata_as_spending_data_pub_key: hz,
        spendingdata_as_spending_data_redeem: mz,
        spendingdata_as_spending_data_script: vz,
        spendingdata_from_cbor_bytes: lz,
        spendingdata_from_cbor_hex: gz,
        spendingdata_kind: yz,
        spendingdata_new_spending_data_pub_key: pz,
        spendingdata_new_spending_data_redeem: wz,
        spendingdata_new_spending_data_script: bz,
        spendingdata_to_cbor_bytes: uz,
        spendingdata_to_cbor_hex: fz,
        stakecredentiallist_add: _nt,
        stakecredentiallist_get: nnt,
        stakecredentiallist_len: rnt,
        stakecredentiallist_new: ent,
        stakedelegation_from_cbor_bytes: WK,
        stakedelegation_from_cbor_hex: QK,
        stakedelegation_from_json: eV,
        stakedelegation_new: _V,
        stakedelegation_pool: nV,
        stakedelegation_stake_credential: rV,
        stakedelegation_to_canonical_cbor_bytes: YK,
        stakedelegation_to_canonical_cbor_hex: XK,
        stakedelegation_to_cbor_bytes: ZK,
        stakedelegation_to_cbor_hex: JK,
        stakedelegation_to_js_value: tV,
        stakedelegation_to_json: $K,
        stakederegistration_from_cbor_bytes: sV,
        stakederegistration_from_cbor_hex: uV,
        stakederegistration_from_json: gV,
        stakederegistration_new: bV,
        stakederegistration_stake_credential: pV,
        stakederegistration_to_canonical_cbor_bytes: iV,
        stakederegistration_to_canonical_cbor_hex: dV,
        stakederegistration_to_cbor_bytes: oV,
        stakederegistration_to_cbor_hex: cV,
        stakederegistration_to_js_value: fV,
        stakederegistration_to_json: lV,
        stakedistribution_as_single_key: Fz,
        stakedistribution_from_cbor_bytes: Bz,
        stakedistribution_from_cbor_hex: jz,
        stakedistribution_kind: Oz,
        stakedistribution_new_bootstrap_era: Ez,
        stakedistribution_new_single_key: Sz,
        stakedistribution_to_cbor_bytes: kz,
        stakedistribution_to_cbor_hex: xz,
        stakeholderid_from_bech32: Ldt,
        stakeholderid_from_hex: Gdt,
        stakeholderid_from_raw_bytes: qdt,
        stakeholderid_new: Hdt,
        stakeholderid_to_bech32: Mdt,
        stakeholderid_to_hex: Ddt,
        stakeholderid_to_raw_bytes: zdt,
        stakeregdelegcert_deposit: OV,
        stakeregdelegcert_from_cbor_bytes: vV,
        stakeregdelegcert_from_cbor_hex: kV,
        stakeregdelegcert_from_json: jV,
        stakeregdelegcert_new: FV,
        stakeregdelegcert_pool: EV,
        stakeregdelegcert_stake_credential: SV,
        stakeregdelegcert_to_canonical_cbor_bytes: hV,
        stakeregdelegcert_to_canonical_cbor_hex: IV,
        stakeregdelegcert_to_cbor_bytes: yV,
        stakeregdelegcert_to_cbor_hex: mV,
        stakeregdelegcert_to_js_value: xV,
        stakeregdelegcert_to_json: BV,
        stakeregistration_from_cbor_bytes: RV,
        stakeregistration_from_cbor_hex: NV,
        stakeregistration_from_json: zV,
        stakeregistration_new: DV,
        stakeregistration_stake_credential: qV,
        stakeregistration_to_canonical_cbor_bytes: PV,
        stakeregistration_to_canonical_cbor_hex: CV,
        stakeregistration_to_cbor_bytes: TV,
        stakeregistration_to_cbor_hex: UV,
        stakeregistration_to_js_value: LV,
        stakeregistration_to_json: MV,
        stakevotedelegcert_d_rep: eZ,
        stakevotedelegcert_from_cbor_bytes: VV,
        stakevotedelegcert_from_cbor_hex: WV,
        stakevotedelegcert_from_json: QV,
        stakevotedelegcert_new: rZ,
        stakevotedelegcert_pool: tZ,
        stakevotedelegcert_stake_credential: $V,
        stakevotedelegcert_to_canonical_cbor_bytes: KV,
        stakevotedelegcert_to_canonical_cbor_hex: YV,
        stakevotedelegcert_to_cbor_bytes: HV,
        stakevotedelegcert_to_cbor_hex: ZV,
        stakevotedelegcert_to_js_value: XV,
        stakevotedelegcert_to_json: JV,
        stakevoteregdelegcert_d_rep: pZ,
        stakevoteregdelegcert_deposit: bZ,
        stakevoteregdelegcert_from_cbor_bytes: oZ,
        stakevoteregdelegcert_from_cbor_hex: cZ,
        stakevoteregdelegcert_from_json: lZ,
        stakevoteregdelegcert_new: wZ,
        stakevoteregdelegcert_pool: gZ,
        stakevoteregdelegcert_stake_credential: fZ,
        stakevoteregdelegcert_to_canonical_cbor_bytes: aZ,
        stakevoteregdelegcert_to_canonical_cbor_hex: sZ,
        stakevoteregdelegcert_to_cbor_bytes: _Z,
        stakevoteregdelegcert_to_cbor_hex: iZ,
        stakevoteregdelegcert_to_js_value: uZ,
        stakevoteregdelegcert_to_json: dZ,
        subcoin_from_base10_f32: Dot,
        transaction_auxiliary_data: vpt,
        transaction_body: wpt,
        transaction_from_cbor_bytes: dpt,
        transaction_from_cbor_hex: fpt,
        transaction_from_json: bpt,
        transaction_is_valid: hpt,
        transaction_new: mpt,
        transaction_to_canonical_cbor_bytes: cpt,
        transaction_to_canonical_cbor_hex: lpt,
        transaction_to_cbor_bytes: spt,
        transaction_to_cbor_hex: upt,
        transaction_to_js_value: ppt,
        transaction_to_json: gpt,
        transaction_witness_set: ypt,
        transactionbody_auxiliary_data_hash: Dpt,
        transactionbody_certs: Mpt,
        transactionbody_collateral_inputs: Jpt,
        transactionbody_collateral_return: rbt,
        transactionbody_current_treasury_value: lbt,
        transactionbody_donation: gbt,
        transactionbody_fee: Rpt,
        transactionbody_from_cbor_bytes: xpt,
        transactionbody_from_cbor_hex: Ept,
        transactionbody_from_json: Apt,
        transactionbody_inputs: Tpt,
        transactionbody_mint: Vpt,
        transactionbody_network_id: tbt,
        transactionbody_new: pbt,
        transactionbody_outputs: Ppt,
        transactionbody_proposal_procedures: dbt,
        transactionbody_reference_inputs: obt,
        transactionbody_required_signers: Qpt,
        transactionbody_script_data_hash: Ypt,
        transactionbody_set_auxiliary_data_hash: qpt,
        transactionbody_set_certs: Npt,
        transactionbody_set_collateral_inputs: Wpt,
        transactionbody_set_collateral_return: ebt,
        transactionbody_set_current_treasury_value: ubt,
        transactionbody_set_donation: fbt,
        transactionbody_set_mint: Kpt,
        transactionbody_set_network_id: $pt,
        transactionbody_set_proposal_procedures: cbt,
        transactionbody_set_reference_inputs: abt,
        transactionbody_set_required_signers: Xpt,
        transactionbody_set_script_data_hash: Zpt,
        transactionbody_set_total_collateral: nbt,
        transactionbody_set_ttl: Upt,
        transactionbody_set_validity_interval_start: Gpt,
        transactionbody_set_voting_procedures: ibt,
        transactionbody_set_withdrawals: Lpt,
        transactionbody_to_canonical_cbor_bytes: Bpt,
        transactionbody_to_canonical_cbor_hex: Spt,
        transactionbody_to_cbor_bytes: kpt,
        transactionbody_to_cbor_hex: jpt,
        transactionbody_to_js_value: Fpt,
        transactionbody_to_json: Opt,
        transactionbody_total_collateral: _bt,
        transactionbody_ttl: Cpt,
        transactionbody_validity_interval_start: Hpt,
        transactionbody_voting_procedures: sbt,
        transactionbody_withdrawals: zpt,
        transactionbodylist_add: cnt,
        transactionbodylist_get: snt,
        transactionbodylist_len: int,
        transactionbodylist_new: ont,
        transactionbuilder_add_auxiliary_data: JA,
        transactionbuilder_add_cert: GA,
        transactionbuilder_add_change_if_needed: yT,
        transactionbuilder_add_collateral: tT,
        transactionbuilder_add_input: RA,
        transactionbuilder_add_mint: XA,
        transactionbuilder_add_output: MA,
        transactionbuilder_add_proposal: HA,
        transactionbuilder_add_reference_input: NA,
        transactionbuilder_add_required_signer: eT,
        transactionbuilder_add_utxo: UA,
        transactionbuilder_add_vote: KA,
        transactionbuilder_add_withdrawal: ZA,
        transactionbuilder_build: pT,
        transactionbuilder_build_for_evaluation: gT,
        transactionbuilder_fee_for_input: CA,
        transactionbuilder_fee_for_output: LA,
        transactionbuilder_full_size: lT,
        transactionbuilder_get_auxiliary_data: YA,
        transactionbuilder_get_deposit: cT,
        transactionbuilder_get_explicit_input: _T,
        transactionbuilder_get_explicit_output: sT,
        transactionbuilder_get_fee_if_set: dT,
        transactionbuilder_get_implicit_input: aT,
        transactionbuilder_get_mint: QA,
        transactionbuilder_get_total_input: oT,
        transactionbuilder_get_total_output: iT,
        transactionbuilder_get_withdrawals: VA,
        transactionbuilder_min_fee: wT,
        transactionbuilder_network_id: nT,
        transactionbuilder_new: $A,
        transactionbuilder_output_sizes: fT,
        transactionbuilder_select_utxos: PA,
        transactionbuilder_set_auxiliary_data: WA,
        transactionbuilder_set_collateral_return: uT,
        transactionbuilder_set_exunits: bT,
        transactionbuilder_set_fee: zA,
        transactionbuilder_set_network_id: rT,
        transactionbuilder_set_ttl: qA,
        transactionbuilder_set_validity_start_interval: DA,
        transactionbuilderconfigbuilder_build: AA,
        transactionbuilderconfigbuilder_coins_per_utxo_byte: mA,
        transactionbuilderconfigbuilder_collateral_percentage: OA,
        transactionbuilderconfigbuilder_cost_models: EA,
        transactionbuilderconfigbuilder_ex_unit_prices: SA,
        transactionbuilderconfigbuilder_fee_algo: vA,
        transactionbuilderconfigbuilder_key_deposit: kA,
        transactionbuilderconfigbuilder_max_collateral_inputs: FA,
        transactionbuilderconfigbuilder_max_tx_size: xA,
        transactionbuilderconfigbuilder_max_value_size: BA,
        transactionbuilderconfigbuilder_new: hA,
        transactionbuilderconfigbuilder_pool_deposit: IA,
        transactionbuilderconfigbuilder_prefer_pure_change: jA,
        transactionhash_from_bech32: Bwt,
        transactionhash_from_hex: Ewt,
        transactionhash_from_raw_bytes: jwt,
        transactionhash_to_bech32: kwt,
        transactionhash_to_hex: Swt,
        transactionhash_to_raw_bytes: xwt,
        transactioninput_from_cbor_bytes: hbt,
        transactioninput_from_cbor_hex: Ibt,
        transactioninput_from_json: xbt,
        transactioninput_index: Sbt,
        transactioninput_new: Ebt,
        transactioninput_to_canonical_cbor_bytes: ybt,
        transactioninput_to_canonical_cbor_hex: mbt,
        transactioninput_to_cbor_bytes: wbt,
        transactioninput_to_cbor_hex: vbt,
        transactioninput_to_js_value: Bbt,
        transactioninput_to_json: kbt,
        transactioninput_transaction_id: jbt,
        transactioninputlist_add: gnt,
        transactioninputlist_get: fnt,
        transactioninputlist_len: lnt,
        transactioninputlist_new: unt,
        transactionmetadatum_as_bytes: Yat,
        transactionmetadatum_as_int: Zat,
        transactionmetadatum_as_list: Vat,
        transactionmetadatum_as_map: Kat,
        transactionmetadatum_as_text: Wat,
        transactionmetadatum_from_cbor_bytes: Uat,
        transactionmetadatum_from_json: Mat,
        transactionmetadatum_kind: Hat,
        transactionmetadatum_new_bytes: Dat,
        transactionmetadatum_new_int: qat,
        transactionmetadatum_new_list: zat,
        transactionmetadatum_new_map: Lat,
        transactionmetadatum_new_text: Gat,
        transactionmetadatum_to_cbor_bytes: Rat,
        transactionmetadatum_to_json: Cat,
        transactionmetadatum_to_json_value: Nat,
        transactionmetadatumlabels_add: fat,
        transactionmetadatumlabels_get: lat,
        transactionmetadatumlabels_len: uat,
        transactionmetadatumlabels_new: dat,
        transactionmetadatumlist_add: xat,
        transactionmetadatumlist_get: Bat,
        transactionmetadatumlist_len: kat,
        transactionmetadatumlist_new: Iat,
        transactionoutput_address: plt,
        transactionoutput_amount: blt,
        transactionoutput_as_alonzo_format_tx_out: Dbt,
        transactionoutput_as_conway_format_tx_out: Gbt,
        transactionoutput_datum: ylt,
        transactionoutput_datum_hash: hlt,
        transactionoutput_from_cbor_bytes: Tbt,
        transactionoutput_from_cbor_hex: Ubt,
        transactionoutput_from_json: Mbt,
        transactionoutput_kind: qbt,
        transactionoutput_new: glt,
        transactionoutput_new_alonzo_format_tx_out: Lbt,
        transactionoutput_new_conway_format_tx_out: zbt,
        transactionoutput_script_ref: vlt,
        transactionoutput_set_amount: wlt,
        transactionoutput_to_canonical_cbor_bytes: Abt,
        transactionoutput_to_canonical_cbor_hex: Rbt,
        transactionoutput_to_cbor_bytes: Fbt,
        transactionoutput_to_cbor_hex: Pbt,
        transactionoutput_to_js_value: Nbt,
        transactionoutput_to_json: Cbt,
        transactionoutputamountbuilder_build: Ict,
        transactionoutputamountbuilder_with_asset_and_min_required_coin: mct,
        transactionoutputamountbuilder_with_value: vct,
        transactionoutputbuilder_new: fct,
        transactionoutputbuilder_next: yct,
        transactionoutputbuilder_with_address: gct,
        transactionoutputbuilder_with_communication_data: pct,
        transactionoutputbuilder_with_data: bct,
        transactionoutputbuilder_with_reference_script: wct,
        transactionoutputlist_add: hnt,
        transactionoutputlist_get: ynt,
        transactionoutputlist_len: wnt,
        transactionoutputlist_new: bnt,
        transactionunspentoutput_from_cbor_bytes: uA,
        transactionunspentoutput_from_cbor_hex: fA,
        transactionunspentoutput_input: pA,
        transactionunspentoutput_new: gA,
        transactionunspentoutput_output: bA,
        transactionunspentoutput_to_cbor_bytes: dA,
        transactionunspentoutput_to_cbor_hex: lA,
        transactionwitnessset_add_all_witnesses: Blt,
        transactionwitnessset_bootstrap_witnesses: a0t,
        transactionwitnessset_from_cbor_bytes: Zbt,
        transactionwitnessset_from_cbor_hex: Jbt,
        transactionwitnessset_from_json: $bt,
        transactionwitnessset_languages: xlt,
        transactionwitnessset_native_scripts: n0t,
        transactionwitnessset_new: b0t,
        transactionwitnessset_plutus_datums: c0t,
        transactionwitnessset_plutus_v1_scripts: i0t,
        transactionwitnessset_plutus_v2_scripts: f0t,
        transactionwitnessset_plutus_v3_scripts: p0t,
        transactionwitnessset_redeemers: u0t,
        transactionwitnessset_set_bootstrap_witnesses: _0t,
        transactionwitnessset_set_native_scripts: r0t,
        transactionwitnessset_set_plutus_datums: s0t,
        transactionwitnessset_set_plutus_v1_scripts: o0t,
        transactionwitnessset_set_plutus_v2_scripts: l0t,
        transactionwitnessset_set_plutus_v3_scripts: g0t,
        transactionwitnessset_set_redeemers: d0t,
        transactionwitnessset_set_vkeywitnesses: t0t,
        transactionwitnessset_to_canonical_cbor_bytes: Vbt,
        transactionwitnessset_to_canonical_cbor_hex: Wbt,
        transactionwitnessset_to_cbor_bytes: Kbt,
        transactionwitnessset_to_cbor_hex: Ybt,
        transactionwitnessset_to_js_value: Qbt,
        transactionwitnessset_to_json: Xbt,
        transactionwitnessset_vkeywitnesses: e0t,
        transactionwitnesssetbuilder_add_bootstrap: ndt,
        transactionwitnesssetbuilder_add_existing: gdt,
        transactionwitnesssetbuilder_add_plutus_datum: sdt,
        transactionwitnesssetbuilder_add_redeemer: ddt,
        transactionwitnesssetbuilder_add_required_wits: ldt,
        transactionwitnesssetbuilder_add_script: _dt,
        transactionwitnesssetbuilder_add_vkey: rdt,
        transactionwitnesssetbuilder_build: pdt,
        transactionwitnesssetbuilder_get_native_script: adt,
        transactionwitnesssetbuilder_get_plutus_datum: cdt,
        transactionwitnesssetbuilder_get_plutus_v1_script: odt,
        transactionwitnesssetbuilder_get_plutus_v2_script: idt,
        transactionwitnesssetbuilder_get_redeemer: udt,
        transactionwitnesssetbuilder_merge_fake_witness: ydt,
        transactionwitnesssetbuilder_new: fdt,
        transactionwitnesssetbuilder_remaining_wits: bdt,
        transactionwitnesssetbuilder_try_build: wdt,
        transactionwitnesssetlist_add: Bnt,
        transactionwitnesssetlist_get: knt,
        transactionwitnesssetlist_len: Int,
        transactionwitnesssetlist_new: mnt,
        treasurywithdrawalsaction_from_cbor_bytes: vU,
        treasurywithdrawalsaction_from_cbor_hex: kU,
        treasurywithdrawalsaction_from_json: jU,
        treasurywithdrawalsaction_new: OU,
        treasurywithdrawalsaction_policy_hash: EU,
        treasurywithdrawalsaction_to_canonical_cbor_bytes: hU,
        treasurywithdrawalsaction_to_canonical_cbor_hex: IU,
        treasurywithdrawalsaction_to_cbor_bytes: yU,
        treasurywithdrawalsaction_to_cbor_hex: mU,
        treasurywithdrawalsaction_to_js_value: xU,
        treasurywithdrawalsaction_to_json: BU,
        treasurywithdrawalsaction_withdrawal: SU,
        txredeemerbuilder_auxiliary_data: kT,
        txredeemerbuilder_build: vT,
        txredeemerbuilder_draft_body: IT,
        txredeemerbuilder_draft_tx: BT,
        txredeemerbuilder_set_exunits: mT,
        unitinterval_end: Cnt,
        unitinterval_from_cbor_bytes: Ent,
        unitinterval_from_cbor_hex: Ant,
        unitinterval_from_json: Rnt,
        unitinterval_new: Nnt,
        unitinterval_start: Unt,
        unitinterval_to_canonical_cbor_bytes: Snt,
        unitinterval_to_canonical_cbor_hex: Fnt,
        unitinterval_to_cbor_bytes: jnt,
        unitinterval_to_cbor_hex: Ont,
        unitinterval_to_js_value: Pnt,
        unitinterval_to_json: Tnt,
        unregcert_deposit: OZ,
        unregcert_from_cbor_bytes: mZ,
        unregcert_from_cbor_hex: BZ,
        unregcert_from_json: SZ,
        unregcert_new: FZ,
        unregcert_stake_credential: EZ,
        unregcert_to_canonical_cbor_bytes: vZ,
        unregcert_to_canonical_cbor_hex: kZ,
        unregcert_to_cbor_bytes: hZ,
        unregcert_to_cbor_hex: IZ,
        unregcert_to_js_value: jZ,
        unregcert_to_json: xZ,
        unregdrepcert_deposit: DZ,
        unregdrepcert_drep_credential: qZ,
        unregdrepcert_from_cbor_bytes: RZ,
        unregdrepcert_from_cbor_hex: NZ,
        unregdrepcert_from_json: zZ,
        unregdrepcert_new: GZ,
        unregdrepcert_to_canonical_cbor_bytes: PZ,
        unregdrepcert_to_canonical_cbor_hex: CZ,
        unregdrepcert_to_cbor_bytes: TZ,
        unregdrepcert_to_cbor_hex: UZ,
        unregdrepcert_to_js_value: LZ,
        unregdrepcert_to_json: MZ,
        untaggedredeemer_new: XF,
        updatecommittee_action_id: zU,
        updatecommittee_cold_credentials: qU,
        updatecommittee_credentials: DU,
        updatecommittee_from_cbor_bytes: PU,
        updatecommittee_from_cbor_hex: CU,
        updatecommittee_from_json: LU,
        updatecommittee_new: HU,
        updatecommittee_to_canonical_cbor_bytes: TU,
        updatecommittee_to_canonical_cbor_hex: UU,
        updatecommittee_to_cbor_bytes: AU,
        updatecommittee_to_cbor_hex: RU,
        updatecommittee_to_js_value: MU,
        updatecommittee_to_json: NU,
        updatecommittee_unit_interval: GU,
        updatedrepcert_anchor: eY,
        updatedrepcert_drep_credential: tY,
        updatedrepcert_from_cbor_bytes: ZZ,
        updatedrepcert_from_cbor_hex: JZ,
        updatedrepcert_from_json: $Z,
        updatedrepcert_new: rY,
        updatedrepcert_to_canonical_cbor_bytes: VZ,
        updatedrepcert_to_canonical_cbor_hex: WZ,
        updatedrepcert_to_cbor_bytes: KZ,
        updatedrepcert_to_cbor_hex: YZ,
        updatedrepcert_to_js_value: QZ,
        updatedrepcert_to_json: XZ,
        url_from_cbor_bytes: oY,
        url_from_cbor_hex: cY,
        url_from_json: lY,
        url_get: fY,
        url_to_canonical_cbor_bytes: aY,
        url_to_canonical_cbor_hex: sY,
        url_to_cbor_bytes: _Y,
        url_to_cbor_hex: iY,
        url_to_js_value: uY,
        url_to_json: dY,
        value_checked_add: Dit,
        value_checked_sub: Git,
        value_clamped_sub: Hit,
        value_coin: Nit,
        value_from_cbor_bytes: Eit,
        value_from_cbor_hex: Ait,
        value_from_coin: Uit,
        value_from_json: Rit,
        value_has_multiassets: qit,
        value_is_zero: zit,
        value_multi_asset: Mit,
        value_new: Cit,
        value_to_canonical_cbor_bytes: Sit,
        value_to_canonical_cbor_hex: Fit,
        value_to_cbor_bytes: jit,
        value_to_cbor_hex: Oit,
        value_to_js_value: Pit,
        value_to_json: Tit,
        value_zero: Lit,
        vkeywitness_ed25519_signature: XW,
        vkeywitness_from_cbor_bytes: GW,
        vkeywitness_from_cbor_hex: VW,
        vkeywitness_from_json: WW,
        vkeywitness_new: QW,
        vkeywitness_to_canonical_cbor_bytes: DW,
        vkeywitness_to_canonical_cbor_hex: KW,
        vkeywitness_to_cbor_bytes: qW,
        vkeywitness_to_cbor_hex: HW,
        vkeywitness_to_js_value: YW,
        vkeywitness_to_json: ZW,
        vkeywitness_vkey: JW,
        vkeywitnesslist_add: Dnt,
        vkeywitnesslist_get: qnt,
        vkeywitnesslist_len: znt,
        vkeywitnesslist_new: Lnt,
        votebuilder_build: Rct,
        votebuilder_new: Oct,
        votebuilder_with_native_script_vote: Act,
        votebuilder_with_plutus_vote: Tct,
        votebuilder_with_plutus_vote_inline_datum: Pct,
        votebuilder_with_vote: Fct,
        votedelegcert_d_rep: xY,
        votedelegcert_from_cbor_bytes: wY,
        votedelegcert_from_cbor_hex: vY,
        votedelegcert_from_json: kY,
        votedelegcert_new: jY,
        votedelegcert_stake_credential: BY,
        votedelegcert_to_canonical_cbor_bytes: bY,
        votedelegcert_to_canonical_cbor_hex: hY,
        votedelegcert_to_cbor_bytes: pY,
        votedelegcert_to_cbor_hex: yY,
        votedelegcert_to_js_value: IY,
        votedelegcert_to_json: mY,
        voter_as_constitutional_committee_hot_key_hash: iC,
        voter_as_constitutional_committee_hot_script_hash: sC,
        voter_as_d_rep_key_hash: cC,
        voter_as_d_rep_script_hash: dC,
        voter_as_staking_pool_key_hash: uC,
        voter_from_cbor_bytes: YU,
        voter_from_cbor_hex: XU,
        voter_from_json: tC,
        voter_key_hash: ZT,
        voter_kind: oC,
        voter_new_constitutional_committee_hot_key_hash: eC,
        voter_new_constitutional_committee_hot_script_hash: rC,
        voter_new_d_rep_key_hash: nC,
        voter_new_d_rep_script_hash: _C,
        voter_new_staking_pool_key_hash: aC,
        voter_script_hash: YT,
        voter_to_canonical_cbor_bytes: ZU,
        voter_to_canonical_cbor_hex: JU,
        voter_to_cbor_bytes: VU,
        voter_to_cbor_hex: WU,
        voter_to_js_value: $U,
        voter_to_json: QU,
        voteregdelegcert_d_rep: MY,
        voteregdelegcert_deposit: LY,
        voteregdelegcert_from_cbor_bytes: FY,
        voteregdelegcert_from_cbor_hex: PY,
        voteregdelegcert_from_json: CY,
        voteregdelegcert_new: zY,
        voteregdelegcert_stake_credential: NY,
        voteregdelegcert_to_canonical_cbor_bytes: OY,
        voteregdelegcert_to_canonical_cbor_hex: TY,
        voteregdelegcert_to_cbor_bytes: EY,
        voteregdelegcert_to_cbor_hex: AY,
        voteregdelegcert_to_js_value: UY,
        voteregdelegcert_to_json: RY,
        voterlist_add: Znt,
        voterlist_get: Vnt,
        voterlist_len: Knt,
        voterlist_new: Hnt,
        votingprocedure_anchor: kC,
        votingprocedure_from_cbor_bytes: pC,
        votingprocedure_from_cbor_hex: yC,
        votingprocedure_from_json: mC,
        votingprocedure_new: BC,
        votingprocedure_to_canonical_cbor_bytes: gC,
        votingprocedure_to_canonical_cbor_hex: wC,
        votingprocedure_to_cbor_bytes: fC,
        votingprocedure_to_cbor_hex: bC,
        votingprocedure_to_js_value: vC,
        votingprocedure_to_json: hC,
        votingprocedure_vote: IC,
        votingprocedures_get: OC,
        votingprocedures_insert: EC,
        votingprocedures_keys: FC,
        votingprocedures_len: SC,
        votingprocedures_new: jC,
        vrfcert_from_cbor_bytes: FW,
        vrfcert_from_cbor_hex: PW,
        vrfcert_from_json: CW,
        vrfcert_new: LW,
        vrfcert_output: NW,
        vrfcert_proof: MW,
        vrfcert_to_canonical_cbor_bytes: OW,
        vrfcert_to_canonical_cbor_hex: TW,
        vrfcert_to_cbor_bytes: EW,
        vrfcert_to_cbor_hex: AW,
        vrfcert_to_js_value: UW,
        vrfcert_to_json: RW,
        vrfkeyhash_from_bech32: ayt,
        vrfkeyhash_from_hex: cyt,
        vrfkeyhash_from_raw_bytes: iyt,
        vrfkeyhash_to_bech32: _yt,
        vrfkeyhash_to_hex: syt,
        vrfkeyhash_to_raw_bytes: oyt,
        vrfvkey_from_bech32: zyt,
        vrfvkey_from_hex: Hyt,
        vrfvkey_from_raw_bytes: Dyt,
        vrfvkey_to_bech32: Lyt,
        vrfvkey_to_hex: Gyt,
        vrfvkey_to_raw_bytes: qyt
    }, Symbol.toStringTag, {
        value: "Module"
    }));
    h5(Fht);
    const Aht = Object.freeze(Object.defineProperty({
        __proto__: null,
        AddrAttributes: r_,
        Address: ce,
        AddressContent: e_,
        AddressHeaderKind: vj,
        AddressId: ai,
        AddressKind: Fj,
        AlonzoFormatTxOut: oi,
        Anchor: Xe,
        AnchorDocHash: Ea,
        AssetName: Ye,
        AssetNameList: Vd,
        AuthCommitteeHotCert: ss,
        AuxiliaryData: tr,
        AuxiliaryDataHash: Bi,
        AuxiliaryDataKind: mj,
        BaseAddress: qd,
        BigInteger: K_,
        Bip32PrivateKey: ka,
        Bip32PublicKey: a_,
        Block: Rd,
        BlockBodyHash: Ds,
        BlockHeaderHash: Gs,
        BootstrapWitness: A_,
        BootstrapWitnessList: Hu,
        ByronAddrType: Aj,
        ByronAddress: Lr,
        ByronScript: Hs,
        ByronTxOut: Su,
        CIP25ChunkableString: yn,
        CIP25FilesDetails: ii,
        CIP25LabelMetadata: si,
        CIP25Metadata: Ud,
        CIP25MetadataDetails: to,
        CIP25MiniMetadataDetails: Eu,
        CIP25String64: br,
        CIP25String64List: Ku,
        CIP25Version: gj,
        CIP36Delegation: ci,
        CIP36DelegationDistribution: ni,
        CIP36DelegationList: Vu,
        CIP36DeregistrationCbor: tg,
        CIP36DeregistrationWitness: di,
        CIP36KeyDeregistration: Ks,
        CIP36KeyRegistration: Vs,
        CIP36RegistrationCbor: eg,
        CIP36RegistrationWitness: ui,
        CardanoNodePlutusDatumSchema: zj,
        Certificate: de,
        CertificateBuilderResult: xi,
        CertificateKind: qj,
        CertificateList: Zu,
        ChangeSelectionAlgo: B5,
        ChunkableStringKind: xj,
        CoinSelectionStrategyCIP2: Ej,
        CommitteeColdCredentialList: ac,
        Constitution: eo,
        ConstrPlutusData: ro,
        ConwayFormatAuxData: li,
        ConwayFormatTxOut: fi,
        CostModels: C_,
        Crc32: Yu,
        Credential: Pt,
        CredentialKind: Oj,
        DNSName: $_,
        DRep: Ze,
        DRepKind: Bj,
        DRepVotingThresholds: gi,
        DatumHash: o_,
        DatumOption: jn,
        DatumOptionKind: Ij,
        DelegationDistributionKind: Mj,
        Ed25519KeyHash: Kt,
        Ed25519KeyHashList: pe,
        Ed25519Signature: Yr,
        EnterpriseAddress: Ti,
        ExUnitPrices: T_,
        ExUnits: Je,
        FilesDetailsList: Wu,
        GenesisDelegateHash: Ou,
        GenesisHash: Fu,
        GovAction: zn,
        GovActionId: Ce,
        GovActionIdList: og,
        GovActionKind: bj,
        HDAddressPayload: ji,
        HardForkInitiationAction: cs,
        Header: pi,
        HeaderBody: bi,
        InputAggregateWitnessData: Gj,
        InputBuilderResult: ta,
        Int: En,
        IntList: Jp,
        Ipv4: Si,
        Ipv6: Ei,
        KESSignature: Zs,
        KESVkey: Ys,
        Language: hj,
        LanguageList: Ju,
        LegacyDaedalusPrivateKey: x5,
        LegacyRedeemer: P_,
        LegacyRedeemerList: Pi,
        LinearFee: oc,
        MapAssetNameToCoin: tc,
        MapAssetNameToNonZeroInt64: Ri,
        MapAssetNameToU64: Xp,
        MapCommitteeColdCredentialToEpoch: Zd,
        MapGovActionIdToVotingProcedure: Dd,
        MapPlutusDataToPlutusData: Qp,
        MapRedeemerKeyToRedeemerVal: Xu,
        MapRewardAccountToCoin: io,
        MapStakeCredentialToDeltaCoin: $p,
        MapTransactionIndexToAuxiliaryData: Qu,
        MapTransactionMetadatumToTransactionMetadatum: tb,
        MapU64ToArrI64: ig,
        Metadata: On,
        MetadataJsonSchema: Rj,
        MetadatumList: Yd,
        MetadatumMap: $u,
        Mint: xa,
        MintBuilderResult: Wd,
        MultiAsset: wn,
        MultiHostName: ds,
        NativeScript: he,
        NativeScriptKind: Uj,
        NativeScriptList: Qe,
        NativeScriptWitnessInfo: Wr,
        NetworkId: O_,
        NetworkInfo: ri,
        NewConstitution: us,
        NoConfidence: ls,
        Nonce: _s,
        NonceHash: Ws,
        NonceKind: kj,
        OperationalCert: wi,
        ParameterChangeAction: fs,
        PartialPlutusWitness: d_,
        PlutusData: Vt,
        PlutusDataKind: pj,
        PlutusDataList: Xr,
        PlutusMap: Oi,
        PlutusScript: N_,
        PlutusScriptWitness: ec,
        PlutusV1Script: zr,
        PlutusV1ScriptList: Ua,
        PlutusV2Script: qr,
        PlutusV2ScriptList: Ca,
        PlutusV3Script: Dr,
        PlutusV3ScriptList: ic,
        Pointer: Bw,
        PointerAddress: Ru,
        PolicyIdList: tl,
        PoolMetadata: yi,
        PoolMetadataHash: Js,
        PoolParams: no,
        PoolRegistration: gs,
        PoolRetirement: ps,
        PoolVotingThresholds: hi,
        PrivateKey: Sn,
        ProposalBuilder: as,
        ProposalBuilderResult: kl,
        ProposalProcedure: R_,
        ProposalProcedureList: el,
        ProtocolMagic: i_,
        ProtocolParamUpdate: _o,
        ProtocolVersion: X_,
        PublicKey: lr,
        Rational: Kr,
        RedeemerKey: ja,
        RedeemerKeyList: sg,
        RedeemerSetBuilder: eb,
        RedeemerTag: Td,
        RedeemerVal: ao,
        RedeemerWitnessKey: Pa,
        Redeemers: hn,
        RedeemersKind: Sj,
        RegCert: bs,
        RegDrepCert: ws,
        Relay: Ba,
        RelayKind: jj,
        RelayList: rl,
        RequiredWitnessSet: rc,
        ResignCommitteeColdCert: ys,
        RewardAccountList: cg,
        RewardAddress: wr,
        Script: vr,
        ScriptAll: hs,
        ScriptAny: vs,
        ScriptDataHash: Oa,
        ScriptHash: Zt,
        ScriptInvalidBefore: ms,
        ScriptInvalidHereafter: Is,
        ScriptKind: wj,
        ScriptNOfK: ks,
        ScriptPubkey: Bs,
        ShelleyMAFormatAuxData: vi,
        SignedTxBuilder: Uu,
        SingleCertificateBuilder: Qr,
        SingleHostAddr: xs,
        SingleHostName: js,
        SingleInputBuilder: nc,
        SingleMintBuilder: Cu,
        SingleOutputBuilderResult: Jd,
        SingleWithdrawalBuilder: dg,
        SpendingData: Qa,
        SpendingDataKind: Pj,
        StakeCredentialList: ug,
        StakeDelegation: Ss,
        StakeDeregistration: Es,
        StakeDistribution: mi,
        StakeDistributionKind: Lj,
        StakeRegDelegCert: Os,
        StakeRegistration: Fs,
        StakeVoteDelegCert: As,
        StakeVoteRegDelegCert: Ts,
        StakeholderId: Ii,
        SubCoin: Vj,
        Transaction: Vr,
        TransactionBody: Zr,
        TransactionBodyList: nl,
        TransactionBuilder: lg,
        TransactionBuilderConfig: Fg,
        TransactionBuilderConfigBuilder: Bn,
        TransactionHash: Vn,
        TransactionInput: U_,
        TransactionInputList: $a,
        TransactionMetadatum: Te,
        TransactionMetadatumKind: Tj,
        TransactionMetadatumLabels: fg,
        TransactionMetadatumList: Xd,
        TransactionOutput: mr,
        TransactionOutputAmountBuilder: Nu,
        TransactionOutputBuilder: F_,
        TransactionOutputKind: Cj,
        TransactionOutputList: _l,
        TransactionUnspentOutput: Fa,
        TransactionWitnessSet: Gr,
        TransactionWitnessSetBuilder: Ra,
        TransactionWitnessSetList: al,
        TreasuryWithdrawalsAction: Ps,
        TxRedeemerBuilder: kb,
        UnitInterval: re,
        UnregCert: Rs,
        UnregDrepCert: Us,
        UntaggedRedeemer: rb,
        UpdateCommittee: Cs,
        UpdateDrepCert: Ns,
        Url: M_,
        VRFCert: ki,
        VRFKeyHash: Xs,
        VRFVkey: Qs,
        Value: Ue,
        Vkeywitness: Q_,
        VkeywitnessList: ol,
        Vote: yj,
        VoteBuilder: os,
        VoteBuilderResult: Bl,
        VoteDelegCert: Ms,
        VoteRegDelegCert: Ls,
        Voter: Rr,
        VoterKind: Nj,
        VoterList: gg,
        VotingProcedure: n_,
        VotingProcedures: il,
        WithdrawalBuilderResult: _c,
        __wbg_String_91fba7ded13ba54c: ck,
        __wbg_buffer_b7b08af79b0b0974: U5,
        __wbg_call_1084a111329e68ce: Z5,
        __wbg_call_89af060b4e1523f2: Y5,
        __wbg_crypto_1d1f22824a6a080c: ek,
        __wbg_getRandomValues_3aa56aa6edec874c: sk,
        __wbg_globalThis_86b222e13bdf32ed: G5,
        __wbg_global_e5a3fe56f8be9485: H5,
        __wbg_msCrypto_eb05e62b530a1508: ok,
        __wbg_new_525245e2b9901204: z5,
        __wbg_new_8608a2b51a5f6737: L5,
        __wbg_new_a220cf903aa02ca2: C5,
        __wbg_new_ea1883e1e5e86686: X5,
        __wbg_newnoargs_76313bd6ff35d0f2: M5,
        __wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9: J5,
        __wbg_newwithlength_ec548f448387c968: Q5,
        __wbg_node_104a2ff8d6ea03a2: _k,
        __wbg_process_4a72847cc503995b: rk,
        __wbg_randomFillSync_5c9c955aa56b6049: ik,
        __wbg_require_cca90b1a94a0255b: ak,
        __wbg_self_3093d5d1f7bcb682: q5,
        __wbg_set_20cbc34131e76824: fk,
        __wbg_set_49185437f0ab06f8: W5,
        __wbg_set_673dda6c73d19609: V5,
        __wbg_set_d1e79e2388520f18: tk,
        __wbg_set_wasm: h5,
        __wbg_subarray_7c2e3576afe181d1: $5,
        __wbg_versions_f686565e586dd935: nk,
        __wbg_window_3bcfc4d31bc012f8: D5,
        __wbindgen_bigint_from_i64: uk,
        __wbindgen_bigint_from_u64: lk,
        __wbindgen_error_new: dk,
        __wbindgen_is_function: T5,
        __wbindgen_is_object: S5,
        __wbindgen_is_string: P5,
        __wbindgen_is_undefined: K5,
        __wbindgen_memory: A5,
        __wbindgen_number_new: N5,
        __wbindgen_object_clone_ref: R5,
        __wbindgen_object_drop_ref: O5,
        __wbindgen_string_new: E5,
        __wbindgen_throw: F5,
        calc_script_data_hash: rj,
        calc_script_data_hash_from_witness: nj,
        compute_total_ex_units: W7,
        decode_arbitrary_bytes_from_metadatum: G7,
        decode_metadatum_to_json_str: ij,
        decode_plutus_datum_to_json_str: cj,
        emip3_decrypt_with_password: q7,
        emip3_encrypt_with_password: z7,
        encode_arbitrary_bytes_as_metadatum: D7,
        encode_json_str_to_metadatum: oj,
        encode_json_str_to_plutus_datum: sj,
        get_deposit: aj,
        get_implicit_input: _j,
        hash_auxiliary_data: $7,
        hash_plutus_data: tj,
        hash_script_data: ej,
        hash_transaction: _u,
        make_daedalus_bootstrap_witness: Z7,
        make_icarus_bootstrap_witness: Y7,
        make_vkey_witness: Ib,
        min_ada_required: dj,
        min_fee: V7,
        min_no_script_fee: K7,
        min_script_fee: H7
    }, Symbol.toStringTag, {
        value: "Module"
    })), gk = (n, t)=>{
        switch(t._tag){
            case "StringKeyword":
            case "TemplateLiteral":
                return Object.keys(n);
            case "SymbolKeyword":
                return Object.getOwnPropertySymbols(n);
            case "Refinement":
                return gk(n, t.from);
        }
    }, Mu = (n)=>Object.keys(n).concat(Object.getOwnPropertySymbols(n)), pk = (n)=>{
        let t = !1, e;
        return ()=>(t || (e = n(), t = !0), e);
    }, sc = (n)=>{
        if (c_(n)) return JSON.stringify(n);
        if (nu(n) || n == null || pl(n) || zu(n) || $8(n)) return String(n);
        if (bl(n)) return String(n) + "n";
        if (!Hp(n) && wl(n, "toString") && t5(n.toString) && n.toString !== Object.prototype.toString) return n.toString();
        try {
            return JSON.stringify(n), Hp(n) ? `[${n.map(sc).join(",")}]` : `{${Mu(n).map((t)=>`${c_(t) ? JSON.stringify(t) : String(t)}:${sc(n[t])}`).join(",")}}`;
        } catch  {
            return String(n);
        }
    }, Tht = (n)=>typeof n == "string" ? JSON.stringify(n) : String(n), bk = (n)=>Array.isArray(n), i3 = (n)=>`[${Tht(n)}]`, Pht = (n)=>bk(n) ? n.map(i3).join("") : i3(n), au = (n, t, e, o)=>{
        let _ = n;
        return t !== void 0 && (_ += `
details: ${t}`), o && (_ += `
schema (${o._tag}): ${o}`), _;
    }, Rht = (n)=>au("Unsupported key schema", void 0, void 0, n), Uht = (n)=>au("Unsupported literal", `literal value: ${sc(n)}`), s3 = (n)=>au("Duplicate index signature", `${n} index signature`), Cht = au("Unsupported index signature parameter", "An index signature parameter type must be `string`, `symbol`, a template literal type or a refinement of the previous types"), Nht = au("Invalid element", "A required element cannot follow an optional element. ts(1257)"), c3 = (n)=>au("Duplicate property signature transformation", `Duplicate key ${sc(n)}`), Mht = (n)=>au("Duplicate property signature", `Duplicate key ${sc(n)}`), d3 = Symbol.for("@effect/schema/annotation/Type"), wk = Symbol.for("@effect/schema/annotation/Message"), yk = Symbol.for("@effect/schema/annotation/MissingMessage"), hk = Symbol.for("@effect/schema/annotation/Identifier"), Ci = Symbol.for("@effect/schema/annotation/Title"), Bb = Symbol.for("@effect/schema/annotation/Description"), Lht = Symbol.for("@effect/schema/annotation/Examples"), zht = Symbol.for("@effect/schema/annotation/Default"), qht = Symbol.for("@effect/schema/annotation/JSONSchema"), Dht = Symbol.for("@effect/schema/annotation/Documentation"), vk = Symbol.for("@effect/schema/annotation/Concurrency"), mk = Symbol.for("@effect/schema/annotation/Batching"), Ik = Symbol.for("@effect/schema/annotation/ParseIssueTitle"), kk = Symbol.for("@effect/schema/annotation/ParseOptions"), Ght = Symbol.for("@effect/schema/annotation/Surrogate"), Ga = lo(2, (n, t)=>Object.prototype.hasOwnProperty.call(n.annotations, t) ? Ui(n.annotations[t]) : qi()), Hht = Ga(wk), Kht = Ga(yk), Vht = Ga(Ci), Bk = Ga(hk), Zht = Ga(Bb), Yht = Ga(vk), Wht = Ga(mk), Jht = Ga(Ik), Xht = Ga(kk), Qht = Ga(Ght), xk = Symbol.for("@effect/schema/annotation/JSONIdentifier"), $ht = Ga(xk);
    let jk = class {
        typeParameters;
        decodeUnknown;
        encodeUnknown;
        annotations;
        _tag = "Declaration";
        constructor(t, e, o, _ = {}){
            this.typeParameters = t, this.decodeUnknown = e, this.encodeUnknown = o, this.annotations = _;
        }
        toString() {
            return sr(Na(this), ()=>"<declaration schema>");
        }
        toJSON() {
            return {
                _tag: this._tag,
                typeParameters: this.typeParameters.map((t)=>t.toJSON()),
                annotations: In(this.annotations)
            };
        }
    };
    const Ag = (n)=>(t)=>t._tag === n;
    let tvt = class {
        literal;
        annotations;
        _tag = "Literal";
        constructor(t, e = {}){
            this.literal = t, this.annotations = e;
        }
        toString() {
            return sr(Na(this), ()=>sc(this.literal));
        }
        toJSON() {
            return {
                _tag: this._tag,
                literal: bl(this.literal) ? String(this.literal) : this.literal,
                annotations: In(this.annotations)
            };
        }
    };
    const evt = Ag("Literal");
    let rvt = class {
        symbol;
        annotations;
        _tag = "UniqueSymbol";
        constructor(t, e = {}){
            this.symbol = t, this.annotations = e;
        }
        toString() {
            return sr(Na(this), ()=>sc(this.symbol));
        }
        toJSON() {
            return {
                _tag: this._tag,
                symbol: String(this.symbol),
                annotations: In(this.annotations)
            };
        }
    }, nvt = class {
        annotations;
        _tag = "NeverKeyword";
        constructor(t = {}){
            this.annotations = t;
        }
        toString() {
            return Tg(this);
        }
        toJSON() {
            return {
                _tag: this._tag,
                annotations: In(this.annotations)
            };
        }
    };
    const nb = new nvt({
        [Ci]: "never"
    });
    let _vt = class {
        annotations;
        _tag = "UnknownKeyword";
        constructor(t = {}){
            this.annotations = t;
        }
        toString() {
            return Tg(this);
        }
        toJSON() {
            return {
                _tag: this._tag,
                annotations: In(this.annotations)
            };
        }
    };
    const avt = new _vt({
        [Ci]: "unknown"
    });
    let ovt = class {
        annotations;
        _tag = "AnyKeyword";
        constructor(t = {}){
            this.annotations = t;
        }
        toString() {
            return Tg(this);
        }
        toJSON() {
            return {
                _tag: this._tag,
                annotations: In(this.annotations)
            };
        }
    };
    const ivt = new ovt({
        [Ci]: "any"
    });
    let svt = class {
        annotations;
        _tag = "StringKeyword";
        constructor(t = {}){
            this.annotations = t;
        }
        toString() {
            return Tg(this);
        }
        toJSON() {
            return {
                _tag: this._tag,
                annotations: In(this.annotations)
            };
        }
    };
    const cvt = new svt({
        [Ci]: "string",
        [Bb]: "a string"
    }), Sk = Ag("StringKeyword");
    let dvt = class {
        annotations;
        _tag = "NumberKeyword";
        constructor(t = {}){
            this.annotations = t;
        }
        toString() {
            return Tg(this);
        }
        toJSON() {
            return {
                _tag: this._tag,
                annotations: In(this.annotations)
            };
        }
    };
    const uvt = new dvt({
        [Ci]: "number",
        [Bb]: "a number"
    }), lvt = Ag("NumberKeyword"), fvt = Ag("SymbolKeyword");
    let xb = class {
        type;
        annotations;
        constructor(t, e = {}){
            this.type = t, this.annotations = e;
        }
        toJSON() {
            return {
                type: this.type.toJSON(),
                annotations: In(this.annotations)
            };
        }
        toString() {
            return String(this.type);
        }
    };
    class jb extends xb {
        isOptional;
        constructor(t, e, o = {}){
            super(t, o), this.isOptional = e;
        }
        toJSON() {
            return {
                type: this.type.toJSON(),
                isOptional: this.isOptional,
                annotations: In(this.annotations)
            };
        }
        toString() {
            return String(this.type) + (this.isOptional ? "?" : "");
        }
    }
    const Ek = (n)=>n.map((t)=>t.type);
    let Ww = class {
        elements;
        rest;
        isReadonly;
        annotations;
        _tag = "TupleType";
        constructor(t, e, o, _ = {}){
            this.elements = t, this.rest = e, this.isReadonly = o, this.annotations = _;
            let a = !1, c = !1;
            for (const s of t)if (s.isOptional) a = !0;
            else if (a) {
                c = !0;
                break;
            }
            if (c || a && e.length > 1) throw new Error(Nht);
        }
        toString() {
            return sr(Na(this), ()=>gvt(this));
        }
        toJSON() {
            return {
                _tag: this._tag,
                elements: this.elements.map((t)=>t.toJSON()),
                rest: this.rest.map((t)=>t.toJSON()),
                isReadonly: this.isReadonly,
                annotations: In(this.annotations)
            };
        }
    };
    const gvt = (n)=>{
        const t = n.elements.map(String).join(", ");
        return _5(n.rest, {
            onEmpty: ()=>`readonly [${t}]`,
            onNonEmpty: (e, o)=>{
                const _ = String(e), a = _.includes(" | ") ? `(${_})` : _;
                if (o.length > 0) {
                    const c = o.map(String).join(", ");
                    return n.elements.length > 0 ? `readonly [${t}, ...${a}[], ${c}]` : `readonly [...${a}[], ${c}]`;
                } else return n.elements.length > 0 ? `readonly [${t}, ...${a}[]]` : `ReadonlyArray<${_}>`;
            }
        });
    };
    let xn = class extends jb {
        name;
        isReadonly;
        constructor(t, e, o, _, a){
            super(e, o, a), this.name = t, this.isReadonly = _;
        }
        toString() {
            return (this.isReadonly ? "readonly " : "") + String(this.name) + (this.isOptional ? "?" : "") + ": " + this.type;
        }
        toJSON() {
            return {
                name: String(this.name),
                type: this.type.toJSON(),
                isOptional: this.isOptional,
                isReadonly: this.isReadonly,
                annotations: In(this.annotations)
            };
        }
    };
    const Ok = (n)=>{
        switch(n._tag){
            case "StringKeyword":
            case "SymbolKeyword":
            case "TemplateLiteral":
                return !0;
            case "Refinement":
                return Ok(n.from);
        }
        return !1;
    };
    let Sb = class {
        type;
        isReadonly;
        parameter;
        constructor(t, e, o){
            if (this.type = e, this.isReadonly = o, Ok(t)) this.parameter = t;
            else throw new Error(Cht);
        }
        toString() {
            return (this.isReadonly ? "readonly " : "") + `[x: ${this.parameter}]: ${this.type}`;
        }
        toJSON() {
            return {
                parameter: this.parameter.toJSON(),
                type: this.type.toJSON(),
                isReadonly: this.isReadonly
            };
        }
    }, Gd = class {
        annotations;
        _tag = "TypeLiteral";
        propertySignatures;
        indexSignatures;
        constructor(t, e, o = {}){
            this.annotations = o;
            const _ = {};
            for(let c = 0; c < t.length; c++){
                const s = t[c].name;
                if (Object.prototype.hasOwnProperty.call(_, s)) throw new Error(Mht(s));
                _[s] = null;
            }
            const a = {
                string: !1,
                symbol: !1
            };
            for(let c = 0; c < e.length; c++){
                const s = Xw(e[c].parameter);
                if (Sk(s)) {
                    if (a.string) throw new Error(s3("string"));
                    a.string = !0;
                } else if (fvt(s)) {
                    if (a.symbol) throw new Error(s3("symbol"));
                    a.symbol = !0;
                }
            }
            this.propertySignatures = Avt(t), this.indexSignatures = Tvt(e);
        }
        toString() {
            return sr(Na(this), ()=>pvt(this));
        }
        toJSON() {
            return {
                _tag: this._tag,
                propertySignatures: this.propertySignatures.map((t)=>t.toJSON()),
                indexSignatures: this.indexSignatures.map((t)=>t.toJSON()),
                annotations: In(this.annotations)
            };
        }
    };
    const u3 = (n)=>n.map(String).join("; "), pvt = (n)=>{
        if (n.propertySignatures.length > 0) {
            const t = n.propertySignatures.map(String).join("; ");
            return n.indexSignatures.length > 0 ? `{ ${t}; ${u3(n.indexSignatures)} }` : `{ ${t} }`;
        } else return n.indexSignatures.length > 0 ? `{ ${u3(n.indexSignatures)} }` : "{}";
    }, bvt = (n)=>n.filter((t)=>t !== nb), wvt = yl(hl(vl, (n)=>{
        switch(n._tag){
            case "AnyKeyword":
                return 0;
            case "UnknownKeyword":
                return 1;
            case "ObjectKeyword":
                return 2;
            case "StringKeyword":
            case "NumberKeyword":
            case "BooleanKeyword":
            case "BigIntKeyword":
            case "SymbolKeyword":
                return 3;
        }
        return 4;
    })), yvt = {
        string: "StringKeyword",
        number: "NumberKeyword",
        boolean: "BooleanKeyword",
        bigint: "BigIntKeyword"
    }, Fk = (n)=>e5(n, (t)=>vvt(t) ? Fk(t.types) : [
                t
            ]), hvt = (n)=>{
        const t = wvt(n), e = [], o = {}, _ = [];
        for (const a of t)switch(a._tag){
            case "NeverKeyword":
                break;
            case "AnyKeyword":
                return [
                    ivt
                ];
            case "UnknownKeyword":
                return [
                    avt
                ];
            case "ObjectKeyword":
            case "UndefinedKeyword":
            case "VoidKeyword":
            case "StringKeyword":
            case "NumberKeyword":
            case "BooleanKeyword":
            case "BigIntKeyword":
            case "SymbolKeyword":
                {
                    o[a._tag] || (o[a._tag] = a, e.push(a));
                    break;
                }
            case "Literal":
                {
                    const c = typeof a.literal;
                    switch(c){
                        case "string":
                        case "number":
                        case "bigint":
                        case "boolean":
                            {
                                const s = yvt[c];
                                !o[s] && !_.includes(a.literal) && (_.push(a.literal), e.push(a));
                                break;
                            }
                        case "object":
                            {
                                _.includes(a.literal) || (_.push(a.literal), e.push(a));
                                break;
                            }
                    }
                    break;
                }
            case "UniqueSymbol":
                {
                    !o.SymbolKeyword && !_.includes(a.symbol) && (_.push(a.symbol), e.push(a));
                    break;
                }
            case "TupleType":
                {
                    o.ObjectKeyword || e.push(a);
                    break;
                }
            case "TypeLiteral":
                {
                    a.propertySignatures.length === 0 && a.indexSignatures.length === 0 ? o["{}"] || (o["{}"] = a, e.push(a)) : o.ObjectKeyword || e.push(a);
                    break;
                }
            default:
                e.push(a);
        }
        return e;
    };
    let Lu = class Yf {
        types;
        annotations;
        static make = (t, e)=>{
            const o = [], _ = new Set;
            for(let a = 0; a < t.length; a++){
                const c = t[a];
                c === nb || _.has(c) || (_.add(c), o.push(c));
            }
            return Yf.union(o, e);
        };
        static members = (t, e)=>Yf.union(bvt(t), e);
        static unify = (t, e)=>Yf.union(hvt(Fk(t)), e);
        static union = (t, e)=>Ak(t) ? new Yf(t, e) : t.length === 1 ? t[0] : nb;
        _tag = "Union";
        constructor(t, e = {}){
            this.types = t, this.annotations = e;
        }
        toString() {
            return sr(Na(this), ()=>this.types.map(String).join(" | "));
        }
        toJSON() {
            return {
                _tag: this._tag,
                types: this.types.map((t)=>t.toJSON()),
                annotations: In(this.annotations)
            };
        }
    };
    const Ak = (n)=>n.length > 1, vvt = Ag("Union"), M0 = wb(Symbol.for("@effect/schema/AST/toJSONMemoMap"), ()=>new WeakMap);
    let Jw = class {
        f;
        annotations;
        _tag = "Suspend";
        constructor(t, e = {}){
            this.f = t, this.annotations = e, this.f = pk(t);
        }
        toString() {
            return Na(this).pipe(Ai(()=>bb(r5(this.f)(), (t)=>Na(t))), sr(()=>"<suspended schema>"));
        }
        toJSON() {
            const t = this.f();
            let e = M0.get(t);
            return e || (M0.set(t, {
                _tag: this._tag
            }), e = {
                _tag: this._tag,
                ast: t.toJSON(),
                annotations: In(this.annotations)
            }, M0.set(t, e), e);
        }
    }, mvt = class {
        from;
        filter;
        annotations;
        _tag = "Refinement";
        constructor(t, e, o = {}){
            this.from = t, this.filter = e, this.annotations = o;
        }
        toString() {
            return sr(Na(this), ()=>`{ ${this.from} | filter }`);
        }
        toJSON() {
            return {
                _tag: this._tag,
                from: this.from.toJSON(),
                annotations: In(this.annotations)
            };
        }
    };
    const L0 = {};
    let Ivt = class {
        from;
        to;
        transformation;
        annotations;
        _tag = "Transformation";
        constructor(t, e, o, _ = {}){
            this.from = t, this.to = e, this.transformation = o, this.annotations = _;
        }
        toString() {
            return sr(Na(this), ()=>`(${String(this.from)} <-> ${String(this.to)})`);
        }
        toJSON() {
            return {
                _tag: this._tag,
                from: this.from.toJSON(),
                to: this.to.toJSON(),
                annotations: In(this.annotations)
            };
        }
    }, kvt = class {
        from;
        to;
        decode;
        encode;
        constructor(t, e, o, _){
            this.from = t, this.to = e, this.decode = o, this.encode = _;
        }
    }, Bvt = class {
        propertySignatureTransformations;
        _tag = "TypeLiteralTransformation";
        constructor(t){
            this.propertySignatureTransformations = t;
            const e = {}, o = {};
            for (const _ of t){
                const a = _.from;
                if (e[a]) throw new Error(c3(a));
                e[a] = !0;
                const c = _.to;
                if (o[c]) throw new Error(c3(c));
                o[c] = !0;
            }
        }
    };
    const Tk = (n, t)=>{
        const e = Object.getOwnPropertyDescriptors(n);
        return e.annotations.value = {
            ...n.annotations,
            ...t
        }, Object.create(Object.getPrototypeOf(n), e);
    }, xvt = ".*", jvt = "[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?", Svt = (n)=>{
        let t = `^${Kp(n.head)}`;
        for (const e of n.spans)Sk(e.type) ? t += xvt : lvt(e.type) && (t += jvt), t += Kp(e.literal);
        return t += "$", new RegExp(t);
    }, l3 = (n, t)=>{
        const e = [], o = [], _ = (a)=>{
            switch(a._tag){
                case "NeverKeyword":
                    break;
                case "StringKeyword":
                case "SymbolKeyword":
                case "TemplateLiteral":
                case "Refinement":
                    o.push(new Sb(a, t, !0));
                    break;
                case "Literal":
                    if (c_(a.literal) || nu(a.literal)) e.push(new xn(a.literal, t, !1, !0));
                    else throw new Error(Uht(a.literal));
                    break;
                case "Enums":
                    {
                        for (const [c, s] of a.enums)e.push(new xn(s, t, !1, !0));
                        break;
                    }
                case "UniqueSymbol":
                    e.push(new xn(a.symbol, t, !1, !0));
                    break;
                case "Union":
                    a.types.forEach(_);
                    break;
                default:
                    throw new Error(Rht(a));
            }
        };
        return _(n), {
            propertySignatures: e,
            indexSignatures: o
        };
    }, t_ = (n)=>{
        switch(n._tag){
            case "Declaration":
                {
                    const t = V_(n.typeParameters, t_);
                    return t === n.typeParameters ? n : new jk(t, n.decodeUnknown, n.encodeUnknown, n.annotations);
                }
            case "TupleType":
                {
                    const t = V_(n.elements, (_)=>{
                        const a = t_(_.type);
                        return a === _.type ? _ : new jb(a, _.isOptional);
                    }), e = Ek(n.rest), o = V_(e, t_);
                    return t === n.elements && o === e ? n : new Ww(t, o.map((_)=>new xb(_)), n.isReadonly, n.annotations);
                }
            case "TypeLiteral":
                {
                    const t = V_(n.propertySignatures, (o)=>{
                        const _ = t_(o.type);
                        return _ === o.type ? o : new xn(o.name, _, o.isOptional, o.isReadonly);
                    }), e = V_(n.indexSignatures, (o)=>{
                        const _ = t_(o.type);
                        return _ === o.type ? o : new Sb(o.parameter, _, o.isReadonly);
                    });
                    return t === n.propertySignatures && e === n.indexSignatures ? n : new Gd(t, e, n.annotations);
                }
            case "Union":
                {
                    const t = V_(n.types, t_);
                    return t === n.types ? n : Lu.make(t, n.annotations);
                }
            case "Suspend":
                return new Jw(()=>t_(n.f()), n.annotations);
            case "Refinement":
                {
                    const t = t_(n.from);
                    return t === n.from ? n : new mvt(t, n.filter, n.annotations);
                }
            case "Transformation":
                return t_(n.to);
        }
        return n;
    }, Evt = (n)=>Ai($ht(n), ()=>Bk(n)), xp = (n)=>qu(Evt(n), {
            onNone: ()=>{},
            onSome: (t)=>({
                    [xk]: t
                })
        });
    function V_(n, t) {
        let e = !1;
        const o = n5(n.length);
        for(let _ = 0; _ < n.length; _++){
            const a = n[_], c = t(a);
            c !== a && (e = !0), o[_] = c;
        }
        return e ? o : n;
    }
    const Wa = (n, t)=>{
        switch(n._tag){
            case "Declaration":
                {
                    const e = V_(n.typeParameters, (o)=>Wa(o));
                    return e === n.typeParameters ? n : new jk(e, n.decodeUnknown, n.encodeUnknown, n.annotations);
                }
            case "TupleType":
                {
                    const e = V_(n.elements, (a)=>{
                        const c = Wa(a.type);
                        return c === a.type ? a : new jb(c, a.isOptional);
                    }), o = Ek(n.rest), _ = V_(o, (a)=>Wa(a));
                    return e === n.elements && _ === o ? n : new Ww(e, _.map((a)=>new xb(a)), n.isReadonly, xp(n));
                }
            case "TypeLiteral":
                {
                    const e = V_(n.propertySignatures, (_)=>{
                        const a = Wa(_.type);
                        return a === _.type ? _ : new xn(_.name, a, _.isOptional, _.isReadonly);
                    }), o = V_(n.indexSignatures, (_)=>{
                        const a = Wa(_.type);
                        return a === _.type ? _ : new Sb(_.parameter, a, _.isReadonly);
                    });
                    return e === n.propertySignatures && o === n.indexSignatures ? n : new Gd(e, o, xp(n));
                }
            case "Union":
                {
                    const e = V_(n.types, (o)=>Wa(o));
                    return e === n.types ? n : Lu.make(e, xp(n));
                }
            case "Suspend":
                return new Jw(()=>Wa(n.f()), xp(n));
            case "Refinement":
                return Wa(n.from);
            case "Transformation":
                return Wa(n.from);
        }
        return n;
    }, Ovt = (n)=>Wa(n), In = (n)=>{
        const t = {};
        for (const e of Object.getOwnPropertySymbols(n))t[String(e)] = n[e];
        return t;
    }, Fvt = (n)=>{
        switch(n._tag){
            case "NeverKeyword":
                return 0;
            case "Literal":
            case "UndefinedKeyword":
            case "VoidKeyword":
            case "UniqueSymbol":
                return 1;
            case "BooleanKeyword":
                return 2;
            case "StringKeyword":
            case "NumberKeyword":
            case "BigIntKeyword":
            case "SymbolKeyword":
                return 3;
            case "ObjectKeyword":
                return 5;
            case "UnknownKeyword":
            case "AnyKeyword":
                return 6;
            default:
                return 4;
        }
    }, Avt = yl(hl(vl, (n)=>Fvt(n.type))), Tvt = yl(hl(vl, (n)=>{
        switch(Xw(n.parameter)._tag){
            case "StringKeyword":
                return 2;
            case "SymbolKeyword":
                return 3;
            case "TemplateLiteral":
                return 1;
        }
    })), Xw = (n)=>{
        switch(n._tag){
            case "StringKeyword":
            case "SymbolKeyword":
            case "TemplateLiteral":
                return n;
            case "Refinement":
                return Xw(n.from);
        }
    }, Tg = (n)=>sr(Na(n), ()=>n._tag), Na = (n)=>Bk(n).pipe(Ai(()=>Vht(n)), Ai(()=>Zht(n))), Pvt = Symbol.for("@effect/schema/ArbitraryHookId"), S_ = (n, t = [])=>({
            value: n,
            forest: t
        }), Rvt = (n)=>je(xu(n), (t)=>Cvt(t)), Uvt = (n)=>G_(Rvt(n)), Cvt = (n)=>n.value + Pk(`
`, n.forest), Pk = (n, t)=>{
        let e = "";
        const o = t.length;
        let _;
        for(let a = 0; a < o; a++){
            _ = t[a];
            const c = a === o - 1;
            e += n + (c ? "└" : "├") + "─ " + _.value, e += Pk(n + (o > 1 && !c ? "│  " : "   "), _.forest);
        }
        return e;
    }, Nvt = (n)=>{
        switch(n){
            case "Encoded":
                return "Encoded side transformation failure";
            case "Transformation":
                return "Transformation process failure";
            case "Type":
                return "Type side transformation failure";
        }
    }, Mvt = (n)=>{
        switch(n){
            case "From":
                return "From side refinement failure";
            case "Predicate":
                return "Predicate refinement failure";
        }
    }, Rk = (n)=>"ast" in n ? Ui(n.ast) : qi(), Lvt = (n)=>Rk(n).pipe(bb(Hht), Ae((t)=>{
            const e = t(n);
            return c_(e) ? Ir({
                message: e,
                override: !1
            }) : i7(e) ? je(e, (o)=>({
                    message: o,
                    override: !1
                })) : c_(e.message) ? Ir({
                message: e.message,
                override: e.override
            }) : je(e.message, (o)=>({
                    message: o,
                    override: e.override
                }));
        })), Qw = (n)=>(t)=>t._tag === n, zvt = Qw("Composite"), f3 = Qw("Refinement"), g3 = Qw("Transformation"), $w = (n)=>Lvt(n).pipe(Ae((t)=>!t.override && (zvt(n) || f3(n) && n.kind === "From" || g3(n) && n.kind !== "Transformation") ? g3(n) || f3(n) ? $w(n.issue) : qi() : Ir(t.message))), Uk = (n)=>Rk(n).pipe(bb(Jht), o5((t)=>yb(t(n)))), qvt = (n)=>$w(n).pipe(kw(()=>Uk(n)), Sg(()=>Ir(n.message ?? `Expected ${String(n.ast)}, actual ${sc(n.actual)}`))), jp = (n)=>sr(Uk(n), ()=>String(n.ast)), Dvt = (n)=>n.message ?? "is forbidden", Gvt = (n)=>n.message ?? "is unexpected", Hvt = (n)=>Kht(n.ast).pipe(Ae((t)=>{
            const e = t();
            return c_(e) ? Ir(e) : e;
        }), Sg(()=>Ir(n.message ?? "is missing"))), z0 = (n, t)=>a5($w(n), {
            onFailure: t,
            onSuccess: (e)=>Ir(S_(e))
        }), xu = (n)=>{
        switch(n._tag){
            case "Type":
                return je(qvt(n), S_);
            case "Forbidden":
                return Ir(S_(jp(n), [
                    S_(Dvt(n))
                ]));
            case "Unexpected":
                return Ir(S_(Gvt(n)));
            case "Missing":
                return je(Hvt(n), S_);
            case "Transformation":
                return z0(n, ()=>je(xu(n.issue), (t)=>S_(jp(n), [
                            S_(Nvt(n.kind), [
                                t
                            ])
                        ])));
            case "Refinement":
                return z0(n, ()=>je(xu(n.issue), (t)=>S_(jp(n), [
                            S_(Mvt(n.kind), [
                                t
                            ])
                        ])));
            case "Pointer":
                return je(xu(n.issue), (t)=>S_(Pht(n.path), [
                        t
                    ]));
            case "Composite":
                {
                    const t = jp(n);
                    return z0(n, ()=>bk(n.issues) ? je(Ta(n.issues, xu), (e)=>S_(t, e)) : je(xu(n.issues), (e)=>S_(t, [
                                e
                            ])));
                }
        }
    };
    class kn {
        path;
        actual;
        issue;
        _tag = "Pointer";
        constructor(t, e, o){
            this.path = t, this.actual = e, this.issue = o;
        }
    }
    let p3 = class {
        actual;
        message;
        _tag = "Unexpected";
        constructor(t, e){
            this.actual = t, this.message = e;
        }
    }, Ql = class {
        ast;
        message;
        _tag = "Missing";
        actual = void 0;
        constructor(t, e){
            this.ast = t, this.message = e;
        }
    }, Sr = class {
        ast;
        actual;
        issues;
        output;
        _tag = "Composite";
        constructor(t, e, o, _){
            this.ast = t, this.actual = e, this.issues = o, this.output = _;
        }
    }, b3 = class {
        ast;
        actual;
        kind;
        issue;
        _tag = "Refinement";
        constructor(t, e, o, _){
            this.ast = t, this.actual = e, this.kind = o, this.issue = _;
        }
    }, q0 = class {
        ast;
        actual;
        kind;
        issue;
        _tag = "Transformation";
        constructor(t, e, o, _){
            this.ast = t, this.actual = e, this.kind = o, this.issue = _;
        }
    }, ju = class {
        ast;
        actual;
        message;
        _tag = "Type";
        constructor(t, e, o){
            this.ast = t, this.actual = e, this.message = o;
        }
    }, Kvt = class {
        ast;
        actual;
        message;
        _tag = "Forbidden";
        constructor(t, e, o){
            this.ast = t, this.actual = e, this.message = o;
        }
    };
    const w3 = Symbol.for("@effect/schema/ParseErrorTypeId");
    let Vvt = class extends fo("ParseError") {
        [w3] = w3;
        get message() {
            return this.toString();
        }
        toString() {
            return Uvt(this.issue);
        }
        toJSON() {
            return {
                _id: "ParseError",
                message: this.toString()
            };
        }
        [s5]() {
            return this.toJSON();
        }
    };
    const Zvt = (n)=>new Vvt({
            issue: n
        }), D0 = lo(2, (n, t)=>{
        const e = n;
        return e._tag === "Left" ? e : e._tag === "Right" ? t(e.right) : Ae(n, t);
    }), Yvt = lo(2, (n, t)=>{
        const e = n;
        return e._tag === "Left" ? e : e._tag === "Right" ? cr(t(e.right)) : je(n, t);
    }), Sp = lo(2, (n, t)=>{
        const e = n;
        return e._tag === "Left" ? Xt(t(e.left)) : e._tag === "Right" ? e : c5(n, t);
    }), Qo = (n)=>{
        const t = n;
        if (t._tag === "Left" || t._tag === "Right") return t;
    }, Ck = (n, t)=>t === void 0 || nu(t) ? n : n === void 0 ? t : {
            ...n,
            ...t
        }, Wvt = (n, t, e)=>{
        const o = q_(n);
        return (_, a)=>o(_, Ck(e, a));
    }, Nk = (n, t, e)=>{
        const o = Wvt(n, t, e);
        return (_, a)=>i5(o(_, a), Zvt);
    }, Jvt = (n, t)=>Nk(n.ast, !0, t), Xvt = (n, t)=>Nk(t_(n.ast), !0, t), Qvt = wb(Symbol.for("@effect/schema/Parser/decodeMemoMap"), ()=>new WeakMap), q_ = (n, t)=>{
        const e = Qvt, o = e.get(n);
        if (o) return o;
        const _ = $vt(n), a = Xht(n), c = Eg(a) ? (s, u)=>_(s, Ck(u, a.value)) : _;
        return e.set(n, c), c;
    }, G0 = (n)=>Du(Yht(n)), H0 = (n)=>Du(Wht(n)), $vt = (n, t)=>{
        switch(n._tag){
            case "Refinement":
                {
                    const e = q_(n.from);
                    return (o, _)=>K0(D0(Sp(e(o, _), (a)=>new b3(n, o, "From", a)), (a)=>qu(n.filter(a, _ ?? L0, n), {
                                onNone: ()=>cr(a),
                                onSome: (c)=>Xt(new b3(n, o, "Predicate", c))
                            })), n, o, _);
                }
            case "Transformation":
                {
                    const e = r2t(n.transformation), o = q_(n.from), _ = q_(n.to);
                    return (a, c)=>K0(D0(Sp(o(a, c), (s)=>new q0(n, a, "Encoded", s)), (s)=>D0(Sp(e(s, c ?? L0, n), (u)=>new q0(n, a, "Transformation", u)), (u)=>Sp(_(u, c), (l)=>new q0(n, a, "Type", l)))), n, a, c);
                }
            case "Declaration":
                {
                    const e = n.decodeUnknown(...n.typeParameters);
                    return (o, _)=>K0(e(o, _ ?? L0, n), n, o, _);
                }
            case "Literal":
                return Jn(n, (e)=>e === n.literal);
            case "UniqueSymbol":
                return Jn(n, (e)=>e === n.symbol);
            case "UndefinedKeyword":
                return Jn(n, Zp);
            case "VoidKeyword":
                return Jn(n, Zp);
            case "NeverKeyword":
                return Jn(n, u5);
            case "UnknownKeyword":
            case "AnyKeyword":
                return cr;
            case "StringKeyword":
                return Jn(n, c_);
            case "NumberKeyword":
                return Jn(n, nu);
            case "BooleanKeyword":
                return Jn(n, pl);
            case "BigIntKeyword":
                return Jn(n, bl);
            case "SymbolKeyword":
                return Jn(n, zu);
            case "ObjectKeyword":
                return Jn(n, hb);
            case "Enums":
                return Jn(n, (e)=>n.enums.some(([o, _])=>_ === e));
            case "TemplateLiteral":
                {
                    const e = Svt(n);
                    return Jn(n, (o)=>c_(o) && e.test(o));
                }
            case "TupleType":
                {
                    const e = n.elements.map((l)=>q_(l.type)), o = n.rest.map((l)=>q_(l.type));
                    let _ = n.elements.filter((l)=>!l.isOptional);
                    n.rest.length > 0 && (_ = _.concat(n.rest.slice(1)));
                    const a = _.length, c = n.elements.length > 0 ? n.elements.map((l, f)=>f).join(" | ") : "never", s = G0(n), u = H0(n);
                    return (l, f)=>{
                        if (!Hp(l)) return Xt(new ju(n, l));
                        const p = f?.errors === "all", g = [];
                        let h = 0;
                        const B = [], I = l.length;
                        for(let b = I; b <= a - 1; b++){
                            const k = new kn(b, l, new Ql(_[b - I]));
                            if (p) {
                                g.push([
                                    h++,
                                    k
                                ]);
                                continue;
                            } else return Xt(new Sr(n, l, k, B));
                        }
                        if (n.rest.length === 0) for(let b = n.elements.length; b <= I - 1; b++){
                            const k = new kn(b, l, new p3(l[b], `is unexpected, expected: ${c}`));
                            if (p) {
                                g.push([
                                    h++,
                                    k
                                ]);
                                continue;
                            } else return Xt(new Sr(n, l, k, B));
                        }
                        let j = 0, w;
                        for(; j < e.length; j++)if (I < j + 1) {
                            if (n.elements[j].isOptional) continue;
                        } else {
                            const b = e[j], k = b(l[j], f), F = Qo(k);
                            if (F) {
                                if (ir(F)) {
                                    const Y = new kn(j, l, F.left);
                                    if (p) {
                                        g.push([
                                            h++,
                                            Y
                                        ]);
                                        continue;
                                    } else return Xt(new Sr(n, l, Y, da(B)));
                                }
                                B.push([
                                    h++,
                                    F.right
                                ]);
                            } else {
                                const Y = h++, K = j;
                                w || (w = []), w.push(({ es: J, output: P })=>Ae(Hn(k), (T)=>{
                                        if (ir(T)) {
                                            const E = new kn(K, l, T.left);
                                            return p ? (J.push([
                                                Y,
                                                E
                                            ]), $e) : Xt(new Sr(n, l, E, da(P)));
                                        }
                                        return P.push([
                                            Y,
                                            T.right
                                        ]), $e;
                                    }));
                            }
                        }
                        if (ml(o)) {
                            const [b, ...k] = o;
                            for(; j < I - k.length; j++){
                                const F = b(l[j], f), Y = Qo(F);
                                if (Y) if (ir(Y)) {
                                    const K = new kn(j, l, Y.left);
                                    if (p) {
                                        g.push([
                                            h++,
                                            K
                                        ]);
                                        continue;
                                    } else return Xt(new Sr(n, l, K, da(B)));
                                } else B.push([
                                    h++,
                                    Y.right
                                ]);
                                else {
                                    const K = h++, J = j;
                                    w || (w = []), w.push(({ es: P, output: T })=>Ae(Hn(F), (E)=>{
                                            if (ir(E)) {
                                                const N = new kn(J, l, E.left);
                                                return p ? (P.push([
                                                    K,
                                                    N
                                                ]), $e) : Xt(new Sr(n, l, N, da(T)));
                                            } else return T.push([
                                                K,
                                                E.right
                                            ]), $e;
                                        }));
                                }
                            }
                            for(let F = 0; F < k.length; F++)if (j += F, !(I < j + 1)) {
                                const Y = k[F](l[j], f), K = Qo(Y);
                                if (K) {
                                    if (ir(K)) {
                                        const J = new kn(j, l, K.left);
                                        if (p) {
                                            g.push([
                                                h++,
                                                J
                                            ]);
                                            continue;
                                        } else return Xt(new Sr(n, l, J, da(B)));
                                    }
                                    B.push([
                                        h++,
                                        K.right
                                    ]);
                                } else {
                                    const J = h++, P = j;
                                    w || (w = []), w.push(({ es: T, output: E })=>Ae(Hn(Y), (N)=>{
                                            if (ir(N)) {
                                                const y = new kn(P, l, N.left);
                                                return p ? (T.push([
                                                    J,
                                                    y
                                                ]), $e) : Xt(new Sr(n, l, y, da(E)));
                                            }
                                            return E.push([
                                                J,
                                                N.right
                                            ]), $e;
                                        }));
                                }
                            }
                        }
                        const S = ({ es: b, output: k })=>Ld(b) ? Xt(new Sr(n, l, da(b), da(k))) : cr(da(k));
                        if (w && w.length > 0) {
                            const b = w;
                            return zs(()=>{
                                const k = {
                                    es: qs(g),
                                    output: qs(B)
                                };
                                return Ae(Ta(b, (F)=>F(k), {
                                    concurrency: s,
                                    batching: u,
                                    discard: !0
                                }), ()=>S(k));
                            });
                        }
                        return S({
                            output: B,
                            es: g
                        });
                    };
                }
            case "TypeLiteral":
                {
                    if (n.propertySignatures.length === 0 && n.indexSignatures.length === 0) return Jn(n, d5);
                    const e = [], o = {}, _ = [];
                    for (const f of n.propertySignatures)e.push([
                        q_(f.type),
                        f
                    ]), o[f.name] = null, _.push(f.name);
                    const a = n.indexSignatures.map((f)=>[
                            q_(f.parameter),
                            q_(f.type),
                            f.parameter
                        ]), c = Lu.make(n.indexSignatures.map((f)=>f.parameter).concat(_.map((f)=>zu(f) ? new rvt(f) : new tvt(f)))), s = q_(c), u = G0(n), l = H0(n);
                    return (f, p)=>{
                        if (!Vp(f)) return Xt(new ju(n, f));
                        const g = p?.errors === "all", h = [];
                        let B = 0;
                        const I = p?.onExcessProperty === "error", j = p?.onExcessProperty === "preserve", w = {};
                        let S;
                        if (I || j) {
                            S = Mu(f);
                            for (const Y of S){
                                const K = Qo(s(Y, p));
                                if (ir(K)) if (I) {
                                    const J = new kn(Y, f, new p3(f[Y], `is unexpected, expected: ${String(c)}`));
                                    if (g) {
                                        h.push([
                                            B++,
                                            J
                                        ]);
                                        continue;
                                    } else return Xt(new Sr(n, f, J, w));
                                } else w[Y] = f[Y];
                            }
                        }
                        let b;
                        const k = p?.exact === !0;
                        for(let Y = 0; Y < e.length; Y++){
                            const K = e[Y][1], J = K.name, P = Object.prototype.hasOwnProperty.call(f, J);
                            if (!P) {
                                if (K.isOptional) continue;
                                if (k) {
                                    const y = new kn(J, f, new Ql(K));
                                    if (g) {
                                        h.push([
                                            B++,
                                            y
                                        ]);
                                        continue;
                                    } else return Xt(new Sr(n, f, y, w));
                                }
                            }
                            const T = e[Y][0], E = T(f[J], p), N = Qo(E);
                            if (N) {
                                if (ir(N)) {
                                    const y = new kn(J, f, P ? N.left : new Ql(K));
                                    if (g) {
                                        h.push([
                                            B++,
                                            y
                                        ]);
                                        continue;
                                    } else return Xt(new Sr(n, f, y, w));
                                }
                                w[J] = N.right;
                            } else {
                                const y = B++, O = J;
                                b || (b = []), b.push(({ es: m, output: R })=>Ae(Hn(E), (v)=>{
                                        if (ir(v)) {
                                            const A = new kn(O, f, P ? v.left : new Ql(K));
                                            return g ? (m.push([
                                                y,
                                                A
                                            ]), $e) : Xt(new Sr(n, f, A, R));
                                        }
                                        return R[O] = v.right, $e;
                                    }));
                            }
                        }
                        for(let Y = 0; Y < a.length; Y++){
                            const K = a[Y], J = K[0], P = K[1], T = gk(f, K[2]);
                            for (const E of T){
                                const N = Qo(J(E, p));
                                if (N && Md(N)) {
                                    const y = P(f[E], p), O = Qo(y);
                                    if (O) if (ir(O)) {
                                        const m = new kn(E, f, O.left);
                                        if (g) {
                                            h.push([
                                                B++,
                                                m
                                            ]);
                                            continue;
                                        } else return Xt(new Sr(n, f, m, w));
                                    } else Object.prototype.hasOwnProperty.call(o, E) || (w[E] = O.right);
                                    else {
                                        const m = B++, R = E;
                                        b || (b = []), b.push(({ es: v, output: A })=>Ae(Hn(y), (X)=>{
                                                if (ir(X)) {
                                                    const C = new kn(R, f, X.left);
                                                    return g ? (v.push([
                                                        m,
                                                        C
                                                    ]), $e) : Xt(new Sr(n, f, C, A));
                                                } else return Object.prototype.hasOwnProperty.call(o, E) || (A[E] = X.right), $e;
                                            }));
                                    }
                                }
                            }
                        }
                        const F = ({ es: Y, output: K })=>{
                            if (Ld(Y)) return Xt(new Sr(n, f, da(Y), K));
                            if (p?.propertyOrder === "original") {
                                const J = S || Mu(f);
                                for (const T of _)J.indexOf(T) === -1 && J.push(T);
                                const P = {};
                                for (const T of J)Object.prototype.hasOwnProperty.call(K, T) && (P[T] = K[T]);
                                return cr(P);
                            }
                            return cr(K);
                        };
                        if (b && b.length > 0) {
                            const Y = b;
                            return zs(()=>{
                                const K = {
                                    es: qs(h),
                                    output: Object.assign({}, w)
                                };
                                return Ae(Ta(Y, (J)=>J(K), {
                                    concurrency: u,
                                    batching: l,
                                    discard: !0
                                }), ()=>F(K));
                            });
                        }
                        return F({
                            es: h,
                            output: w
                        });
                    };
                }
            case "Union":
                {
                    const e = t2t(n.types), o = Mu(e.keys), _ = o.length, a = new Map;
                    for(let u = 0; u < n.types.length; u++)a.set(n.types[u], q_(n.types[u]));
                    const c = G0(n) ?? 1, s = H0(n);
                    return (u, l)=>{
                        const f = [];
                        let p = 0, g = [];
                        if (_ > 0) if (Vp(u)) for(let I = 0; I < _; I++){
                            const j = o[I], w = e.keys[j].buckets;
                            if (Object.prototype.hasOwnProperty.call(u, j)) {
                                const S = String(u[j]);
                                if (Object.prototype.hasOwnProperty.call(w, S)) g = g.concat(w[S]);
                                else {
                                    const b = Lu.make(e.keys[j].literals);
                                    f.push([
                                        p++,
                                        new Sr(new Gd([
                                            new xn(j, b, !1, !0)
                                        ], []), u, new kn(j, u, new ju(b, u[j])))
                                    ]);
                                }
                            } else {
                                const S = Lu.make(e.keys[j].literals), b = new xn(j, S, !1, !0);
                                f.push([
                                    p++,
                                    new Sr(new Gd([
                                        b
                                    ], []), u, new kn(j, u, new Ql(b)))
                                ]);
                            }
                        }
                        else f.push([
                            p++,
                            new ju(n, u)
                        ]);
                        e.otherwise.length > 0 && (g = g.concat(e.otherwise));
                        let h;
                        for(let I = 0; I < g.length; I++){
                            const j = g[I], w = a.get(j)(u, l), S = !h || h.length === 0 ? Qo(w) : void 0;
                            if (S) {
                                if (Md(S)) return cr(S.right);
                                f.push([
                                    p++,
                                    S.left
                                ]);
                            } else {
                                const b = p++;
                                h || (h = []), h.push((k)=>zs(()=>"finalResult" in k ? $e : Ae(Hn(w), (F)=>(Md(F) ? k.finalResult = cr(F.right) : k.es.push([
                                                b,
                                                F.left
                                            ]), $e))));
                            }
                        }
                        const B = (I)=>Ld(I) ? I.length === 1 && I[0][1]._tag === "Type" ? Xt(I[0][1]) : Xt(new Sr(n, u, da(I))) : Xt(new ju(n, u));
                        if (h && h.length > 0) {
                            const I = h;
                            return zs(()=>{
                                const j = {
                                    es: qs(f)
                                };
                                return Ae(Ta(I, (w)=>w(j), {
                                    concurrency: c,
                                    batching: s,
                                    discard: !0
                                }), ()=>"finalResult" in j ? j.finalResult : B(j.es));
                            });
                        }
                        return B(f);
                    };
                }
            case "Suspend":
                {
                    const e = pk(()=>q_(Tk(n.f(), n.annotations)));
                    return (o, _)=>e()(o, _);
                }
        }
    }, Jn = (n, t)=>(e)=>t(e) ? cr(e) : Xt(new ju(n, e)), Wf = (n, t)=>{
        switch(n._tag){
            case "Declaration":
                {
                    const e = Qht(n);
                    if (Eg(e)) return Wf(e.value);
                    break;
                }
            case "TypeLiteral":
                {
                    const e = [];
                    for(let o = 0; o < n.propertySignatures.length; o++){
                        const _ = n.propertySignatures[o], a = Ovt(_.type);
                        evt(a) && !_.isOptional && e.push([
                            _.name,
                            a
                        ]);
                    }
                    return e;
                }
            case "Refinement":
                return Wf(n.from);
            case "Suspend":
                return Wf(n.f());
            case "Transformation":
                return Wf(n.from);
        }
        return [];
    }, t2t = (n, t)=>{
        const e = {}, o = [];
        for(let _ = 0; _ < n.length; _++){
            const a = n[_], c = Wf(a);
            if (c.length > 0) for(let s = 0; s < c.length; s++){
                const [u, l] = c[s], f = String(l.literal);
                e[u] = e[u] || {
                    buckets: {},
                    literals: []
                };
                const p = e[u].buckets;
                if (Object.prototype.hasOwnProperty.call(p, f)) {
                    if (s < c.length - 1) continue;
                    p[f].push(a), e[u].literals.push(l);
                } else {
                    p[f] = [
                        a
                    ], e[u].literals.push(l);
                    break;
                }
            }
            else o.push(a);
        }
        return {
            keys: e,
            otherwise: o
        };
    }, K0 = (n, t, e, o)=>{
        const _ = Qo(n);
        if (_) return _;
        if (o?.isEffectAllowed === !0) return n;
        try {
            return G_(Hn(n));
        } catch  {
            return Xt(new Kvt(t, e, "cannot be be resolved synchronously, this is caused by using runSync on an effect that performs async work"));
        }
    }, e2t = ([n], [t])=>n > t ? 1 : n < t ? -1 : 0;
    function da(n) {
        return n.sort(e2t).map((t)=>t[1]);
    }
    const r2t = (n, t)=>{
        switch(n._tag){
            case "FinalTransformation":
                return n.decode;
            case "ComposeTransformation":
                return cr;
            case "TypeLiteralTransformation":
                return (e)=>{
                    let o = cr(e);
                    for (const _ of n.propertySignatureTransformations){
                        const [a, c] = [
                            _.from,
                            _.to
                        ], s = _.decode;
                        o = Yvt(o, (l)=>{
                            const f = s(Object.prototype.hasOwnProperty.call(l, a) ? Ui(l[a]) : qi());
                            return delete l[a], Eg(f) && (l[c] = f.value), l;
                        });
                    }
                    return o;
                };
        }
    }, n2t = Symbol.for("@effect/schema/EquivalenceHookId"), _2t = Symbol.for("@effect/schema/PrettyHookId"), _b = Symbol.for("@effect/schema/Schema"), fc = (n)=>class {
            [_b] = y3;
            static Type;
            static Encoded;
            static [_b] = y3;
            static ast = n;
            static annotations(e) {
                return fc(Pg(this.ast, e));
            }
            static pipe() {
                return l5(this, arguments);
            }
            static toString() {
                return String(n);
            }
        }, y3 = {
        _A: (n)=>n,
        _I: (n)=>n,
        _R: (n)=>n
    }, a2t = (n)=>{
        if (!n) return {};
        const t = {}, e = Object.getOwnPropertySymbols(n);
        for (const _ of e)t[_] = n[_];
        if (n.typeId !== void 0) {
            const _ = n.typeId;
            typeof _ == "object" ? (t[d3] = _.id, t[_.id] = _.annotation) : t[d3] = _;
        }
        const o = (_, a)=>{
            n[_] !== void 0 && (t[a] = n[_]);
        };
        return o("message", wk), o("missingMessage", yk), o("identifier", hk), o("title", Ci), o("description", Bb), o("examples", Lht), o("default", zht), o("documentation", Dht), o("jsonSchema", qht), o("arbitrary", Pvt), o("pretty", _2t), o("equivalence", n2t), o("concurrency", vk), o("batching", mk), o("parseIssueTitle", Ik), o("parseOptions", kk), t;
    }, Pg = (n, t)=>Tk(n, a2t(t)), h3 = (n)=>wl(n, _b) && hb(n[_b]);
    let o2t = class extends fc(nb) {
    };
    class i2t extends fc(cvt) {
    }
    class V0 extends fc(uvt) {
    }
    const s2t = (n)=>Lu.members(n.map((t)=>t.ast)), Mk = (n, t = s2t(n))=>class extends fc(t) {
            static annotations(o) {
                return Mk(this.members, Pg(this.ast, o));
            }
            static members = [
                ...n
            ];
        };
    function c2t(...n) {
        return Ak(n) ? Mk(n) : ml(n) ? n[0] : o2t;
    }
    const d2t = (n, t)=>new Ww(n.map((e)=>h3(e) ? new jb(e.ast, !1) : e.ast), t.map((e)=>h3(e) ? new xb(e.ast) : e.ast), !0), Lk = (n, t, e = d2t(n, t))=>class extends fc(e) {
            static annotations(_) {
                return Lk(this.elements, this.rest, Pg(this.ast, _));
            }
            static elements = [
                ...n
            ];
            static rest = [
                ...t
            ];
        }, zk = (n, t)=>class extends Lk([], [
            n
        ], t) {
            static annotations(o) {
                return zk(this.value, Pg(this.ast, o));
            }
            static value = n;
        }, Z0 = (n)=>zk(n), u2t = Symbol.for("@effect/schema/PropertySignature"), qk = (n)=>wl(n, u2t), l2t = (n, t)=>{
        const e = Mu(n), o = [];
        if (e.length > 0) {
            const a = [], c = [], s = [];
            for(let u = 0; u < e.length; u++){
                const l = e[u], f = n[l];
                if (qk(f)) {
                    const p = f.ast;
                    switch(p._tag){
                        case "PropertySignatureDeclaration":
                            {
                                const g = p.type, h = p.isOptional, B = p.annotations;
                                a.push(new xn(l, g, h, !0)), c.push(new xn(l, t_(g), h, !0, B)), o.push(new xn(l, g, h, !0, B));
                                break;
                            }
                        case "PropertySignatureTransformation":
                            {
                                const g = p.from.fromKey ?? l;
                                a.push(new xn(g, p.from.type, p.from.isOptional, !0, p.from.annotations)), c.push(new xn(l, p.to.type, p.to.isOptional, !0, p.to.annotations)), s.push(new kvt(g, l, p.decode, p.encode));
                                break;
                            }
                    }
                } else a.push(new xn(l, f.ast, !1, !0)), c.push(new xn(l, t_(f.ast), !1, !0)), o.push(new xn(l, f.ast, !1, !0));
            }
            if (ml(s)) {
                const u = [], l = [];
                for (const f of t){
                    const { indexSignatures: p, propertySignatures: g } = l3(f.key.ast, f.value.ast);
                    g.forEach((h)=>{
                        a.push(h), c.push(new xn(h.name, t_(h.type), h.isOptional, h.isReadonly, h.annotations));
                    }), p.forEach((h)=>{
                        u.push(h), l.push(new Sb(h.parameter, t_(h.type), h.isReadonly));
                    });
                }
                return new Ivt(new Gd(a, u, {
                    [Ci]: "Struct (Encoded side)"
                }), new Gd(c, l, {
                    [Ci]: "Struct (Type side)"
                }), new Bvt(s));
            }
        }
        const _ = [];
        for (const a of t){
            const { indexSignatures: c, propertySignatures: s } = l3(a.key.ast, a.value.ast);
            s.forEach((u)=>o.push(u)), c.forEach((u)=>_.push(u));
        }
        return new Gd(o, _);
    }, f2t = (n, t)=>{
        const e = Mu(n);
        for (const o of e){
            const _ = n[o];
            if (t[o] === void 0 && qk(_)) {
                const a = _.ast, c = a._tag === "PropertySignatureDeclaration" ? a.defaultValue : a.to.defaultValue;
                c !== void 0 && (t[o] = c());
            }
        }
        return t;
    }, Dk = (n, t, e = l2t(n, t))=>class extends fc(e) {
            static annotations(_) {
                return Dk(this.fields, this.records, Pg(this.ast, _));
            }
            static fields = {
                ...n
            };
            static records = [
                ...t
            ];
            static make = (_, a)=>{
                const c = f2t(n, {
                    ..._
                });
                return g2t(a) ? c : Xvt(this)(c);
            };
            static pick(..._) {
                return Qn(s7(n, ..._));
            }
            static omit(..._) {
                return Qn(c7(n, ..._));
            }
        };
    function Qn(n, ...t) {
        return Dk(n, t);
    }
    const Y0 = (n)=>fc(new Jw(()=>n().ast)), g2t = (n)=>pl(n) ? n : n?.disableValidation ?? !1;
    function p2t(n, ...t) {
        if (!b2t(n)) throw new Error("Uint8Array expected");
        if (t.length > 0 && !t.includes(n.length)) throw new Error(`Uint8Array expected of length ${t}, not of length=${n.length}`);
    }
    function b2t(n) {
        return n instanceof Uint8Array || n != null && typeof n == "object" && n.constructor.name === "Uint8Array";
    }
    var yo = {
        _0: 48,
        _9: 57,
        _A: 65,
        _F: 70,
        _a: 97,
        _f: 102
    };
    function v3(n) {
        if (n >= yo._0 && n <= yo._9) return n - yo._0;
        if (n >= yo._A && n <= yo._F) return n - (yo._A - 10);
        if (n >= yo._a && n <= yo._f) return n - (yo._a - 10);
    }
    var w2t = Array.from({
        length: 256
    }, (n, t)=>t.toString(16).padStart(2, "0"));
    function Jr(n) {
        if (typeof n != "string") throw new Error("hex string expected, got " + typeof n);
        const t = n.length, e = t / 2;
        if (t % 2) throw new Error("padded hex string expected, got unpadded hex of length " + t);
        const o = new Uint8Array(e);
        for(let _ = 0, a = 0; _ < e; _++, a += 2){
            const c = v3(n.charCodeAt(a)), s = v3(n.charCodeAt(a + 1));
            if (c === void 0 || s === void 0) {
                const u = n[a] + n[a + 1];
                throw new Error('hex string expected, got non-hex character "' + u + '" at index ' + a);
            }
            o[_] = c * 16 + s;
        }
        return o;
    }
    function L_(n) {
        p2t(n);
        let t = "";
        for(let e = 0; e < n.length; e++)t += w2t[n[e]];
        return t;
    }
    function y2t(n) {
        return L_(new TextEncoder().encode(n));
    }
    var m3 = (n = 1e3)=>new Promise((t)=>setTimeout(t, n));
    let xw;
    try {
        xw = new TextDecoder;
    } catch  {}
    let qt, Hd, At = 0;
    const h2t = 105, v2t = 57342, m2t = 57343, I3 = 57337, k3 = 6, hu = {};
    let $l = 11281e4, ho = 1681e4, me = {}, dr, ab, ob = 0, pg = 0, Ur, Z_, Br = [], jw = [], __, qn, Jf, B3 = {
        useRecords: !1,
        mapsAsObjects: !0
    }, bg = !1, Gk = 2;
    try {
        new Function("");
    } catch  {
        Gk = 1 / 0;
    }
    class wg {
        constructor(t){
            if (t && ((t.keyMap || t._keyMap) && !t.useRecords && (t.useRecords = !1, t.mapsAsObjects = !0), t.useRecords === !1 && t.mapsAsObjects === void 0 && (t.mapsAsObjects = !0), t.getStructures && (t.getShared = t.getStructures), t.getShared && !t.structures && ((t.structures = []).uninitialized = !0), t.keyMap)) {
                this.mapKey = new Map;
                for (let [e, o] of Object.entries(t.keyMap))this.mapKey.set(o, e);
            }
            Object.assign(this, t);
        }
        decodeKey(t) {
            return this.keyMap && this.mapKey.get(t) || t;
        }
        encodeKey(t) {
            return this.keyMap && this.keyMap.hasOwnProperty(t) ? this.keyMap[t] : t;
        }
        encodeKeys(t) {
            if (!this._keyMap) return t;
            let e = new Map;
            for (let [o, _] of Object.entries(t))e.set(this._keyMap.hasOwnProperty(o) ? this._keyMap[o] : o, _);
            return e;
        }
        decodeKeys(t) {
            if (!this._keyMap || t.constructor.name != "Map") return t;
            if (!this._mapKey) {
                this._mapKey = new Map;
                for (let [o, _] of Object.entries(this._keyMap))this._mapKey.set(_, o);
            }
            let e = {};
            return t.forEach((o, _)=>e[Y_(this._mapKey.has(_) ? this._mapKey.get(_) : _)] = o), e;
        }
        mapDecode(t, e) {
            let o = this.decode(t);
            if (this._keyMap) switch(o.constructor.name){
                case "Array":
                    return o.map((_)=>this.decodeKeys(_));
            }
            return o;
        }
        decode(t, e) {
            if (qt) return Zk(()=>(Fw(), this ? this.decode(t, e) : wg.prototype.decode.call(B3, t, e)));
            Hd = e > -1 ? e : t.length, At = 0, pg = 0, ab = null, Ur = null, qt = t;
            try {
                qn = t.dataView || (t.dataView = new DataView(t.buffer, t.byteOffset, t.byteLength));
            } catch (o) {
                throw qt = null, t instanceof Uint8Array ? o : new Error("Source must be a Uint8Array or Buffer but was a " + (t && typeof t == "object" ? t.constructor.name : typeof t));
            }
            if (this instanceof wg) {
                if (me = this, __ = this.sharedValues && (this.pack ? new Array(this.maxPrivatePackedValues || 16).concat(this.sharedValues) : this.sharedValues), this.structures) return dr = this.structures, Ep();
                (!dr || dr.length > 0) && (dr = []);
            } else me = B3, (!dr || dr.length > 0) && (dr = []), __ = null;
            return Ep();
        }
        decodeMultiple(t, e) {
            let o, _ = 0;
            try {
                let a = t.length;
                bg = !0;
                let c = this ? this.decode(t, a) : ry.decode(t, a);
                if (e) {
                    if (e(c) === !1) return;
                    for(; At < a;)if (_ = At, e(Ep()) === !1) return;
                } else {
                    for(o = [
                        c
                    ]; At < a;)_ = At, o.push(Ep());
                    return o;
                }
            } catch (a) {
                throw a.lastPosition = _, a.values = o, a;
            } finally{
                bg = !1, Fw();
            }
        }
    }
    function Ep() {
        try {
            let n = Ie();
            if (Ur) {
                if (At >= Ur.postBundlePosition) {
                    let t = new Error("Unexpected bundle position");
                    throw t.incomplete = !0, t;
                }
                At = Ur.postBundlePosition, Ur = null;
            }
            if (At == Hd) dr = null, qt = null, Z_ && (Z_ = null);
            else if (At > Hd) {
                let t = new Error("Unexpected end of CBOR data");
                throw t.incomplete = !0, t;
            } else if (!bg) throw new Error("Data read, but end of buffer not reached");
            return n;
        } catch (n) {
            throw Fw(), (n instanceof RangeError || n.message.startsWith("Unexpected end of buffer")) && (n.incomplete = !0), n;
        }
    }
    function Ie() {
        let n = qt[At++], t = n >> 5;
        if (n = n & 31, n > 23) switch(n){
            case 24:
                n = qt[At++];
                break;
            case 25:
                if (t == 7) return x2t();
                n = qn.getUint16(At), At += 2;
                break;
            case 26:
                if (t == 7) {
                    let e = qn.getFloat32(At);
                    if (me.useFloat32 > 2) {
                        let o = ey[(qt[At] & 127) << 1 | qt[At + 1] >> 7];
                        return At += 4, (o * e + (e > 0 ? .5 : -.5) >> 0) / o;
                    }
                    return At += 4, e;
                }
                if (n = qn.getUint32(At), At += 4, t === 1) return -1 - n;
                break;
            case 27:
                if (t == 7) {
                    let e = qn.getFloat64(At);
                    return At += 8, e;
                }
                if (t > 1) {
                    if (qn.getUint32(At) > 0) throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");
                    n = qn.getUint32(At + 4);
                } else me.int64AsNumber ? (n = qn.getUint32(At) * 4294967296, n += qn.getUint32(At + 4)) : n = qn.getBigUint64(At);
                At += 8;
                break;
            case 31:
                switch(t){
                    case 2:
                    case 3:
                        throw new Error("Indefinite length not supported for byte or text strings");
                    case 4:
                        let e = [], o, _ = 0;
                        for(; (o = Ie()) != hu;){
                            if (_ >= $l) throw new Error(`Array length exceeds ${$l}`);
                            e[_++] = o;
                        }
                        return t == 4 ? e : t == 3 ? e.join("") : Buffer.concat(e);
                    case 5:
                        let a;
                        if (me.mapsAsObjects) {
                            let c = {}, s = 0;
                            if (me.keyMap) for(; (a = Ie()) != hu;){
                                if (s++ >= ho) throw new Error(`Property count exceeds ${ho}`);
                                c[Y_(me.decodeKey(a))] = Ie();
                            }
                            else for(; (a = Ie()) != hu;){
                                if (s++ >= ho) throw new Error(`Property count exceeds ${ho}`);
                                c[Y_(a)] = Ie();
                            }
                            return c;
                        } else {
                            Jf && (me.mapsAsObjects = !0, Jf = !1);
                            let c = new Map;
                            if (me.keyMap) {
                                let s = 0;
                                for(; (a = Ie()) != hu;){
                                    if (s++ >= ho) throw new Error(`Map size exceeds ${ho}`);
                                    c.set(me.decodeKey(a), Ie());
                                }
                            } else {
                                let s = 0;
                                for(; (a = Ie()) != hu;){
                                    if (s++ >= ho) throw new Error(`Map size exceeds ${ho}`);
                                    c.set(a, Ie());
                                }
                            }
                            return c;
                        }
                    case 7:
                        return hu;
                    default:
                        throw new Error("Invalid major type for indefinite length " + t);
                }
            default:
                throw new Error("Unknown token " + n);
        }
        switch(t){
            case 0:
                return n;
            case 1:
                return ~n;
            case 2:
                return B2t(n);
            case 3:
                if (pg >= At) return ab.slice(At - ob, (At += n) - ob);
                if (pg == 0 && Hd < 140 && n < 32) {
                    let _ = n < 16 ? Hk(n) : k2t(n);
                    if (_ != null) return _;
                }
                return I2t(n);
            case 4:
                if (n >= $l) throw new Error(`Array length exceeds ${$l}`);
                let e = new Array(n);
                for(let _ = 0; _ < n; _++)e[_] = Ie();
                return e;
            case 5:
                if (n >= ho) throw new Error(`Map size exceeds ${$l}`);
                if (me.mapsAsObjects) {
                    let _ = {};
                    if (me.keyMap) for(let a = 0; a < n; a++)_[Y_(me.decodeKey(Ie()))] = Ie();
                    else for(let a = 0; a < n; a++)_[Y_(Ie())] = Ie();
                    return _;
                } else {
                    Jf && (me.mapsAsObjects = !0, Jf = !1);
                    let _ = new Map;
                    if (me.keyMap) for(let a = 0; a < n; a++)_.set(me.decodeKey(Ie()), Ie());
                    else for(let a = 0; a < n; a++)_.set(Ie(), Ie());
                    return _;
                }
            case 6:
                if (n >= I3) {
                    let _ = dr[n & 8191];
                    if (_) return _.read || (_.read = Sw(_)), _.read();
                    if (n < 65536) {
                        if (n == m2t) {
                            let a = Au(), c = Ie(), s = Ie();
                            Ow(c, s);
                            let u = {};
                            if (me.keyMap) for(let l = 2; l < a; l++){
                                let f = me.decodeKey(s[l - 2]);
                                u[Y_(f)] = Ie();
                            }
                            else for(let l = 2; l < a; l++){
                                let f = s[l - 2];
                                u[Y_(f)] = Ie();
                            }
                            return u;
                        } else if (n == v2t) {
                            let a = Au(), c = Ie();
                            for(let s = 2; s < a; s++)Ow(c++, Ie());
                            return Ie();
                        } else if (n == I3) return A2t();
                        if (me.getShared && (ty(), _ = dr[n & 8191], _)) return _.read || (_.read = Sw(_)), _.read();
                    }
                }
                let o = Br[n];
                if (o) return o.handlesRead ? o(Ie) : o(Ie());
                {
                    let _ = Ie();
                    for(let a = 0; a < jw.length; a++){
                        let c = jw[a](n, _);
                        if (c !== void 0) return c;
                    }
                    return new Qd(_, n);
                }
            case 7:
                switch(n){
                    case 20:
                        return !1;
                    case 21:
                        return !0;
                    case 22:
                        return null;
                    case 23:
                        return;
                    case 31:
                    default:
                        let _ = (__ || Pd())[n];
                        if (_ !== void 0) return _;
                        throw new Error("Unknown token " + n);
                }
            default:
                if (isNaN(n)) {
                    let _ = new Error("Unexpected end of CBOR data");
                    throw _.incomplete = !0, _;
                }
                throw new Error("Unknown CBOR token " + n);
        }
    }
    const x3 = /^[a-zA-Z_$][a-zA-Z\d_$]*$/;
    function Sw(n) {
        if (!n) throw new Error("Structure is required in record definition");
        function t() {
            let e = qt[At++];
            if (e = e & 31, e > 23) switch(e){
                case 24:
                    e = qt[At++];
                    break;
                case 25:
                    e = qn.getUint16(At), At += 2;
                    break;
                case 26:
                    e = qn.getUint32(At), At += 4;
                    break;
                default:
                    throw new Error("Expected array header, but got " + qt[At - 1]);
            }
            let o = this.compiledReader;
            for(; o;){
                if (o.propertyCount === e) return o(Ie);
                o = o.next;
            }
            if (this.slowReads++ >= Gk) {
                let a = this.length == e ? this : this.slice(0, e);
                return o = me.keyMap ? new Function("r", "return {" + a.map((c)=>me.decodeKey(c)).map((c)=>x3.test(c) ? Y_(c) + ":r()" : "[" + JSON.stringify(c) + "]:r()").join(",") + "}") : new Function("r", "return {" + a.map((c)=>x3.test(c) ? Y_(c) + ":r()" : "[" + JSON.stringify(c) + "]:r()").join(",") + "}"), this.compiledReader && (o.next = this.compiledReader), o.propertyCount = e, this.compiledReader = o, o(Ie);
            }
            let _ = {};
            if (me.keyMap) for(let a = 0; a < e; a++)_[Y_(me.decodeKey(this[a]))] = Ie();
            else for(let a = 0; a < e; a++)_[Y_(this[a])] = Ie();
            return _;
        }
        return n.slowReads = 0, t;
    }
    function Y_(n) {
        if (typeof n == "string") return n === "__proto__" ? "__proto_" : n;
        if (typeof n == "number" || typeof n == "boolean" || typeof n == "bigint") return n.toString();
        if (n == null) return n + "";
        throw new Error("Invalid property name type " + typeof n);
    }
    let I2t = Ew;
    function Ew(n) {
        let t;
        if (n < 16 && (t = Hk(n))) return t;
        if (n > 64 && xw) return xw.decode(qt.subarray(At, At += n));
        const e = At + n, o = [];
        for(t = ""; At < e;){
            const _ = qt[At++];
            if ((_ & 128) === 0) o.push(_);
            else if ((_ & 224) === 192) {
                const a = qt[At++] & 63, c = (_ & 31) << 6 | a;
                c < 128 ? o.push(65533) : o.push(c);
            } else if ((_ & 240) === 224) {
                const a = qt[At++] & 63, c = qt[At++] & 63, s = (_ & 31) << 12 | a << 6 | c;
                s < 2048 || s >= 55296 && s <= 57343 ? o.push(65533) : o.push(s);
            } else if ((_ & 248) === 240) {
                const a = qt[At++] & 63, c = qt[At++] & 63, s = qt[At++] & 63;
                let u = (_ & 7) << 18 | a << 12 | c << 6 | s;
                u < 65536 || u > 1114111 ? o.push(65533) : (u > 65535 && (u -= 65536, o.push(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), o.push(u));
            } else o.push(65533);
            o.length >= 4096 && (t += Mr.apply(String, o), o.length = 0);
        }
        return o.length > 0 && (t += Mr.apply(String, o)), t;
    }
    let Mr = String.fromCharCode;
    function k2t(n) {
        let t = At, e = new Array(n);
        for(let o = 0; o < n; o++){
            const _ = qt[At++];
            if ((_ & 128) > 0) {
                At = t;
                return;
            }
            e[o] = _;
        }
        return Mr.apply(String, e);
    }
    function Hk(n) {
        if (n < 4) if (n < 2) {
            if (n === 0) return "";
            {
                let t = qt[At++];
                if ((t & 128) > 1) {
                    At -= 1;
                    return;
                }
                return Mr(t);
            }
        } else {
            let t = qt[At++], e = qt[At++];
            if ((t & 128) > 0 || (e & 128) > 0) {
                At -= 2;
                return;
            }
            if (n < 3) return Mr(t, e);
            let o = qt[At++];
            if ((o & 128) > 0) {
                At -= 3;
                return;
            }
            return Mr(t, e, o);
        }
        else {
            let t = qt[At++], e = qt[At++], o = qt[At++], _ = qt[At++];
            if ((t & 128) > 0 || (e & 128) > 0 || (o & 128) > 0 || (_ & 128) > 0) {
                At -= 4;
                return;
            }
            if (n < 6) {
                if (n === 4) return Mr(t, e, o, _);
                {
                    let a = qt[At++];
                    if ((a & 128) > 0) {
                        At -= 5;
                        return;
                    }
                    return Mr(t, e, o, _, a);
                }
            } else if (n < 8) {
                let a = qt[At++], c = qt[At++];
                if ((a & 128) > 0 || (c & 128) > 0) {
                    At -= 6;
                    return;
                }
                if (n < 7) return Mr(t, e, o, _, a, c);
                let s = qt[At++];
                if ((s & 128) > 0) {
                    At -= 7;
                    return;
                }
                return Mr(t, e, o, _, a, c, s);
            } else {
                let a = qt[At++], c = qt[At++], s = qt[At++], u = qt[At++];
                if ((a & 128) > 0 || (c & 128) > 0 || (s & 128) > 0 || (u & 128) > 0) {
                    At -= 8;
                    return;
                }
                if (n < 10) {
                    if (n === 8) return Mr(t, e, o, _, a, c, s, u);
                    {
                        let l = qt[At++];
                        if ((l & 128) > 0) {
                            At -= 9;
                            return;
                        }
                        return Mr(t, e, o, _, a, c, s, u, l);
                    }
                } else if (n < 12) {
                    let l = qt[At++], f = qt[At++];
                    if ((l & 128) > 0 || (f & 128) > 0) {
                        At -= 10;
                        return;
                    }
                    if (n < 11) return Mr(t, e, o, _, a, c, s, u, l, f);
                    let p = qt[At++];
                    if ((p & 128) > 0) {
                        At -= 11;
                        return;
                    }
                    return Mr(t, e, o, _, a, c, s, u, l, f, p);
                } else {
                    let l = qt[At++], f = qt[At++], p = qt[At++], g = qt[At++];
                    if ((l & 128) > 0 || (f & 128) > 0 || (p & 128) > 0 || (g & 128) > 0) {
                        At -= 12;
                        return;
                    }
                    if (n < 14) {
                        if (n === 12) return Mr(t, e, o, _, a, c, s, u, l, f, p, g);
                        {
                            let h = qt[At++];
                            if ((h & 128) > 0) {
                                At -= 13;
                                return;
                            }
                            return Mr(t, e, o, _, a, c, s, u, l, f, p, g, h);
                        }
                    } else {
                        let h = qt[At++], B = qt[At++];
                        if ((h & 128) > 0 || (B & 128) > 0) {
                            At -= 14;
                            return;
                        }
                        if (n < 15) return Mr(t, e, o, _, a, c, s, u, l, f, p, g, h, B);
                        let I = qt[At++];
                        if ((I & 128) > 0) {
                            At -= 15;
                            return;
                        }
                        return Mr(t, e, o, _, a, c, s, u, l, f, p, g, h, B, I);
                    }
                }
            }
        }
    }
    function B2t(n) {
        return me.copyBuffers ? Uint8Array.prototype.slice.call(qt, At, At += n) : qt.subarray(At, At += n);
    }
    let Kk = new Float32Array(1), Op = new Uint8Array(Kk.buffer, 0, 4);
    function x2t() {
        let n = qt[At++], t = qt[At++], e = (n & 127) >> 2;
        if (e === 31) return t || n & 3 ? NaN : n & 128 ? -1 / 0 : 1 / 0;
        if (e === 0) {
            let o = ((n & 3) << 8 | t) / 16777216;
            return n & 128 ? -o : o;
        }
        return Op[3] = n & 128 | (e >> 1) + 56, Op[2] = (n & 7) << 5 | t >> 3, Op[1] = t << 5, Op[0] = 0, Kk[0];
    }
    new Array(4096);
    class Qd {
        constructor(t, e){
            this.value = t, this.tag = e;
        }
    }
    Br[0] = (n)=>new Date(n);
    Br[1] = (n)=>new Date(Math.round(n * 1e3));
    Br[2] = (n)=>{
        let t = BigInt(0);
        for(let e = 0, o = n.byteLength; e < o; e++)t = BigInt(n[e]) + (t << BigInt(8));
        return t;
    };
    Br[3] = (n)=>BigInt(-1) - Br[2](n);
    Br[4] = (n)=>+(n[1] + "e" + n[0]);
    Br[5] = (n)=>n[1] * Math.exp(n[0] * Math.log(2));
    const Ow = (n, t)=>{
        n = n - 57344;
        let e = dr[n];
        e && e.isShared && ((dr.restoreStructures || (dr.restoreStructures = []))[n] = e), dr[n] = t, t.read = Sw(t);
    };
    Br[h2t] = (n)=>{
        let t = n.length, e = n[1];
        Ow(n[0], e);
        let o = {};
        for(let _ = 2; _ < t; _++){
            let a = e[_ - 2];
            o[Y_(a)] = n[_];
        }
        return o;
    };
    Br[14] = (n)=>Ur ? Ur[0].slice(Ur.position0, Ur.position0 += n) : new Qd(n, 14);
    Br[15] = (n)=>Ur ? Ur[1].slice(Ur.position1, Ur.position1 += n) : new Qd(n, 15);
    let j2t = {
        Error,
        RegExp
    };
    Br[27] = (n)=>(j2t[n[0]] || Error)(n[1], n[2]);
    const Vk = (n)=>{
        if (qt[At++] != 132) {
            let e = new Error("Packed values structure must be followed by a 4 element array");
            throw qt.length < At && (e.incomplete = !0), e;
        }
        let t = n();
        if (!t || !t.length) {
            let e = new Error("Packed values structure must be followed by a 4 element array");
            throw e.incomplete = !0, e;
        }
        return __ = __ ? t.concat(__.slice(t.length)) : t, __.prefixes = n(), __.suffixes = n(), n();
    };
    Vk.handlesRead = !0;
    Br[51] = Vk;
    Br[k3] = (n)=>{
        if (!__) if (me.getShared) ty();
        else return new Qd(n, k3);
        if (typeof n == "number") return __[16 + (n >= 0 ? 2 * n : -2 * n - 1)];
        let t = new Error("No support for non-integer packed references yet");
        throw n === void 0 && (t.incomplete = !0), t;
    };
    Br[28] = (n)=>{
        Z_ || (Z_ = new Map, Z_.id = 0);
        let t = Z_.id++, e = At, o = qt[At], _;
        o >> 5 == 4 ? _ = [] : _ = {};
        let a = {
            target: _
        };
        Z_.set(t, a);
        let c = n();
        return a.used ? (Object.getPrototypeOf(_) !== Object.getPrototypeOf(c) && (At = e, _ = c, Z_.set(t, {
            target: _
        }), c = n()), Object.assign(_, c)) : (a.target = c, c);
    };
    Br[28].handlesRead = !0;
    Br[29] = (n)=>{
        let t = Z_.get(n);
        return t.used = !0, t.target;
    };
    Br[258] = (n)=>new Set(n);
    (Br[259] = (n)=>(me.mapsAsObjects && (me.mapsAsObjects = !1, Jf = !0), n())).handlesRead = !0;
    function vu(n, t) {
        return typeof n == "string" ? n + t : n instanceof Array ? n.concat(t) : Object.assign({}, n, t);
    }
    function Pd() {
        if (!__) if (me.getShared) ty();
        else throw new Error("No packed values available");
        return __;
    }
    const S2t = 1399353956;
    jw.push((n, t)=>{
        if (n >= 225 && n <= 255) return vu(Pd().prefixes[n - 224], t);
        if (n >= 28704 && n <= 32767) return vu(Pd().prefixes[n - 28672], t);
        if (n >= 1879052288 && n <= 2147483647) return vu(Pd().prefixes[n - 1879048192], t);
        if (n >= 216 && n <= 223) return vu(t, Pd().suffixes[n - 216]);
        if (n >= 27647 && n <= 28671) return vu(t, Pd().suffixes[n - 27639]);
        if (n >= 1811940352 && n <= 1879048191) return vu(t, Pd().suffixes[n - 1811939328]);
        if (n == S2t) return {
            packedValues: __,
            structures: dr.slice(0),
            version: t
        };
        if (n == 55799) return t;
    });
    const E2t = new Uint8Array(new Uint16Array([
        1
    ]).buffer)[0] == 1, j3 = [
        Uint8Array,
        Uint8ClampedArray,
        Uint16Array,
        Uint32Array,
        typeof BigUint64Array > "u" ? {
            name: "BigUint64Array"
        } : BigUint64Array,
        Int8Array,
        Int16Array,
        Int32Array,
        typeof BigInt64Array > "u" ? {
            name: "BigInt64Array"
        } : BigInt64Array,
        Float32Array,
        Float64Array
    ], O2t = [
        64,
        68,
        69,
        70,
        71,
        72,
        77,
        78,
        79,
        85,
        86
    ];
    for(let n = 0; n < j3.length; n++)F2t(j3[n], O2t[n]);
    function F2t(n, t) {
        let e = "get" + n.name.slice(0, -5), o;
        typeof n == "function" ? o = n.BYTES_PER_ELEMENT : n = null;
        for(let _ = 0; _ < 2; _++){
            if (!_ && o == 1) continue;
            let a = o == 2 ? 1 : o == 4 ? 2 : o == 8 ? 3 : 0;
            Br[_ ? t : t - 4] = o == 1 || _ == E2t ? (c)=>{
                if (!n) throw new Error("Could not find typed array for code " + t);
                return !me.copyBuffers && (o === 1 || o === 2 && !(c.byteOffset & 1) || o === 4 && !(c.byteOffset & 3) || o === 8 && !(c.byteOffset & 7)) ? new n(c.buffer, c.byteOffset, c.byteLength >> a) : new n(Uint8Array.prototype.slice.call(c, 0).buffer);
            } : (c)=>{
                if (!n) throw new Error("Could not find typed array for code " + t);
                let s = new DataView(c.buffer, c.byteOffset, c.byteLength), u = c.length >> a, l = new n(u), f = s[e];
                for(let p = 0; p < u; p++)l[p] = f.call(s, p << a, _);
                return l;
            };
        }
    }
    function A2t() {
        let n = Au(), t = At + Ie();
        for(let o = 2; o < n; o++){
            let _ = Au();
            At += _;
        }
        let e = At;
        return At = t, Ur = [
            Ew(Au()),
            Ew(Au())
        ], Ur.position0 = 0, Ur.position1 = 0, Ur.postBundlePosition = At, At = e, Ie();
    }
    function Au() {
        let n = qt[At++] & 31;
        if (n > 23) switch(n){
            case 24:
                n = qt[At++];
                break;
            case 25:
                n = qn.getUint16(At), At += 2;
                break;
            case 26:
                n = qn.getUint32(At), At += 4;
                break;
        }
        return n;
    }
    function ty() {
        if (me.getShared) {
            let n = Zk(()=>(qt = null, me.getShared())) || {}, t = n.structures || [];
            me.sharedVersion = n.version, __ = me.sharedValues = n.packedValues, dr === !0 ? me.structures = dr = t : dr.splice.apply(dr, [
                0,
                t.length
            ].concat(t));
        }
    }
    function Zk(n) {
        let t = Hd, e = At, o = ob, _ = pg, a = ab, c = Z_, s = Ur, u = new Uint8Array(qt.slice(0, Hd)), l = dr, f = me, p = bg, g = n();
        return Hd = t, At = e, ob = o, pg = _, ab = a, Z_ = c, Ur = s, qt = u, bg = p, dr = l, me = f, qn = new DataView(qt.buffer, qt.byteOffset, qt.byteLength), g;
    }
    function Fw() {
        qt = null, Z_ = null, dr = null;
    }
    const ey = new Array(147);
    for(let n = 0; n < 256; n++)ey[n] = +("1e" + Math.floor(45.15 - n * .30103));
    let ry = new wg({
        useRecords: !1
    });
    const Cd = ry.decode;
    ry.decodeMultiple;
    let Mp;
    try {
        Mp = new TextEncoder;
    } catch  {}
    let Aw, Yk;
    const Eb = typeof globalThis == "object" && globalThis.Buffer, Rg = typeof Eb < "u", W0 = Rg ? Eb.allocUnsafeSlow : Uint8Array, S3 = Rg ? Eb : Uint8Array, E3 = 256, O3 = Rg ? 4294967296 : 2144337920;
    let J0, Bt, Ve, mt = 0, es, Pr = null;
    const T2t = 61440, P2t = /[\u0080-\uFFFF]/, b_ = Symbol("record-id");
    class R2t extends wg {
        constructor(t){
            super(t), this.offset = 0;
            let e, o, _, a, c;
            t = t || {};
            let s = S3.prototype.utf8Write ? function(y, O) {
                return Bt.utf8Write(y, O, Bt.byteLength - O);
            } : Mp && Mp.encodeInto ? function(y, O) {
                return Mp.encodeInto(y, Bt.subarray(O)).written;
            } : !1, u = this, l = t.structures || t.saveStructures, f = t.maxSharedStructures;
            if (f == null && (f = l ? 128 : 0), f > 8190) throw new Error("Maximum maxSharedStructure is 8190");
            let p = t.sequential;
            p && (f = 0), this.structures || (this.structures = []), this.saveStructures && (this.saveShared = this.saveStructures);
            let g, h, B = t.sharedValues, I;
            if (B) {
                I = Object.create(null);
                for(let y = 0, O = B.length; y < O; y++)I[B[y]] = y;
            }
            let j = [], w = 0, S = 0;
            this.mapEncode = function(y, O) {
                if (this._keyMap && !this._mapped) switch(y.constructor.name){
                    case "Array":
                        y = y.map((m)=>this.encodeKeys(m));
                        break;
                }
                return this.encode(y, O);
            }, this.encode = function(y, O) {
                if (Bt || (Bt = new W0(8192), Ve = new DataView(Bt.buffer, 0, 8192), mt = 0), es = Bt.length - 10, es - mt < 2048 ? (Bt = new W0(Bt.length), Ve = new DataView(Bt.buffer, 0, Bt.length), es = Bt.length - 10, mt = 0) : O === T3 && (mt = mt + 7 & 2147483640), e = mt, u.useSelfDescribedHeader && (Ve.setUint32(mt, 3654940416), mt += 3), c = u.structuredClone ? new Map : null, u.bundleStrings && typeof y != "string" ? (Pr = [], Pr.size = 1 / 0) : Pr = null, o = u.structures, o) {
                    if (o.uninitialized) {
                        let R = u.getShared() || {};
                        u.structures = o = R.structures || [], u.sharedVersion = R.version;
                        let v = u.sharedValues = R.packedValues;
                        if (v) {
                            I = {};
                            for(let A = 0, X = v.length; A < X; A++)I[v[A]] = A;
                        }
                    }
                    let m = o.length;
                    if (m > f && !p && (m = f), !o.transitions) {
                        o.transitions = Object.create(null);
                        for(let R = 0; R < m; R++){
                            let v = o[R];
                            if (!v) continue;
                            let A, X = o.transitions;
                            for(let C = 0, H = v.length; C < H; C++){
                                X[b_] === void 0 && (X[b_] = R);
                                let U = v[C];
                                A = X[U], A || (A = X[U] = Object.create(null)), X = A;
                            }
                            X[b_] = R | 1048576;
                        }
                    }
                    p || (o.nextId = m);
                }
                if (_ && (_ = !1), a = o || [], h = I, t.pack) {
                    let m = new Map;
                    if (m.values = [], m.encoder = u, m.maxValues = t.maxPrivatePackedValues || (I ? 16 : 1 / 0), m.objectMap = I || !1, m.samplingPackedValues = g, Lp(y, m), m.values.length > 0) {
                        Bt[mt++] = 216, Bt[mt++] = 51, Xa(4);
                        let R = m.values;
                        b(R), Xa(0), Xa(0), h = Object.create(I || null);
                        for(let v = 0, A = R.length; v < A; v++)h[R[v]] = v;
                    }
                }
                J0 = O & Q0;
                try {
                    if (J0) return;
                    if (b(y), Pr && A3(e, b), u.offset = mt, c && c.idsToInsert) {
                        mt += c.idsToInsert.length * 2, mt > es && F(mt), u.offset = mt;
                        let m = N2t(Bt.subarray(e, mt), c.idsToInsert);
                        return c = null, m;
                    }
                    return O & T3 ? (Bt.start = e, Bt.end = mt, Bt) : Bt.subarray(e, mt);
                } finally{
                    if (o) {
                        if (S < 10 && S++, o.length > f && (o.length = f), w > 1e4) o.transitions = null, S = 0, w = 0, j.length > 0 && (j = []);
                        else if (j.length > 0 && !p) {
                            for(let m = 0, R = j.length; m < R; m++)j[m][b_] = void 0;
                            j = [];
                        }
                    }
                    if (_ && u.saveShared) {
                        u.structures.length > f && (u.structures = u.structures.slice(0, f));
                        let m = Bt.subarray(e, mt);
                        return u.updateSharedData() === !1 ? u.encode(y) : m;
                    }
                    O & M2t && (mt = e);
                }
            }, this.findCommonStringsToPack = ()=>(g = new Map, I || (I = Object.create(null)), (y)=>{
                    let O = y && y.threshold || 4, m = this.pack ? y.maxPrivatePackedValues || 16 : 0;
                    B || (B = this.sharedValues = []);
                    for (let [R, v] of g)v.count > O && (I[R] = m++, B.push(R), _ = !0);
                    for(; this.saveShared && this.updateSharedData() === !1;);
                    g = null;
                });
            const b = (y)=>{
                mt > es && (Bt = F(mt));
                var O = typeof y, m;
                if (O === "string") {
                    if (h) {
                        let X = h[y];
                        if (X >= 0) {
                            X < 16 ? Bt[mt++] = X + 224 : (Bt[mt++] = 198, X & 1 ? b(15 - X >> 1) : b(X - 16 >> 1));
                            return;
                        } else if (g && !t.pack) {
                            let C = g.get(y);
                            C ? C.count++ : g.set(y, {
                                count: 1
                            });
                        }
                    }
                    let R = y.length;
                    if (Pr && R >= 4 && R < 1024) {
                        if ((Pr.size += R) > T2t) {
                            let C, H = (Pr[0] ? Pr[0].length * 3 + Pr[1].length : 0) + 10;
                            mt + H > es && (Bt = F(mt + H)), Bt[mt++] = 217, Bt[mt++] = 223, Bt[mt++] = 249, Bt[mt++] = Pr.position ? 132 : 130, Bt[mt++] = 26, C = mt - e, mt += 4, Pr.position && A3(e, b), Pr = [
                                "",
                                ""
                            ], Pr.size = 0, Pr.position = C;
                        }
                        let X = P2t.test(y);
                        Pr[X ? 0 : 1] += y, Bt[mt++] = X ? 206 : 207, b(R);
                        return;
                    }
                    let v;
                    R < 32 ? v = 1 : R < 256 ? v = 2 : R < 65536 ? v = 3 : v = 5;
                    let A = R * 3;
                    if (mt + A > es && (Bt = F(mt + A)), R < 64 || !s) {
                        let X, C, H, U = mt + v;
                        for(X = 0; X < R; X++)C = y.charCodeAt(X), C < 128 ? Bt[U++] = C : C < 2048 ? (Bt[U++] = C >> 6 | 192, Bt[U++] = C & 63 | 128) : (C & 64512) === 55296 && ((H = y.charCodeAt(X + 1)) & 64512) === 56320 ? (C = 65536 + ((C & 1023) << 10) + (H & 1023), X++, Bt[U++] = C >> 18 | 240, Bt[U++] = C >> 12 & 63 | 128, Bt[U++] = C >> 6 & 63 | 128, Bt[U++] = C & 63 | 128) : (Bt[U++] = C >> 12 | 224, Bt[U++] = C >> 6 & 63 | 128, Bt[U++] = C & 63 | 128);
                        m = U - mt - v;
                    } else m = s(y, mt + v, A);
                    m < 24 ? Bt[mt++] = 96 | m : m < 256 ? (v < 2 && Bt.copyWithin(mt + 2, mt + 1, mt + 1 + m), Bt[mt++] = 120, Bt[mt++] = m) : m < 65536 ? (v < 3 && Bt.copyWithin(mt + 3, mt + 2, mt + 2 + m), Bt[mt++] = 121, Bt[mt++] = m >> 8, Bt[mt++] = m & 255) : (v < 5 && Bt.copyWithin(mt + 5, mt + 3, mt + 3 + m), Bt[mt++] = 122, Ve.setUint32(mt, m), mt += 4), mt += m;
                } else if (O === "number") if (!this.alwaysUseFloat && y >>> 0 === y) y < 24 ? Bt[mt++] = y : y < 256 ? (Bt[mt++] = 24, Bt[mt++] = y) : y < 65536 ? (Bt[mt++] = 25, Bt[mt++] = y >> 8, Bt[mt++] = y & 255) : (Bt[mt++] = 26, Ve.setUint32(mt, y), mt += 4);
                else if (!this.alwaysUseFloat && y >> 0 === y) y >= -24 ? Bt[mt++] = 31 - y : y >= -256 ? (Bt[mt++] = 56, Bt[mt++] = ~y) : y >= -65536 ? (Bt[mt++] = 57, Ve.setUint16(mt, ~y), mt += 2) : (Bt[mt++] = 58, Ve.setUint32(mt, ~y), mt += 4);
                else if (!this.alwaysUseFloat && y < 0 && y >= -4294967296 && Math.floor(y) === y) Bt[mt++] = 58, Ve.setUint32(mt, -1 - y), mt += 4;
                else {
                    let R;
                    if ((R = this.useFloat32) > 0 && y < 4294967296 && y >= -2147483648) {
                        Bt[mt++] = 250, Ve.setFloat32(mt, y);
                        let v;
                        if (R < 4 || (v = y * ey[(Bt[mt] & 127) << 1 | Bt[mt + 1] >> 7]) >> 0 === v) {
                            mt += 4;
                            return;
                        } else mt--;
                    }
                    Bt[mt++] = 251, Ve.setFloat64(mt, y), mt += 8;
                }
                else if (O === "object") if (!y) Bt[mt++] = 246;
                else {
                    if (c) {
                        let v = c.get(y);
                        if (v) {
                            if (Bt[mt++] = 216, Bt[mt++] = 29, Bt[mt++] = 25, !v.references) {
                                let A = c.idsToInsert || (c.idsToInsert = []);
                                v.references = [], A.push(v);
                            }
                            v.references.push(mt - e), mt += 2;
                            return;
                        } else c.set(y, {
                            offset: mt - e
                        });
                    }
                    let R = y.constructor;
                    if (R === Object) this.skipFunction === !0 && (y = Object.fromEntries([
                        ...Object.keys(y).filter((v)=>typeof y[v] != "function").map((v)=>[
                                v,
                                y[v]
                            ])
                    ])), k(y);
                    else if (R === Array) {
                        m = y.length, m < 24 ? Bt[mt++] = 128 | m : Xa(m);
                        for(let v = 0; v < m; v++)b(y[v]);
                    } else if (R === Map) if ((this.mapsAsObjects ? this.useTag259ForMaps !== !1 : this.useTag259ForMaps) && (Bt[mt++] = 217, Bt[mt++] = 1, Bt[mt++] = 3), m = y.size, m < 24 ? Bt[mt++] = 160 | m : m < 256 ? (Bt[mt++] = 184, Bt[mt++] = m) : m < 65536 ? (Bt[mt++] = 185, Bt[mt++] = m >> 8, Bt[mt++] = m & 255) : (Bt[mt++] = 186, Ve.setUint32(mt, m), mt += 4), u.keyMap) for (let [v, A] of y)b(u.encodeKey(v)), b(A);
                    else for (let [v, A] of y)b(v), b(A);
                    else {
                        for(let v = 0, A = Aw.length; v < A; v++){
                            let X = Yk[v];
                            if (y instanceof X) {
                                let C = Aw[v], H = C.tag;
                                H == null && (H = C.getTag && C.getTag.call(this, y)), H < 24 ? Bt[mt++] = 192 | H : H < 256 ? (Bt[mt++] = 216, Bt[mt++] = H) : H < 65536 ? (Bt[mt++] = 217, Bt[mt++] = H >> 8, Bt[mt++] = H & 255) : H > -1 && (Bt[mt++] = 218, Ve.setUint32(mt, H), mt += 4), C.encode.call(this, y, b, F);
                                return;
                            }
                        }
                        if (y[Symbol.iterator]) {
                            if (J0) {
                                let v = new Error("Iterable should be serialized as iterator");
                                throw v.iteratorNotHandled = !0, v;
                            }
                            Bt[mt++] = 159;
                            for (let v of y)b(v);
                            Bt[mt++] = 255;
                            return;
                        }
                        if (y[Symbol.asyncIterator] || X0(y)) {
                            let v = new Error("Iterable/blob should be serialized as iterator");
                            throw v.iteratorNotHandled = !0, v;
                        }
                        if (this.useToJSON && y.toJSON) {
                            const v = y.toJSON();
                            if (v !== y) return b(v);
                        }
                        k(y);
                    }
                }
                else if (O === "boolean") Bt[mt++] = y ? 245 : 244;
                else if (O === "bigint") {
                    if (y < BigInt(1) << BigInt(64) && y >= 0) Bt[mt++] = 27, Ve.setBigUint64(mt, y);
                    else if (y > -(BigInt(1) << BigInt(64)) && y < 0) Bt[mt++] = 59, Ve.setBigUint64(mt, -y - BigInt(1));
                    else if (this.largeBigIntToFloat) Bt[mt++] = 251, Ve.setFloat64(mt, Number(y));
                    else {
                        y >= BigInt(0) ? Bt[mt++] = 194 : (Bt[mt++] = 195, y = BigInt(-1) - y);
                        let R = [];
                        for(; y;)R.push(Number(y & BigInt(255))), y >>= BigInt(8);
                        Tw(new Uint8Array(R.reverse()), F);
                        return;
                    }
                    mt += 8;
                } else if (O === "undefined") Bt[mt++] = 247;
                else throw new Error("Unknown type: " + O);
            }, k = this.useRecords === !1 ? this.variableMapSize ? (y)=>{
                let O = Object.keys(y), m = Object.values(y), R = O.length;
                if (R < 24 ? Bt[mt++] = 160 | R : R < 256 ? (Bt[mt++] = 184, Bt[mt++] = R) : R < 65536 ? (Bt[mt++] = 185, Bt[mt++] = R >> 8, Bt[mt++] = R & 255) : (Bt[mt++] = 186, Ve.setUint32(mt, R), mt += 4), u.keyMap) for(let v = 0; v < R; v++)b(u.encodeKey(O[v])), b(m[v]);
                else for(let v = 0; v < R; v++)b(O[v]), b(m[v]);
            } : (y)=>{
                Bt[mt++] = 185;
                let O = mt - e;
                mt += 2;
                let m = 0;
                if (u.keyMap) for(let R in y)(typeof y.hasOwnProperty != "function" || y.hasOwnProperty(R)) && (b(u.encodeKey(R)), b(y[R]), m++);
                else for(let R in y)(typeof y.hasOwnProperty != "function" || y.hasOwnProperty(R)) && (b(R), b(y[R]), m++);
                Bt[O++ + e] = m >> 8, Bt[O + e] = m & 255;
            } : (y, O)=>{
                let m, R = a.transitions || (a.transitions = Object.create(null)), v = 0, A = 0, X, C;
                if (this.keyMap) {
                    C = Object.keys(y).map((U)=>this.encodeKey(U)), A = C.length;
                    for(let U = 0; U < A; U++){
                        let L = C[U];
                        m = R[L], m || (m = R[L] = Object.create(null), v++), R = m;
                    }
                } else for(let U in y)(typeof y.hasOwnProperty != "function" || y.hasOwnProperty(U)) && (m = R[U], m || (R[b_] & 1048576 && (X = R[b_] & 65535), m = R[U] = Object.create(null), v++), R = m, A++);
                let H = R[b_];
                if (H !== void 0) H &= 65535, Bt[mt++] = 217, Bt[mt++] = H >> 8 | 224, Bt[mt++] = H & 255;
                else if (C || (C = R.__keys__ || (R.__keys__ = Object.keys(y))), X === void 0 ? (H = a.nextId++, H || (H = 0, a.nextId = 1), H >= E3 && (a.nextId = (H = f) + 1)) : H = X, a[H] = C, H < f) {
                    Bt[mt++] = 217, Bt[mt++] = H >> 8 | 224, Bt[mt++] = H & 255, R = a.transitions;
                    for(let U = 0; U < A; U++)(R[b_] === void 0 || R[b_] & 1048576) && (R[b_] = H), R = R[C[U]];
                    R[b_] = H | 1048576, _ = !0;
                } else {
                    if (R[b_] = H, Ve.setUint32(mt, 3655335680), mt += 3, v && (w += S * v), j.length >= E3 - f && (j.shift()[b_] = void 0), j.push(R), Xa(A + 2), b(57344 + H), b(C), O) return;
                    for(let U in y)(typeof y.hasOwnProperty != "function" || y.hasOwnProperty(U)) && b(y[U]);
                    return;
                }
                if (A < 24 ? Bt[mt++] = 128 | A : Xa(A), !O) for(let U in y)(typeof y.hasOwnProperty != "function" || y.hasOwnProperty(U)) && b(y[U]);
            }, F = (y)=>{
                let O;
                if (y > 16777216) {
                    if (y - e > O3) throw new Error("Encoded buffer would be larger than maximum buffer size");
                    O = Math.min(O3, Math.round(Math.max((y - e) * (y > 67108864 ? 1.25 : 2), 4194304) / 4096) * 4096);
                } else O = (Math.max(y - e << 2, Bt.length - 1) >> 12) + 1 << 12;
                let m = new W0(O);
                return Ve = new DataView(m.buffer, 0, O), Bt.copy ? Bt.copy(m, 0, e, y) : m.set(Bt.slice(e, y)), mt -= e, e = 0, es = m.length - 10, Bt = m;
            };
            let Y = 100, K = 1e3;
            this.encodeAsIterable = function(y, O) {
                return E(y, O, J);
            }, this.encodeAsAsyncIterable = function(y, O) {
                return E(y, O, N);
            };
            function* J(y, O, m) {
                let R = y.constructor;
                if (R === Object) {
                    let v = u.useRecords !== !1;
                    v ? k(y, !0) : F3(Object.keys(y).length, 160);
                    for(let A in y){
                        let X = y[A];
                        v || b(A), X && typeof X == "object" ? O[A] ? yield* J(X, O[A]) : yield* P(X, O, A) : b(X);
                    }
                } else if (R === Array) {
                    let v = y.length;
                    Xa(v);
                    for(let A = 0; A < v; A++){
                        let X = y[A];
                        X && (typeof X == "object" || mt - e > Y) ? O.element ? yield* J(X, O.element) : yield* P(X, O, "element") : b(X);
                    }
                } else if (y[Symbol.iterator] && !y.buffer) {
                    Bt[mt++] = 159;
                    for (let v of y)v && (typeof v == "object" || mt - e > Y) ? O.element ? yield* J(v, O.element) : yield* P(v, O, "element") : b(v);
                    Bt[mt++] = 255;
                } else X0(y) ? (F3(y.size, 64), yield Bt.subarray(e, mt), yield y, T()) : y[Symbol.asyncIterator] ? (Bt[mt++] = 159, yield Bt.subarray(e, mt), yield y, T(), Bt[mt++] = 255) : b(y);
                m && mt > e ? yield Bt.subarray(e, mt) : mt - e > Y && (yield Bt.subarray(e, mt), T());
            }
            function* P(y, O, m) {
                let R = mt - e;
                try {
                    b(y), mt - e > Y && (yield Bt.subarray(e, mt), T());
                } catch (v) {
                    if (v.iteratorNotHandled) O[m] = {}, mt = e + R, yield* J.call(this, y, O[m]);
                    else throw v;
                }
            }
            function T() {
                Y = K, u.encode(null, Q0);
            }
            function E(y, O, m) {
                return O && O.chunkThreshold ? Y = K = O.chunkThreshold : Y = 100, y && typeof y == "object" ? (u.encode(null, Q0), m(y, u.iterateProperties || (u.iterateProperties = {}), !0)) : [
                    u.encode(y)
                ];
            }
            async function* N(y, O) {
                for (let m of J(y, O, !0)){
                    let R = m.constructor;
                    if (R === S3 || R === Uint8Array) yield m;
                    else if (X0(m)) {
                        let v = m.stream().getReader(), A;
                        for(; !(A = await v.read()).done;)yield A.value;
                    } else if (m[Symbol.asyncIterator]) for await (let v of m)T(), v ? yield* N(v, O.async || (O.async = {})) : yield u.encode(v);
                    else yield m;
                }
            }
        }
        useBuffer(t) {
            Bt = t, Ve = new DataView(Bt.buffer, Bt.byteOffset, Bt.byteLength), mt = 0;
        }
        clearSharedData() {
            this.structures && (this.structures = []), this.sharedValues && (this.sharedValues = void 0);
        }
        updateSharedData() {
            let t = this.sharedVersion || 0;
            this.sharedVersion = t + 1;
            let e = this.structures.slice(0), o = new Wk(e, this.sharedValues, this.sharedVersion), _ = this.saveShared(o, (a)=>(a && a.version || 0) == t);
            return _ === !1 ? (o = this.getShared() || {}, this.structures = o.structures || [], this.sharedValues = o.packedValues, this.sharedVersion = o.version, this.structures.nextId = this.structures.length) : e.forEach((a, c)=>this.structures[c] = a), _;
        }
    }
    function F3(n, t) {
        n < 24 ? Bt[mt++] = t | n : n < 256 ? (Bt[mt++] = t | 24, Bt[mt++] = n) : n < 65536 ? (Bt[mt++] = t | 25, Bt[mt++] = n >> 8, Bt[mt++] = n & 255) : (Bt[mt++] = t | 26, Ve.setUint32(mt, n), mt += 4);
    }
    class Wk {
        constructor(t, e, o){
            this.structures = t, this.packedValues = e, this.version = o;
        }
    }
    function Xa(n) {
        n < 24 ? Bt[mt++] = 128 | n : n < 256 ? (Bt[mt++] = 152, Bt[mt++] = n) : n < 65536 ? (Bt[mt++] = 153, Bt[mt++] = n >> 8, Bt[mt++] = n & 255) : (Bt[mt++] = 154, Ve.setUint32(mt, n), mt += 4);
    }
    const U2t = typeof Blob > "u" ? function() {} : Blob;
    function X0(n) {
        if (n instanceof U2t) return !0;
        let t = n[Symbol.toStringTag];
        return t === "Blob" || t === "File";
    }
    function Lp(n, t) {
        switch(typeof n){
            case "string":
                if (n.length > 3) {
                    if (t.objectMap[n] > -1 || t.values.length >= t.maxValues) return;
                    let o = t.get(n);
                    if (o) ++o.count == 2 && t.values.push(n);
                    else if (t.set(n, {
                        count: 1
                    }), t.samplingPackedValues) {
                        let _ = t.samplingPackedValues.get(n);
                        _ ? _.count++ : t.samplingPackedValues.set(n, {
                            count: 1
                        });
                    }
                }
                break;
            case "object":
                if (n) if (n instanceof Array) for(let o = 0, _ = n.length; o < _; o++)Lp(n[o], t);
                else {
                    let o = !t.encoder.useRecords;
                    for(var e in n)n.hasOwnProperty(e) && (o && Lp(e, t), Lp(n[e], t));
                }
                break;
            case "function":
        }
    }
    const C2t = new Uint8Array(new Uint16Array([
        1
    ]).buffer)[0] == 1;
    Yk = [
        Date,
        Set,
        Error,
        RegExp,
        Qd,
        ArrayBuffer,
        Uint8Array,
        Uint8ClampedArray,
        Uint16Array,
        Uint32Array,
        typeof BigUint64Array > "u" ? function() {} : BigUint64Array,
        Int8Array,
        Int16Array,
        Int32Array,
        typeof BigInt64Array > "u" ? function() {} : BigInt64Array,
        Float32Array,
        Float64Array,
        Wk
    ];
    Aw = [
        {
            tag: 1,
            encode (n, t) {
                let e = n.getTime() / 1e3;
                (this.useTimestamp32 || n.getMilliseconds() === 0) && e >= 0 && e < 4294967296 ? (Bt[mt++] = 26, Ve.setUint32(mt, e), mt += 4) : (Bt[mt++] = 251, Ve.setFloat64(mt, e), mt += 8);
            }
        },
        {
            tag: 258,
            encode (n, t) {
                let e = Array.from(n);
                t(e);
            }
        },
        {
            tag: 27,
            encode (n, t) {
                t([
                    n.name,
                    n.message
                ]);
            }
        },
        {
            tag: 27,
            encode (n, t) {
                t([
                    "RegExp",
                    n.source,
                    n.flags
                ]);
            }
        },
        {
            getTag (n) {
                return n.tag;
            },
            encode (n, t) {
                t(n.value);
            }
        },
        {
            encode (n, t, e) {
                Tw(n, e);
            }
        },
        {
            getTag (n) {
                if (n.constructor === Uint8Array && (this.tagUint8Array || Rg && this.tagUint8Array !== !1)) return 64;
            },
            encode (n, t, e) {
                Tw(n, e);
            }
        },
        Za(68, 1),
        Za(69, 2),
        Za(70, 4),
        Za(71, 8),
        Za(72, 1),
        Za(77, 2),
        Za(78, 4),
        Za(79, 8),
        Za(85, 4),
        Za(86, 8),
        {
            encode (n, t) {
                let e = n.packedValues || [], o = n.structures || [];
                if (e.values.length > 0) {
                    Bt[mt++] = 216, Bt[mt++] = 51, Xa(4);
                    let _ = e.values;
                    t(_), Xa(0), Xa(0), packedObjectMap = Object.create(sharedPackedObjectMap || null);
                    for(let a = 0, c = _.length; a < c; a++)packedObjectMap[_[a]] = a;
                }
                if (o) {
                    Ve.setUint32(mt, 3655335424), mt += 3;
                    let _ = o.slice(0);
                    _.unshift(57344), _.push(new Qd(n.version, 1399353956)), t(_);
                } else t(new Qd(n.version, 1399353956));
            }
        }
    ];
    function Za(n, t) {
        return !C2t && t > 1 && (n -= 4), {
            tag: n,
            encode: function(o, _) {
                let a = o.byteLength, c = o.byteOffset || 0, s = o.buffer || o;
                _(Rg ? Eb.from(s, c, a) : new Uint8Array(s, c, a));
            }
        };
    }
    function Tw(n, t) {
        let e = n.byteLength;
        e < 24 ? Bt[mt++] = 64 + e : e < 256 ? (Bt[mt++] = 88, Bt[mt++] = e) : e < 65536 ? (Bt[mt++] = 89, Bt[mt++] = e >> 8, Bt[mt++] = e & 255) : (Bt[mt++] = 90, Ve.setUint32(mt, e), mt += 4), mt + e >= Bt.length && t(mt + e), Bt.set(n.buffer ? n : new Uint8Array(n), mt), mt += e;
    }
    function N2t(n, t) {
        let e, o = t.length * 2, _ = n.length - o;
        t.sort((a, c)=>a.offset > c.offset ? 1 : -1);
        for(let a = 0; a < t.length; a++){
            let c = t[a];
            c.id = a;
            for (let s of c.references)n[s++] = a >> 8, n[s] = a & 255;
        }
        for(; e = t.pop();){
            let a = e.offset;
            n.copyWithin(a + o, a, _), o -= 2;
            let c = a + o;
            n[c++] = 216, n[c++] = 28, _ = a;
        }
        return n;
    }
    function A3(n, t) {
        Ve.setUint32(Pr.position + n, mt - Pr.position - n + 1);
        let e = Pr;
        Pr = null, t(e[0]), t(e[1]);
    }
    let ny = new R2t({
        useRecords: !1
    });
    const zp = ny.encode;
    ny.encodeAsIterable;
    ny.encodeAsAsyncIterable;
    const T3 = 512, M2t = 1024, Q0 = 2048;
    function Jk(n) {
        return rr(n) && !Ha(n) && !Ug(n) && Symbol.asyncIterator in n;
    }
    function Ha(n) {
        return Array.isArray(n);
    }
    function _y(n) {
        return typeof n == "bigint";
    }
    function xl(n) {
        return typeof n == "boolean";
    }
    function ay(n) {
        return n instanceof globalThis.Date;
    }
    function Xk(n) {
        return typeof n == "function";
    }
    function Qk(n) {
        return rr(n) && !Ha(n) && !Ug(n) && Symbol.iterator in n;
    }
    function $k(n) {
        return n === null;
    }
    function so(n) {
        return typeof n == "number";
    }
    function rr(n) {
        return typeof n == "object" && n !== null;
    }
    function tB(n) {
        return n instanceof globalThis.RegExp;
    }
    function fr(n) {
        return typeof n == "string";
    }
    function eB(n) {
        return typeof n == "symbol";
    }
    function Ug(n) {
        return n instanceof globalThis.Uint8Array;
    }
    function ur(n) {
        return n === void 0;
    }
    const L2t = Object.freeze(Object.defineProperty({
        __proto__: null,
        IsArray: Ha,
        IsAsyncIterator: Jk,
        IsBigInt: _y,
        IsBoolean: xl,
        IsDate: ay,
        IsFunction: Xk,
        IsIterator: Qk,
        IsNull: $k,
        IsNumber: so,
        IsObject: rr,
        IsRegExp: tB,
        IsString: fr,
        IsSymbol: eB,
        IsUint8Array: Ug,
        IsUndefined: ur
    }, Symbol.toStringTag, {
        value: "Module"
    }));
    function z2t(n) {
        return n.map((t)=>ib(t));
    }
    function q2t(n) {
        return new Date(n.getTime());
    }
    function D2t(n) {
        return new Uint8Array(n);
    }
    function G2t(n) {
        return new RegExp(n.source, n.flags);
    }
    function H2t(n) {
        const t = {};
        for (const e of Object.getOwnPropertyNames(n))t[e] = ib(n[e]);
        for (const e of Object.getOwnPropertySymbols(n))t[e] = ib(n[e]);
        return t;
    }
    function ib(n) {
        return Ha(n) ? z2t(n) : ay(n) ? q2t(n) : Ug(n) ? D2t(n) : tB(n) ? G2t(n) : rr(n) ? H2t(n) : n;
    }
    function rB(n) {
        return ib(n);
    }
    function s_(n) {
        return n.map((t)=>ee(t));
    }
    function ee(n, t = {}) {
        return {
            ...rB(n),
            ...t
        };
    }
    class ou extends Error {
        constructor(t){
            super(t);
        }
    }
    const Aa = Symbol.for("TypeBox.Transform"), jl = Symbol.for("TypeBox.Readonly"), Gi = Symbol.for("TypeBox.Optional"), Ni = Symbol.for("TypeBox.Hint"), Yt = Symbol.for("TypeBox.Kind");
    function nB(n) {
        return rr(n) && n[jl] === "Readonly";
    }
    function iu(n) {
        return rr(n) && n[Gi] === "Optional";
    }
    function oy(n) {
        return ke(n, "Any");
    }
    function Sl(n) {
        return ke(n, "Array");
    }
    function Ob(n) {
        return ke(n, "AsyncIterator");
    }
    function iy(n) {
        return ke(n, "BigInt");
    }
    function sy(n) {
        return ke(n, "Boolean");
    }
    function Fb(n) {
        return ke(n, "Constructor");
    }
    function _B(n) {
        return ke(n, "Date");
    }
    function Ab(n) {
        return ke(n, "Function");
    }
    function Cg(n) {
        return ke(n, "Integer");
    }
    function K2t(n) {
        return rr(n);
    }
    function ia(n) {
        return ke(n, "Intersect");
    }
    function Tb(n) {
        return ke(n, "Iterator");
    }
    function ke(n, t) {
        return rr(n) && Yt in n && n[Yt] === t;
    }
    function V2t(n) {
        return Hi(n) && fr(n.const);
    }
    function Z2t(n) {
        return Hi(n) && so(n.const);
    }
    function Y2t(n) {
        return Hi(n) && xl(n.const);
    }
    function Hi(n) {
        return ke(n, "Literal");
    }
    function gc(n) {
        return ke(n, "MappedKey");
    }
    function l_(n) {
        return ke(n, "MappedResult");
    }
    function El(n) {
        return ke(n, "Never");
    }
    function aB(n) {
        return ke(n, "Not");
    }
    function oB(n) {
        return ke(n, "Null");
    }
    function Ng(n) {
        return ke(n, "Number");
    }
    function Ka(n) {
        return ke(n, "Object");
    }
    function Mg(n) {
        return ke(n, "Promise");
    }
    function cy(n) {
        return ke(n, "Record");
    }
    function W2t(n) {
        return rr(n) && Ni in n && n[Ni] === "Recursive";
    }
    function dy(n) {
        return ke(n, "Ref");
    }
    function uy(n) {
        return ke(n, "RegExp");
    }
    function Pb(n) {
        return ke(n, "String");
    }
    function iB(n) {
        return ke(n, "Symbol");
    }
    function pc(n) {
        return ke(n, "TemplateLiteral");
    }
    function sB(n) {
        return ke(n, "This");
    }
    function Rb(n) {
        return rr(n) && Aa in n;
    }
    function su(n) {
        return ke(n, "Tuple");
    }
    function cB(n) {
        return ke(n, "Undefined");
    }
    function tn(n) {
        return ke(n, "Union");
    }
    function dB(n) {
        return ke(n, "Uint8Array");
    }
    function uB(n) {
        return ke(n, "Unknown");
    }
    function lB(n) {
        return ke(n, "Unsafe");
    }
    function fB(n) {
        return ke(n, "Void");
    }
    function gB(n) {
        return rr(n) && Yt in n && fr(n[Yt]);
    }
    function cc(n) {
        return oy(n) || Sl(n) || sy(n) || iy(n) || Ob(n) || Fb(n) || _B(n) || Ab(n) || Cg(n) || ia(n) || Tb(n) || Hi(n) || gc(n) || l_(n) || El(n) || aB(n) || oB(n) || Ng(n) || Ka(n) || Mg(n) || cy(n) || dy(n) || uy(n) || Pb(n) || iB(n) || pc(n) || sB(n) || su(n) || cB(n) || tn(n) || dB(n) || uB(n) || lB(n) || fB(n) || gB(n);
    }
    const J2t = Object.freeze(Object.defineProperty({
        __proto__: null,
        IsAny: oy,
        IsArray: Sl,
        IsAsyncIterator: Ob,
        IsBigInt: iy,
        IsBoolean: sy,
        IsConstructor: Fb,
        IsDate: _B,
        IsFunction: Ab,
        IsInteger: Cg,
        IsIntersect: ia,
        IsIterator: Tb,
        IsKind: gB,
        IsKindOf: ke,
        IsLiteral: Hi,
        IsLiteralBoolean: Y2t,
        IsLiteralNumber: Z2t,
        IsLiteralString: V2t,
        IsMappedKey: gc,
        IsMappedResult: l_,
        IsNever: El,
        IsNot: aB,
        IsNull: oB,
        IsNumber: Ng,
        IsObject: Ka,
        IsOptional: iu,
        IsPromise: Mg,
        IsProperties: K2t,
        IsReadonly: nB,
        IsRecord: cy,
        IsRecursive: W2t,
        IsRef: dy,
        IsRegExp: uy,
        IsSchema: cc,
        IsString: Pb,
        IsSymbol: iB,
        IsTemplateLiteral: pc,
        IsThis: sB,
        IsTransform: Rb,
        IsTuple: su,
        IsUint8Array: dB,
        IsUndefined: cB,
        IsUnion: tn,
        IsUnknown: uB,
        IsUnsafe: lB,
        IsVoid: fB
    }, Symbol.toStringTag, {
        value: "Module"
    }));
    class X2t extends ou {
    }
    const Q2t = [
        "Any",
        "Array",
        "AsyncIterator",
        "BigInt",
        "Boolean",
        "Constructor",
        "Date",
        "Enum",
        "Function",
        "Integer",
        "Intersect",
        "Iterator",
        "Literal",
        "MappedKey",
        "MappedResult",
        "Not",
        "Null",
        "Number",
        "Object",
        "Promise",
        "Record",
        "Ref",
        "RegExp",
        "String",
        "Symbol",
        "TemplateLiteral",
        "This",
        "Tuple",
        "Undefined",
        "Union",
        "Uint8Array",
        "Unknown",
        "Void"
    ];
    function pB(n) {
        try {
            return new RegExp(n), !0;
        } catch  {
            return !1;
        }
    }
    function ly(n) {
        if (!fr(n)) return !1;
        for(let t = 0; t < n.length; t++){
            const e = n.charCodeAt(t);
            if (e >= 7 && e <= 13 || e === 27 || e === 127) return !1;
        }
        return !0;
    }
    function bB(n) {
        return fy(n) || vn(n);
    }
    function tf(n) {
        return ur(n) || _y(n);
    }
    function Ke(n) {
        return ur(n) || so(n);
    }
    function fy(n) {
        return ur(n) || xl(n);
    }
    function ze(n) {
        return ur(n) || fr(n);
    }
    function $2t(n) {
        return ur(n) || fr(n) && ly(n) && pB(n);
    }
    function t1t(n) {
        return ur(n) || fr(n) && ly(n);
    }
    function wB(n) {
        return ur(n) || vn(n);
    }
    function e1t(n) {
        return rr(n) && n[jl] === "Readonly";
    }
    function yg(n) {
        return rr(n) && n[Gi] === "Optional";
    }
    function ra(n) {
        return Be(n, "Any") && ze(n.$id);
    }
    function bc(n) {
        return Be(n, "Array") && n.type === "array" && ze(n.$id) && vn(n.items) && Ke(n.minItems) && Ke(n.maxItems) && fy(n.uniqueItems) && wB(n.contains) && Ke(n.minContains) && Ke(n.maxContains);
    }
    function Ub(n) {
        return Be(n, "AsyncIterator") && n.type === "AsyncIterator" && ze(n.$id) && vn(n.items);
    }
    function Lg(n) {
        return Be(n, "BigInt") && n.type === "bigint" && ze(n.$id) && tf(n.exclusiveMaximum) && tf(n.exclusiveMinimum) && tf(n.maximum) && tf(n.minimum) && tf(n.multipleOf);
    }
    function wc(n) {
        return Be(n, "Boolean") && n.type === "boolean" && ze(n.$id);
    }
    function zg(n) {
        return Be(n, "Constructor") && n.type === "Constructor" && ze(n.$id) && Ha(n.parameters) && n.parameters.every((t)=>vn(t)) && vn(n.returns);
    }
    function qg(n) {
        return Be(n, "Date") && n.type === "Date" && ze(n.$id) && Ke(n.exclusiveMaximumTimestamp) && Ke(n.exclusiveMinimumTimestamp) && Ke(n.maximumTimestamp) && Ke(n.minimumTimestamp) && Ke(n.multipleOfTimestamp);
    }
    function Dg(n) {
        return Be(n, "Function") && n.type === "Function" && ze(n.$id) && Ha(n.parameters) && n.parameters.every((t)=>vn(t)) && vn(n.returns);
    }
    function go(n) {
        return Be(n, "Integer") && n.type === "integer" && ze(n.$id) && Ke(n.exclusiveMaximum) && Ke(n.exclusiveMinimum) && Ke(n.maximum) && Ke(n.minimum) && Ke(n.multipleOf);
    }
    function gy(n) {
        return rr(n) && Object.entries(n).every(([t, e])=>ly(t) && vn(e));
    }
    function yc(n) {
        return Be(n, "Intersect") && !(fr(n.type) && n.type !== "object") && Ha(n.allOf) && n.allOf.every((t)=>vn(t) && !kB(t)) && ze(n.type) && (fy(n.unevaluatedProperties) || wB(n.unevaluatedProperties)) && ze(n.$id);
    }
    function Cb(n) {
        return Be(n, "Iterator") && n.type === "Iterator" && ze(n.$id) && vn(n.items);
    }
    function Be(n, t) {
        return rr(n) && Yt in n && n[Yt] === t;
    }
    function Nb(n) {
        return Ki(n) && fr(n.const);
    }
    function Mb(n) {
        return Ki(n) && so(n.const);
    }
    function py(n) {
        return Ki(n) && xl(n.const);
    }
    function Ki(n) {
        return Be(n, "Literal") && ze(n.$id) && yB(n.const);
    }
    function yB(n) {
        return xl(n) || so(n) || fr(n);
    }
    function hB(n) {
        return Be(n, "MappedKey") && Ha(n.keys) && n.keys.every((t)=>so(t) || fr(t));
    }
    function vB(n) {
        return Be(n, "MappedResult") && gy(n.properties);
    }
    function Vi(n) {
        return Be(n, "Never") && rr(n.not) && Object.getOwnPropertyNames(n.not).length === 0;
    }
    function $d(n) {
        return Be(n, "Not") && vn(n.not);
    }
    function Lb(n) {
        return Be(n, "Null") && n.type === "null" && ze(n.$id);
    }
    function Zn(n) {
        return Be(n, "Number") && n.type === "number" && ze(n.$id) && Ke(n.exclusiveMaximum) && Ke(n.exclusiveMinimum) && Ke(n.maximum) && Ke(n.minimum) && Ke(n.multipleOf);
    }
    function nr(n) {
        return Be(n, "Object") && n.type === "object" && ze(n.$id) && gy(n.properties) && bB(n.additionalProperties) && Ke(n.minProperties) && Ke(n.maxProperties);
    }
    function zb(n) {
        return Be(n, "Promise") && n.type === "Promise" && ze(n.$id) && vn(n.item);
    }
    function $r(n) {
        return Be(n, "Record") && n.type === "object" && ze(n.$id) && bB(n.additionalProperties) && rr(n.patternProperties) && ((t)=>{
            const e = Object.getOwnPropertyNames(t.patternProperties);
            return e.length === 1 && pB(e[0]) && rr(t.patternProperties) && vn(t.patternProperties[e[0]]);
        })(n);
    }
    function r1t(n) {
        return rr(n) && Ni in n && n[Ni] === "Recursive";
    }
    function mB(n) {
        return Be(n, "Ref") && ze(n.$id) && fr(n.$ref);
    }
    function sl(n) {
        return Be(n, "RegExp") && ze(n.$id) && fr(n.source) && fr(n.flags) && Ke(n.maxLength) && Ke(n.minLength);
    }
    function na(n) {
        return Be(n, "String") && n.type === "string" && ze(n.$id) && Ke(n.minLength) && Ke(n.maxLength) && $2t(n.pattern) && t1t(n.format);
    }
    function cl(n) {
        return Be(n, "Symbol") && n.type === "symbol" && ze(n.$id);
    }
    function dl(n) {
        return Be(n, "TemplateLiteral") && n.type === "string" && fr(n.pattern) && n.pattern[0] === "^" && n.pattern[n.pattern.length - 1] === "$";
    }
    function IB(n) {
        return Be(n, "This") && ze(n.$id) && fr(n.$ref);
    }
    function kB(n) {
        return rr(n) && Aa in n;
    }
    function Gg(n) {
        return Be(n, "Tuple") && n.type === "array" && ze(n.$id) && so(n.minItems) && so(n.maxItems) && n.minItems === n.maxItems && (ur(n.items) && ur(n.additionalItems) && n.minItems === 0 || Ha(n.items) && n.items.every((t)=>vn(t)));
    }
    function dc(n) {
        return Be(n, "Undefined") && n.type === "undefined" && ze(n.$id);
    }
    function n1t(n) {
        return Ma(n) && n.anyOf.every((t)=>Nb(t) || Mb(t));
    }
    function Ma(n) {
        return Be(n, "Union") && ze(n.$id) && rr(n) && Ha(n.anyOf) && n.anyOf.every((t)=>vn(t));
    }
    function Ol(n) {
        return Be(n, "Uint8Array") && n.type === "Uint8Array" && ze(n.$id) && Ke(n.minByteLength) && Ke(n.maxByteLength);
    }
    function _a(n) {
        return Be(n, "Unknown") && ze(n.$id);
    }
    function BB(n) {
        return Be(n, "Unsafe");
    }
    function Hg(n) {
        return Be(n, "Void") && n.type === "void" && ze(n.$id);
    }
    function xB(n) {
        return rr(n) && Yt in n && fr(n[Yt]) && !Q2t.includes(n[Yt]);
    }
    function vn(n) {
        return rr(n) && (ra(n) || bc(n) || wc(n) || Lg(n) || Ub(n) || zg(n) || qg(n) || Dg(n) || go(n) || yc(n) || Cb(n) || Ki(n) || hB(n) || vB(n) || Vi(n) || $d(n) || Lb(n) || Zn(n) || nr(n) || zb(n) || $r(n) || mB(n) || sl(n) || na(n) || cl(n) || dl(n) || IB(n) || Gg(n) || dc(n) || Ma(n) || Ol(n) || _a(n) || BB(n) || Hg(n) || xB(n));
    }
    const _1t = Object.freeze(Object.defineProperty({
        __proto__: null,
        IsAny: ra,
        IsArray: bc,
        IsAsyncIterator: Ub,
        IsBigInt: Lg,
        IsBoolean: wc,
        IsConstructor: zg,
        IsDate: qg,
        IsFunction: Dg,
        IsInteger: go,
        IsIntersect: yc,
        IsIterator: Cb,
        IsKind: xB,
        IsKindOf: Be,
        IsLiteral: Ki,
        IsLiteralBoolean: py,
        IsLiteralNumber: Mb,
        IsLiteralString: Nb,
        IsLiteralValue: yB,
        IsMappedKey: hB,
        IsMappedResult: vB,
        IsNever: Vi,
        IsNot: $d,
        IsNull: Lb,
        IsNumber: Zn,
        IsObject: nr,
        IsOptional: yg,
        IsPromise: zb,
        IsProperties: gy,
        IsReadonly: e1t,
        IsRecord: $r,
        IsRecursive: r1t,
        IsRef: mB,
        IsRegExp: sl,
        IsSchema: vn,
        IsString: na,
        IsSymbol: cl,
        IsTemplateLiteral: dl,
        IsThis: IB,
        IsTransform: kB,
        IsTuple: Gg,
        IsUint8Array: Ol,
        IsUndefined: dc,
        IsUnion: Ma,
        IsUnionLiteral: n1t,
        IsUnknown: _a,
        IsUnsafe: BB,
        IsVoid: Hg,
        TypeGuardUnknownTypeError: X2t
    }, Symbol.toStringTag, {
        value: "Module"
    }));
    function a1t(n) {
        return (parseInt(n) + 1).toString();
    }
    const by = "(true|false)", rg = "(0|[1-9][0-9]*)", wy = "(.*)", jB = "(?!.*)", o1t = `^${by}$`, ul = `^${rg}$`, ll = `^${wy}$`, SB = `^${jB}$`, Fl = new Map;
    function i1t() {
        return new Map(Fl);
    }
    function s1t() {
        return Fl.clear();
    }
    function c1t(n) {
        return Fl.delete(n);
    }
    function d1t(n) {
        return Fl.has(n);
    }
    function u1t(n, t) {
        Fl.set(n, t);
    }
    function l1t(n) {
        return Fl.get(n);
    }
    const f1t = Object.freeze(Object.defineProperty({
        __proto__: null,
        Clear: s1t,
        Delete: c1t,
        Entries: i1t,
        Get: l1t,
        Has: d1t,
        Set: u1t
    }, Symbol.toStringTag, {
        value: "Module"
    })), Al = new Map;
    function g1t() {
        return new Map(Al);
    }
    function p1t() {
        return Al.clear();
    }
    function b1t(n) {
        return Al.delete(n);
    }
    function w1t(n) {
        return Al.has(n);
    }
    function y1t(n, t) {
        Al.set(n, t);
    }
    function h1t(n) {
        return Al.get(n);
    }
    const v1t = Object.freeze(Object.defineProperty({
        __proto__: null,
        Clear: p1t,
        Delete: b1t,
        Entries: g1t,
        Get: h1t,
        Has: w1t,
        Set: y1t
    }, Symbol.toStringTag, {
        value: "Module"
    }));
    function yy(n, t) {
        return n.includes(t);
    }
    function m1t(n, t) {
        return n.every((e)=>yy(t, e));
    }
    function EB(n) {
        return [
            ...new Set(n)
        ];
    }
    function OB(n, t) {
        return n.filter((e)=>t.includes(e));
    }
    function I1t(n, t) {
        return [
            ...n,
            ...t
        ];
    }
    function k1t(n, t) {
        return n.filter((e)=>!t.includes(e));
    }
    function B1t(n, t) {
        return n.reduce((e, o)=>OB(e, o), t);
    }
    function FB(n) {
        return n.length === 1 ? n[0] : n.length > 1 ? B1t(n.slice(1), n[0]) : [];
    }
    function AB(n) {
        const t = [];
        for (const e of n)t.push(...e);
        return t;
    }
    function tu(n = {}) {
        return {
            ...n,
            [Yt]: "Any"
        };
    }
    function qb(n, t = {}) {
        return {
            ...t,
            [Yt]: "Array",
            type: "array",
            items: ee(n)
        };
    }
    function Db(n, t = {}) {
        return {
            ...t,
            [Yt]: "AsyncIterator",
            type: "AsyncIterator",
            items: ee(n)
        };
    }
    function x1t(n, t) {
        const { [t]: e, ...o } = n;
        return o;
    }
    function aa(n, t) {
        return t.reduce((e, o)=>x1t(e, o), n);
    }
    function Wn(n = {}) {
        return {
            ...n,
            [Yt]: "Never",
            not: {}
        };
    }
    function j1t(n) {
        return {
            [Yt]: "MappedKey",
            keys: n
        };
    }
    function en(n) {
        return {
            [Yt]: "MappedResult",
            properties: n
        };
    }
    function Gb(n, t, e) {
        return {
            ...e,
            [Yt]: "Constructor",
            type: "Constructor",
            parameters: s_(n),
            returns: ee(t)
        };
    }
    function Tl(n, t, e) {
        return {
            ...e,
            [Yt]: "Function",
            type: "Function",
            parameters: s_(n),
            returns: ee(t)
        };
    }
    function Pw(n, t) {
        return {
            ...t,
            [Yt]: "Union",
            anyOf: s_(n)
        };
    }
    function S1t(n) {
        return n.some((t)=>iu(t));
    }
    function P3(n) {
        return n.map((t)=>iu(t) ? E1t(t) : t);
    }
    function E1t(n) {
        return aa(n, [
            Gi
        ]);
    }
    function O1t(n, t) {
        return S1t(n) ? Wi(Pw(P3(n), t)) : Pw(P3(n), t);
    }
    function cu(n, t = {}) {
        return n.length === 0 ? Wn(t) : n.length === 1 ? ee(n[0], t) : O1t(n, t);
    }
    function An(n, t = {}) {
        return n.length === 0 ? Wn(t) : n.length === 1 ? ee(n[0], t) : Pw(n, t);
    }
    class Rw extends ou {
    }
    function F1t(n) {
        return n.replace(/\\\$/g, "$").replace(/\\\*/g, "*").replace(/\\\^/g, "^").replace(/\\\|/g, "|").replace(/\\\(/g, "(").replace(/\\\)/g, ")");
    }
    function hy(n, t, e) {
        return n[t] === e && n.charCodeAt(t - 1) !== 92;
    }
    function Fi(n, t) {
        return hy(n, t, "(");
    }
    function hg(n, t) {
        return hy(n, t, ")");
    }
    function TB(n, t) {
        return hy(n, t, "|");
    }
    function A1t(n) {
        if (!(Fi(n, 0) && hg(n, n.length - 1))) return !1;
        let t = 0;
        for(let e = 0; e < n.length; e++)if (Fi(n, e) && (t += 1), hg(n, e) && (t -= 1), t === 0 && e !== n.length - 1) return !1;
        return !0;
    }
    function T1t(n) {
        return n.slice(1, n.length - 1);
    }
    function P1t(n) {
        let t = 0;
        for(let e = 0; e < n.length; e++)if (Fi(n, e) && (t += 1), hg(n, e) && (t -= 1), TB(n, e) && t === 0) return !0;
        return !1;
    }
    function R1t(n) {
        for(let t = 0; t < n.length; t++)if (Fi(n, t)) return !0;
        return !1;
    }
    function U1t(n) {
        let [t, e] = [
            0,
            0
        ];
        const o = [];
        for(let a = 0; a < n.length; a++)if (Fi(n, a) && (t += 1), hg(n, a) && (t -= 1), TB(n, a) && t === 0) {
            const c = n.slice(e, a);
            c.length > 0 && o.push(eu(c)), e = a + 1;
        }
        const _ = n.slice(e);
        return _.length > 0 && o.push(eu(_)), o.length === 0 ? {
            type: "const",
            const: ""
        } : o.length === 1 ? o[0] : {
            type: "or",
            expr: o
        };
    }
    function C1t(n) {
        function t(_, a) {
            if (!Fi(_, a)) throw new Rw("TemplateLiteralParser: Index must point to open parens");
            let c = 0;
            for(let s = a; s < _.length; s++)if (Fi(_, s) && (c += 1), hg(_, s) && (c -= 1), c === 0) return [
                a,
                s
            ];
            throw new Rw("TemplateLiteralParser: Unclosed group parens in expression");
        }
        function e(_, a) {
            for(let c = a; c < _.length; c++)if (Fi(_, c)) return [
                a,
                c
            ];
            return [
                a,
                _.length
            ];
        }
        const o = [];
        for(let _ = 0; _ < n.length; _++)if (Fi(n, _)) {
            const [a, c] = t(n, _), s = n.slice(a, c + 1);
            o.push(eu(s)), _ = c;
        } else {
            const [a, c] = e(n, _), s = n.slice(a, c);
            s.length > 0 && o.push(eu(s)), _ = c - 1;
        }
        return o.length === 0 ? {
            type: "const",
            const: ""
        } : o.length === 1 ? o[0] : {
            type: "and",
            expr: o
        };
    }
    function eu(n) {
        return A1t(n) ? eu(T1t(n)) : P1t(n) ? U1t(n) : R1t(n) ? C1t(n) : {
            type: "const",
            const: F1t(n)
        };
    }
    function Hb(n) {
        return eu(n.slice(1, n.length - 1));
    }
    class PB extends ou {
    }
    function N1t(n) {
        return n.type === "or" && n.expr.length === 2 && n.expr[0].type === "const" && n.expr[0].const === "0" && n.expr[1].type === "const" && n.expr[1].const === "[1-9][0-9]*";
    }
    function M1t(n) {
        return n.type === "or" && n.expr.length === 2 && n.expr[0].type === "const" && n.expr[0].const === "true" && n.expr[1].type === "const" && n.expr[1].const === "false";
    }
    function L1t(n) {
        return n.type === "const" && n.const === ".*";
    }
    function fl(n) {
        return N1t(n) || L1t(n) ? !1 : M1t(n) ? !0 : n.type === "and" ? n.expr.every((t)=>fl(t)) : n.type === "or" ? n.expr.every((t)=>fl(t)) : n.type === "const" ? !0 : (()=>{
            throw new PB("Unknown expression type");
        })();
    }
    function RB(n) {
        const t = Hb(n.pattern);
        return fl(t);
    }
    class UB extends ou {
    }
    function* CB(n) {
        if (n.length === 1) return yield* n[0];
        for (const t of n[0])for (const e of CB(n.slice(1)))yield `${t}${e}`;
    }
    function* z1t(n) {
        return yield* CB(n.expr.map((t)=>[
                ...Kg(t)
            ]));
    }
    function* q1t(n) {
        for (const t of n.expr)yield* Kg(t);
    }
    function* D1t(n) {
        return yield n.const;
    }
    function* Kg(n) {
        return n.type === "and" ? yield* z1t(n) : n.type === "or" ? yield* q1t(n) : n.type === "const" ? yield* D1t(n) : (()=>{
            throw new UB("Unknown expression");
        })();
    }
    function vy(n) {
        const t = Hb(n.pattern);
        return fl(t) ? [
            ...Kg(t)
        ] : [];
    }
    function kr(n, t = {}) {
        return {
            ...t,
            [Yt]: "Literal",
            const: n,
            type: typeof n
        };
    }
    function Kb(n = {}) {
        return {
            ...n,
            [Yt]: "Boolean",
            type: "boolean"
        };
    }
    function Vg(n = {}) {
        return {
            ...n,
            [Yt]: "BigInt",
            type: "bigint"
        };
    }
    function hc(n = {}) {
        return {
            ...n,
            [Yt]: "Number",
            type: "number"
        };
    }
    function ru(n = {}) {
        return {
            ...n,
            [Yt]: "String",
            type: "string"
        };
    }
    function* G1t(n) {
        const t = n.trim().replace(/"|'/g, "");
        return t === "boolean" ? yield Kb() : t === "number" ? yield hc() : t === "bigint" ? yield Vg() : t === "string" ? yield ru() : yield (()=>{
            const e = t.split("|").map((o)=>kr(o.trim()));
            return e.length === 0 ? Wn() : e.length === 1 ? e[0] : cu(e);
        })();
    }
    function* H1t(n) {
        if (n[1] !== "{") {
            const t = kr("$"), e = Uw(n.slice(1));
            return yield* [
                t,
                ...e
            ];
        }
        for(let t = 2; t < n.length; t++)if (n[t] === "}") {
            const e = G1t(n.slice(2, t)), o = Uw(n.slice(t + 1));
            return yield* [
                ...e,
                ...o
            ];
        }
        yield kr(n);
    }
    function* Uw(n) {
        for(let t = 0; t < n.length; t++)if (n[t] === "$") {
            const e = kr(n.slice(0, t)), o = H1t(n.slice(t));
            return yield* [
                e,
                ...o
            ];
        }
        yield kr(n);
    }
    function NB(n) {
        return [
            ...Uw(n)
        ];
    }
    class MB extends ou {
    }
    function K1t(n) {
        return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
    }
    function LB(n, t) {
        return pc(n) ? n.pattern.slice(1, n.pattern.length - 1) : tn(n) ? `(${n.anyOf.map((e)=>LB(e, t)).join("|")})` : Ng(n) ? `${t}${rg}` : Cg(n) ? `${t}${rg}` : iy(n) ? `${t}${rg}` : Pb(n) ? `${t}${wy}` : Hi(n) ? `${t}${K1t(n.const.toString())}` : sy(n) ? `${t}${by}` : (()=>{
            throw new MB(`Unexpected Kind '${n[Yt]}'`);
        })();
    }
    function Cw(n) {
        return `^${n.map((t)=>LB(t, "")).join("")}$`;
    }
    function vg(n) {
        const e = vy(n).map((o)=>kr(o));
        return cu(e);
    }
    function Vb(n, t = {}) {
        const e = fr(n) ? Cw(NB(n)) : Cw(n);
        return {
            ...t,
            [Yt]: "TemplateLiteral",
            type: "string",
            pattern: e
        };
    }
    function V1t(n) {
        return vy(n).map((e)=>e.toString());
    }
    function Z1t(n) {
        const t = [];
        for (const e of n)t.push(...Zi(e));
        return t;
    }
    function Y1t(n) {
        return [
            n.toString()
        ];
    }
    function Zi(n) {
        return [
            ...new Set(pc(n) ? V1t(n) : tn(n) ? Z1t(n.anyOf) : Hi(n) ? Y1t(n.const) : Ng(n) ? [
                "[number]"
            ] : Cg(n) ? [
                "[number]"
            ] : [])
        ];
    }
    function W1t(n, t, e) {
        const o = {};
        for (const _ of Object.getOwnPropertyNames(t))o[_] = Zg(n, Zi(t[_]), e);
        return o;
    }
    function J1t(n, t, e) {
        return W1t(n, t.properties, e);
    }
    function zB(n, t, e) {
        const o = J1t(n, t, e);
        return en(o);
    }
    function qB(n, t) {
        return n.map((e)=>my(e, t));
    }
    function X1t(n) {
        return n.filter((t)=>!El(t));
    }
    function Q1t(n, t) {
        return ky(X1t(qB(n, t)));
    }
    function $1t(n) {
        return n.some((t)=>El(t)) ? [] : n;
    }
    function tmt(n, t) {
        return cu($1t(qB(n, t)));
    }
    function emt(n, t) {
        return t in n ? n[t] : t === "[number]" ? cu(n) : Wn();
    }
    function rmt(n, t) {
        return t === "[number]" ? n : Wn();
    }
    function nmt(n, t) {
        return t in n ? n[t] : Wn();
    }
    function my(n, t) {
        return ia(n) ? Q1t(n.allOf, t) : tn(n) ? tmt(n.anyOf, t) : su(n) ? emt(n.items ?? [], t) : Sl(n) ? rmt(n.items, t) : Ka(n) ? nmt(n.properties, t) : Wn();
    }
    function Zb(n, t) {
        return t.map((e)=>my(n, e));
    }
    function R3(n, t) {
        return cu(Zb(n, t));
    }
    function Zg(n, t, e = {}) {
        return l_(t) ? ee(zB(n, t, e)) : gc(t) ? ee(DB(n, t, e)) : cc(t) ? ee(R3(n, Zi(t)), e) : ee(R3(n, t), e);
    }
    function _mt(n, t, e) {
        return {
            [t]: Zg(n, [
                t
            ], e)
        };
    }
    function amt(n, t, e) {
        return t.reduce((o, _)=>({
                ...o,
                ..._mt(n, _, e)
            }), {});
    }
    function omt(n, t, e) {
        return amt(n, t.keys, e);
    }
    function DB(n, t, e) {
        const o = omt(n, t, e);
        return en(o);
    }
    function Yb(n, t = {}) {
        return {
            ...t,
            [Yt]: "Iterator",
            type: "Iterator",
            items: ee(n)
        };
    }
    function imt(n, t = {}) {
        const e = globalThis.Object.getOwnPropertyNames(n), o = e.filter((s)=>iu(n[s])), _ = e.filter((s)=>!o.includes(s)), a = cc(t.additionalProperties) ? {
            additionalProperties: ee(t.additionalProperties)
        } : {}, c = {};
        for (const s of e)c[s] = ee(n[s]);
        return _.length > 0 ? {
            ...t,
            ...a,
            [Yt]: "Object",
            type: "object",
            properties: c,
            required: _
        } : {
            ...t,
            ...a,
            [Yt]: "Object",
            type: "object",
            properties: c
        };
    }
    const mn = imt;
    function Wb(n, t = {}) {
        return {
            ...t,
            [Yt]: "Promise",
            type: "Promise",
            item: ee(n)
        };
    }
    function smt(n) {
        return aa(ee(n), [
            jl
        ]);
    }
    function cmt(n) {
        return {
            ...ee(n),
            [jl]: "Readonly"
        };
    }
    function dmt(n, t) {
        return t === !1 ? smt(n) : cmt(n);
    }
    function Yi(n, t) {
        const e = t ?? !0;
        return l_(n) ? GB(n, e) : dmt(n, e);
    }
    function umt(n, t) {
        const e = {};
        for (const o of globalThis.Object.getOwnPropertyNames(n))e[o] = Yi(n[o], t);
        return e;
    }
    function lmt(n, t) {
        return umt(n.properties, t);
    }
    function GB(n, t) {
        const e = lmt(n, t);
        return en(e);
    }
    function du(n, t = {}) {
        const [e, o, _] = [
            !1,
            n.length,
            n.length
        ];
        return n.length > 0 ? {
            ...t,
            [Yt]: "Tuple",
            type: "array",
            items: s_(n),
            additionalItems: e,
            minItems: o,
            maxItems: _
        } : {
            ...t,
            [Yt]: "Tuple",
            type: "array",
            minItems: o,
            maxItems: _
        };
    }
    function HB(n, t) {
        return n in t ? H_(n, t[n]) : en(t);
    }
    function fmt(n) {
        return {
            [n]: kr(n)
        };
    }
    function gmt(n) {
        const t = {};
        for (const e of n)t[e] = kr(e);
        return t;
    }
    function pmt(n, t) {
        return yy(t, n) ? fmt(n) : gmt(t);
    }
    function bmt(n, t) {
        const e = pmt(n, t);
        return HB(n, e);
    }
    function ef(n, t) {
        return t.map((e)=>H_(n, e));
    }
    function wmt(n, t) {
        const e = {};
        for (const o of globalThis.Object.getOwnPropertyNames(t))e[o] = H_(n, t[o]);
        return e;
    }
    function H_(n, t) {
        return iu(t) ? Wi(H_(n, aa(t, [
            Gi
        ]))) : nB(t) ? Yi(H_(n, aa(t, [
            jl
        ]))) : l_(t) ? HB(n, t.properties) : gc(t) ? bmt(n, t.keys) : Fb(t) ? Gb(ef(n, t.parameters), H_(n, t.returns)) : Ab(t) ? Tl(ef(n, t.parameters), H_(n, t.returns)) : Ob(t) ? Db(H_(n, t.items)) : Tb(t) ? Yb(H_(n, t.items)) : ia(t) ? Ji(ef(n, t.allOf)) : tn(t) ? An(ef(n, t.anyOf)) : su(t) ? du(ef(n, t.items ?? [])) : Ka(t) ? mn(wmt(n, t.properties)) : Sl(t) ? qb(H_(n, t.items)) : Mg(t) ? Wb(H_(n, t.item)) : t;
    }
    function KB(n, t) {
        const e = {};
        for (const o of n)e[o] = H_(o, t);
        return e;
    }
    function Iy(n, t, e = {}) {
        const o = cc(n) ? Zi(n) : n, _ = t({
            [Yt]: "MappedKey",
            keys: o
        }), a = KB(o, _);
        return ee(mn(a), e);
    }
    function ymt(n) {
        return aa(ee(n), [
            Gi
        ]);
    }
    function hmt(n) {
        return {
            ...ee(n),
            [Gi]: "Optional"
        };
    }
    function vmt(n, t) {
        return t === !1 ? ymt(n) : hmt(n);
    }
    function Wi(n, t) {
        const e = t ?? !0;
        return l_(n) ? VB(n, e) : vmt(n, e);
    }
    function mmt(n, t) {
        const e = {};
        for (const o of globalThis.Object.getOwnPropertyNames(n))e[o] = Wi(n[o], t);
        return e;
    }
    function Imt(n, t) {
        return mmt(n.properties, t);
    }
    function VB(n, t) {
        const e = Imt(n, t);
        return en(e);
    }
    function Nw(n, t) {
        const e = n.every((_)=>Ka(_)), o = cc(t.unevaluatedProperties) ? {
            unevaluatedProperties: ee(t.unevaluatedProperties)
        } : {};
        return t.unevaluatedProperties === !1 || cc(t.unevaluatedProperties) || e ? {
            ...t,
            ...o,
            [Yt]: "Intersect",
            type: "object",
            allOf: s_(n)
        } : {
            ...t,
            ...o,
            [Yt]: "Intersect",
            allOf: s_(n)
        };
    }
    function kmt(n) {
        return n.every((t)=>iu(t));
    }
    function Bmt(n) {
        return aa(n, [
            Gi
        ]);
    }
    function U3(n) {
        return n.map((t)=>iu(t) ? Bmt(t) : t);
    }
    function xmt(n, t) {
        return kmt(n) ? Wi(Nw(U3(n), t)) : Nw(U3(n), t);
    }
    function ky(n, t = {}) {
        if (n.length === 0) return Wn(t);
        if (n.length === 1) return ee(n[0], t);
        if (n.some((e)=>Rb(e))) throw new Error("Cannot intersect transform types");
        return xmt(n, t);
    }
    function Ji(n, t = {}) {
        if (n.length === 0) return Wn(t);
        if (n.length === 1) return ee(n[0], t);
        if (n.some((e)=>Rb(e))) throw new Error("Cannot intersect transform types");
        return Nw(n, t);
    }
    function ZB(n) {
        return n.map((t)=>By(t));
    }
    function jmt(n) {
        return Ji(ZB(n));
    }
    function Smt(n) {
        return An(ZB(n));
    }
    function Emt(n) {
        return By(n);
    }
    function By(n) {
        return ia(n) ? jmt(n.allOf) : tn(n) ? Smt(n.anyOf) : Mg(n) ? Emt(n.item) : n;
    }
    function xy(n, t = {}) {
        return ee(By(n), t);
    }
    function YB(n) {
        const t = [];
        for (const e of n)t.push(Pl(e));
        return t;
    }
    function Omt(n) {
        const t = YB(n);
        return AB(t);
    }
    function Fmt(n) {
        const t = YB(n);
        return FB(t);
    }
    function Amt(n) {
        return n.map((t, e)=>e.toString());
    }
    function Tmt(n) {
        return [
            "[number]"
        ];
    }
    function Pmt(n) {
        return globalThis.Object.getOwnPropertyNames(n);
    }
    function Rmt(n) {
        return Mw ? globalThis.Object.getOwnPropertyNames(n).map((e)=>e[0] === "^" && e[e.length - 1] === "$" ? e.slice(1, e.length - 1) : e) : [];
    }
    function Pl(n) {
        return ia(n) ? Omt(n.allOf) : tn(n) ? Fmt(n.anyOf) : su(n) ? Amt(n.items ?? []) : Sl(n) ? Tmt(n.items) : Ka(n) ? Pmt(n.properties) : cy(n) ? Rmt(n.patternProperties) : [];
    }
    let Mw = !1;
    function Umt(n) {
        Mw = !0;
        const t = Pl(n);
        return Mw = !1, `^(${t.map((o)=>`(${o})`).join("|")})$`;
    }
    function WB(n) {
        return n.map((t)=>t === "[number]" ? hc() : kr(t));
    }
    function Jb(n, t = {}) {
        if (l_(n)) return JB(n, t);
        {
            const e = Pl(n), o = WB(e), _ = cu(o);
            return ee(_, t);
        }
    }
    function Cmt(n, t) {
        const e = {};
        for (const o of globalThis.Object.getOwnPropertyNames(n))e[o] = Jb(n[o], t);
        return e;
    }
    function Nmt(n, t) {
        return Cmt(n.properties, t);
    }
    function JB(n, t) {
        const e = Nmt(n, t);
        return en(e);
    }
    function Mmt(n) {
        const t = Pl(n), e = Zb(n, t);
        return t.map((o, _)=>[
                t[_],
                e[_]
            ]);
    }
    function Lmt(n) {
        const t = [];
        for (const e of n)t.push(...Pl(e));
        return EB(t);
    }
    function zmt(n) {
        return n.filter((t)=>!El(t));
    }
    function qmt(n, t) {
        const e = [];
        for (const o of n)e.push(...Zb(o, [
            t
        ]));
        return zmt(e);
    }
    function Dmt(n, t) {
        const e = {};
        for (const o of t)e[o] = ky(qmt(n, o));
        return e;
    }
    function jy(n, t = {}) {
        const e = Lmt(n), o = Dmt(n, e);
        return mn(o, t);
    }
    function Xb(n = {}) {
        return {
            ...n,
            [Yt]: "Date",
            type: "Date"
        };
    }
    function Qb(n = {}) {
        return {
            ...n,
            [Yt]: "Null",
            type: "null"
        };
    }
    function $b(n) {
        return {
            ...n,
            [Yt]: "Symbol",
            type: "symbol"
        };
    }
    function t0(n = {}) {
        return {
            ...n,
            [Yt]: "Undefined",
            type: "undefined"
        };
    }
    function e0(n = {}) {
        return {
            ...n,
            [Yt]: "Uint8Array",
            type: "Uint8Array"
        };
    }
    function Yg(n = {}) {
        return {
            ...n,
            [Yt]: "Unknown"
        };
    }
    function Gmt(n) {
        return n.map((t)=>Sy(t, !1));
    }
    function Hmt(n) {
        const t = {};
        for (const e of globalThis.Object.getOwnPropertyNames(n))t[e] = Yi(Sy(n[e], !1));
        return t;
    }
    function Fp(n, t) {
        return t === !0 ? n : Yi(n);
    }
    function Sy(n, t) {
        return Jk(n) || Qk(n) ? Fp(tu(), t) : Ha(n) ? Yi(du(Gmt(n))) : Ug(n) ? e0() : ay(n) ? Xb() : rr(n) ? Fp(mn(Hmt(n)), t) : Xk(n) ? Fp(Tl([], Yg()), t) : ur(n) ? t0() : $k(n) ? Qb() : eB(n) ? $b() : _y(n) ? Vg() : so(n) || xl(n) || fr(n) ? kr(n) : mn({});
    }
    function Ey(n, t = {}) {
        return ee(Sy(n, !0), t);
    }
    function Oy(n, t = {}) {
        return du(s_(n.parameters), {
            ...t
        });
    }
    function Wg(n, t) {
        return n.map((e)=>sa(e, t));
    }
    function Kmt(n, t) {
        const e = {};
        for (const o of globalThis.Object.getOwnPropertyNames(n))e[o] = sa(n[o], t);
        return e;
    }
    function Vmt(n, t) {
        return n.parameters = Wg(n.parameters, t), n.returns = sa(n.returns, t), n;
    }
    function Zmt(n, t) {
        return n.parameters = Wg(n.parameters, t), n.returns = sa(n.returns, t), n;
    }
    function Ymt(n, t) {
        return n.allOf = Wg(n.allOf, t), n;
    }
    function Wmt(n, t) {
        return n.anyOf = Wg(n.anyOf, t), n;
    }
    function Jmt(n, t) {
        return ur(n.items) || (n.items = Wg(n.items, t)), n;
    }
    function Xmt(n, t) {
        return n.items = sa(n.items, t), n;
    }
    function Qmt(n, t) {
        return n.properties = Kmt(n.properties, t), n;
    }
    function $mt(n, t) {
        return n.item = sa(n.item, t), n;
    }
    function t3t(n, t) {
        return n.items = sa(n.items, t), n;
    }
    function e3t(n, t) {
        return n.items = sa(n.items, t), n;
    }
    function r3t(n, t) {
        const e = t.find((_)=>_.$id === n.$ref);
        if (e === void 0) throw Error(`Unable to dereference schema with $id ${n.$ref}`);
        const o = aa(e, [
            "$id"
        ]);
        return sa(o, t);
    }
    function n3t(n, t) {
        return Fb(n) ? Vmt(n, t) : Ab(n) ? Zmt(n, t) : ia(n) ? Ymt(n, t) : tn(n) ? Wmt(n, t) : su(n) ? Jmt(n, t) : Sl(n) ? Xmt(n, t) : Ka(n) ? Qmt(n, t) : Mg(n) ? $mt(n, t) : Ob(n) ? t3t(n, t) : Tb(n) ? e3t(n, t) : dy(n) ? r3t(n, t) : n;
    }
    function sa(n, t) {
        return n3t(ee(n), s_(t));
    }
    function Fy(n, t = {}) {
        if (ur(n)) throw new Error("Enum undefined or empty");
        const e = globalThis.Object.getOwnPropertyNames(n).filter((a)=>isNaN(a)).map((a)=>n[a]), _ = [
            ...new Set(e)
        ].map((a)=>kr(a));
        return An(_, {
            ...t,
            [Ni]: "Enum"
        });
    }
    class XB extends ou {
    }
    var Et;
    (function(n) {
        n[n.Union = 0] = "Union", n[n.True = 1] = "True", n[n.False = 2] = "False";
    })(Et || (Et = {}));
    function oa(n) {
        return n === Et.False ? n : Et.True;
    }
    function Rl(n) {
        throw new XB(n);
    }
    function xr(n) {
        return Vi(n) || yc(n) || Ma(n) || _a(n) || ra(n);
    }
    function jr(n, t) {
        return Vi(t) ? tx() : yc(t) ? r0(n, t) : Ma(t) ? Ty(n, t) : _a(t) ? _x() : ra(t) ? Ay() : Rl("StructuralRight");
    }
    function Ay(n, t) {
        return Et.True;
    }
    function _3t(n, t) {
        return yc(t) ? r0(n, t) : Ma(t) && t.anyOf.some((e)=>ra(e) || _a(e)) ? Et.True : Ma(t) ? Et.Union : _a(t) || ra(t) ? Et.True : Et.Union;
    }
    function a3t(n, t) {
        return _a(n) ? Et.False : ra(n) ? Et.Union : Vi(n) ? Et.True : Et.False;
    }
    function o3t(n, t) {
        return nr(t) && n0(t) ? Et.True : xr(t) ? jr(n, t) : bc(t) ? oa(Le(n.items, t.items)) : Et.False;
    }
    function i3t(n, t) {
        return xr(t) ? jr(n, t) : Ub(t) ? oa(Le(n.items, t.items)) : Et.False;
    }
    function s3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : $r(t) ? ca(n, t) : Lg(t) ? Et.True : Et.False;
    }
    function QB(n, t) {
        return py(n) || wc(n) ? Et.True : Et.False;
    }
    function c3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : $r(t) ? ca(n, t) : wc(t) ? Et.True : Et.False;
    }
    function d3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : zg(t) ? n.parameters.length > t.parameters.length ? Et.False : n.parameters.every((e, o)=>oa(Le(t.parameters[o], e)) === Et.True) ? oa(Le(n.returns, t.returns)) : Et.False : Et.False;
    }
    function u3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : $r(t) ? ca(n, t) : qg(t) ? Et.True : Et.False;
    }
    function l3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : Dg(t) ? n.parameters.length > t.parameters.length ? Et.False : n.parameters.every((e, o)=>oa(Le(t.parameters[o], e)) === Et.True) ? oa(Le(n.returns, t.returns)) : Et.False : Et.False;
    }
    function $B(n, t) {
        return Ki(n) && so(n.const) || Zn(n) || go(n) ? Et.True : Et.False;
    }
    function f3t(n, t) {
        return go(t) || Zn(t) ? Et.True : xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : $r(t) ? ca(n, t) : Et.False;
    }
    function r0(n, t) {
        return t.allOf.every((e)=>Le(n, e) === Et.True) ? Et.True : Et.False;
    }
    function g3t(n, t) {
        return n.allOf.some((e)=>Le(e, t) === Et.True) ? Et.True : Et.False;
    }
    function p3t(n, t) {
        return xr(t) ? jr(n, t) : Cb(t) ? oa(Le(n.items, t.items)) : Et.False;
    }
    function b3t(n, t) {
        return Ki(t) && t.const === n.const ? Et.True : xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : $r(t) ? ca(n, t) : na(t) ? nx(n) : Zn(t) ? ex(n) : go(t) ? $B(n) : wc(t) ? QB(n) : Et.False;
    }
    function tx(n, t) {
        return Et.False;
    }
    function w3t(n, t) {
        return Et.True;
    }
    function C3(n) {
        let [t, e] = [
            n,
            0
        ];
        for(; $d(t);)t = t.not, e += 1;
        return e % 2 === 0 ? t : Yg();
    }
    function y3t(n, t) {
        return $d(n) ? Le(C3(n), t) : $d(t) ? Le(n, C3(t)) : Rl("Invalid fallthrough for Not");
    }
    function h3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : $r(t) ? ca(n, t) : Lb(t) ? Et.True : Et.False;
    }
    function ex(n, t) {
        return Mb(n) || Zn(n) || go(n) ? Et.True : Et.False;
    }
    function v3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : $r(t) ? ca(n, t) : go(t) || Zn(t) ? Et.True : Et.False;
    }
    function u_(n, t) {
        return Object.getOwnPropertyNames(n.properties).length === t;
    }
    function N3(n) {
        return n0(n);
    }
    function M3(n) {
        return u_(n, 0) || u_(n, 1) && "description" in n.properties && Ma(n.properties.description) && n.properties.description.anyOf.length === 2 && (na(n.properties.description.anyOf[0]) && dc(n.properties.description.anyOf[1]) || na(n.properties.description.anyOf[1]) && dc(n.properties.description.anyOf[0]));
    }
    function $0(n) {
        return u_(n, 0);
    }
    function L3(n) {
        return u_(n, 0);
    }
    function m3t(n) {
        return u_(n, 0);
    }
    function I3t(n) {
        return u_(n, 0);
    }
    function k3t(n) {
        return n0(n);
    }
    function B3t(n) {
        const t = hc();
        return u_(n, 0) || u_(n, 1) && "length" in n.properties && oa(Le(n.properties.length, t)) === Et.True;
    }
    function x3t(n) {
        return u_(n, 0);
    }
    function n0(n) {
        const t = hc();
        return u_(n, 0) || u_(n, 1) && "length" in n.properties && oa(Le(n.properties.length, t)) === Et.True;
    }
    function j3t(n) {
        const t = Tl([
            tu()
        ], tu());
        return u_(n, 0) || u_(n, 1) && "then" in n.properties && oa(Le(n.properties.then, t)) === Et.True;
    }
    function rx(n, t) {
        return Le(n, t) === Et.False || yg(n) && !yg(t) ? Et.False : Et.True;
    }
    function Tn(n, t) {
        return _a(n) ? Et.False : ra(n) ? Et.Union : Vi(n) || Nb(n) && N3(t) || Mb(n) && $0(t) || py(n) && L3(t) || cl(n) && M3(t) || Lg(n) && m3t(t) || na(n) && N3(t) || cl(n) && M3(t) || Zn(n) && $0(t) || go(n) && $0(t) || wc(n) && L3(t) || Ol(n) && k3t(t) || qg(n) && I3t(t) || zg(n) && x3t(t) || Dg(n) && B3t(t) ? Et.True : $r(n) && na(Lw(n)) ? t[Ni] === "Record" ? Et.True : Et.False : $r(n) && Zn(Lw(n)) ? u_(t, 0) ? Et.True : Et.False : Et.False;
    }
    function S3t(n, t) {
        return xr(t) ? jr(n, t) : $r(t) ? ca(n, t) : nr(t) ? (()=>{
            for (const e of Object.getOwnPropertyNames(t.properties)){
                if (!(e in n.properties) && !yg(t.properties[e])) return Et.False;
                if (yg(t.properties[e])) return Et.True;
                if (rx(n.properties[e], t.properties[e]) === Et.False) return Et.False;
            }
            return Et.True;
        })() : Et.False;
    }
    function E3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) && j3t(t) ? Et.True : zb(t) ? oa(Le(n.item, t.item)) : Et.False;
    }
    function Lw(n) {
        return ul in n.patternProperties ? hc() : ll in n.patternProperties ? ru() : Rl("Unknown record key pattern");
    }
    function zw(n) {
        return ul in n.patternProperties ? n.patternProperties[ul] : ll in n.patternProperties ? n.patternProperties[ll] : Rl("Unable to get record value schema");
    }
    function ca(n, t) {
        const [e, o] = [
            Lw(t),
            zw(t)
        ];
        return Nb(n) && Zn(e) && oa(Le(n, o)) === Et.True ? Et.True : Ol(n) && Zn(e) || na(n) && Zn(e) || bc(n) && Zn(e) ? Le(n, o) : nr(n) ? (()=>{
            for (const _ of Object.getOwnPropertyNames(n.properties))if (rx(o, n.properties[_]) === Et.False) return Et.False;
            return Et.True;
        })() : Et.False;
    }
    function O3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : $r(t) ? Le(zw(n), zw(t)) : Et.False;
    }
    function F3t(n, t) {
        const e = sl(n) ? ru() : n, o = sl(t) ? ru() : t;
        return Le(e, o);
    }
    function nx(n, t) {
        return Ki(n) && fr(n.const) || na(n) ? Et.True : Et.False;
    }
    function A3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : $r(t) ? ca(n, t) : na(t) ? Et.True : Et.False;
    }
    function T3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : $r(t) ? ca(n, t) : cl(t) ? Et.True : Et.False;
    }
    function P3t(n, t) {
        return dl(n) ? Le(vg(n), t) : dl(t) ? Le(n, vg(t)) : Rl("Invalid fallthrough for TemplateLiteral");
    }
    function R3t(n, t) {
        return bc(t) && n.items !== void 0 && n.items.every((e)=>Le(e, t.items) === Et.True);
    }
    function U3t(n, t) {
        return Vi(n) ? Et.True : _a(n) ? Et.False : ra(n) ? Et.Union : Et.False;
    }
    function C3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) && n0(t) || bc(t) && R3t(n, t) ? Et.True : Gg(t) ? ur(n.items) && !ur(t.items) || !ur(n.items) && ur(t.items) ? Et.False : ur(n.items) && !ur(t.items) || n.items.every((e, o)=>Le(e, t.items[o]) === Et.True) ? Et.True : Et.False : Et.False;
    }
    function N3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : $r(t) ? ca(n, t) : Ol(t) ? Et.True : Et.False;
    }
    function M3t(n, t) {
        return xr(t) ? jr(n, t) : nr(t) ? Tn(n, t) : $r(t) ? ca(n, t) : Hg(t) ? q3t(n) : dc(t) ? Et.True : Et.False;
    }
    function Ty(n, t) {
        return t.anyOf.some((e)=>Le(n, e) === Et.True) ? Et.True : Et.False;
    }
    function L3t(n, t) {
        return n.anyOf.every((e)=>Le(e, t) === Et.True) ? Et.True : Et.False;
    }
    function _x(n, t) {
        return Et.True;
    }
    function z3t(n, t) {
        return Vi(t) ? tx() : yc(t) ? r0(n, t) : Ma(t) ? Ty(n, t) : ra(t) ? Ay() : na(t) ? nx(n) : Zn(t) ? ex(n) : go(t) ? $B(n) : wc(t) ? QB(n) : bc(t) ? a3t(n) : Gg(t) ? U3t(n) : nr(t) ? Tn(n, t) : _a(t) ? Et.True : Et.False;
    }
    function q3t(n, t) {
        return dc(n) || dc(n) ? Et.True : Et.False;
    }
    function D3t(n, t) {
        return yc(t) ? r0(n, t) : Ma(t) ? Ty(n, t) : _a(t) ? _x() : ra(t) ? Ay() : nr(t) ? Tn(n, t) : Hg(t) ? Et.True : Et.False;
    }
    function Le(n, t) {
        return dl(n) || dl(t) ? P3t(n, t) : sl(n) || sl(t) ? F3t(n, t) : $d(n) || $d(t) ? y3t(n, t) : ra(n) ? _3t(n, t) : bc(n) ? o3t(n, t) : Lg(n) ? s3t(n, t) : wc(n) ? c3t(n, t) : Ub(n) ? i3t(n, t) : zg(n) ? d3t(n, t) : qg(n) ? u3t(n, t) : Dg(n) ? l3t(n, t) : go(n) ? f3t(n, t) : yc(n) ? g3t(n, t) : Cb(n) ? p3t(n, t) : Ki(n) ? b3t(n, t) : Vi(n) ? w3t() : Lb(n) ? h3t(n, t) : Zn(n) ? v3t(n, t) : nr(n) ? S3t(n, t) : $r(n) ? O3t(n, t) : na(n) ? A3t(n, t) : cl(n) ? T3t(n, t) : Gg(n) ? C3t(n, t) : zb(n) ? E3t(n, t) : Ol(n) ? N3t(n, t) : dc(n) ? M3t(n, t) : Ma(n) ? L3t(n, t) : _a(n) ? z3t(n, t) : Hg(n) ? D3t(n, t) : Rl(`Unknown left type operand '${n[Yt]}'`);
    }
    function Ul(n, t) {
        return Le(n, t);
    }
    function G3t(n, t, e, o, _) {
        const a = {};
        for (const c of globalThis.Object.getOwnPropertyNames(n))a[c] = Jg(n[c], t, e, o, _);
        return a;
    }
    function H3t(n, t, e, o, _) {
        return G3t(n.properties, t, e, o, _);
    }
    function ax(n, t, e, o, _) {
        const a = H3t(n, t, e, o, _);
        return en(a);
    }
    function K3t(n, t, e, o) {
        const _ = Ul(n, t);
        return _ === Et.Union ? An([
            e,
            o
        ]) : _ === Et.True ? e : o;
    }
    function Jg(n, t, e, o, _ = {}) {
        return l_(n) ? ax(n, t, e, o, _) : gc(n) ? ee(ox(n, t, e, o, _)) : ee(K3t(n, t, e, o), _);
    }
    function V3t(n, t, e, o, _) {
        return {
            [n]: Jg(kr(n), t, e, o, _)
        };
    }
    function Z3t(n, t, e, o, _) {
        return n.reduce((a, c)=>({
                ...a,
                ...V3t(c, t, e, o, _)
            }), {});
    }
    function Y3t(n, t, e, o, _) {
        return Z3t(n.keys, t, e, o, _);
    }
    function ox(n, t, e, o, _) {
        const a = Y3t(n, t, e, o, _);
        return en(a);
    }
    function W3t(n) {
        return n.allOf.every((t)=>_0(t));
    }
    function J3t(n) {
        return n.anyOf.some((t)=>_0(t));
    }
    function X3t(n) {
        return !_0(n.not);
    }
    function _0(n) {
        return n[Yt] === "Intersect" ? W3t(n) : n[Yt] === "Union" ? J3t(n) : n[Yt] === "Not" ? X3t(n) : n[Yt] === "Undefined";
    }
    function ix(n, t) {
        return Xg(vg(n), t);
    }
    function Q3t(n, t) {
        const e = n.filter((o)=>Ul(o, t) === Et.False);
        return e.length === 1 ? e[0] : An(e);
    }
    function Xg(n, t, e = {}) {
        return pc(n) ? ee(ix(n, t), e) : l_(n) ? ee(sx(n, t), e) : ee(tn(n) ? Q3t(n.anyOf, t) : Ul(n, t) !== Et.False ? Wn() : n, e);
    }
    function $3t(n, t) {
        const e = {};
        for (const o of globalThis.Object.getOwnPropertyNames(n))e[o] = Xg(n[o], t);
        return e;
    }
    function t6t(n, t) {
        return $3t(n.properties, t);
    }
    function sx(n, t) {
        const e = t6t(n, t);
        return en(e);
    }
    function cx(n, t) {
        return Qg(vg(n), t);
    }
    function e6t(n, t) {
        const e = n.filter((o)=>Ul(o, t) !== Et.False);
        return e.length === 1 ? e[0] : An(e);
    }
    function Qg(n, t, e = {}) {
        return pc(n) ? ee(cx(n, t), e) : l_(n) ? ee(dx(n, t), e) : ee(tn(n) ? e6t(n.anyOf, t) : Ul(n, t) !== Et.False ? n : Wn(), e);
    }
    function r6t(n, t) {
        const e = {};
        for (const o of globalThis.Object.getOwnPropertyNames(n))e[o] = Qg(n[o], t);
        return e;
    }
    function n6t(n, t) {
        return r6t(n.properties, t);
    }
    function dx(n, t) {
        const e = n6t(n, t);
        return en(e);
    }
    function Py(n, t = {}) {
        return ee(n.returns, t);
    }
    function Ry(n = {}) {
        return {
            ...n,
            [Yt]: "Integer",
            type: "integer"
        };
    }
    function _6t(n, t, e) {
        return {
            [n]: uu(kr(n), t, e)
        };
    }
    function a6t(n, t, e) {
        return n.reduce((o, _)=>({
                ...o,
                ..._6t(_, t, e)
            }), {});
    }
    function o6t(n, t, e) {
        return a6t(n.keys, t, e);
    }
    function ux(n, t, e) {
        const o = o6t(n, t, e);
        return en(o);
    }
    function i6t(n) {
        const [t, e] = [
            n.slice(0, 1),
            n.slice(1)
        ];
        return [
            t.toLowerCase(),
            e
        ].join("");
    }
    function s6t(n) {
        const [t, e] = [
            n.slice(0, 1),
            n.slice(1)
        ];
        return [
            t.toUpperCase(),
            e
        ].join("");
    }
    function c6t(n) {
        return n.toUpperCase();
    }
    function d6t(n) {
        return n.toLowerCase();
    }
    function u6t(n, t, e) {
        const o = Hb(n.pattern);
        if (!fl(o)) return {
            ...n,
            pattern: lx(n.pattern, t)
        };
        const c = [
            ...Kg(o)
        ].map((l)=>kr(l)), s = fx(c, t), u = An(s);
        return Vb([
            u
        ], e);
    }
    function lx(n, t) {
        return typeof n == "string" ? t === "Uncapitalize" ? i6t(n) : t === "Capitalize" ? s6t(n) : t === "Uppercase" ? c6t(n) : t === "Lowercase" ? d6t(n) : n : n.toString();
    }
    function fx(n, t) {
        return n.map((e)=>uu(e, t));
    }
    function uu(n, t, e = {}) {
        return gc(n) ? ux(n, t, e) : pc(n) ? u6t(n, t, n) : tn(n) ? An(fx(n.anyOf, t), e) : Hi(n) ? kr(lx(n.const, t), e) : n;
    }
    function Uy(n, t = {}) {
        return uu(n, "Capitalize", t);
    }
    function Cy(n, t = {}) {
        return uu(n, "Lowercase", t);
    }
    function Ny(n, t = {}) {
        return uu(n, "Uncapitalize", t);
    }
    function My(n, t = {}) {
        return uu(n, "Uppercase", t);
    }
    function Ly(n, t) {
        return {
            ...t,
            [Yt]: "Not",
            not: ee(n)
        };
    }
    function l6t(n, t, e) {
        const o = {};
        for (const _ of globalThis.Object.getOwnPropertyNames(n))o[_] = $g(n[_], t, e);
        return o;
    }
    function f6t(n, t, e) {
        return l6t(n.properties, t, e);
    }
    function gx(n, t, e) {
        const o = f6t(n, t, e);
        return en(o);
    }
    function g6t(n, t) {
        return n.map((e)=>zy(e, t));
    }
    function p6t(n, t) {
        return n.map((e)=>zy(e, t));
    }
    function b6t(n, t) {
        const { [t]: e, ...o } = n;
        return o;
    }
    function w6t(n, t) {
        return t.reduce((e, o)=>b6t(e, o), n);
    }
    function zy(n, t) {
        return ia(n) ? Ji(g6t(n.allOf, t)) : tn(n) ? An(p6t(n.anyOf, t)) : Ka(n) ? mn(w6t(n.properties, t)) : mn({});
    }
    function $g(n, t, e = {}) {
        if (gc(t)) return px(n, t, e);
        if (l_(n)) return gx(n, t, e);
        const o = cc(t) ? Zi(t) : t, _ = aa(n, [
            Aa,
            "$id",
            "required"
        ]), a = ee(zy(n, o), e);
        return {
            ..._,
            ...a
        };
    }
    function y6t(n, t, e) {
        return {
            [t]: $g(n, [
                t
            ], e)
        };
    }
    function h6t(n, t, e) {
        return t.reduce((o, _)=>({
                ...o,
                ...y6t(n, _, e)
            }), {});
    }
    function v6t(n, t, e) {
        return h6t(n, t.keys, e);
    }
    function px(n, t, e) {
        const o = v6t(n, t, e);
        return en(o);
    }
    function qy(n, t = {}) {
        return du(s_(n.parameters), {
            ...t
        });
    }
    function z3(n) {
        return n.map((t)=>bx(t));
    }
    function m6t(n) {
        const t = {};
        for (const e of globalThis.Object.getOwnPropertyNames(n))t[e] = Wi(n[e]);
        return t;
    }
    function bx(n) {
        return ia(n) ? Ji(z3(n.allOf)) : tn(n) ? An(z3(n.anyOf)) : Ka(n) ? mn(m6t(n.properties)) : mn({});
    }
    function a0(n, t = {}) {
        if (l_(n)) return wx(n, t);
        const e = aa(n, [
            Aa,
            "$id",
            "required"
        ]), o = ee(bx(n), t);
        return {
            ...e,
            ...o
        };
    }
    function I6t(n, t) {
        const e = {};
        for (const o of globalThis.Object.getOwnPropertyNames(n))e[o] = a0(n[o], t);
        return e;
    }
    function k6t(n, t) {
        return I6t(n.properties, t);
    }
    function wx(n, t) {
        const e = k6t(n, t);
        return en(e);
    }
    function B6t(n, t, e) {
        const o = {};
        for (const _ of globalThis.Object.getOwnPropertyNames(n))o[_] = tp(n[_], t, e);
        return o;
    }
    function x6t(n, t, e) {
        return B6t(n.properties, t, e);
    }
    function yx(n, t, e) {
        const o = x6t(n, t, e);
        return en(o);
    }
    function j6t(n, t) {
        return n.map((e)=>Dy(e, t));
    }
    function S6t(n, t) {
        return n.map((e)=>Dy(e, t));
    }
    function E6t(n, t) {
        const e = {};
        for (const o of t)o in n && (e[o] = n[o]);
        return e;
    }
    function Dy(n, t) {
        return ia(n) ? Ji(j6t(n.allOf, t)) : tn(n) ? An(S6t(n.anyOf, t)) : Ka(n) ? mn(E6t(n.properties, t)) : mn({});
    }
    function tp(n, t, e = {}) {
        if (gc(t)) return hx(n, t, e);
        if (l_(n)) return yx(n, t, e);
        const o = cc(t) ? Zi(t) : t, _ = aa(n, [
            Aa,
            "$id",
            "required"
        ]), a = ee(Dy(n, o), e);
        return {
            ..._,
            ...a
        };
    }
    function O6t(n, t, e) {
        return {
            [t]: tp(n, [
                t
            ], e)
        };
    }
    function F6t(n, t, e) {
        return t.reduce((o, _)=>({
                ...o,
                ...O6t(n, _, e)
            }), {});
    }
    function A6t(n, t, e) {
        return F6t(n, t.keys, e);
    }
    function hx(n, t, e) {
        const o = A6t(n, t, e);
        return en(o);
    }
    function Gy(n) {
        return Yi(Wi(n));
    }
    function lu(n, t, e) {
        return {
            ...e,
            [Yt]: "Record",
            type: "object",
            patternProperties: {
                [n]: ee(t)
            }
        };
    }
    function Hy(n, t, e) {
        const o = {};
        for (const _ of n)o[_] = ee(t);
        return mn(o, {
            ...e,
            [Ni]: "Record"
        });
    }
    function T6t(n, t, e) {
        return RB(n) ? Hy(Zi(n), t, e) : lu(n.pattern, t, e);
    }
    function P6t(n, t, e) {
        return Hy(Zi(An(n)), t, e);
    }
    function R6t(n, t, e) {
        return Hy([
            n.toString()
        ], t, e);
    }
    function U6t(n, t, e) {
        return lu(n.source, t, e);
    }
    function C6t(n, t, e) {
        const o = ur(n.pattern) ? ll : n.pattern;
        return lu(o, t, e);
    }
    function N6t(n, t, e) {
        return lu(ll, t, e);
    }
    function M6t(n, t, e) {
        return lu(SB, t, e);
    }
    function L6t(n, t, e) {
        return lu(ul, t, e);
    }
    function z6t(n, t, e) {
        return lu(ul, t, e);
    }
    function Ky(n, t, e = {}) {
        return tn(n) ? P6t(n.anyOf, t, e) : pc(n) ? T6t(n, t, e) : Hi(n) ? R6t(n.const, t, e) : Cg(n) ? L6t(n, t, e) : Ng(n) ? z6t(n, t, e) : uy(n) ? U6t(n, t, e) : Pb(n) ? C6t(n, t, e) : oy(n) ? N6t(n, t, e) : El(n) ? M6t(n, t, e) : Wn(e);
    }
    let q6t = 0;
    function Vy(n, t = {}) {
        ur(t.$id) && (t.$id = `T${q6t++}`);
        const e = n({
            [Yt]: "This",
            $ref: `${t.$id}`
        });
        return e.$id = t.$id, ee({
            ...t,
            [Ni]: "Recursive",
            ...e
        });
    }
    function Zy(n, t = {}) {
        if (fr(n)) return {
            ...t,
            [Yt]: "Ref",
            $ref: n
        };
        if (ur(n.$id)) throw new Error("Reference target type must specify an $id");
        return {
            ...t,
            [Yt]: "Ref",
            $ref: n.$id
        };
    }
    function Yy(n, t = {}) {
        const e = fr(n) ? new globalThis.RegExp(n) : n;
        return {
            ...t,
            [Yt]: "RegExp",
            type: "RegExp",
            source: e.source,
            flags: e.flags
        };
    }
    function q3(n) {
        return n.map((t)=>vx(t));
    }
    function D6t(n) {
        const t = {};
        for (const e of globalThis.Object.getOwnPropertyNames(n))t[e] = aa(n[e], [
            Gi
        ]);
        return t;
    }
    function vx(n) {
        return ia(n) ? Ji(q3(n.allOf)) : tn(n) ? An(q3(n.anyOf)) : Ka(n) ? mn(D6t(n.properties)) : mn({});
    }
    function o0(n, t = {}) {
        if (l_(n)) return mx(n, t);
        {
            const e = aa(n, [
                Aa,
                "$id",
                "required"
            ]), o = ee(vx(n), t);
            return {
                ...e,
                ...o
            };
        }
    }
    function G6t(n, t) {
        const e = {};
        for (const o of globalThis.Object.getOwnPropertyNames(n))e[o] = o0(n[o], t);
        return e;
    }
    function H6t(n, t) {
        return G6t(n.properties, t);
    }
    function mx(n, t) {
        const e = H6t(n, t);
        return en(e);
    }
    function K6t(n) {
        return ia(n) ? s_(n.allOf) : tn(n) ? s_(n.anyOf) : su(n) ? s_(n.items ?? []) : [];
    }
    function Wy(n) {
        return s_(K6t(n));
    }
    function Jy(n, t = {}) {
        return ee(n.returns, t);
    }
    function Xy(n) {
        return JSON.parse(JSON.stringify(n));
    }
    class Ix {
        constructor(t){
            this.schema = t;
        }
        Decode(t) {
            return new kx(this.schema, t);
        }
    }
    class kx {
        constructor(t, e){
            this.schema = t, this.decode = e;
        }
        EncodeTransform(t, e) {
            const a = {
                Encode: (c)=>e[Aa].Encode(t(c)),
                Decode: (c)=>this.decode(e[Aa].Decode(c))
            };
            return {
                ...e,
                [Aa]: a
            };
        }
        EncodeSchema(t, e) {
            const o = {
                Decode: this.decode,
                Encode: t
            };
            return {
                ...e,
                [Aa]: o
            };
        }
        Encode(t) {
            const e = ee(this.schema);
            return Rb(e) ? this.EncodeTransform(t, e) : this.EncodeSchema(t, e);
        }
    }
    function Qy(n) {
        return new Ix(n);
    }
    function $y(n = {}) {
        return {
            ...n,
            [Yt]: n[Yt] ?? "Unsafe"
        };
    }
    function th(n = {}) {
        return {
            ...n,
            [Yt]: "Void",
            type: "void"
        };
    }
    class Bx {
        Strict(t) {
            return Xy(t);
        }
        ReadonlyOptional(t) {
            return Gy(t);
        }
        Readonly(t, e) {
            return Yi(t, e ?? !0);
        }
        Optional(t, e) {
            return Wi(t, e ?? !0);
        }
        Any(t = {}) {
            return tu(t);
        }
        Array(t, e = {}) {
            return qb(t, e);
        }
        Boolean(t = {}) {
            return Kb(t);
        }
        Capitalize(t, e = {}) {
            return Uy(t, e);
        }
        Composite(t, e) {
            return jy(t, e);
        }
        Const(t, e = {}) {
            return Ey(t, e);
        }
        Deref(t, e) {
            return sa(t, e);
        }
        Enum(t, e = {}) {
            return Fy(t, e);
        }
        Exclude(t, e, o = {}) {
            return Xg(t, e, o);
        }
        Extends(t, e, o, _, a = {}) {
            return Jg(t, e, o, _, a);
        }
        Extract(t, e, o = {}) {
            return Qg(t, e, o);
        }
        Index(t, e, o = {}) {
            return Zg(t, e, o);
        }
        Integer(t = {}) {
            return Ry(t);
        }
        Intersect(t, e = {}) {
            return Ji(t, e);
        }
        KeyOf(t, e = {}) {
            return Jb(t, e);
        }
        Literal(t, e = {}) {
            return kr(t, e);
        }
        Lowercase(t, e = {}) {
            return Cy(t, e);
        }
        Mapped(t, e, o = {}) {
            return Iy(t, e, o);
        }
        Never(t = {}) {
            return Wn(t);
        }
        Not(t, e) {
            return Ly(t, e);
        }
        Null(t = {}) {
            return Qb(t);
        }
        Number(t = {}) {
            return hc(t);
        }
        Object(t, e = {}) {
            return mn(t, e);
        }
        Omit(t, e, o = {}) {
            return $g(t, e, o);
        }
        Partial(t, e = {}) {
            return a0(t, e);
        }
        Pick(t, e, o = {}) {
            return tp(t, e, o);
        }
        Record(t, e, o = {}) {
            return Ky(t, e, o);
        }
        Recursive(t, e = {}) {
            return Vy(t, e);
        }
        Ref(t, e = {}) {
            return Zy(t, e);
        }
        Required(t, e = {}) {
            return o0(t, e);
        }
        Rest(t) {
            return Wy(t);
        }
        String(t = {}) {
            return ru(t);
        }
        TemplateLiteral(t, e = {}) {
            return Vb(t, e);
        }
        Transform(t) {
            return Qy(t);
        }
        Tuple(t, e = {}) {
            return du(t, e);
        }
        Uncapitalize(t, e = {}) {
            return Ny(t, e);
        }
        Union(t, e = {}) {
            return An(t, e);
        }
        Unknown(t = {}) {
            return Yg(t);
        }
        Unsafe(t = {}) {
            return $y(t);
        }
        Uppercase(t, e = {}) {
            return My(t, e);
        }
    }
    const V6t = Object.freeze(Object.defineProperty({
        __proto__: null,
        Any: tu,
        Array: qb,
        AsyncIterator: Db,
        Awaited: xy,
        BigInt: Vg,
        Boolean: Kb,
        Capitalize: Uy,
        Composite: jy,
        Const: Ey,
        Constructor: Gb,
        ConstructorParameters: Oy,
        Date: Xb,
        Deref: sa,
        Enum: Fy,
        Exclude: Xg,
        Extends: Jg,
        Extract: Qg,
        Function: Tl,
        Index: Zg,
        InstanceType: Py,
        Integer: Ry,
        Intersect: Ji,
        Iterator: Yb,
        KeyOf: Jb,
        Literal: kr,
        Lowercase: Cy,
        Mapped: Iy,
        Never: Wn,
        Not: Ly,
        Null: Qb,
        Number: hc,
        Object: mn,
        Omit: $g,
        Optional: Wi,
        Parameters: qy,
        Partial: a0,
        Pick: tp,
        Promise: Wb,
        Readonly: Yi,
        ReadonlyOptional: Gy,
        Record: Ky,
        Recursive: Vy,
        Ref: Zy,
        RegExp: Yy,
        Required: o0,
        Rest: Wy,
        ReturnType: Jy,
        Strict: Xy,
        String: ru,
        Symbol: $b,
        TemplateLiteral: Vb,
        Transform: Qy,
        Tuple: du,
        Uint8Array: e0,
        Uncapitalize: Ny,
        Undefined: t0,
        Union: An,
        Unknown: Yg,
        Unsafe: $y,
        Uppercase: My,
        Void: th
    }, Symbol.toStringTag, {
        value: "Module"
    }));
    class Z6t extends Bx {
        AsyncIterator(t, e = {}) {
            return Db(t, e);
        }
        Awaited(t, e = {}) {
            return xy(t, e);
        }
        BigInt(t = {}) {
            return Vg(t);
        }
        ConstructorParameters(t, e = {}) {
            return Oy(t, e);
        }
        Constructor(t, e, o) {
            return Gb(t, e, o);
        }
        Date(t = {}) {
            return Xb(t);
        }
        Function(t, e, o) {
            return Tl(t, e, o);
        }
        InstanceType(t, e = {}) {
            return Py(t, e);
        }
        Iterator(t, e = {}) {
            return Yb(t, e);
        }
        Parameters(t, e = {}) {
            return qy(t, e);
        }
        Promise(t, e = {}) {
            return Wb(t, e);
        }
        RegExp(t, e = {}) {
            return Yy(t, e);
        }
        ReturnType(t, e = {}) {
            return Jy(t, e);
        }
        Symbol(t) {
            return $b(t);
        }
        Undefined(t = {}) {
            return t0(t);
        }
        Uint8Array(t = {}) {
            return e0(t);
        }
        Void(t = {}) {
            return th(t);
        }
    }
    const D_ = V6t, Y6t = Object.freeze(Object.defineProperty({
        __proto__: null,
        Any: tu,
        Array: qb,
        AsyncIterator: Db,
        Awaited: xy,
        BigInt: Vg,
        Boolean: Kb,
        Capitalize: Uy,
        Clone: rB,
        CloneRest: s_,
        CloneType: ee,
        Composite: jy,
        Const: Ey,
        Constructor: Gb,
        ConstructorParameters: Oy,
        Date: Xb,
        Deref: sa,
        Enum: Fy,
        Exclude: Xg,
        ExcludeFromMappedResult: sx,
        ExcludeFromTemplateLiteral: ix,
        Extends: Jg,
        ExtendsCheck: Ul,
        ExtendsFromMappedKey: ox,
        ExtendsFromMappedResult: ax,
        ExtendsResolverError: XB,
        get ExtendsResult () {
            return Et;
        },
        ExtendsUndefinedCheck: _0,
        Extract: Qg,
        ExtractFromMappedResult: dx,
        ExtractFromTemplateLiteral: cx,
        FormatRegistry: f1t,
        Function: Tl,
        Hint: Ni,
        Increment: a1t,
        Index: Zg,
        IndexFromMappedKey: DB,
        IndexFromMappedResult: zB,
        IndexFromPropertyKey: my,
        IndexFromPropertyKeys: Zb,
        IndexPropertyKeys: Zi,
        InstanceType: Py,
        Integer: Ry,
        Intersect: Ji,
        IntersectEvaluated: ky,
        Intrinsic: uu,
        IntrinsicFromMappedKey: ux,
        IsTemplateLiteralExpressionFinite: fl,
        IsTemplateLiteralFinite: RB,
        Iterator: Yb,
        JavaScriptTypeBuilder: Z6t,
        JsonTypeBuilder: Bx,
        KeyOf: Jb,
        KeyOfFromMappedResult: JB,
        KeyOfPattern: Umt,
        KeyOfPropertyEntries: Mmt,
        KeyOfPropertyKeys: Pl,
        KeyOfPropertyKeysToRest: WB,
        Kind: Yt,
        KindGuard: J2t,
        Literal: kr,
        Lowercase: Cy,
        Mapped: Iy,
        MappedFunctionReturnType: KB,
        MappedKey: j1t,
        MappedResult: en,
        Never: Wn,
        Not: Ly,
        Null: Qb,
        Number: hc,
        Object: mn,
        Omit: $g,
        OmitFromMappedKey: px,
        OmitFromMappedResult: gx,
        Optional: Wi,
        OptionalFromMappedResult: VB,
        OptionalKind: Gi,
        Parameters: qy,
        Partial: a0,
        PartialFromMappedResult: wx,
        PatternBoolean: by,
        PatternBooleanExact: o1t,
        PatternNever: jB,
        PatternNeverExact: SB,
        PatternNumber: rg,
        PatternNumberExact: ul,
        PatternString: wy,
        PatternStringExact: ll,
        Pick: tp,
        PickFromMappedKey: hx,
        PickFromMappedResult: yx,
        Promise: Wb,
        Readonly: Yi,
        ReadonlyFromMappedResult: GB,
        ReadonlyKind: jl,
        ReadonlyOptional: Gy,
        Record: Ky,
        Recursive: Vy,
        Ref: Zy,
        RegExp: Yy,
        Required: o0,
        RequiredFromMappedResult: mx,
        Rest: Wy,
        ReturnType: Jy,
        SetComplement: k1t,
        SetDistinct: EB,
        SetIncludes: yy,
        SetIntersect: OB,
        SetIntersectMany: FB,
        SetIsSubset: m1t,
        SetUnion: I1t,
        SetUnionMany: AB,
        Strict: Xy,
        String: ru,
        Symbol: $b,
        TemplateLiteral: Vb,
        TemplateLiteralExpressionGenerate: Kg,
        TemplateLiteralFiniteError: PB,
        TemplateLiteralGenerate: vy,
        TemplateLiteralGenerateError: UB,
        TemplateLiteralParse: eu,
        TemplateLiteralParseExact: Hb,
        TemplateLiteralParserError: Rw,
        TemplateLiteralPattern: Cw,
        TemplateLiteralPatternError: MB,
        TemplateLiteralSyntax: NB,
        TemplateLiteralToUnion: vg,
        Transform: Qy,
        TransformDecodeBuilder: Ix,
        TransformEncodeBuilder: kx,
        TransformKind: Aa,
        Tuple: du,
        Type: D_,
        TypeBoxError: ou,
        TypeGuard: _1t,
        TypeRegistry: v1t,
        Uint8Array: e0,
        Uncapitalize: Ny,
        Undefined: t0,
        Union: An,
        UnionEvaluated: cu,
        Unknown: Yg,
        Unsafe: $y,
        Uppercase: My,
        ValueGuard: L2t,
        Void: th
    }, Symbol.toStringTag, {
        value: "Module"
    }));
    var xx = Object.defineProperty, W6t = Object.getOwnPropertyDescriptor, J6t = Object.getOwnPropertyNames, X6t = Object.prototype.hasOwnProperty, jx = (n, t)=>{
        for(var e in t)xx(n, e, {
            get: t[e],
            enumerable: !0
        });
    }, Q6t = (n, t, e, o)=>{
        if (t && typeof t == "object" || typeof t == "function") for (let _ of J6t(t))!X6t.call(n, _) && _ !== e && xx(n, _, {
            get: ()=>t[_],
            enumerable: !(o = W6t(t, _)) || o.enumerable
        });
        return n;
    }, Sx = (n, t, e)=>(Q6t(n, t, "default"), e), Ex = {};
    jx(Ex, {
        Constr: ()=>er,
        Data: ()=>co,
        SLOT_CONFIG_NETWORK: ()=>i0,
        slotToBeginUnixTime: ()=>n4t,
        unixTimeToEnclosingSlot: ()=>Cx
    });
    var eh = {};
    jx(eh, {
        Constr: ()=>er,
        Data: ()=>co
    });
    Sx(eh, Y6t);
    var er = class {
        index;
        fields;
        constructor(t, e){
            this.index = t, this.fields = e;
        }
    }, co = {
        Integer: function(n) {
            const t = D_.Unsafe({
                dataType: "integer"
            });
            return n && Object.entries(n).forEach(([e, o])=>{
                t[e] = o;
            }), t;
        },
        Bytes: function(n) {
            const t = D_.Unsafe({
                dataType: "bytes"
            });
            return n && Object.entries(n).forEach(([e, o])=>{
                t[e] = o;
            }), t;
        },
        Boolean: function() {
            return D_.Unsafe({
                anyOf: [
                    {
                        title: "False",
                        dataType: "constructor",
                        index: 0,
                        fields: []
                    },
                    {
                        title: "True",
                        dataType: "constructor",
                        index: 1,
                        fields: []
                    }
                ]
            });
        },
        Any: function() {
            return D_.Unsafe({
                description: "Any Data."
            });
        },
        Array: function(n, t) {
            const e = D_.Array(n);
            return rf(e, {
                dataType: "list",
                items: n
            }), t && Object.entries(t).forEach(([o, _])=>{
                e[o] = _;
            }), e;
        },
        Map: function(n, t, e) {
            const o = D_.Unsafe({
                dataType: "map",
                keys: n,
                values: t
            });
            return e && Object.entries(e).forEach(([_, a])=>{
                o[_] = a;
            }), o;
        },
        Object: function(n, t) {
            const e = D_.Object(n);
            return rf(e, {
                anyOf: [
                    {
                        dataType: "constructor",
                        index: 0,
                        fields: Object.entries(n).map(([o, _])=>({
                                ..._,
                                title: o
                            }))
                    }
                ]
            }), e.anyOf[0].hasConstr = typeof t?.hasConstr > "u" || t.hasConstr, e;
        },
        Enum: function(n) {
            const t = D_.Union(n);
            return rf(t, {
                anyOf: n.map((e, o)=>e.anyOf[0].fields.length === 0 ? {
                        ...e.anyOf[0],
                        index: o
                    } : {
                        dataType: "constructor",
                        title: (()=>{
                            const _ = e.anyOf[0].fields[0].title;
                            if (_.charAt(0) !== _.charAt(0).toUpperCase()) throw new Error(`Enum '${_}' needs to start with an uppercase letter.`);
                            return e.anyOf[0].fields[0].title;
                        })(),
                        index: o,
                        fields: e.anyOf[0].fields[0].items || e.anyOf[0].fields[0].anyOf[0].fields
                    })
            }), t;
        },
        Tuple: function(n, t) {
            const e = D_.Tuple(n);
            return rf(e, {
                dataType: "list",
                items: n
            }), t && Object.entries(t).forEach(([o, _])=>{
                e[o] = _;
            }), e;
        },
        Literal: function(n) {
            if (n.charAt(0) !== n.charAt(0).toUpperCase()) throw new Error(`Enum '${n}' needs to start with an uppercase letter.`);
            const t = D_.Literal(n);
            return rf(t, {
                anyOf: [
                    {
                        dataType: "constructor",
                        title: n,
                        index: 0,
                        fields: []
                    }
                ]
            }), t;
        },
        Nullable: function(n) {
            return D_.Unsafe({
                anyOf: [
                    {
                        title: "Some",
                        description: "An optional value.",
                        dataType: "constructor",
                        index: 0,
                        fields: [
                            n
                        ]
                    },
                    {
                        title: "None",
                        description: "Nothing.",
                        dataType: "constructor",
                        index: 1,
                        fields: []
                    }
                ]
            });
        },
        to: $6t,
        from: t4t,
        fromJson: e4t,
        toJson: r4t,
        void: function() {
            return "d87980";
        },
        castFrom: E_,
        castTo: ma
    };
    function $6t(n, t, e = {}) {
        const { canonical: o = !1 } = e;
        function _(c) {
            try {
                if (typeof c == "bigint") return Vt.new_integer(K_.from_str(c.toString()));
                if (typeof c == "string") return Vt.new_bytes(Jr(c));
                if (c instanceof er) {
                    const { index: s, fields: u } = c, l = Xr.new();
                    return u.forEach((f)=>l.add(_(f))), Vt.new_constr_plutus_data(ro.new(K_.from_str(s.toString()).as_u64(), l));
                } else if (c instanceof Array) {
                    const s = Xr.new();
                    return c.forEach((u)=>s.add(_(u))), Vt.new_list(s);
                } else if (c instanceof Map) {
                    const s = Oi.new();
                    for (const [u, l] of c.entries())s.set(_(u), _(l));
                    return Vt.new_map(s);
                }
                throw new Error("Unsupported type");
            } catch (s) {
                throw new Error("Could not serialize the data: " + s);
            }
        }
        const a = t ? ma(n, t) : n;
        return o ? _(a).to_canonical_cbor_hex() : _(a).to_cardano_node_format().to_cbor_hex();
    }
    function t4t(n, t) {
        function e(_) {
            if (_.kind() === 0) {
                const a = _.as_constr_plutus_data(), c = a.fields(), s = [];
                for(let u = 0; u < c.len(); u++)s.push(e(c.get(u)));
                return new er(parseInt(a.alternative().toString()), s);
            } else if (_.kind() === 1) {
                const a = _.as_map(), c = new Map, s = a.keys();
                for(let u = 0; u < s.len(); u++)c.set(e(s.get(u)), e(a.get(s.get(u))));
                return c;
            } else if (_.kind() === 2) {
                const a = _.as_list(), c = [];
                for(let s = 0; s < a.len(); s++)c.push(e(a.get(s)));
                return c;
            } else {
                if (_.kind() === 3) return BigInt(_.as_integer().to_str());
                if (_.kind() === 4) return L_(_.as_bytes());
            }
            throw new Error("Unsupported type");
        }
        const o = e(Vt.from_cbor_hex(n));
        return t ? E_(o, t) : o;
    }
    function e4t(n) {
        function t(e) {
            if (typeof e == "string") return e.startsWith("0x") ? L_(Jr(e.slice(2))) : y2t(e);
            if (typeof e == "number") return BigInt(e);
            if (typeof e == "bigint") return e;
            if (e instanceof Array) return e.map((o)=>t(o));
            if (e instanceof Object) {
                const o = new Map;
                return Object.entries(e).forEach(([_, a])=>{
                    o.set(t(_), t(a));
                }), o;
            }
            throw new Error("Unsupported type");
        }
        return t(n);
    }
    function r4t(n) {
        function t(e) {
            if (typeof e == "bigint" || typeof e == "number" || typeof e == "string" && !isNaN(parseInt(e)) && e.slice(-1) === "n") {
                const o = typeof e == "string" ? BigInt(e.slice(0, -1)) : e;
                return parseInt(o.toString());
            }
            if (typeof e == "string") try {
                return new TextDecoder(void 0, {
                    fatal: !0
                }).decode(Jr(e));
            } catch  {
                return "0x" + L_(Jr(e));
            }
            if (e instanceof Array) return e.map((o)=>t(o));
            if (e instanceof Map) {
                const o = {};
                return e.forEach((_, a)=>{
                    const c = t(a);
                    if (typeof c != "string" && typeof c != "number") throw new Error("Unsupported type (Note: Only bytes or integers can be keys of a JSON object)");
                    o[c] = t(_);
                }), o;
            }
            throw new Error("Unsupported type (Note: Constructor cannot be converted to JSON)");
        }
        return t(n);
    }
    function E_(n, t) {
        const e = t;
        if (!e) throw new Error("Could not type cast data.");
        switch((e.anyOf ? "enum" : "") || e.dataType){
            case "integer":
                {
                    if (typeof n != "bigint") throw new Error("Could not type cast to integer.");
                    return Ox(n, e), n;
                }
            case "bytes":
                {
                    if (typeof n != "string") throw new Error("Could not type cast to bytes.");
                    return Fx(n, e), n;
                }
            case "constructor":
                {
                    if (Rx(e)) {
                        if (!(n instanceof er) || n.index !== 0 || n.fields.length !== 0) throw new Error("Could not type cast to void.");
                        return;
                    } else if (n instanceof er && n.index === e.index && (e.hasConstr || e.hasConstr === void 0)) {
                        const _ = {};
                        if (e.fields.length !== n.fields.length) throw new Error("Could not type cast to object. Fields do not match.");
                        return e.fields.forEach((a, c)=>{
                            const s = a.title || "wrapper";
                            if (/[A-Z]/.test(s[0])) throw new Error("Could not type cast to object. Object properties need to start with a lowercase letter.");
                            _[s] = E_(n.fields[c], a);
                        }), _;
                    } else if (n instanceof Array && !e.hasConstr && e.hasConstr !== void 0) {
                        const _ = {};
                        if (e.fields.length !== n.length) throw new Error("Could not ype cast to object. Fields do not match.");
                        return e.fields.forEach((a, c)=>{
                            const s = a.title || "wrapper";
                            if (/[A-Z]/.test(s[0])) throw new Error("Could not type cast to object. Object properties need to start with a lowercase letter.");
                            _[s] = E_(n[c], a);
                        }), _;
                    }
                    throw new Error("Could not type cast to object.");
                }
            case "enum":
                {
                    if (e.anyOf.length === 1) return E_(n, e.anyOf[0]);
                    if (!(n instanceof er)) throw new Error("Could not type cast to enum.");
                    const _ = e.anyOf.find((a)=>a.index === n.index);
                    if (!_ || _.fields.length !== n.fields.length) throw new Error("Could not type cast to enum.");
                    if (Px(e)) {
                        if (n.fields.length !== 0) throw new Error("Could not type cast to boolean.");
                        switch(n.index){
                            case 0:
                                return !1;
                            case 1:
                                return !0;
                        }
                        throw new Error("Could not type cast to boolean.");
                    } else if (Ux(e)) {
                        switch(n.index){
                            case 0:
                                {
                                    if (n.fields.length !== 1) throw new Error("Could not type cast to nullable object.");
                                    return E_(n.fields[0], e.anyOf[0].fields[0]);
                                }
                            case 1:
                                {
                                    if (n.fields.length !== 0) throw new Error("Could not type cast to nullable object.");
                                    return null;
                                }
                        }
                        throw new Error("Could not type cast to nullable object.");
                    }
                    switch(_.dataType){
                        case "constructor":
                            if (_.fields.length === 0) {
                                if (/[A-Z]/.test(_.title[0])) return _.title;
                                throw new Error("Could not type cast to enum.");
                            } else {
                                if (!/[A-Z]/.test(_.title)) throw new Error("Could not type cast to enum. Enums need to start with an uppercase letter.");
                                if (_.fields.length !== n.fields.length) throw new Error("Could not type cast to enum.");
                                const a = _.fields[0].title ? Object.fromEntries(_.fields.map((c, s)=>[
                                        c.title,
                                        E_(n.fields[s], c)
                                    ])) : _.fields.map((c, s)=>E_(n.fields[s], c));
                                return {
                                    [_.title]: a
                                };
                            }
                    }
                    throw new Error("Could not type cast to enum.");
                }
            case "list":
                if (e.items instanceof Array) {
                    if (n instanceof er && n.index === 0 && e.hasConstr) return n.fields.map((_, a)=>E_(_, e.items[a]));
                    if (n instanceof Array && !e.hasConstr) return n.map((_, a)=>E_(_, e.items[a]));
                    throw new Error("Could not type cast to tuple.");
                } else {
                    if (!(n instanceof Array)) throw new Error("Could not type cast to array.");
                    return Ax(n, e), n.map((_)=>E_(_, e.items));
                }
            case "map":
                {
                    if (!(n instanceof Map)) throw new Error("Could not type cast to map.");
                    Tx(n, e);
                    const _ = new Map;
                    for (const [a, c] of n.entries())_.set(E_(a, e.keys), E_(c, e.values));
                    return _;
                }
            case void 0:
                return n;
        }
        throw new Error("Could not type cast data.");
    }
    function ma(n, t) {
        const e = t;
        if (!e) throw new Error("Could not type cast struct.");
        switch((e.anyOf ? "enum" : "") || e.dataType){
            case "integer":
                {
                    if (typeof n != "bigint") throw new Error("Could not type cast to integer.");
                    return Ox(n, e), n;
                }
            case "bytes":
                {
                    if (typeof n != "string") throw new Error("Could not type cast to bytes.");
                    return Fx(n, e), n;
                }
            case "constructor":
                {
                    if (Rx(e)) {
                        if (n !== void 0) throw new Error("Could not type cast to void.");
                        return new er(0, []);
                    } else if (typeof n != "object" || n === null || e.fields.length !== Object.keys(n).length) throw new Error("Could not type cast to constructor.");
                    const _ = e.fields.map((a)=>ma(n[a.title || "wrapper"], a));
                    return e.hasConstr || e.hasConstr === void 0 ? new er(e.index, _) : _;
                }
            case "enum":
                {
                    if (e.anyOf.length === 1) return ma(n, e.anyOf[0]);
                    if (Px(e)) {
                        if (typeof n != "boolean") throw new Error("Could not type cast to boolean.");
                        return new er(n ? 1 : 0, []);
                    } else if (Ux(e)) {
                        if (n === null) return new er(1, []);
                        {
                            const _ = e.anyOf[0].fields;
                            if (_.length !== 1) throw new Error("Could not type cast to nullable object.");
                            return new er(0, [
                                ma(n, _[0])
                            ]);
                        }
                    }
                    switch(typeof n){
                        case "string":
                            {
                                if (!/[A-Z]/.test(n[0])) throw new Error("Could not type cast to enum. Enum needs to start with an uppercase letter.");
                                const _ = e.anyOf.findIndex((a)=>a.dataType === "constructor" && a.fields.length === 0 && a.title === n);
                                if (_ === -1) throw new Error("Could not type cast to enum.");
                                return new er(_, []);
                            }
                        case "object":
                            {
                                if (n === null) throw new Error("Could not type cast to enum.");
                                const _ = Object.keys(n)[0];
                                if (!/[A-Z]/.test(_)) throw new Error("Could not type cast to enum. Enum needs to start with an uppercase letter.");
                                const a = e.anyOf.find((s)=>s.dataType === "constructor" && s.title === _);
                                if (!a) throw new Error("Could not type cast to enum.");
                                const c = n[_];
                                return new er(a.index, c instanceof Array ? c.map((s, u)=>ma(s, a.fields[u])) : a.fields.map((s)=>{
                                    const [u, l] = Object.entries(c).find(([f])=>f === s.title);
                                    return ma(l, s);
                                }));
                            }
                    }
                    throw new Error("Could not type cast to enum.");
                }
            case "list":
                {
                    if (!(n instanceof Array)) throw new Error("Could not type cast to array/tuple.");
                    if (e.items instanceof Array) {
                        const _ = n.map((a, c)=>ma(a, e.items[c]));
                        return e.hasConstr ? new er(0, _) : _;
                    } else return Ax(n, e), n.map((_)=>ma(_, e.items));
                }
            case "map":
                {
                    if (!(n instanceof Map)) throw new Error("Could not type cast to map.");
                    Tx(n, e);
                    const _ = new Map;
                    for (const [a, c] of n.entries())_.set(ma(a, e.keys), ma(c, e.values));
                    return _;
                }
            case void 0:
                return n;
        }
        throw new Error("Could not type cast struct.");
    }
    function Ox(n, t) {
        if (t.minimum && n < BigInt(t.minimum)) throw new Error(`Integer ${n} is below the minimum ${t.minimum}.`);
        if (t.maximum && n > BigInt(t.maximum)) throw new Error(`Integer ${n} is above the maxiumum ${t.maximum}.`);
        if (t.exclusiveMinimum && n <= BigInt(t.exclusiveMinimum)) throw new Error(`Integer ${n} is below the exclusive minimum ${t.exclusiveMinimum}.`);
        if (t.exclusiveMaximum && n >= BigInt(t.exclusiveMaximum)) throw new Error(`Integer ${n} is above the exclusive maximum ${t.exclusiveMaximum}.`);
    }
    function Fx(n, t) {
        if (t.enum && !t.enum.some((e)=>e === n)) throw new Error(`None of the keywords match with '${n}'.`);
        if (t.minLength && n.length / 2 < t.minLength) throw new Error(`Bytes need to have a length of at least ${t.minLength} bytes.`);
        if (t.maxLength && n.length / 2 > t.maxLength) throw new Error(`Bytes can have a length of at most ${t.minLength} bytes.`);
    }
    function Ax(n, t) {
        if (t.minItems && n.length < t.minItems) throw new Error(`Array needs to contain at least ${t.minItems} items.`);
        if (t.maxItems && n.length > t.maxItems) throw new Error(`Array can contain at most ${t.maxItems} items.`);
        if (t.uniqueItems && new Set(n).size !== n.length) throw new Error("Array constains duplicates.");
    }
    function Tx(n, t) {
        if (t.minItems && n.size < t.minItems) throw new Error(`Map needs to contain at least ${t.minItems} items.`);
        if (t.maxItems && n.size > t.maxItems) throw new Error(`Map can contain at most ${t.maxItems} items.`);
    }
    function Px(n) {
        return n.anyOf && n.anyOf[0]?.title === "False" && n.anyOf[1]?.title === "True";
    }
    function Rx(n) {
        return n.index === 0 && n.fields.length === 0;
    }
    function Ux(n) {
        return n.anyOf && n.anyOf[0]?.title === "Some" && n.anyOf[1]?.title === "None";
    }
    function rf(n, t) {
        Object.keys(n).forEach((e)=>{
            delete n[e];
        }), Object.assign(n, t);
    }
    Sx(Ex, eh);
    var i0 = {
        Mainnet: {
            zeroTime: 1596059091e3,
            zeroSlot: 4492800,
            slotLength: 1e3
        },
        Preview: {
            zeroTime: 1666656e6,
            zeroSlot: 0,
            slotLength: 1e3
        },
        Preprod: {
            zeroTime: 16540416e5 + 1728e6,
            zeroSlot: 86400,
            slotLength: 1e3
        },
        Custom: {
            zeroTime: 0,
            zeroSlot: 0,
            slotLength: 0
        }
    };
    function n4t(n, t) {
        const e = (n - t.zeroSlot) * t.slotLength;
        return t.zeroTime + e;
    }
    function Cx(n, t) {
        const e = n - t.zeroTime;
        return Math.floor(e / t.slotLength) + t.zeroSlot;
    }
    var xc = {}, jc = {}, tw = {}, D3;
    function _4t() {
        return D3 || (D3 = 1, Object.defineProperty(tw, "__esModule", {
            value: !0
        })), tw;
    }
    var G3;
    function a4t() {
        return G3 || (G3 = 1, (function(n) {
            var t = jc && jc.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = jc && jc.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(_4t(), n);
        })(jc)), jc;
    }
    var vo = {}, mo = {}, Io = {}, ko = {}, H3;
    function Nx() {
        if (H3) return ko;
        H3 = 1, Object.defineProperty(ko, "__esModule", {
            value: !0
        }), ko.unsafeForceUInt = ko.forceBigUInt = ko.canBeUInteger = void 0;
        function n(o) {
            return typeof o == "bigint" && o >= BigInt(0) || typeof o == "number" && o === Math.round(Math.abs(o));
        }
        ko.canBeUInteger = n;
        function t(o) {
            if (!n(o)) throw new Error("trying to convert an integer to an unsigned Integer, the number was negative");
            return BigInt(o);
        }
        ko.forceBigUInt = t;
        function e(o) {
            if (!n(o)) throw new Error("trying to convert an integer to an unsigned Integer, the number was negative");
            return Number(o);
        }
        return ko.unsafeForceUInt = e, ko;
    }
    var K3;
    function s0() {
        if (K3) return Io;
        K3 = 1;
        var n = Io && Io.__read || function(o, _) {
            var a = typeof Symbol == "function" && o[Symbol.iterator];
            if (!a) return o;
            var c = a.call(o), s, u = [], l;
            try {
                for(; (_ === void 0 || _-- > 0) && !(s = c.next()).done;)u.push(s.value);
            } catch (f) {
                l = {
                    error: f
                };
            } finally{
                try {
                    s && !s.done && (a = c.return) && a.call(c);
                } finally{
                    if (l) throw l.error;
                }
            }
            return u;
        };
        Object.defineProperty(Io, "__esModule", {
            value: !0
        }), Io.defaultUplcVersion = Io.UPLCVersion = void 0;
        var t = Nx(), e = (function() {
            function o(_, a, c) {
                this._major = (0, t.forceBigUInt)(_), this._minor = (0, t.forceBigUInt)(a), this._patch = (0, t.forceBigUInt)(c);
            }
            return Object.defineProperty(o.prototype, "major", {
                get: function() {
                    return this._major;
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(o.prototype, "minor", {
                get: function() {
                    return this._minor;
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(o.prototype, "patch", {
                get: function() {
                    return this._patch;
                },
                enumerable: !1,
                configurable: !0
            }), o.prototype.isV3Friendly = function() {
                return this.major === BigInt(1) ? this.minor >= 1 : this.major >= 2;
            }, o.prototype.toString = function() {
                return "".concat(this.major, ".").concat(this.minor, ".").concat(this.patch);
            }, o.fromString = function(_) {
                var a = n(_.split("."), 3), c = a[0], s = a[1], u = a[2];
                return new o(BigInt(c), BigInt(s), BigInt(u));
            }, o;
        })();
        return Io.UPLCVersion = e, Io.defaultUplcVersion = new e(1, 1, 0), Io;
    }
    var V3;
    function Mx() {
        if (V3) return mo;
        V3 = 1;
        var n = mo && mo.__read || function(_, a) {
            var c = typeof Symbol == "function" && _[Symbol.iterator];
            if (!c) return _;
            var s = c.call(_), u, l = [], f;
            try {
                for(; (a === void 0 || a-- > 0) && !(u = s.next()).done;)l.push(u.value);
            } catch (p) {
                f = {
                    error: p
                };
            } finally{
                try {
                    u && !u.done && (c = s.return) && c.call(s);
                } finally{
                    if (f) throw f.error;
                }
            }
            return l;
        }, t = mo && mo.__spreadArray || function(_, a, c) {
            if (c || arguments.length === 2) for(var s = 0, u = a.length, l; s < u; s++)(l || !(s in a)) && (l || (l = Array.prototype.slice.call(a, 0, s)), l[s] = a[s]);
            return _.concat(l || Array.prototype.slice.call(a));
        };
        Object.defineProperty(mo, "__esModule", {
            value: !0
        }), mo.UPLCProgram = void 0;
        var e = s0(), o = (function() {
            function _(a, c) {
                Array.isArray(a) ? this._version = new (e.UPLCVersion.bind.apply(e.UPLCVersion, t([
                    void 0
                ], n(a), !1))) : this._version = a, this._body = c;
            }
            return Object.defineProperty(_.prototype, "version", {
                get: function() {
                    return this._version;
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_.prototype, "body", {
                get: function() {
                    return this._body;
                },
                enumerable: !1,
                configurable: !0
            }), _;
        })();
        return mo.UPLCProgram = o, mo;
    }
    var We = {}, nf = {}, Sc = {}, _n = {}, Ec = {}, _f = {}, Z3;
    function Lx() {
        if (Z3) return _f;
        Z3 = 1, Object.defineProperty(_f, "__esModule", {
            value: !0
        }), _f.isUint8Array = void 0;
        function n(t) {
            return t instanceof Uint8Array;
        }
        return _f.isUint8Array = n, _f;
    }
    var Oc = {}, Y3;
    function o4t() {
        if (Y3) return Oc;
        Y3 = 1, Object.defineProperty(Oc, "__esModule", {
            value: !0
        }), Oc.toUtf8 = Oc.fromUtf8 = void 0;
        function n(_, a) {
            a === void 0 && (a = 1 / 0);
            for(var c, s = _.length, u = null, l = [], f = 0; f < s; ++f){
                if (c = _.charCodeAt(f), c > 55295 && c < 57344) {
                    if (!u) {
                        if (c > 56319) {
                            (a -= 3) > -1 && l.push(239, 191, 189);
                            continue;
                        } else if (f + 1 === s) {
                            (a -= 3) > -1 && l.push(239, 191, 189);
                            continue;
                        }
                        u = c;
                        continue;
                    }
                    if (c < 56320) {
                        (a -= 3) > -1 && l.push(239, 191, 189), u = c;
                        continue;
                    }
                    c = (u - 55296 << 10 | c - 56320) + 65536;
                } else u && (a -= 3) > -1 && l.push(239, 191, 189);
                if (u = null, c < 128) {
                    if ((a -= 1) < 0) break;
                    l.push(c);
                } else if (c < 2048) {
                    if ((a -= 2) < 0) break;
                    l.push(c >> 6 | 192, c & 63 | 128);
                } else if (c < 65536) {
                    if ((a -= 3) < 0) break;
                    l.push(c >> 12 | 224, c >> 6 & 63 | 128, c & 63 | 128);
                } else if (c < 1114112) {
                    if ((a -= 4) < 0) break;
                    l.push(c >> 18 | 240, c >> 12 & 63 | 128, c >> 6 & 63 | 128, c & 63 | 128);
                } else throw new Error("Invalid code point");
            }
            return new Uint8Array(l);
        }
        Oc.fromUtf8 = n;
        function t(_, a, c) {
            a === void 0 && (a = 0), c === void 0 && (c = 1 / 0), c = Math.min(_.length, c);
            for(var s = [], u = a; u < c;){
                var l = _[u], f = null, p = l > 239 ? 4 : l > 223 ? 3 : l > 191 ? 2 : 1;
                if (u + p <= c) {
                    var g = void 0, h = void 0, B = void 0, I = void 0;
                    switch(p){
                        case 1:
                            l < 128 && (f = l);
                            break;
                        case 2:
                            g = _[u + 1], (g & 192) === 128 && (I = (l & 31) << 6 | g & 63, I > 127 && (f = I));
                            break;
                        case 3:
                            g = _[u + 1], h = _[u + 2], (g & 192) === 128 && (h & 192) === 128 && (I = (l & 15) << 12 | (g & 63) << 6 | h & 63, I > 2047 && (I < 55296 || I > 57343) && (f = I));
                            break;
                        case 4:
                            g = _[u + 1], h = _[u + 2], B = _[u + 3], (g & 192) === 128 && (h & 192) === 128 && (B & 192) === 128 && (I = (l & 15) << 18 | (g & 63) << 12 | (h & 63) << 6 | B & 63, I > 65535 && I < 1114112 && (f = I));
                    }
                }
                f === null ? (f = 65533, p = 1) : f > 65535 && (f -= 65536, s.push(f >>> 10 & 1023 | 55296), f = 56320 | f & 1023), s.push(f), u += p;
            }
            return o(s);
        }
        Oc.toUtf8 = t;
        var e = 4096;
        function o(_) {
            var a = _.length;
            if (a <= e) return String.fromCharCode.apply(String, _);
            for(var c = "", s = 0; s < a;)c += String.fromCharCode.apply(String, _.slice(s, s += e));
            return c;
        }
        return Oc;
    }
    var Fc = {}, W3;
    function i4t() {
        if (W3) return Fc;
        W3 = 1, Object.defineProperty(Fc, "__esModule", {
            value: !0
        }), Fc.fromHex = Fc.toHex = void 0;
        var n = Lx();
        function t(a) {
            if (!(0, n.isUint8Array)(a)) throw new TypeError("toHex expects an `Uint8Array`;");
            var c = new Array(a.length);
            return a.forEach(function(s, u) {
                return c[u] = s.toString(16).padStart(2, "0");
            }), c.join("");
        }
        Fc.toHex = t;
        var e = Object.freeze(Array.from("0123456789abcdef"));
        function o(a) {
            return Array.from(a).every(function(c) {
                return e.includes(c);
            });
        }
        function _(a) {
            if (typeof a != "string") throw new TypeError("fromHex expects an hexadecimal string;");
            a = a.toLowerCase(), a = a.length % 2 === 0 ? a : "0" + a;
            for(var c = a.length / 2, s = new Array(c), u = 0; u < c; u++){
                var l = u * 2, f = a.substring(l, l + 2);
                if (!o(f)) throw new TypeError("fromHex expects an hexadecimal string; input was: " + a);
                s[u] = parseInt("0x" + f);
            }
            return new Uint8Array(s);
        }
        return Fc.fromHex = _, Fc;
    }
    var Ac = {}, J3;
    function s4t() {
        if (J3) return Ac;
        J3 = 1, Object.defineProperty(Ac, "__esModule", {
            value: !0
        }), Ac.fromAscii = Ac.toAscii = void 0;
        function n(e, o, _) {
            o === void 0 && (o = 0), _ === void 0 && (_ = 1 / 0);
            var a = "";
            _ = Math.min(e.length, _);
            for(var c = o; c < _; ++c)a += String.fromCharCode(e[c] & 127);
            return a;
        }
        Ac.toAscii = n;
        function t(e) {
            for(var o = e.length, _ = new Array(o), a = 0; a < e.length; ++a)_[a] = e.charCodeAt(a) & 255;
            return new Uint8Array(_);
        }
        return Ac.fromAscii = t, Ac;
    }
    var Ee = {}, an = {}, ua = {}, X3;
    function zx() {
        if (X3) return ua;
        X3 = 1;
        var n = ua && ua.__extends || (function() {
            var o = function(_, a) {
                return o = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(c, s) {
                    c.__proto__ = s;
                } || function(c, s) {
                    for(var u in s)Object.prototype.hasOwnProperty.call(s, u) && (c[u] = s[u]);
                }, o(_, a);
            };
            return function(_, a) {
                if (typeof a != "function" && a !== null) throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
                o(_, a);
                function c() {
                    this.constructor = _;
                }
                _.prototype = a === null ? Object.create(a) : (c.prototype = a.prototype, new c);
            };
        })();
        Object.defineProperty(ua, "__esModule", {
            value: !0
        }), ua.ERR_OUT_OF_RANGE = ua.ERR_INVALID_ARG_TYPE = ua.ERR_BUFFER_OUT_OF_BOUNDS = void 0;
        function t(o) {
            for(var _ = "", a = o.length, c = o[0] === "-" ? 1 : 0; a >= c + 4; a -= 3)_ = "_".concat(o.slice(a - 3, a)).concat(_);
            return "".concat(o.slice(0, a)).concat(_);
        }
        function e(o, _, a) {
            return (function(c) {
                n(s, c);
                function s() {
                    for(var u = [], l = 0; l < arguments.length; l++)u[l] = arguments[l];
                    var f = c.call(this) || this;
                    return Object.defineProperty(f, "message", {
                        value: _.apply(f, u),
                        writable: !0,
                        configurable: !0
                    }), f.name = "".concat(f.name, " [").concat(o, "]"), f.stack, f;
                }
                return Object.defineProperty(s.prototype, "code", {
                    get: function() {
                        return o;
                    },
                    set: function(u) {
                        Object.defineProperty(this, "code", {
                            configurable: !0,
                            enumerable: !0,
                            value: u,
                            writable: !0
                        });
                    },
                    enumerable: !1,
                    configurable: !0
                }), s.prototype.toString = function() {
                    return "".concat(this.name, " [").concat(o, "]: ").concat(this.message);
                }, s;
            })(a);
        }
        return ua.ERR_BUFFER_OUT_OF_BOUNDS = e("ERR_BUFFER_OUT_OF_BOUNDS", function(o) {
            return o ? "".concat(o, " is outside of buffer bounds") : "Attempt to access memory outside buffer bounds";
        }, RangeError), ua.ERR_INVALID_ARG_TYPE = e("ERR_INVALID_ARG_TYPE", function(o, _) {
            return 'The "'.concat(o, '" argument must be of type number. Received type ').concat(typeof _);
        }, TypeError), ua.ERR_OUT_OF_RANGE = e("ERR_OUT_OF_RANGE", function(o, _, a) {
            var c = 'The value of "'.concat(o, '" is out of range.'), s = a;
            return Number.isInteger(a) && Math.abs(a) > Math.pow(2, 32) ? s = t(String(a)) : typeof a == "bigint" && (s = String(a), (a > BigInt(1) << BigInt(32) || a < -(BigInt(1) << BigInt(32))) && (s = t(s)), s += "n"), c += " It must be ".concat(_, ". Received ").concat(s), c;
        }, RangeError), ua;
    }
    var Q3;
    function qx() {
        if (Q3) return an;
        Q3 = 1;
        var n = an && an.__createBinding || (Object.create ? (function(u, l, f, p) {
            p === void 0 && (p = f);
            var g = Object.getOwnPropertyDescriptor(l, f);
            (!g || ("get" in g ? !l.__esModule : g.writable || g.configurable)) && (g = {
                enumerable: !0,
                get: function() {
                    return l[f];
                }
            }), Object.defineProperty(u, p, g);
        }) : (function(u, l, f, p) {
            p === void 0 && (p = f), u[p] = l[f];
        })), t = an && an.__setModuleDefault || (Object.create ? (function(u, l) {
            Object.defineProperty(u, "default", {
                enumerable: !0,
                value: l
            });
        }) : function(u, l) {
            u.default = l;
        }), e = an && an.__importStar || function(u) {
            if (u && u.__esModule) return u;
            var l = {};
            if (u != null) for(var f in u)f !== "default" && Object.prototype.hasOwnProperty.call(u, f) && n(l, u, f);
            return t(l, u), l;
        };
        Object.defineProperty(an, "__esModule", {
            value: !0
        }), an.checkBounds = an.assertInBound = an.assertNum = an.asserValidOffset = void 0;
        var o = e(zx());
        function _(u, l, f) {
            if (u % 1 !== 0 || u < 0) throw new RangeError("offset is not uint");
            if (u + l > f) throw new RangeError("Trying to access beyond buffer length");
        }
        an.asserValidOffset = _;
        function a(u) {
            if (typeof u != "number") throw new Error("expected a number");
        }
        an.assertNum = a;
        function c(u, l, f) {
            throw Math.floor(u) !== u ? (a(u), new o.ERR_OUT_OF_RANGE(f || "offset", "an integer", u)) : l < 0 ? new o.ERR_BUFFER_OUT_OF_BOUNDS : new o.ERR_OUT_OF_RANGE(f || "offset", ">= ".concat(f ? 1 : 0, " and <= ").concat(l), u);
        }
        an.assertInBound = c;
        function s(u, l, f) {
            a(l), (u[l] === void 0 || u[l + f] === void 0) && c(l, u.length - (f + 1));
        }
        return an.checkBounds = s, an;
    }
    var $3;
    function c4t() {
        if ($3) return Ee;
        $3 = 1, Object.defineProperty(Ee, "__esModule", {
            value: !0
        }), Ee.readFloat64BE = Ee.readFloat32BE = Ee.readIntLE = Ee.readBigUInt64BE = Ee.readBigUInt64LE = Ee.readUInt32BE = Ee.readUint32BE = Ee.readUInt32LE = Ee.readUint32LE = Ee.readUInt16BE = Ee.readUint16BE = Ee.readUInt16LE = Ee.readUint16LE = Ee.readUInt8 = Ee.readUint8 = void 0;
        var n = qx();
        Ee.readUint8 = t;
        function t(p, g, h) {
            return h === void 0 && (h = !1), g = g >>> 0, h || (0, n.asserValidOffset)(g, 1, p.length), p[g];
        }
        Ee.readUInt8 = t, Ee.readUint16LE = e;
        function e(p, g, h) {
            return h === void 0 && (h = !1), g = g >>> 0, h || (0, n.asserValidOffset)(g, 2, p.length), p[g] | p[g + 1] << 8;
        }
        Ee.readUInt16LE = e, Ee.readUint16BE = o;
        function o(p, g, h) {
            return h === void 0 && (h = !1), g = g >>> 0, h || (0, n.asserValidOffset)(g, 2, p.length), p[g] << 8 | p[g + 1];
        }
        Ee.readUInt16BE = o, Ee.readUint32LE = _;
        function _(p, g, h) {
            return h === void 0 && (h = !1), g = g >>> 0, h || (0, n.asserValidOffset)(g, 4, p.length), (p[g] | p[g + 1] << 8 | p[g + 2] << 16) + p[g + 3] * 16777216;
        }
        Ee.readUInt32LE = _, Ee.readUint32BE = a;
        function a(p, g, h) {
            return h === void 0 && (h = !1), g = g >>> 0, h || (0, n.asserValidOffset)(g, 4, p.length), p[g] * 16777216 + (p[g + 1] << 16 | p[g + 2] << 8 | p[g + 3]);
        }
        Ee.readUInt32BE = a;
        function c(p, g) {
            g = g >>> 0, (0, n.assertNum)(g);
            var h = p[g], B = p[g + 7];
            (h === void 0 || B === void 0) && (0, n.assertInBound)(g, p.length - 8);
            var I = h + p[++g] * Math.pow(2, 8) + p[++g] * Math.pow(2, 16) + p[++g] * Math.pow(2, 24), j = p[++g] + p[++g] * Math.pow(2, 8) + p[++g] * Math.pow(2, 16) + B * Math.pow(2, 24);
            return BigInt(I) + (BigInt(j) << BigInt(32));
        }
        Ee.readBigUInt64LE = c;
        function s(p, g) {
            g = g >>> 0, (0, n.assertNum)(g);
            var h = p[g], B = p[g + 7];
            (h === void 0 || B === void 0) && (0, n.assertInBound)(g, p.length - 8);
            var I = h * Math.pow(2, 24) + p[++g] * Math.pow(2, 16) + p[++g] * Math.pow(2, 8) + p[++g], j = p[++g] * Math.pow(2, 24) + p[++g] * Math.pow(2, 16) + p[++g] * Math.pow(2, 8) + B;
            return (BigInt(I) << BigInt(32)) + BigInt(j);
        }
        Ee.readBigUInt64BE = s;
        function u(p, g, h, B) {
            B === void 0 && (B = !1), g = g >>> 0, h = h >>> 0, B || (0, n.asserValidOffset)(g, h, p.length);
            for(var I = p[g], j = 1, w = 0; ++w < h && (j *= 256);)I += p[g + w] * j;
            return j *= 128, I >= j && (I -= Math.pow(2, 8 * h)), I;
        }
        Ee.readIntLE = u;
        function l(p, g) {
            for(var h = new ArrayBuffer(4), B = new Float32Array(h), I = new Uint8Array(h), j = g; j < g + 4; j++)I[j - g] = p[j];
            return B[0];
        }
        Ee.readFloat32BE = l;
        function f(p, g) {
            for(var h = new ArrayBuffer(8), B = new Float64Array(h), I = new Uint8Array(h), j = g; j < g + 8; j++)I[j - g] = p[j];
            return B[0];
        }
        return Ee.readFloat64BE = f, Ee;
    }
    var ae = {}, t6;
    function d4t() {
        if (t6) return ae;
        t6 = 1;
        var n = ae && ae.__createBinding || (Object.create ? (function(w, S, b, k) {
            k === void 0 && (k = b);
            var F = Object.getOwnPropertyDescriptor(S, b);
            (!F || ("get" in F ? !S.__esModule : F.writable || F.configurable)) && (F = {
                enumerable: !0,
                get: function() {
                    return S[b];
                }
            }), Object.defineProperty(w, k, F);
        }) : (function(w, S, b, k) {
            k === void 0 && (k = b), w[k] = S[b];
        })), t = ae && ae.__setModuleDefault || (Object.create ? (function(w, S) {
            Object.defineProperty(w, "default", {
                enumerable: !0,
                value: S
            });
        }) : function(w, S) {
            w.default = S;
        }), e = ae && ae.__importStar || function(w) {
            if (w && w.__esModule) return w;
            var S = {};
            if (w != null) for(var b in w)b !== "default" && Object.prototype.hasOwnProperty.call(w, b) && n(S, w, b);
            return t(S, w), S;
        };
        Object.defineProperty(ae, "__esModule", {
            value: !0
        }), ae.writeFloat64BE = ae.writeBigUInt64BE = ae.writeBigUInt64LE = ae.writeUInt32BE = ae.writeUint32BE = ae.writeUInt32LE = ae.writeUint32LE = ae.writeUInt16BE = ae.writeUint16BE = ae.writeUInt16LE = ae.writeUint16LE = ae.writeUInt8 = ae.writeUint8 = ae.writeUIntBE = ae.writeUintBE = ae.writeUIntLE = ae.writeUintLE = void 0;
        var o = qx(), _ = e(zx());
        function a(w, S, b, k, F, Y) {
            if (!(w instanceof Uint8Array)) throw new TypeError('"buffer" argument must be an Uint8Array instance');
            if (S > F || S < Y) throw new RangeError('"value" argument is out of bounds');
            if (b + k > w.length) throw new RangeError("Index out of range");
        }
        function c(w, S, b, k, F, Y) {
            if (w > b || w < S) {
                var K = typeof S == "bigint" ? "n" : "", J = void 0;
                throw S === 0 || S === BigInt(0) ? J = ">= 0".concat(K, " and < 2").concat(K, " ** ").concat((Y + 1) * 8).concat(K) : J = ">= -(2".concat(K, " ** ").concat((Y + 1) * 8 - 1).concat(K, ") and < 2 ** ") + "".concat((Y + 1) * 8 - 1).concat(K), new _.ERR_OUT_OF_RANGE("value", J, w);
            }
            (0, o.checkBounds)(k, F, Y);
        }
        ae.writeUintLE = s;
        function s(w, S, b, k, F) {
            if (F === void 0 && (F = !1), S = +S, b = b >>> 0, k = k >>> 0, !F) {
                var Y = Math.pow(2, 8 * k) - 1;
                a(w, S, b, k, Y, 0);
            }
            var K = 1, J = 0;
            for(w[b] = S & 255; ++J < k && (K *= 256);)w[b + J] = S / K & 255;
            return b + k;
        }
        ae.writeUIntLE = s, ae.writeUintBE = u;
        function u(w, S, b, k, F) {
            if (F === void 0 && (F = !1), S = +S, b = b >>> 0, k = k >>> 0, !F) {
                var Y = Math.pow(2, 8 * k) - 1;
                a(w, S, b, k, Y, 0);
            }
            var K = k - 1, J = 1;
            for(w[b + K] = S & 255; --K >= 0 && (J *= 256);)w[b + K] = S / J & 255;
            return b + k;
        }
        ae.writeUIntBE = u, ae.writeUint8 = l;
        function l(w, S, b, k) {
            return k === void 0 && (k = !1), S = +S, b = b >>> 0, k || a(w, S, b, 1, 255, 0), w[b] = S & 255, b + 1;
        }
        ae.writeUInt8 = l, ae.writeUint16LE = f;
        function f(w, S, b, k) {
            return k === void 0 && (k = !1), S = +S, b = b >>> 0, k || a(w, S, b, 2, 65535, 0), w[b] = S & 255, w[b + 1] = S >>> 8, b + 2;
        }
        ae.writeUInt16LE = f, ae.writeUint16BE = p;
        function p(w, S, b, k) {
            return k === void 0 && (k = !1), S = +S, b = b >>> 0, k || a(w, S, b, 2, 65535, 0), w[b] = S >>> 8, w[b + 1] = S & 255, b + 2;
        }
        ae.writeUInt16BE = p, ae.writeUint32LE = g;
        function g(w, S, b, k) {
            return k === void 0 && (k = !1), S = +S, b = b >>> 0, k || a(w, S, b, 4, 4294967295, 0), w[b + 3] = S >>> 24, w[b + 2] = S >>> 16, w[b + 1] = S >>> 8, w[b] = S & 255, b + 4;
        }
        ae.writeUInt32LE = g, ae.writeUint32BE = h;
        function h(w, S, b, k) {
            return k === void 0 && (k = !1), S = +S, b = b >>> 0, k || a(w, S, b, 4, 4294967295, 0), w[b] = S >>> 24, w[b + 1] = S >>> 16, w[b + 2] = S >>> 8, w[b + 3] = S & 255, b + 4;
        }
        ae.writeUInt32BE = h;
        function B(w, S, b) {
            var k = BigInt(0), F = BigInt("0xffffffffffffffff");
            c(S, k, F, w, b, 7);
            var Y = Number(S & BigInt(4294967295));
            w[b++] = Y, Y = Y >> 8, w[b++] = Y, Y = Y >> 8, w[b++] = Y, Y = Y >> 8, w[b++] = Y;
            var K = Number(S >> BigInt(32) & BigInt(4294967295));
            return w[b++] = K, K = K >> 8, w[b++] = K, K = K >> 8, w[b++] = K, K = K >> 8, w[b++] = K, b;
        }
        ae.writeBigUInt64LE = B;
        function I(w, S, b) {
            var k = BigInt(0), F = BigInt("0xffffffffffffffff");
            c(S, k, F, w, b, 7);
            var Y = Number(S & BigInt(4294967295));
            w[b + 7] = Y, Y = Y >> 8, w[b + 6] = Y, Y = Y >> 8, w[b + 5] = Y, Y = Y >> 8, w[b + 4] = Y;
            var K = Number(S >> BigInt(32) & BigInt(4294967295));
            return w[b + 3] = K, K = K >> 8, w[b + 2] = K, K = K >> 8, w[b + 1] = K, K = K >> 8, w[b] = K, b + 8;
        }
        ae.writeBigUInt64BE = I;
        function j(w, S, b) {
            var k = new ArrayBuffer(8), F = new Float64Array(k);
            F[0] = S;
            for(var Y = new Uint8Array(k), K = 0; K < 8; K++)w[b + K] = Y[K];
            return b + 8;
        }
        return ae.writeFloat64BE = j, ae;
    }
    var Tc = {}, e6;
    function u4t() {
        if (e6) return Tc;
        e6 = 1, Object.defineProperty(Tc, "__esModule", {
            value: !0
        }), Tc.uint8ArrayEq = Tc.lexCompare = void 0;
        function n(e, o) {
            for(var _ = e.length < o.length ? e : o, a = _.length, c = 0; c < a; c++){
                var s = e.at(c), u = o.at(c);
                if (s === void 0) return -1;
                if (u === void 0) return 1;
                if (s < u) return -1;
                if (s > u) return 1;
            }
            return e.length === o.length ? 0 : e.length < o.length ? -1 : 1;
        }
        Tc.lexCompare = n;
        function t(e, o) {
            return e.length === o.length && e.every(function(_, a) {
                return _ === o[a];
            });
        }
        return Tc.uint8ArrayEq = t, Tc;
    }
    var af = {}, r6;
    function l4t() {
        if (r6) return af;
        r6 = 1, Object.defineProperty(af, "__esModule", {
            value: !0
        }), af.concatUint8Array = void 0;
        function n() {
            for(var t = [], e = 0; e < arguments.length; e++)t[e] = arguments[e];
            if (!t.every(function(l) {
                return l instanceof Uint8Array;
            })) return new Uint8Array([]);
            if (t.length <= 0) return new Uint8Array([]);
            if (t.length === 1) return Uint8Array.prototype.slice.call(t[0]);
            for(var o = t.reduce(function(l, f) {
                return l + f.length;
            }, 0), _ = new Uint8Array(o), a = 0, c = t.length, s = 0, u = void 0; s < c;)u = t[s++], _.set(u, a), a += u.length;
            return _;
        }
        return af.concatUint8Array = n, af;
    }
    var Pc = {}, n6;
    function f4t() {
        if (n6) return Pc;
        n6 = 1, Object.defineProperty(Pc, "__esModule", {
            value: !0
        }), Pc.fromBase64 = Pc.toBase64 = void 0;
        for(var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", t = typeof Uint8Array > "u" ? [] : new Uint8Array(256), e = 0; e < n.length; e++)t[n.charCodeAt(e)] = e;
        function o(a) {
            var c, s = a.length, u = "";
            for(c = 0; c < s; c += 3)u += n[a[c] >> 2], u += n[(a[c] & 3) << 4 | a[c + 1] >> 4], u += n[(a[c + 1] & 15) << 2 | a[c + 2] >> 6], u += n[a[c + 2] & 63];
            return s % 3 === 2 ? u = u.substring(0, u.length - 1) + "=" : s % 3 === 1 && (u = u.substring(0, u.length - 2) + "=="), u;
        }
        Pc.toBase64 = o;
        function _(a) {
            var c = a.length * .75, s = a.length, u, l = 0, f, p, g, h;
            a[a.length - 1] === "=" && (c--, a[a.length - 2] === "=" && c--);
            var B = new Uint8Array(c);
            for(u = 0; u < s; u += 4)f = t[a.charCodeAt(u)], p = t[a.charCodeAt(u + 1)], g = t[a.charCodeAt(u + 2)], h = t[a.charCodeAt(u + 3)], B[l++] = f << 2 | p >> 4, B[l++] = (p & 15) << 4 | g >> 2, B[l++] = (g & 3) << 6 | h & 63;
            return B;
        }
        return Pc.fromBase64 = _, Pc;
    }
    var _6;
    function ve() {
        return _6 || (_6 = 1, (function(n) {
            var t = Ec && Ec.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = Ec && Ec.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(Lx(), n), e(o4t(), n), e(i4t(), n), e(s4t(), n), e(c4t(), n), e(d4t(), n), e(u4t(), n), e(l4t(), n), e(f4t(), n);
        })(Ec)), Ec;
    }
    var on = {}, Bo = {}, a6;
    function rh() {
        if (a6) return Bo;
        a6 = 1;
        var n = Bo && Bo.__read || function(o, _) {
            var a = typeof Symbol == "function" && o[Symbol.iterator];
            if (!a) return o;
            var c = a.call(o), s, u = [], l;
            try {
                for(; (_ === void 0 || _-- > 0) && !(s = c.next()).done;)u.push(s.value);
            } catch (f) {
                l = {
                    error: f
                };
            } finally{
                try {
                    s && !s.done && (a = c.return) && a.call(c);
                } finally{
                    if (l) throw l.error;
                }
            }
            return u;
        }, t = Bo && Bo.__spreadArray || function(o, _, a) {
            if (a || arguments.length === 2) for(var c = 0, s = _.length, u; c < s; c++)(u || !(c in _)) && (u || (u = Array.prototype.slice.call(_, 0, c)), u[c] = _[c]);
            return o.concat(u || Array.prototype.slice.call(_));
        };
        Object.defineProperty(Bo, "__esModule", {
            value: !0
        }), Bo.assert = void 0;
        function e(o, _, a) {
            for(var c = [], s = 3; s < arguments.length; s++)c[s - 3] = arguments[s];
            if (!o) throw c.length > 0 && console.error.apply(console, t([], n(c), !1)), a && console.error(a), _ instanceof Error ? _ : new Error(_);
        }
        return Bo.assert = e, Bo;
    }
    var o6;
    function g4t() {
        if (o6) return on;
        o6 = 1, Object.defineProperty(on, "__esModule", {
            value: !0
        }), on.minBytesRequired = on.getNOfUsedBits = on.getNLastBits = on.getNLastBitsInt = on.andMaskOfLength = on.andMaskOfLengthInt = on.getFirstByte = void 0;
        var n = rh();
        function t(u) {
            return Number("0x".concat(u.toString(16).slice(0, 2)));
        }
        on.getFirstByte = t;
        function e(u) {
            return u = Math.round(Math.abs(u)), u >= 30 ? o(BigInt(u)) : BigInt((1 << u) - 1);
        }
        on.andMaskOfLengthInt = e;
        function o(u) {
            return BigInt((BigInt(1) << u) - BigInt(1));
        }
        on.andMaskOfLength = o;
        function _(u, l) {
            return (0, n.assert)(typeof u == "number" && typeof l == "number", "can use getNLastBitsInt on number instances only"), Number(BigInt(u) & o(BigInt(l)));
        }
        on.getNLastBitsInt = _;
        function a(u, l) {
            return u & o(l);
        }
        on.getNLastBits = a;
        function c(u) {
            return u === BigInt(0) ? 0 : u.toString(2).length;
        }
        on.getNOfUsedBits = c;
        function s(u) {
            if (u < BigInt(0)) throw new Error("minBytesRequired works for positives integers only");
            for(var l = BigInt(255), f = l, p = 1; u !== (u & f);)f = f << BigInt(8) | l, p++;
            return p;
        }
        return on.minBytesRequired = s, on;
    }
    var Ap = {}, i6;
    function p4t() {
        if (i6) return Ap;
        i6 = 1, Object.defineProperty(Ap, "__esModule", {
            value: !0
        });
        var n = ve(), t = rh(), e = (function() {
            function o() {}
            return o.abs = function(_) {
                return _ < BigInt(0) ? -_ : _;
            }, o.random = function() {
                return BigInt(Math.round(Math.random() * Number.MAX_SAFE_INTEGER));
            }, o.max = function() {
                for(var _ = [], a = 0; a < arguments.length; a++)_[a] = arguments[a];
                return _.reduce(function(c, s) {
                    return c > s ? c : s;
                });
            }, o.min = function() {
                for(var _ = [], a = 0; a < arguments.length; a++)_[a] = arguments[a];
                return _.reduce(function(c, s) {
                    return c < s ? c : s;
                });
            }, o.log2 = function(_) {
                if (_ === BigInt(0)) return BigInt(0);
                if (_ < BigInt(0)) return -o.log2(o.abs(_));
                for(var a = BigInt(_), c = BigInt(0); a >>= BigInt(1);)c++;
                return c;
            }, o.fromBufferLE = function(_) {
                return o.fromBuffer(Uint8Array.from(_).reverse());
            }, o.fromBuffer = function(_) {
                (0, t.assert)((0, n.isUint8Array)(_), "expected buffer as input, while constructing a bigint instance using BigIntUtils.fromBufferBE");
                var a = (0, n.toHex)(_);
                return a.length === 0 ? BigInt(0) : BigInt("0x".concat(a));
            }, o.toBuffer = function(_, a) {
                if (a === void 0 && (a = void 0), (0, t.assert)(_ >= BigInt(0), "cannot convert negative bigint to buffer"), _ == BigInt(0)) return a === void 0 ? Uint8Array.from([]) : new Uint8Array(a);
                var c = _.toString(16);
                return c = c.length % 2 === 0 ? c : "0" + c, a !== void 0 && ((0, t.assert)(Math.round(Math.abs(a)) === a, "cannot construct a buffer of length " + a + ", while using BigIntUtils.toBufferOfNBytesBE"), c = c.padStart(a * 2, "00"), c.length > a * 2 && (console.warn("required buffer size is smaller than the one used effectively by the given bigint, truncating the initial bytes as overflow"), c = c.slice(c.length - a * 2))), (0, n.fromHex)(c);
            }, o;
        })();
        return Ap.default = e, Ap;
    }
    var of = {}, s6;
    function b4t() {
        if (s6) return of;
        s6 = 1, Object.defineProperty(of, "__esModule", {
            value: !0
        }), of.isBinary = void 0;
        function n(t) {
            if (typeof t != "string") return !1;
            for(var e = 0; e < t.length; e++){
                var o = t[e];
                if (!(o === "0" || o === "1")) return !1;
            }
            return !0;
        }
        return of.isBinary = n, of;
    }
    var c6;
    function w4t() {
        if (c6) return _n;
        c6 = 1;
        var n = _n && _n.__read || function(h, B) {
            var I = typeof Symbol == "function" && h[Symbol.iterator];
            if (!I) return h;
            var j = I.call(h), w, S = [], b;
            try {
                for(; (B === void 0 || B-- > 0) && !(w = j.next()).done;)S.push(w.value);
            } catch (k) {
                b = {
                    error: k
                };
            } finally{
                try {
                    w && !w.done && (I = j.return) && I.call(j);
                } finally{
                    if (b) throw b.error;
                }
            }
            return S;
        }, t = _n && _n.__spreadArray || function(h, B, I) {
            if (I || arguments.length === 2) for(var j = 0, w = B.length, S; j < w; j++)(S || !(j in B)) && (S || (S = Array.prototype.slice.call(B, 0, j)), S[j] = B[j]);
            return h.concat(S || Array.prototype.slice.call(B));
        }, e = _n && _n.__importDefault || function(h) {
            return h && h.__esModule ? h : {
                default: h
            };
        }, o;
        Object.defineProperty(_n, "__esModule", {
            value: !0
        }), _n.BitStreamIterator = _n.BitStream = _n.forceInByteOffset = _n.isInByteOffset = void 0;
        var _ = ve(), a = g4t(), c = rh(), s = e(p4t()), u = b4t();
        function l(h) {
            return h === 0 || h === 1 || h === 2 || h === 3 || h === 4 || h === 5 || h === 6 || h === 7;
        }
        _n.isInByteOffset = l;
        function f(h) {
            return Math.round(Math.abs(h)) % 8;
        }
        _n.forceInByteOffset = f;
        var p = (function() {
            function h(B, I) {
                I === void 0 && (I = 0);
                var j = this;
                if (this[o] = function() {
                    return new g(j);
                }, B === void 0) {
                    this._bits = BigInt(-1), this._nInitialZeroes = 0;
                    return;
                }
                if ((0, c.assert)(Math.round(Math.abs(I)) === I, "invalid numebr of nInitialZeroes passed, expected non-negative integer, got: " + I.toString()), typeof B == "bigint") {
                    this._nInitialZeroes = I, this._bits = s.default.abs(B);
                    return;
                }
                if ((0, c.assert)((0, _.isUint8Array)(B), "expected a Uint8Array instance", {
                    got: B,
                    nativeType: typeof B
                }), B.length === 0) {
                    this._bits = BigInt(-1), this._nInitialZeroes = 0;
                    return;
                }
                for(var w = f(I), S = 0, b = 0; b < B.length && (S = (0, _.readUint8)(B, b), !(S > 0));)b++;
                if (b === B.length) {
                    this._bits = BigInt(-1), this._nInitialZeroes = 8 * b;
                    return;
                }
                this._nInitialZeroes = 8 * b + (8 - (0, a.getNOfUsedBits)(BigInt(S))), (0, c.assert)(this._nInitialZeroes >= 0, "this._nInitialZeroes was setted badly in a BitStream creation using a Uint8Array as input."), this._bits = s.default.fromBuffer(B), w !== 0 && (this._bits = this.bits << BigInt(w));
            }
            return h.isStrictInstance = function(B) {
                return Object.getPrototypeOf(B) === h.prototype;
            }, Object.defineProperty(h.prototype, "bits", {
                get: function() {
                    return this._bits;
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(h.prototype, "nInitialZeroes", {
                get: function() {
                    return this._nInitialZeroes;
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(h.prototype, "length", {
                get: function() {
                    return this.isEmpty() ? 0 : this._nInitialZeroes + (0, a.getNOfUsedBits)(this._bits);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(h.prototype, "lengthInBytes", {
                get: function() {
                    return h.getMinBytesForLength(this.length);
                },
                enumerable: !1,
                configurable: !0
            }), h.prototype.isEmpty = function() {
                return this._bits < BigInt(0) && this.nInitialZeroes <= 0;
            }, h.prototype.isAllZeroes = function() {
                return this._bits <= BigInt(0) && this.nInitialZeroes >= 0;
            }, h.fromBinStr = function(B) {
                (0, c.assert)((0, u.isBinary)(B), "expected an instance of the 'BinsryString' class; got: " + B.toString());
                var I = B.indexOf("1");
                return I < 0 ? new h(BigInt(0), B.length) : new h(BigInt("0b".concat(B.slice(I))), I);
            }, h.prototype.toBinStr = function() {
                var B = this.asBigInt(), I = B.bigint, j = B.nInitialZeroes;
                return "0".repeat(j) + I.toString(2);
            }, h.getMinBytesForLength = function(B) {
                return B = Math.round(Math.abs(B)), Math.ceil(B / 8);
            }, h.prototype.getNBitsMissingToByte = function() {
                var B = this.length % 8;
                return B === 0 ? 0 : 8 - B;
            }, h.prototype.at = function(B) {
                if (B >= this.length || B < 0) throw RangeError("cannot access bit at index " + B.toString());
                return B < this.nInitialZeroes ? 0 : (B = Math.round(B), this.bits & BigInt(1 << this.length - B - 1) ? 1 : 0);
            }, h.prototype.asBigInt = function() {
                return this.isEmpty() ? {
                    bigint: BigInt(0),
                    nInitialZeroes: 0
                } : this.isAllZeroes() ? {
                    bigint: BigInt(0),
                    nInitialZeroes: this.nInitialZeroes
                } : {
                    bigint: this.bits,
                    nInitialZeroes: this.nInitialZeroes
                };
            }, h.prototype.toBuffer = function() {
                if (this.isEmpty()) return {
                    buffer: Uint8Array.from([]),
                    nZeroesAsEndPadding: 0
                };
                if (this.isAllZeroes()) return {
                    buffer: this.nInitialZeroes <= 0 ? Uint8Array.from([]) : (0, _.fromHex)("00".repeat(Math.ceil(this.nInitialZeroes / 8))),
                    nZeroesAsEndPadding: this._nInitialZeroes % 8 === 0 ? 0 : 8 - f(this._nInitialZeroes)
                };
                var B = this.bits, I = Array.from(s.default.toBuffer(B)), j = I[0];
                this.nInitialZeroes >= 8 && I.unshift.apply(I, t([], n(Array(Math.floor(this.nInitialZeroes / 8)).fill(0)), !1)), j === void 0 && (console.error(j), "this.isEmpty(): ".concat(this.isEmpty()), "this.isAllZeroes(): ".concat(this.isAllZeroes()));
                var w = this.nInitialZeroes % 8, S = 8 - (0, a.getNOfUsedBits)(BigInt(j ?? 0));
                if ((0, c.assert)(S >= 0 && S <= 7 && Math.round(S) == S, "unexpected numebr of effectiveInByteInitialZeroes; should be 'InByteOffset'; got: " + S.toString()), w === S) return {
                    buffer: Uint8Array.from(I),
                    nZeroesAsEndPadding: 0
                };
                if (S < w) {
                    for(var b = w - S, k = 0, F = 0, Y = Math.floor(this.nInitialZeroes / 8); Y < I.length; Y++)F = Number((0, a.getNLastBits)(BigInt(I[Y]), BigInt(b))), I[Y] = I[Y] >>> b | k, k = F << 8 - b;
                    return I.push(k), {
                        buffer: Uint8Array.from(I),
                        nZeroesAsEndPadding: 8 - b
                    };
                }
                var K = S - w, J = Array.from(s.default.toBuffer(B << BigInt(K)));
                return this.nInitialZeroes >= 8 && J.unshift.apply(J, t([], n(Array(Math.floor(this.nInitialZeroes / 8)).fill(0)), !1)), {
                    buffer: Uint8Array.from(J),
                    nZeroesAsEndPadding: K
                };
            }, h.prototype.shiftr = function(B) {
                var I = (0, a.getNLastBits)(this._bits, B);
                return this._bits = this.bits >> B, I;
            }, h.prototype.shiftl = function(B) {
                this._bits = this.bits << B;
            }, h.prototype.append = function(B) {
                if (!B.isEmpty()) {
                    if (this.isEmpty()) {
                        this._bits = B.bits, this._nInitialZeroes = B.nInitialZeroes;
                        return;
                    }
                    if (this.isAllZeroes()) {
                        this._bits = B.bits, this._nInitialZeroes = this._nInitialZeroes + B.nInitialZeroes;
                        return;
                    }
                    if (B.isAllZeroes()) {
                        this._bits = this._bits << BigInt(B.nInitialZeroes);
                        return;
                    }
                    this._bits = this.bits << BigInt(B.length), this._bits = this.bits | B.bits;
                }
            }, h.prototype.clone = function() {
                return this.isEmpty() ? new h : new h(this.bits, this.nInitialZeroes);
            }, h.concat = function(B, I) {
                var j = B.clone();
                return j.append(I), j;
            }, h.eq = function(B, I) {
                return B === I ? !0 : B.nInitialZeroes === I.nInitialZeroes && B.bits === I.bits;
            }, h;
        })();
        _n.BitStream = p, o = Symbol.iterator;
        var g = (function() {
            function h(B) {
                if (B.length === 0) {
                    this._bitStreamBuff = Uint8Array.from([]), this._nZeroesAsPadding = 0, this._currByteIndex = 0, this._currByte = 0, this._currBitIndex = 0, this._isDone = function() {
                        return !0;
                    };
                    return;
                }
                var I = B.toBuffer(), j = I.buffer, w = I.nZeroesAsEndPadding;
                this._bitStreamBuff = j, this._nZeroesAsPadding = w, this._currByteIndex = 0, this._currByte = (0, _.readUint8)(this._bitStreamBuff, this._currByteIndex), this._currBitIndex = 0, this._updateByte = this._updateByte.bind(this), this._isDone = this._isDone.bind(this);
            }
            return h.prototype.next = function() {
                if (this._isDone()) return {
                    done: !0,
                    value: 0
                };
                var B = this._currByte & 1 << 7 - this._currBitIndex ? 1 : 0;
                return this._currBitIndex++, this._currBitIndex >= 8 && (this._currBitIndex = 0, this._updateByte()), {
                    value: B,
                    done: !1
                };
            }, h.prototype._updateByte = function() {
                this._currByteIndex++, this._currByteIndex < this._bitStreamBuff.length && (this._currByte = (0, _.readUint8)(this._bitStreamBuff, this._currByteIndex));
            }, h.prototype._isDone = function() {
                return this._currByteIndex >= this._bitStreamBuff.length || this._currByteIndex === this._bitStreamBuff.length - 1 && this._currBitIndex === 8 - this._nZeroesAsPadding;
            }, h;
        })();
        return _n.BitStreamIterator = g, _n;
    }
    var d6;
    function f_() {
        return d6 || (d6 = 1, (function(n) {
            var t = Sc && Sc.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = Sc && Sc.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(w4t(), n);
        })(Sc)), Sc;
    }
    var xo = {}, u6;
    function Xi() {
        if (u6) return xo;
        u6 = 1;
        var n = xo && xo.__read || function(o, _) {
            var a = typeof Symbol == "function" && o[Symbol.iterator];
            if (!a) return o;
            var c = a.call(o), s, u = [], l;
            try {
                for(; (_ === void 0 || _-- > 0) && !(s = c.next()).done;)u.push(s.value);
            } catch (f) {
                l = {
                    error: f
                };
            } finally{
                try {
                    s && !s.done && (a = c.return) && a.call(c);
                } finally{
                    if (l) throw l.error;
                }
            }
            return u;
        }, t = xo && xo.__spreadArray || function(o, _, a) {
            if (a || arguments.length === 2) for(var c = 0, s = _.length, u; c < s; c++)(u || !(c in _)) && (u || (u = Array.prototype.slice.call(_, 0, c)), u[c] = _[c]);
            return o.concat(u || Array.prototype.slice.call(_));
        };
        Object.defineProperty(xo, "__esModule", {
            value: !0
        }), xo.assert = void 0;
        function e(o, _, a) {
            for(var c = [], s = 3; s < arguments.length; s++)c[s - 3] = arguments[s];
            if (!o) throw c.length > 0 && console.error.apply(console, t([], n(c), !1)), a && console.error(a), _ instanceof Error ? _ : new Error(_);
        }
        return xo.assert = e, xo;
    }
    var l6;
    function Cl() {
        if (l6) return nf;
        l6 = 1, Object.defineProperty(nf, "__esModule", {
            value: !0
        }), nf.UPLCVar = void 0;
        var n = f_(), t = Nx(), e = Xi(), o = (function() {
            function _(a) {
                this._deBruijn = (0, t.forceBigUInt)(a), (0, e.assert)(this._deBruijn >= BigInt(0), "invalid deBruijn index; while creating 'UPLCVar' instance, deBruijn index was: " + this._deBruijn);
            }
            return Object.defineProperty(_, "UPLCTag", {
                get: function() {
                    return n.BitStream.fromBinStr("0000");
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_.prototype, "deBruijn", {
                get: function() {
                    return this._deBruijn;
                },
                enumerable: !1,
                configurable: !0
            }), _.prototype.clone = function() {
                return new _(this.deBruijn);
            }, _;
        })();
        return nf.UPLCVar = o, nf;
    }
    var sf = {}, f6;
    function ep() {
        if (f6) return sf;
        f6 = 1, Object.defineProperty(sf, "__esModule", {
            value: !0
        }), sf.Delay = void 0;
        var n = f_(), t = (function() {
            function e(o) {
                this.delayedTerm = o;
            }
            return Object.defineProperty(e, "UPLCTag", {
                get: function() {
                    return n.BitStream.fromBinStr("0001");
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.clone = function() {
                return new e(this.delayedTerm.clone());
            }, e;
        })();
        return sf.Delay = t, sf;
    }
    var cf = {}, g6;
    function Nl() {
        if (g6) return cf;
        g6 = 1, Object.defineProperty(cf, "__esModule", {
            value: !0
        }), cf.Lambda = void 0;
        var n = f_(), t = (function() {
            function e(o) {
                this.body = o;
            }
            return Object.defineProperty(e, "UPLCTag", {
                get: function() {
                    return n.BitStream.fromBinStr("0010");
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.clone = function() {
                return new e(this.body.clone());
            }, e;
        })();
        return cf.Lambda = t, cf;
    }
    var Rc = {}, df = {}, ew = {}, p6;
    function rp() {
        return p6 || (p6 = 1, (function(n) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.builtinTagFromString = n.builtinTagToString = n.isV2Supported = n.isV1Supported = n.getNRequiredForces = n.isUPLCBuiltinTag = n.UPLCBuiltinTag = void 0;
            var t = Xi(), e;
            (function(p) {
                p[p.addInteger = 0] = "addInteger", p[p.subtractInteger = 1] = "subtractInteger", p[p.multiplyInteger = 2] = "multiplyInteger", p[p.divideInteger = 3] = "divideInteger", p[p.quotientInteger = 4] = "quotientInteger", p[p.remainderInteger = 5] = "remainderInteger", p[p.modInteger = 6] = "modInteger", p[p.equalsInteger = 7] = "equalsInteger", p[p.lessThanInteger = 8] = "lessThanInteger", p[p.lessThanEqualInteger = 9] = "lessThanEqualInteger", p[p.appendByteString = 10] = "appendByteString", p[p.consByteString = 11] = "consByteString", p[p.sliceByteString = 12] = "sliceByteString", p[p.lengthOfByteString = 13] = "lengthOfByteString", p[p.indexByteString = 14] = "indexByteString", p[p.equalsByteString = 15] = "equalsByteString", p[p.lessThanByteString = 16] = "lessThanByteString", p[p.lessThanEqualsByteString = 17] = "lessThanEqualsByteString", p[p.sha2_256 = 18] = "sha2_256", p[p.sha3_256 = 19] = "sha3_256", p[p.blake2b_256 = 20] = "blake2b_256", p[p.verifyEd25519Signature = 21] = "verifyEd25519Signature", p[p.appendString = 22] = "appendString", p[p.equalsString = 23] = "equalsString", p[p.encodeUtf8 = 24] = "encodeUtf8", p[p.decodeUtf8 = 25] = "decodeUtf8", p[p.ifThenElse = 26] = "ifThenElse", p[p.chooseUnit = 27] = "chooseUnit", p[p.trace = 28] = "trace", p[p.fstPair = 29] = "fstPair", p[p.sndPair = 30] = "sndPair", p[p.chooseList = 31] = "chooseList", p[p.mkCons = 32] = "mkCons", p[p.headList = 33] = "headList", p[p.tailList = 34] = "tailList", p[p.nullList = 35] = "nullList", p[p.chooseData = 36] = "chooseData", p[p.constrData = 37] = "constrData", p[p.mapData = 38] = "mapData", p[p.listData = 39] = "listData", p[p.iData = 40] = "iData", p[p.bData = 41] = "bData", p[p.unConstrData = 42] = "unConstrData", p[p.unMapData = 43] = "unMapData", p[p.unListData = 44] = "unListData", p[p.unIData = 45] = "unIData", p[p.unBData = 46] = "unBData", p[p.equalsData = 47] = "equalsData", p[p.mkPairData = 48] = "mkPairData", p[p.mkNilData = 49] = "mkNilData", p[p.mkNilPairData = 50] = "mkNilPairData", p[p.serialiseData = 51] = "serialiseData", p[p.verifyEcdsaSecp256k1Signature = 52] = "verifyEcdsaSecp256k1Signature", p[p.verifySchnorrSecp256k1Signature = 53] = "verifySchnorrSecp256k1Signature", p[p.bls12_381_G1_add = 54] = "bls12_381_G1_add", p[p.bls12_381_G1_neg = 55] = "bls12_381_G1_neg", p[p.bls12_381_G1_scalarMul = 56] = "bls12_381_G1_scalarMul", p[p.bls12_381_G1_equal = 57] = "bls12_381_G1_equal", p[p.bls12_381_G1_hashToGroup = 58] = "bls12_381_G1_hashToGroup", p[p.bls12_381_G1_compress = 59] = "bls12_381_G1_compress", p[p.bls12_381_G1_uncompress = 60] = "bls12_381_G1_uncompress", p[p.bls12_381_G2_add = 61] = "bls12_381_G2_add", p[p.bls12_381_G2_neg = 62] = "bls12_381_G2_neg", p[p.bls12_381_G2_scalarMul = 63] = "bls12_381_G2_scalarMul", p[p.bls12_381_G2_equal = 64] = "bls12_381_G2_equal", p[p.bls12_381_G2_hashToGroup = 65] = "bls12_381_G2_hashToGroup", p[p.bls12_381_G2_compress = 66] = "bls12_381_G2_compress", p[p.bls12_381_G2_uncompress = 67] = "bls12_381_G2_uncompress", p[p.bls12_381_millerLoop = 68] = "bls12_381_millerLoop", p[p.bls12_381_mulMlResult = 69] = "bls12_381_mulMlResult", p[p.bls12_381_finalVerify = 70] = "bls12_381_finalVerify", p[p.keccak_256 = 71] = "keccak_256", p[p.blake2b_224 = 72] = "blake2b_224", p[p.integerToByteString = 73] = "integerToByteString", p[p.byteStringToInteger = 74] = "byteStringToInteger", p[p.andByteString = 75] = "andByteString", p[p.orByteString = 76] = "orByteString", p[p.xorByteString = 77] = "xorByteString", p[p.complementByteString = 78] = "complementByteString", p[p.readBit = 79] = "readBit", p[p.writeBits = 80] = "writeBits", p[p.replicateByte = 81] = "replicateByte", p[p.shiftByteString = 82] = "shiftByteString", p[p.rotateByteString = 83] = "rotateByteString", p[p.countSetBits = 84] = "countSetBits", p[p.findFirstSetBit = 85] = "findFirstSetBit", p[p.ripemd_160 = 86] = "ripemd_160";
            })(e = n.UPLCBuiltinTag || (n.UPLCBuiltinTag = {})), Object.freeze(e);
            function o(p) {
                return p >>> 0 === p;
            }
            var _ = Object.values(e).reduce(function(p, g) {
                return o(g) && g > p ? g : p;
            }, 0);
            function a(p) {
                return o(p) && p <= _;
            }
            n.isUPLCBuiltinTag = a;
            function c(p) {
                if ((0, t.assert)(a(p), "in getNRequiredForces; the function is specific for UPLCBuiltinTags; input was: ".concat(p)), p === e.ifThenElse || p === e.chooseUnit || p === e.trace || p === e.mkCons || p === e.headList || p === e.tailList || p === e.nullList || p === e.chooseData) return 1;
                if (p === e.fstPair || p === e.sndPair || p === e.chooseList) return 2;
                if (p <= 25 || p >= e.constrData) return 0;
                throw new Error("'getNRequiredForces' did not match any tag; the input was: " + p);
            }
            n.getNRequiredForces = c;
            function s(p) {
                return a(p) && p <= 50;
            }
            n.isV1Supported = s;
            function u(p) {
                return a(p);
            }
            n.isV2Supported = u;
            function l(p) {
                switch(p){
                    case e.addInteger:
                        return "addInteger";
                    case e.subtractInteger:
                        return "subtractInteger";
                    case e.multiplyInteger:
                        return "multiplyInteger";
                    case e.divideInteger:
                        return "divideInteger";
                    case e.quotientInteger:
                        return "quotientInteger";
                    case e.remainderInteger:
                        return "remainderInteger";
                    case e.modInteger:
                        return "modInteger";
                    case e.equalsInteger:
                        return "equalsInteger";
                    case e.lessThanInteger:
                        return "lessThanInteger";
                    case e.lessThanEqualInteger:
                        return "lessThanEqualsInteger";
                    case e.appendByteString:
                        return "appendByteString";
                    case e.consByteString:
                        return "consByteString";
                    case e.sliceByteString:
                        return "sliceByteString";
                    case e.lengthOfByteString:
                        return "lengthOfByteString";
                    case e.indexByteString:
                        return "indexByteString";
                    case e.equalsByteString:
                        return "equalsByteString";
                    case e.lessThanByteString:
                        return "lessThanByteString";
                    case e.lessThanEqualsByteString:
                        return "lessThanEqualsByteString";
                    case e.sha2_256:
                        return "sha2_256";
                    case e.sha3_256:
                        return "sha3_256";
                    case e.blake2b_256:
                        return "blake2b_256";
                    case e.verifyEd25519Signature:
                        return "verifyEd25519Signature";
                    case e.appendString:
                        return "appendString";
                    case e.equalsString:
                        return "equalsString";
                    case e.encodeUtf8:
                        return "encodeUtf8";
                    case e.decodeUtf8:
                        return "decodeUtf8";
                    case e.ifThenElse:
                        return "ifThenElse";
                    case e.chooseUnit:
                        return "chooseUnit";
                    case e.trace:
                        return "trace";
                    case e.fstPair:
                        return "fstPair";
                    case e.sndPair:
                        return "sndPair";
                    case e.chooseList:
                        return "chooseList";
                    case e.mkCons:
                        return "mkCons";
                    case e.headList:
                        return "headList";
                    case e.tailList:
                        return "tailList";
                    case e.nullList:
                        return "nullList";
                    case e.chooseData:
                        return "chooseData";
                    case e.constrData:
                        return "constrData";
                    case e.mapData:
                        return "mapData";
                    case e.listData:
                        return "listData";
                    case e.iData:
                        return "iData";
                    case e.bData:
                        return "bData";
                    case e.unConstrData:
                        return "unConstrData";
                    case e.unMapData:
                        return "unMapData";
                    case e.unListData:
                        return "unListData";
                    case e.unIData:
                        return "unIData";
                    case e.unBData:
                        return "unBData";
                    case e.equalsData:
                        return "equalsData";
                    case e.mkPairData:
                        return "mkPairData";
                    case e.mkNilData:
                        return "mkNilData";
                    case e.mkNilPairData:
                        return "mkNilPairData";
                    case e.serialiseData:
                        return "serialiseData";
                    case e.verifyEcdsaSecp256k1Signature:
                        return "verifyEcdsaSecp256k1Signature";
                    case e.verifySchnorrSecp256k1Signature:
                        return "verifySchnorrSecp256k1Signature";
                    case e.bls12_381_G1_add:
                        return "bls12_381_G1_add";
                    case e.bls12_381_G1_neg:
                        return "bls12_381_G1_neg";
                    case e.bls12_381_G1_scalarMul:
                        return "bls12_381_G1_scalarMul";
                    case e.bls12_381_G1_equal:
                        return "bls12_381_G1_equal";
                    case e.bls12_381_G1_hashToGroup:
                        return "bls12_381_G1_hashToGroup";
                    case e.bls12_381_G1_compress:
                        return "bls12_381_G1_compress";
                    case e.bls12_381_G1_uncompress:
                        return "bls12_381_G1_uncompress";
                    case e.bls12_381_G2_add:
                        return "bls12_381_G2_add";
                    case e.bls12_381_G2_neg:
                        return "bls12_381_G2_neg";
                    case e.bls12_381_G2_scalarMul:
                        return "bls12_381_G2_scalarMul";
                    case e.bls12_381_G2_equal:
                        return "bls12_381_G2_equal";
                    case e.bls12_381_G2_hashToGroup:
                        return "bls12_381_G2_hashToGroup";
                    case e.bls12_381_G2_compress:
                        return "bls12_381_G2_compress";
                    case e.bls12_381_G2_uncompress:
                        return "bls12_381_G2_uncompress";
                    case e.bls12_381_millerLoop:
                        return "bls12_381_millerLoop";
                    case e.bls12_381_mulMlResult:
                        return "bls12_381_mulMlResult";
                    case e.bls12_381_finalVerify:
                        return "bls12_381_finalVerify";
                    case e.keccak_256:
                        return "keccak_256";
                    case e.blake2b_224:
                        return "blake2b_224";
                    case e.integerToByteString:
                        return "integerToByteString";
                    case e.byteStringToInteger:
                        return "byteStringToInteger";
                    case e.andByteString:
                        return "andByteString";
                    case e.orByteString:
                        return "orByteString";
                    case e.xorByteString:
                        return "xorByteString";
                    case e.complementByteString:
                        return "complementByteString";
                    case e.readBit:
                        return "readBit";
                    case e.writeBits:
                        return "writeBits";
                    case e.replicateByte:
                        return "replicateByte";
                    case e.shiftByteString:
                        return "shiftByteString";
                    case e.rotateByteString:
                        return "rotateByteString";
                    case e.countSetBits:
                        return "countSetBits";
                    case e.findFirstSetBit:
                        return "findFirstSetBit";
                    case e.ripemd_160:
                        return "ripemd_160";
                    default:
                        return "";
                }
            }
            n.builtinTagToString = l;
            function f(p) {
                switch(p.trim()){
                    case "addInteger":
                        return e.addInteger;
                    case "subtractInteger":
                        return e.subtractInteger;
                    case "multiplyInteger":
                        return e.multiplyInteger;
                    case "divideInteger":
                        return e.divideInteger;
                    case "quotientInteger":
                        return e.quotientInteger;
                    case "remainderInteger":
                        return e.remainderInteger;
                    case "modInteger":
                        return e.modInteger;
                    case "equalsInteger":
                        return e.equalsInteger;
                    case "lessThanInteger":
                        return e.lessThanInteger;
                    case "lessThanEqualInteger":
                        return e.lessThanEqualInteger;
                    case "lessThanEqualsInteger":
                        return e.lessThanEqualInteger;
                    case "appendByteString":
                        return e.appendByteString;
                    case "consByteString":
                        return e.consByteString;
                    case "sliceByteString":
                        return e.sliceByteString;
                    case "lengthOfByteString":
                        return e.lengthOfByteString;
                    case "indexByteString":
                        return e.indexByteString;
                    case "equalsByteString":
                        return e.equalsByteString;
                    case "lessThanByteString":
                        return e.lessThanByteString;
                    case "lessThanEqualsByteString":
                        return e.lessThanEqualsByteString;
                    case "sha2_256":
                        return e.sha2_256;
                    case "sha3_256":
                        return e.sha3_256;
                    case "blake2b_256":
                        return e.blake2b_256;
                    case "verifyEd25519Signature":
                        return e.verifyEd25519Signature;
                    case "appendString":
                        return e.appendString;
                    case "equalsString":
                        return e.equalsString;
                    case "encodeUtf8":
                        return e.encodeUtf8;
                    case "decodeUtf8":
                        return e.decodeUtf8;
                    case "ifThenElse":
                        return e.ifThenElse;
                    case "chooseUnit":
                        return e.chooseUnit;
                    case "trace":
                        return e.trace;
                    case "fstPair":
                        return e.fstPair;
                    case "sndPair":
                        return e.sndPair;
                    case "chooseList":
                        return e.chooseList;
                    case "mkCons":
                        return e.mkCons;
                    case "headList":
                        return e.headList;
                    case "tailList":
                        return e.tailList;
                    case "nullList":
                        return e.nullList;
                    case "chooseData":
                        return e.chooseData;
                    case "constrData":
                        return e.constrData;
                    case "mapData":
                        return e.mapData;
                    case "listData":
                        return e.listData;
                    case "iData":
                        return e.iData;
                    case "bData":
                        return e.bData;
                    case "unConstrData":
                        return e.unConstrData;
                    case "unMapData":
                        return e.unMapData;
                    case "unListData":
                        return e.unListData;
                    case "unIData":
                        return e.unIData;
                    case "unBData":
                        return e.unBData;
                    case "equalsData":
                        return e.equalsData;
                    case "mkPairData":
                        return e.mkPairData;
                    case "mkNilData":
                        return e.mkNilData;
                    case "mkNilPairData":
                        return e.mkNilPairData;
                    case "serialiseData":
                        return e.serialiseData;
                    case "verifyEcdsaSecp256k1Signature":
                        return e.verifyEcdsaSecp256k1Signature;
                    case "verifySchnorrSecp256k1Signature":
                        return e.verifySchnorrSecp256k1Signature;
                    case "bls12_381_G1_add":
                        return e.bls12_381_G1_add;
                    case "bls12_381_G1_neg":
                        return e.bls12_381_G1_neg;
                    case "bls12_381_G1_scalarMul":
                        return e.bls12_381_G1_scalarMul;
                    case "bls12_381_G1_equal":
                        return e.bls12_381_G1_equal;
                    case "bls12_381_G1_hashToGroup":
                        return e.bls12_381_G1_hashToGroup;
                    case "bls12_381_G1_compress":
                        return e.bls12_381_G1_compress;
                    case "bls12_381_G1_uncompress":
                        return e.bls12_381_G1_uncompress;
                    case "bls12_381_G2_add":
                        return e.bls12_381_G2_add;
                    case "bls12_381_G2_neg":
                        return e.bls12_381_G2_neg;
                    case "bls12_381_G2_scalarMul":
                        return e.bls12_381_G2_scalarMul;
                    case "bls12_381_G2_equal":
                        return e.bls12_381_G2_equal;
                    case "bls12_381_G2_hashToGroup":
                        return e.bls12_381_G2_hashToGroup;
                    case "bls12_381_G2_compress":
                        return e.bls12_381_G2_compress;
                    case "bls12_381_G2_uncompress":
                        return e.bls12_381_G2_uncompress;
                    case "bls12_381_millerLoop":
                        return e.bls12_381_millerLoop;
                    case "bls12_381_mulMlResult":
                        return e.bls12_381_mulMlResult;
                    case "bls12_381_finalVerify":
                        return e.bls12_381_finalVerify;
                    case "keccak_256":
                        return e.keccak_256;
                    case "blake2b_224":
                        return e.blake2b_224;
                    case "integerToByteString":
                        return e.integerToByteString;
                    case "byteStringToInteger":
                        return e.byteStringToInteger;
                    case "andByteString":
                        return e.andByteString;
                    case "orByteString":
                        return e.orByteString;
                    case "xorByteString":
                        return e.xorByteString;
                    case "complementByteString":
                        return e.complementByteString;
                    case "readBit":
                        return e.readBit;
                    case "writeBits":
                        return e.writeBits;
                    case "replicateByte":
                        return e.replicateByte;
                    case "shiftByteString":
                        return e.shiftByteString;
                    case "rotateByteString":
                        return e.rotateByteString;
                    case "countSetBits":
                        return e.countSetBits;
                    case "findFirstSetBit":
                        return e.findFirstSetBit;
                    case "ripemd_160":
                        return e.ripemd_160;
                    default:
                        throw new Error("unknow builtin: " + p);
                }
            }
            n.builtinTagFromString = f;
        })(ew)), ew;
    }
    var b6;
    function Ml() {
        if (b6) return df;
        b6 = 1, Object.defineProperty(df, "__esModule", {
            value: !0
        }), df.Builtin = void 0;
        var n = f_(), t = rp(), e = Xi(), o = (function() {
            function _(a) {
                (0, e.assert)((0, t.isUPLCBuiltinTag)(a), "cannot instatinitate a 'Builtin' using tag: " + a.toString()), this._tag = a;
            }
            return Object.defineProperty(_, "UPLCTag", {
                get: function() {
                    return n.BitStream.fromBinStr("0111");
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_.prototype, "tag", {
                get: function() {
                    return this._tag;
                },
                enumerable: !1,
                configurable: !0
            }), _.prototype.clone = function() {
                return new _(this.tag);
            }, Object.defineProperty(_, "addInteger", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.addInteger);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "subtractInteger", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.subtractInteger);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "multiplyInteger", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.multiplyInteger);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "divideInteger", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.divideInteger);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "quotientInteger", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.quotientInteger);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "remainderInteger", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.remainderInteger);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "modInteger", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.modInteger);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "equalsInteger", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.equalsInteger);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "lessThanInteger", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.lessThanInteger);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "lessThanEqualInteger", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.lessThanEqualInteger);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "appendByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.appendByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "consByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.consByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "sliceByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.sliceByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "lengthOfByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.lengthOfByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "indexByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.indexByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "equalsByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.equalsByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "lessThanByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.lessThanByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "lessThanEqualsByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.lessThanEqualsByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "sha2_256", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.sha2_256);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "sha3_256", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.sha3_256);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "blake2b_256", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.blake2b_256);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "verifyEd25519Signature", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.verifyEd25519Signature);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "appendString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.appendString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "equalsString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.equalsString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "encodeUtf8", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.encodeUtf8);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "decodeUtf8", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.decodeUtf8);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "ifThenElse", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.ifThenElse);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "chooseUnit", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.chooseUnit);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "trace", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.trace);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "fstPair", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.fstPair);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "sndPair", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.sndPair);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "chooseList", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.chooseList);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "mkCons", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.mkCons);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "headList", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.headList);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "tailList", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.tailList);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "nullList", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.nullList);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "chooseData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.chooseData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "constrData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.constrData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "mapData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.mapData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "listData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.listData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "iData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.iData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "unConstrData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.unConstrData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "unMapData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.unMapData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "unListData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.unListData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "unIData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.unIData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "unBData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.unBData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "equalsData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.equalsData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "mkPairData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.mkPairData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "mkNilData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.mkNilData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "mkNilPairData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.mkNilPairData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "serialiseData", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.serialiseData);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "verifyEcdsaSecp256k1Signature", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.verifyEcdsaSecp256k1Signature);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "verifySchnorrSecp256k1Signature", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.verifySchnorrSecp256k1Signature);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G1_add", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G1_add);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G1_neg", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G1_neg);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G1_scalarMul", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G1_scalarMul);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G1_equal", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G1_equal);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G1_hashToGroup", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G1_hashToGroup);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G1_compress", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G1_compress);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G1_uncompress", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G1_uncompress);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G2_add", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G2_add);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G2_neg", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G2_neg);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G2_scalarMul", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G2_scalarMul);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G2_equal", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G2_equal);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G2_hashToGroup", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G2_hashToGroup);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G2_compress", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G2_compress);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_G2_uncompress", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_G2_uncompress);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_millerLoop", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_millerLoop);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_mulMlResult", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_mulMlResult);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "bls12_381_finalVerify", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.bls12_381_finalVerify);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "keccak_256", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.keccak_256);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "blake2b_224", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.blake2b_224);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "integerToByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.integerToByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "byteStringToInteger", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.byteStringToInteger);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "andByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.andByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "orByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.orByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "xorByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.xorByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "complementByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.complementByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "readBit", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.readBit);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "writeBits", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.writeBits);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "replicateByte", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.replicateByte);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "shiftByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.shiftByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "rotateByteString", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.rotateByteString);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "countSetBits", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.countSetBits);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "findFirstSetBit", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.findFirstSetBit);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_, "ripemd_160", {
                get: function() {
                    return new _(t.UPLCBuiltinTag.ripemd_160);
                },
                enumerable: !1,
                configurable: !0
            }), _;
        })();
        return df.Builtin = o, df;
    }
    var jo = {}, uf = {}, lf = {}, w6;
    function Ll() {
        if (w6) return lf;
        w6 = 1, Object.defineProperty(lf, "__esModule", {
            value: !0
        }), lf.Pair = void 0;
        var n = (function() {
            function t(e, o) {
                this.fst = e, this.snd = o;
            }
            return Object.defineProperty(t.prototype, Symbol.toStringTag, {
                get: function() {
                    return "Pair( ".concat(this.fst, ", ").concat(this.snd, " )");
                },
                enumerable: !1,
                configurable: !0
            }), t.isStrictInstance = function(e) {
                return e == null ? !1 : Object.getPrototypeOf(e) === t.prototype;
            }, t.prototype.asObj = function() {
                return {
                    fst: this.fst,
                    snd: this.snd
                };
            }, t;
        })();
        return lf.Pair = n, lf;
    }
    var Uc = {}, y6;
    function zl() {
        return y6 || (y6 = 1, (function(n) {
            var t = Uc && Uc.__read || function(j, w) {
                var S = typeof Symbol == "function" && j[Symbol.iterator];
                if (!S) return j;
                var b = S.call(j), k, F = [], Y;
                try {
                    for(; (w === void 0 || w-- > 0) && !(k = b.next()).done;)F.push(k.value);
                } catch (K) {
                    Y = {
                        error: K
                    };
                } finally{
                    try {
                        k && !k.done && (S = b.return) && S.call(b);
                    } finally{
                        if (Y) throw Y.error;
                    }
                }
                return F;
            }, e = Uc && Uc.__spreadArray || function(j, w, S) {
                if (S || arguments.length === 2) for(var b = 0, k = w.length, F; b < k; b++)(F || !(b in w)) && (F || (F = Array.prototype.slice.call(w, 0, b)), F[b] = w[b]);
                return j.concat(F || Array.prototype.slice.call(w));
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.constPairTypeUtils = n.constListTypeUtils = n.constTypeToStirng = n.constTypeTagToStirng = n.isConstTypeTag = n.constT = n.constTypeEq = n.isWellFormedConstType = n.ConstTyTag = void 0;
            var o = Xi(), _;
            (function(j) {
                j[j.int = 0] = "int", j[j.byteStr = 1] = "byteStr", j[j.str = 2] = "str", j[j.unit = 3] = "unit", j[j.bool = 4] = "bool", j[j.list = 5] = "list", j[j.pair = 6] = "pair", j[j.data = 8] = "data", j[j.bls12_381_G1_element = 9] = "bls12_381_G1_element", j[j.bls12_381_G2_element = 10] = "bls12_381_G2_element", j[j.bls12_381_MlResult = 11] = "bls12_381_MlResult";
            })(_ = n.ConstTyTag || (n.ConstTyTag = {}));
            function a(j) {
                if (!Array.isArray(j) || j.length === 0 || !j.every(s)) return !1;
                if (j[0] !== _.list && j[0] !== _.pair) return j.length === 1;
                var w = [
                    1
                ];
                if (j[0] !== _.list && j[0] !== _.pair) return !1;
                function S() {
                    (0, o.assert)(w.length > 0, new Error("while calling 'topStackMinusOne' in 'ConstEmptyList._isWellFormedListType'; stack was empty"));
                    var F = w[w.length - 1] - 1;
                    if (F < 0) throw new Error("while checking for type correctness in empty constant list; stack element was less than 0");
                    w[w.length - 1] = F;
                }
                for(var b = 0; b < j.length; b++){
                    var k = j[b];
                    if (k === _.list) {
                        if (!(b + 1 < j.length)) return !1;
                        S(), w.push(1);
                    } else if (k === _.pair) {
                        if (!(b + 2 < j.length)) return !1;
                        S(), w.push(2);
                    } else S();
                    for(; w.length > 0 && w[w.length - 1] === 0;)w.pop();
                    if (w.length === 0 && b !== j.length - 1 || b === j.length - 1 && w.length !== 0) return !1;
                }
                return !0;
            }
            n.isWellFormedConstType = a;
            function c(j, w) {
                return j.length !== w.length ? !1 : j.every(function(S, b) {
                    return S === w[b];
                });
            }
            n.constTypeEq = c, n.constT = Object.freeze({
                int: Object.freeze([
                    _.int
                ]),
                byteStr: Object.freeze([
                    _.byteStr
                ]),
                str: Object.freeze([
                    _.str
                ]),
                unit: Object.freeze([
                    _.unit
                ]),
                bool: Object.freeze([
                    _.bool
                ]),
                listOf: function(j) {
                    return (0, o.assert)(a(j), "provided argument to 'constT.listOf' should be a well formed type, try using types exposed by  the 'constT' object itself"), Object.freeze(e([
                        _.list
                    ], t(j), !1));
                },
                pairOf: function(j, w) {
                    return (0, o.assert)(a(j) && a(w), "provided argument to 'constT.pairOf' should be a well formed type, try using types exposed by  the 'constT' object itself"), Object.freeze(e(e([
                        _.pair
                    ], t(j), !1), t(w), !1));
                },
                data: Object.freeze([
                    _.data
                ]),
                bls12_381_G1_element: Object.freeze([
                    _.bls12_381_G1_element
                ]),
                bls12_381_G2_element: Object.freeze([
                    _.bls12_381_G2_element
                ]),
                bls12_381_MlResult: Object.freeze([
                    _.bls12_381_MlResult
                ])
            });
            function s(j) {
                return j = j, j === _.int || j === _.byteStr || j === _.str || j === _.unit || j === _.bool || j === _.list || j === _.pair || j === _.data || j === _.bls12_381_G1_element || j === _.bls12_381_G2_element || j === _.bls12_381_MlResult;
            }
            n.isConstTypeTag = s;
            function u(j) {
                switch(j){
                    case _.int:
                        return "integer";
                    case _.byteStr:
                        return "bytestring";
                    case _.str:
                        return "string";
                    case _.unit:
                        return "unit";
                    case _.bool:
                        return "boolean";
                    case _.list:
                        return "list";
                    case _.pair:
                        return "pair";
                    case _.data:
                        return "data";
                    case _.bls12_381_G1_element:
                        return "bls12_381_G1_element";
                    case _.bls12_381_G2_element:
                        return "bls12_381_G2_element";
                    case _.bls12_381_MlResult:
                        return "bls12_381_MlResult";
                    default:
                        throw new Error("'constTypeTAgToStirng' is supposed to have a member of the 'ConstTy' enum as input but got: " + j);
                }
            }
            n.constTypeTagToStirng = u;
            function l(j) {
                return j.map(u).join(" ");
            }
            n.constTypeToStirng = l;
            function f(j) {
                return (0, o.assert)(j.length > 0 && j[0] === _.list && a(j), "in 'constListTypeUtils.getTypeArgument', input type was not a valid list type"), j.slice(1);
            }
            function p(j) {
                (0, o.assert)(j.length > 0 && j[0] === _.list, "in 'constListTypeUtils.getTypeArgument', input type was not a valid list type");
                var w = j.slice(1);
                if (w.length !== 0) {
                    if (a(w)) return w;
                    if (w[0] !== _.list && w[0] !== _.pair) return [
                        w[0]
                    ];
                    if (w[0] === _.list) {
                        var S = p(w);
                        return S === void 0 ? void 0 : e([
                            _.list
                        ], t(S), !1);
                    }
                    if (w[0] === _.pair) {
                        var b = B(w);
                        if (b === void 0) return;
                        var k = I(w);
                        return k === void 0 ? void 0 : n.constT.pairOf(b, k);
                    }
                }
            }
            n.constListTypeUtils = Object.freeze({
                getTypeArgument: f,
                nonWellFormed: Object.freeze({
                    getNonWellFormedTypeArgument: p
                })
            });
            function g(j) {
                (0, o.assert)(j.length > 0 && j[0] === _.pair && a(j), "in 'constPairTypeUtils.getFirstTypeArgument', input type was not a valid pair type");
                var w = j.slice(1);
                if (w.length === 0) throw new Error("'pairTy' was supposed to be well formed but is missing arguments for 'ConstTyTag.pair'");
                if (w[0] !== _.list && w[0] !== _.pair) return [
                    j[1]
                ];
                if (w[0] === _.list) {
                    var S = p(w);
                    if (S === void 0) throw new Error("in 'getConstPairFirstTypeArgument' (exported as 'constPairTypeUtils.getFirstTypeArgument'); 'listTyArg' was expected to be a well formed type but was missing some arguments to be well formed; this case sould have trown while checking for the 'pairTy' to be well formed");
                    return e([
                        _.list
                    ], t(S), !1);
                }
                if (w[0] === _.pair) {
                    var b = B(w);
                    if (b === void 0) throw new Error("in 'getConstPairFirstTypeArgument'; 'firstArg' was expected to be a well formed type but was missing some arguments to be well formed; this case sould have trown while checking for the 'pairTy' to be well formed");
                    var k = I(w);
                    if (k === void 0) throw new Error("in 'getConstPairFirstTypeArgument'; 'secondArg' was expected to be a well formed type but was missing some arguments to be well formed; this case sould have trown while checking for the 'pairTy' to be well formed");
                    return n.constT.pairOf(b, k);
                }
                throw new Error("unexpected execution flow; 'getConstPairFirstTypeArgument' did not match any `ConstTyTag` as first argument");
            }
            function h(j) {
                return j.slice(1 + g(j).length);
            }
            function B(j) {
                (0, o.assert)(j.length > 0 && j[0] === _.pair, "in 'constPairTypeUtils.getFirstTypeArgument', input type was not a valid pair type");
                var w = j.slice(1);
                if (!(w.length < 2)) {
                    if (w[0] !== _.list && w[0] !== _.pair) return [
                        j[1]
                    ];
                    if (w[0] === _.list) {
                        var S = p(w);
                        return S === void 0 ? void 0 : e([
                            _.list
                        ], t(S), !1);
                    }
                    if (w[0] === _.pair) {
                        var b = B(w);
                        if (b === void 0) return;
                        var k = I(w);
                        return k === void 0 ? void 0 : n.constT.pairOf(b, k);
                    }
                    throw new Error("unexpected execution flow; 'getNonWellFormedConstPairFirstTypeArgument' did not match any `ConstTyTag` as first argument");
                }
            }
            function I(j) {
                var w = B(j);
                if (w !== void 0) {
                    var S = j.slice(1 + w.length);
                    if (S.length !== 0) {
                        if (S[0] !== _.list && S[0] !== _.pair) return [
                            S[0]
                        ];
                        if (S[0] === _.list) {
                            var b = p(S);
                            return b === void 0 ? void 0 : e([
                                _.list
                            ], t(b), !1);
                        }
                        if (S[0] === _.pair) {
                            var k = B(S);
                            if (k === void 0) return;
                            var F = I(S);
                            return F === void 0 ? void 0 : n.constT.pairOf(k, F);
                        }
                        throw new Error("unexpected execution flow; 'getNonWellFormedConstPairFirstTypeArgument' did not match any `ConstTyTag` as first argument");
                    }
                }
            }
            n.constPairTypeUtils = Object.freeze({
                getFirstTypeArgument: g,
                getSecondTypeArgument: h,
                nonWellFormed: Object.freeze({
                    getFirstTypeArgument: B,
                    getSecondTypeArgument: I
                })
            });
        })(Uc)), Uc;
    }
    var sn = {}, So = {}, h6;
    function vc() {
        if (h6) return So;
        h6 = 1;
        var n = So && So.__read || function(c, s) {
            var u = typeof Symbol == "function" && c[Symbol.iterator];
            if (!u) return c;
            var l = u.call(c), f, p = [], g;
            try {
                for(; (s === void 0 || s-- > 0) && !(f = l.next()).done;)p.push(f.value);
            } catch (h) {
                g = {
                    error: h
                };
            } finally{
                try {
                    f && !f.done && (u = l.return) && u.call(l);
                } finally{
                    if (g) throw g.error;
                }
            }
            return p;
        }, t = So && So.__spreadArray || function(c, s, u) {
            if (u || arguments.length === 2) for(var l = 0, f = s.length, p; l < f; l++)(p || !(l in s)) && (p || (p = Array.prototype.slice.call(s, 0, l)), p[l] = s[l]);
            return c.concat(p || Array.prototype.slice.call(s));
        };
        Object.defineProperty(So, "__esModule", {
            value: !0
        }), So.ByteString = void 0;
        var e = ve();
        function o(c) {
            if (typeof c != "string") return !1;
            for(var s = c.toLowerCase(), u = "987654321abcdef0", l = 0; l < s.length; l++)if (!u.includes(s[l])) return !1;
            return !0;
        }
        function _(c, s, u) {
            for(var l = [], f = 3; f < arguments.length; f++)l[f - 3] = arguments[f];
            if (!c) throw l.length > 0 && console.error.apply(console, t([], n(l), !1)), s instanceof Error ? s : new Error(s);
        }
        var a = (function() {
            function c(s) {
                typeof s == "string" && (s = s.trim().split(" ").join(""), _(o(s), "invalid hex input while constructing a ByteString: " + s), s = (0, e.fromHex)(s.length % 2 === 1 ? "0" + s : s)), s instanceof Uint8Array || (s = s.toBuffer()), _((0, e.isUint8Array)(s), "invalid Uint8Array input while constructing a ByteString"), this._bytes = s;
            }
            return c.isStrictInstance = function(s) {
                return Object.getPrototypeOf(s) === c.prototype;
            }, Object.defineProperty(c.prototype, "asString", {
                get: function() {
                    return (0, e.toHex)(this._bytes);
                },
                enumerable: !1,
                configurable: !0
            }), c.prototype.toString = function() {
                return (0, e.toHex)(this._bytes);
            }, Object.defineProperty(c.prototype, "asBytes", {
                get: function() {
                    return this._bytes.slice();
                },
                enumerable: !1,
                configurable: !0
            }), c.prototype.toBuffer = function() {
                return this._bytes.slice();
            }, c.prototype.clone = function() {
                return new c(this._bytes.slice());
            }, c.fromAscii = function(s) {
                return new c((0, e.fromAscii)(s));
            }, c.toAscii = function(s) {
                return (0, e.toAscii)(s.toBuffer());
            }, c.isValidHexValue = function(s) {
                return o(s) && s.length % 2 === 0;
            }, c;
        })();
        return So.ByteString = a, So;
    }
    var Cc = {}, la = {}, Nc = {}, ff = {}, v6;
    function ql() {
        return v6 || (v6 = 1, Object.defineProperty(ff, "__esModule", {
            value: !0
        }), ff.roDescr = void 0, ff.roDescr = Object.freeze({
            writable: !1,
            enumerable: !0,
            configurable: !1
        })), ff;
    }
    var m6;
    function np() {
        if (m6) return Nc;
        m6 = 1;
        var n = Nc && Nc.__assign || function() {
            return n = Object.assign || function(_) {
                for(var a, c = 1, s = arguments.length; c < s; c++){
                    a = arguments[c];
                    for(var u in a)Object.prototype.hasOwnProperty.call(a, u) && (_[u] = a[u]);
                }
                return _;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(Nc, "__esModule", {
            value: !0
        }), Nc.DataB = void 0;
        var t = vc(), e = ql(), o = (function() {
            function _(a) {
                a instanceof t.ByteString || (a = new t.ByteString(a));
                var c = a.clone();
                Object.defineProperties(this, {
                    bytes: n({
                        value: c
                    }, e.roDescr)
                });
            }
            return _.prototype.clone = function() {
                return new _(this.bytes);
            }, _.prototype.toJson = function() {
                return {
                    bytes: this.bytes.toString()
                };
            }, _.prototype.toString = function() {
                return "B #".concat(this.bytes.toString());
            }, _;
        })();
        return Nc.DataB = o, Nc;
    }
    var fa = {}, Eo = {}, I6;
    function y4t() {
        if (I6) return Eo;
        I6 = 1, Object.defineProperty(Eo, "__esModule", {
            value: !0
        }), Eo.unsafeForceUInt = Eo.forceBigUInt = Eo.canBeUInteger = void 0;
        function n(o) {
            return typeof o == "bigint" && o >= BigInt(0) || typeof o == "number" && o === Math.round(Math.abs(o));
        }
        Eo.canBeUInteger = n;
        function t(o) {
            if (!n(o)) throw new Error("trying to convert an integer to an unsigned Integer, the number was negative");
            return BigInt(o);
        }
        Eo.forceBigUInt = t;
        function e(o) {
            if (!n(o)) throw new Error("trying to convert an integer to an unsigned Integer, the number was negative");
            return Number(o);
        }
        return Eo.unsafeForceUInt = e, Eo;
    }
    var Oo = {}, k6;
    function Dl() {
        if (k6) return Oo;
        k6 = 1;
        var n = Oo && Oo.__read || function(o, _) {
            var a = typeof Symbol == "function" && o[Symbol.iterator];
            if (!a) return o;
            var c = a.call(o), s, u = [], l;
            try {
                for(; (_ === void 0 || _-- > 0) && !(s = c.next()).done;)u.push(s.value);
            } catch (f) {
                l = {
                    error: f
                };
            } finally{
                try {
                    s && !s.done && (a = c.return) && a.call(c);
                } finally{
                    if (l) throw l.error;
                }
            }
            return u;
        }, t = Oo && Oo.__spreadArray || function(o, _, a) {
            if (a || arguments.length === 2) for(var c = 0, s = _.length, u; c < s; c++)(u || !(c in _)) && (u || (u = Array.prototype.slice.call(_, 0, c)), u[c] = _[c]);
            return o.concat(u || Array.prototype.slice.call(_));
        };
        Object.defineProperty(Oo, "__esModule", {
            value: !0
        }), Oo.assert = void 0;
        function e(o, _, a) {
            for(var c = [], s = 3; s < arguments.length; s++)c[s - 3] = arguments[s];
            if (!o) throw c.length > 0 && console.error.apply(console, t([], n(c), !1)), a && console.error(a), _ instanceof Error ? _ : new Error(_);
        }
        return Oo.assert = e, Oo;
    }
    var B6;
    function _p() {
        if (B6) return fa;
        B6 = 1;
        var n = fa && fa.__assign || function() {
            return n = Object.assign || function(u) {
                for(var l, f = 1, p = arguments.length; f < p; f++){
                    l = arguments[f];
                    for(var g in l)Object.prototype.hasOwnProperty.call(l, g) && (u[g] = l[g]);
                }
                return u;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(fa, "__esModule", {
            value: !0
        }), fa.cborTagToConstrNumber = fa.constrNumberToCborTag = fa.DataConstr = void 0;
        var t = y4t(), e = fu(), o = Dl(), _ = ql(), a = (function() {
            function u(l, f) {
                (0, o.assert)(Array.isArray(f) && f.every(e.isData), "invalid fields passed to constructor"), Object.defineProperties(this, {
                    constr: n({
                        value: (0, t.forceBigUInt)(l)
                    }, _.roDescr),
                    fields: n({
                        value: f
                    }, _.roDescr)
                });
            }
            return u.prototype.clone = function() {
                return new u(this.constr, this.fields.map(function(l) {
                    return l.clone();
                }));
            }, u.prototype.toJson = function() {
                return {
                    constr: Number(this.constr),
                    fields: this.fields.map(function(l) {
                        return l.toJson();
                    })
                };
            }, u.prototype.toString = function() {
                return "Constr ".concat(this.constr.toString(), " [").concat(this.fields.map(function(l) {
                    return l.toString();
                }).join(","), "]");
            }, u;
        })();
        fa.DataConstr = a;
        function c(u) {
            if (u < BigInt(0)) throw new Error("an unsinged integer was negative; while constructing a CborTag from a DataConstr; tag: " + u);
            return u < BigInt(7) ? u + BigInt(121) : u < BigInt(128) ? BigInt(1273) + u : BigInt(102);
        }
        fa.constrNumberToCborTag = c;
        function s(u) {
            return u < 0 ? u : 121 <= u && u <= 127 ? u - BigInt(121) : 1280 <= u && u <= 1400 ? u - BigInt(1273) : u === BigInt(102) ? u : BigInt(-1);
        }
        return fa.cborTagToConstrNumber = s, fa;
    }
    var Mc = {}, x6;
    function ap() {
        if (x6) return Mc;
        x6 = 1;
        var n = Mc && Mc.__assign || function() {
            return n = Object.assign || function(o) {
                for(var _, a = 1, c = arguments.length; a < c; a++){
                    _ = arguments[a];
                    for(var s in _)Object.prototype.hasOwnProperty.call(_, s) && (o[s] = _[s]);
                }
                return o;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(Mc, "__esModule", {
            value: !0
        }), Mc.DataI = void 0;
        var t = ql(), e = (function() {
            function o(_) {
                _ === void 0 && (_ = 0), _ = BigInt(_), Object.defineProperties(this, {
                    int: n({
                        value: _
                    }, t.roDescr)
                });
            }
            return o.prototype.clone = function() {
                return new o(this.int);
            }, o.prototype.toJson = function() {
                return {
                    int: this.int.toString()
                };
            }, o.prototype.toString = function() {
                return "I ".concat(this.int.toString());
            }, o;
        })();
        return Mc.DataI = e, Mc;
    }
    var Lc = {}, j6;
    function op() {
        if (j6) return Lc;
        j6 = 1;
        var n = Lc && Lc.__assign || function() {
            return n = Object.assign || function(a) {
                for(var c, s = 1, u = arguments.length; s < u; s++){
                    c = arguments[s];
                    for(var l in c)Object.prototype.hasOwnProperty.call(c, l) && (a[l] = c[l]);
                }
                return a;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(Lc, "__esModule", {
            value: !0
        }), Lc.DataList = void 0;
        var t = fu(), e = Dl(), o = ql(), _ = (function() {
            function a(c) {
                (0, e.assert)(Array.isArray(c) && c.every(t.isData), "invalid list passed to constructor"), Object.defineProperties(this, {
                    list: n({
                        value: c
                    }, o.roDescr)
                });
            }
            return a.prototype.clone = function() {
                return new a(this.list.map(function(c) {
                    return c.clone();
                }));
            }, a.prototype.toJson = function() {
                return {
                    list: this.list.map(function(c) {
                        return c.toJson();
                    })
                };
            }, a.prototype.toString = function() {
                return "List [".concat(this.list.map(function(c) {
                    return c.toString();
                }).join(","), "]");
            }, a;
        })();
        return Lc.DataList = _, Lc;
    }
    var zc = {}, qc = {}, S6;
    function ip() {
        if (S6) return qc;
        S6 = 1;
        var n = qc && qc.__assign || function() {
            return n = Object.assign || function(a) {
                for(var c, s = 1, u = arguments.length; s < u; s++){
                    c = arguments[s];
                    for(var l in c)Object.prototype.hasOwnProperty.call(c, l) && (a[l] = c[l]);
                }
                return a;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(qc, "__esModule", {
            value: !0
        }), qc.DataPair = void 0;
        var t = fu(), e = Dl(), o = ql(), _ = (function() {
            function a(c, s) {
                (0, e.assert)((0, t.isData)(c) && (0, t.isData)(s), "invalid Data passed to 'DataPair' constructor; fst: ".concat(c, "; snd: ").concat(s)), Object.defineProperties(this, {
                    fst: n({
                        value: c
                    }, o.roDescr),
                    snd: n({
                        value: s
                    }, o.roDescr)
                });
            }
            return a.prototype.clone = function() {
                return new a(this.fst, this.snd);
            }, a.prototype.toString = function() {
                return "(".concat(this.fst.toString(), ",").concat(this.snd.toString(), ")");
            }, a;
        })();
        return qc.DataPair = _, qc;
    }
    var E6;
    function sp() {
        if (E6) return zc;
        E6 = 1;
        var n = zc && zc.__assign || function() {
            return n = Object.assign || function(c) {
                for(var s, u = 1, l = arguments.length; u < l; u++){
                    s = arguments[u];
                    for(var f in s)Object.prototype.hasOwnProperty.call(s, f) && (c[f] = s[f]);
                }
                return c;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(zc, "__esModule", {
            value: !0
        }), zc.DataMap = void 0;
        var t = fu(), e = ip(), o = Dl(), _ = ql(), a = (function() {
            function c(s) {
                (0, o.assert)(Array.isArray(s) && s.every(function(u) {
                    return u instanceof e.DataPair && (0, t.isData)(u.fst) && (0, t.isData)(u.snd);
                }), "invalid map passed to 'DataPair' constructor"), Object.defineProperties(this, {
                    map: n({
                        value: s
                    }, _.roDescr)
                });
            }
            return c.prototype.clone = function() {
                return new c(this.map.map(function(s) {
                    return s.clone();
                }));
            }, c.prototype.toJson = function() {
                return {
                    map: this.map.map(function(s) {
                        var u = s.fst, l = s.snd;
                        return {
                            k: u.toJson(),
                            v: l.toJson()
                        };
                    })
                };
            }, c.prototype.toString = function() {
                return "Map [".concat(this.map.map(function(s) {
                    return s.toString();
                }).join(","), "]");
            }, c;
        })();
        return zc.DataMap = a, zc;
    }
    var O6;
    function fu() {
        if (O6) return la;
        O6 = 1, Object.defineProperty(la, "__esModule", {
            value: !0
        }), la.dataFromJson = la.cloneData = la.eqData = la.isData = void 0;
        var n = np(), t = _p(), e = ap(), o = op(), _ = sp(), a = ip();
        function c(p) {
            return p != null;
        }
        function s(p) {
            if (!c(p)) return !1;
            var g = Object.getPrototypeOf(p);
            return g === t.DataConstr.prototype || g === _.DataMap.prototype || g === o.DataList.prototype || g === e.DataI.prototype || g === n.DataB.prototype;
        }
        la.isData = s;
        function u(p, g) {
            if (!(c(p) && c(g))) return !1;
            var h = Object.getPrototypeOf(p), B = Object.getPrototypeOf(g);
            if (h !== B) return !1;
            if (h === t.DataConstr.prototype) try {
                return p.constr === g.constr && p.fields.length === g.fields.length && p.fields.every(function(w, S) {
                    return u(w, g.fields[S]);
                });
            } catch  {
                return !1;
            }
            if (h === _.DataMap.prototype) {
                var I = p.map, j = g.map;
                return I.length === j.length && I.every(function(w, S) {
                    var b = j[S];
                    return u(w.fst, b.fst) && u(w.snd, b.snd);
                });
            }
            return h === o.DataList.prototype ? p.list.every(function(w, S) {
                return u(w, g.list[S]);
            }) : h === e.DataI.prototype ? p.int === g.int : h === n.DataB.prototype ? p.bytes.toString() === g.bytes.toString() : !1;
        }
        la.eqData = u;
        function l(p) {
            if (!s(p)) throw new Error("invalid data while cloning");
            return p.clone();
        }
        la.cloneData = l;
        function f(p) {
            if (typeof p != "object") throw new TypeError("unexpected input");
            var g = Object.keys(p);
            if (g.length <= 0) throw new TypeError("unexpected input");
            var h = g[0];
            if (h === "int") return new e.DataI(p[h]);
            if (h === "bytes") return new n.DataB(p[h]);
            if (h === "list") return new o.DataList(p[h].map(f));
            if (h === "map") {
                var B = p[h];
                return new _.DataMap(B.map(function(I) {
                    var j = I.k, w = I.v;
                    return new a.DataPair(f(j), f(w));
                }));
            }
            if (g.includes("constr")) return new t.DataConstr(p.constr, p.fields.map(f));
            throw new Error("unknown json format");
        }
        return la.dataFromJson = f, la;
    }
    var Dc = {}, Gc = {}, rw = {}, Hc = {}, F6;
    function c0() {
        if (F6) return Hc;
        F6 = 1;
        var n = Hc && Hc.__extends || (function() {
            var _ = function(a, c) {
                return _ = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(s, u) {
                    s.__proto__ = u;
                } || function(s, u) {
                    for(var l in u)Object.prototype.hasOwnProperty.call(u, l) && (s[l] = u[l]);
                }, _(a, c);
            };
            return function(a, c) {
                if (typeof c != "function" && c !== null) throw new TypeError("Class extends value " + String(c) + " is not a constructor or null");
                _(a, c);
                function s() {
                    this.constructor = a;
                }
                a.prototype = c === null ? Object.create(c) : (s.prototype = c.prototype, new s);
            };
        })();
        Object.defineProperty(Hc, "__esModule", {
            value: !0
        }), Hc.CborString = void 0;
        var t = Kx(), e = vc(), o = (function(_) {
            n(a, _);
            function a(c) {
                return typeof c == "string" && (c = c.split(" ").join(""), c = c.length % 2 ? "0" + c : c), _.call(this, c) || this;
            }
            return a.isStrictInstance = function(c) {
                return c != null && c instanceof a;
            }, a.fromCborObj = function(c) {
                return t.Cbor.encode(c);
            }, a.prototype.toCborObj = function() {
                return t.Cbor.parse(this);
            }, a;
        })(e.ByteString);
        return Hc.CborString = o, Hc;
    }
    var Kc = {}, Vc = {}, Fo = {}, ga = {}, gf = {}, cn = {}, A6;
    function d0() {
        return A6 || (A6 = 1, Object.defineProperty(cn, "__esModule", {
            value: !0
        }), cn.MAX_1_BYTE = cn.OVERFLOW_4_BYTES = cn.OVERFLOW_2_BYTES = cn.OVERFLOW_1_BYTE = cn.MAX_4_BYTES = cn.maxBigInt = cn.minBigInt = void 0, cn.minBigInt = BigInt("-18446744073709551616"), cn.maxBigInt = BigInt("18446744073709551615"), cn.MAX_4_BYTES = 4294967295, cn.OVERFLOW_1_BYTE = 256, cn.OVERFLOW_2_BYTES = 65536, cn.OVERFLOW_4_BYTES = 4294967296, cn.MAX_1_BYTE = 255), cn;
    }
    var T6;
    function Gl() {
        if (T6) return gf;
        T6 = 1, Object.defineProperty(gf, "__esModule", {
            value: !0
        }), gf.headerFollowingToAddInfos = void 0;
        var n = d0();
        function t(e) {
            return e < 0 ? t(-e) : e > n.MAX_4_BYTES ? 27 : e < 24 ? Number(e) : e < n.OVERFLOW_1_BYTE ? 24 : e < n.OVERFLOW_2_BYTES ? 25 : e < n.OVERFLOW_4_BYTES ? 26 : 27;
        }
        return gf.headerFollowingToAddInfos = t, gf;
    }
    var P6;
    function cp() {
        if (P6) return ga;
        P6 = 1;
        var n = ga && ga.__read || function(c, s) {
            var u = typeof Symbol == "function" && c[Symbol.iterator];
            if (!u) return c;
            var l = u.call(c), f, p = [], g;
            try {
                for(; (s === void 0 || s-- > 0) && !(f = l.next()).done;)p.push(f.value);
            } catch (h) {
                g = {
                    error: h
                };
            } finally{
                try {
                    f && !f.done && (u = l.return) && u.call(l);
                } finally{
                    if (g) throw g.error;
                }
            }
            return p;
        }, t = ga && ga.__spreadArray || function(c, s, u) {
            if (u || arguments.length === 2) for(var l = 0, f = s.length, p; l < f; l++)(p || !(l in s)) && (p || (p = Array.prototype.slice.call(s, 0, l)), p[l] = s[l]);
            return c.concat(p || Array.prototype.slice.call(s));
        };
        Object.defineProperty(ga, "__esModule", {
            value: !0
        }), ga.CborBytes = ga.isRawCborBytes = void 0;
        var e = ve(), o = Gl();
        function _(c) {
            if (typeof c != "object" || c === null) return !1;
            var s = Object.keys(c);
            return s.includes("bytes") && (0, e.isUint8Array)(c.bytes);
        }
        ga.isRawCborBytes = _;
        var a = (function() {
            function c(s, u, l) {
                this.subCborRef = l, this.chunks = s, this.addInfos = u ?? (0, o.headerFollowingToAddInfos)(this.bytes.length);
            }
            return Object.defineProperty(c.prototype, "buffer", {
                get: function() {
                    return this.bytes;
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(c.prototype, "bytes", {
                get: function() {
                    return this.chunks instanceof Uint8Array ? Uint8Array.prototype.slice.call(this.chunks) : e.concatUint8Array.apply(void 0, t([], n(this.chunks.map(function(s) {
                        return s.bytes;
                    })), !1));
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(c.prototype, "isDefiniteLength", {
                get: function() {
                    return this.chunks instanceof Uint8Array;
                },
                enumerable: !1,
                configurable: !0
            }), c.prototype.toRawObj = function() {
                return {
                    bytes: Uint8Array.prototype.slice.call(this.bytes)
                };
            }, c.prototype.clone = function() {
                var s;
                return new c(this.chunks instanceof Uint8Array ? this.chunks : this.chunks.map(function(u) {
                    return u.clone();
                }), this.addInfos, (s = this.subCborRef) === null || s === void 0 ? void 0 : s.clone());
            }, c;
        })();
        return ga.CborBytes = a, ga;
    }
    var Zc = {}, Yc = {}, R6;
    function dp() {
        return R6 || (R6 = 1, (function(n) {
            var t = Yc && Yc.__read || function(m, R) {
                var v = typeof Symbol == "function" && m[Symbol.iterator];
                if (!v) return m;
                var A = v.call(m), X, C = [], H;
                try {
                    for(; (R === void 0 || R-- > 0) && !(X = A.next()).done;)C.push(X.value);
                } catch (U) {
                    H = {
                        error: U
                    };
                } finally{
                    try {
                        X && !X.done && (v = A.return) && v.call(A);
                    } finally{
                        if (H) throw H.error;
                    }
                }
                return C;
            }, e = Yc && Yc.__spreadArray || function(m, R, v) {
                if (v || arguments.length === 2) for(var A = 0, X = R.length, C; A < X; A++)(C || !(A in R)) && (C || (C = Array.prototype.slice.call(R, 0, A)), C[A] = R[A]);
                return m.concat(C || Array.prototype.slice.call(R));
            }, o, _;
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.defineNormalProperty = n.defineFixedDeletableProperty = n.defineHiddenNormalProperty = n.defineDeletableDescriptor = n.defineNonDeletableNormalProperty = n.defineReadOnlyProperty = n.defineWritableHiddenProperty = n.defineGetterOnlyProperty = n.defineReadOnlyHiddenProperty = n.definePropertyIfNotPresent = n.defineProperty = n.freezeAll = n.deepClone = n.jsonClone = n.deepEqual = n.isSerializable = n.hasOwn = n.has_n_determined_keys = n.containsKeys = n.hasNkeys = n.hasUniqueKey = n.isObject = n.isNotArray = void 0;
            function a(m) {
                return !Array.isArray(m);
            }
            n.isNotArray = a;
            function c(m) {
                return typeof m == "object" && a(m) && m !== null && m !== void 0;
            }
            n.isObject = c;
            function s(m, R) {
                R === void 0 && (R = void 0);
                var v = Object.keys(m);
                return v.length === 1 && (typeof R < "u" ? v[0] === R : !0);
            }
            n.hasUniqueKey = s;
            function u(m, R) {
                return c(m) && Object.keys(m).length === R;
            }
            n.hasNkeys = u;
            function l(m) {
                for(var R = [], v = 1; v < arguments.length; v++)R[v - 1] = arguments[v];
                for(var A = Object.keys(m), X = 0; X < R.length; X++)if (!A.includes(R[X])) return !1;
                return !0;
            }
            n.containsKeys = l;
            function f(m, R) {
                for(var v = [], A = 2; A < arguments.length; A++)v[A - 2] = arguments[A];
                return u(m, R) && v.length === R && l.apply(void 0, e([
                    m
                ], t(v), !1));
            }
            n.has_n_determined_keys = f, n.hasOwn = (_ = (o = Object.hasOwn) !== null && o !== void 0 ? o : Object.prototype.hasOwnProperty.call) !== null && _ !== void 0 ? _ : l;
            function p(m) {
                for(var R = Object.keys(m), v = 0; v < R.length; v++){
                    var A = m[R[v]];
                    if (!(typeof A == "number" || typeof A == "bigint" || typeof A == "boolean" || typeof A == "string" || typeof A > "u")) {
                        if (Array.isArray(A)) {
                            for(var X = 0; X < A.length; X++)if (!p(A[X])) return !1;
                        } else if (typeof A == "object") {
                            if (p(A)) return !1;
                            continue;
                        } else if (typeof A == "function") return !1;
                    }
                }
                return !0;
            }
            n.isSerializable = p;
            function g(m, R) {
                if (typeof m != typeof R) return !1;
                if (m === R) return !0;
                if (Array.isArray(m)) if (Array.isArray(R)) {
                    if (m.length !== R.length) return !1;
                    for(var v = 0; v < m.length; v++)if (!g(m[v], R[v])) return !1;
                    return !0;
                } else return !1;
                else if (Array.isArray(R)) return !1;
                if (typeof m == "object") {
                    var A = Object.keys(m), X = Object.keys(R);
                    if (A.length !== A.length) return !1;
                    if (A.length === 0 && X.length === 0) return !0;
                    for(var v = 0; v < A.length; v++){
                        for(var C = !1, H = 0; H < X.length; H++)if (A[v] === X[H]) {
                            C = !0;
                            break;
                        }
                        if (C) if (g(m[A[v]], R[A[v]])) {
                            if (v === A.length - 1) return !0;
                            continue;
                        } else return !1;
                        else return !1;
                    }
                }
                return !1;
            }
            n.deepEqual = g;
            function h(m) {
                return JSON.parse(JSON.stringify(m));
            }
            n.jsonClone = h;
            function B(m) {
                var R;
                if (typeof m == "function") return O(m);
                if (typeof m == "object") {
                    if (Array.isArray(m)) {
                        R = [];
                        for(var v = 0; v < m.length; v++)R[v] = B(m[v]);
                        return R;
                    }
                    for(var A = Object.keys(m), v = 0; v < A.length; v++)R[A[v]] = B(m[A[v]]);
                    return R;
                }
                return m;
            }
            n.deepClone = B;
            function I(m) {
                if (typeof m == "object" && m !== null) for(var R = Object.keys(m), v = 0; v < R.length; v++)I(m[R[v]]);
                return Object.freeze(m);
            }
            n.freezeAll = I;
            var j = 1, w = 2, S = 4;
            function b(m, R, v, A) {
                return A === void 0 && (A = 0), Object.defineProperty(m, R, {
                    value: v,
                    writable: (A & j) === j,
                    enumerable: (A & w) === w,
                    configurable: (A & S) === S
                });
            }
            n.defineProperty = b;
            function k(m, R, v) {
                return (0, n.hasOwn)(m, R) ? m : Object.defineProperty(m, R, v);
            }
            n.definePropertyIfNotPresent = k;
            function F(m, R, v) {
                return b(m, R, v, 0);
            }
            n.defineReadOnlyHiddenProperty = F;
            function Y(m, R, v) {
                return k(m, R, {
                    get: v,
                    set: function() {},
                    configurable: !1,
                    enumerable: !0
                });
            }
            n.defineGetterOnlyProperty = Y;
            function K(m, R, v) {
                return b(m, R, v, 1);
            }
            n.defineWritableHiddenProperty = K;
            function J(m, R, v) {
                var A;
                return (0, n.hasOwn)(m, R) && !(!((A = Object.getOwnPropertyDescriptor(m, R)) === null || A === void 0) && A.writable) ? m : b(m, R, v, 2);
            }
            n.defineReadOnlyProperty = J;
            function P(m, R, v) {
                var A;
                return (0, n.hasOwn)(m, R) && !(!((A = Object.getOwnPropertyDescriptor(m, R)) === null || A === void 0) && A.writable) ? m : b(m, R, v, 3);
            }
            n.defineNonDeletableNormalProperty = P;
            function T(m, R, v) {
                return b(m, R, v, 4);
            }
            n.defineDeletableDescriptor = T;
            function E(m, R, v) {
                return b(m, R, v, 5);
            }
            n.defineHiddenNormalProperty = E;
            function N(m, R, v) {
                return b(m, R, v, 6);
            }
            n.defineFixedDeletableProperty = N;
            function y(m, R, v) {
                return b(m, R, v, 7);
            }
            n.defineNormalProperty = y;
            function O(m) {
                var R = m;
                m.__isClone && (R = m.__clonedFrom);
                var v = function() {
                    return R.apply(this, arguments);
                };
                for(var A in m)v[A] = m[A];
                return v.__isClone = !0, v.__clonedFrom = R, v;
            }
        })(Yc)), Yc;
    }
    var Ao = {}, U6;
    function Va() {
        if (U6) return Ao;
        U6 = 1;
        var n = Ao && Ao.__read || function(o, _) {
            var a = typeof Symbol == "function" && o[Symbol.iterator];
            if (!a) return o;
            var c = a.call(o), s, u = [], l;
            try {
                for(; (_ === void 0 || _-- > 0) && !(s = c.next()).done;)u.push(s.value);
            } catch (f) {
                l = {
                    error: f
                };
            } finally{
                try {
                    s && !s.done && (a = c.return) && a.call(c);
                } finally{
                    if (l) throw l.error;
                }
            }
            return u;
        }, t = Ao && Ao.__spreadArray || function(o, _, a) {
            if (a || arguments.length === 2) for(var c = 0, s = _.length, u; c < s; c++)(u || !(c in _)) && (u || (u = Array.prototype.slice.call(_, 0, c)), u[c] = _[c]);
            return o.concat(u || Array.prototype.slice.call(_));
        };
        Object.defineProperty(Ao, "__esModule", {
            value: !0
        }), Ao.assert = void 0;
        function e(o, _, a) {
            for(var c = [], s = 3; s < arguments.length; s++)c[s - 3] = arguments[s];
            if (!o) throw c.length > 0 && console.error.apply(console, t([], n(c), !1)), a && console.error(a), _ instanceof Error ? _ : new Error(_);
        }
        return Ao.assert = e, Ao;
    }
    var C6;
    function nh() {
        if (C6) return Zc;
        C6 = 1, Object.defineProperty(Zc, "__esModule", {
            value: !0
        }), Zc.CborMap = Zc.isRawCborMap = void 0;
        var n = dp(), t = up(), e = Gl(), o = Va(), _ = Object.freeze({
            indefinite: !1,
            addInfos: void 0
        });
        function a(s) {
            if (typeof s != "object" || s === null) return !1;
            var u = Object.keys(s);
            return u.includes("map") && Array.isArray(s.map) && s.map.every(function(l) {
                if (typeof l != "object" || l === null) return !1;
                var f = Object.keys(l);
                return f.includes("k") && (0, t.isRawCborObj)(l.k) && f.includes("v") && (0, t.isRawCborObj)(l.v);
            });
        }
        Zc.isRawCborMap = a;
        var c = (function() {
            function s(u, l, f) {
                var p;
                this.subCborRef = f, (0, o.assert)(Array.isArray(u) && u.every(function(h) {
                    return (0, n.isObject)(h) && (0, t.isCborObj)(h.k) && (0, t.isCborObj)(h.v);
                }), "in 'CborMap' constructor: invalid input; got: " + u);
                var g = l?.indefinite === !0 ? !0 : _.indefinite;
                this.addInfos = (p = l?.addInfos) !== null && p !== void 0 ? p : (0, e.headerFollowingToAddInfos)(u.length), this.map = u, this.indefinite = g === !0;
            }
            return s.prototype.toRawObj = function() {
                return {
                    map: this.map.map(function(u) {
                        return {
                            k: u.k.toRawObj(),
                            v: u.v.toRawObj()
                        };
                    }),
                    options: {
                        indefinite: this.indefinite
                    }
                };
            }, s.prototype.clone = function() {
                var u;
                return new s(this.map.map(function(l) {
                    return {
                        k: l.k.clone(),
                        v: l.v.clone()
                    };
                }), {
                    indefinite: this.indefinite,
                    addInfos: this.addInfos
                }, (u = this.subCborRef) === null || u === void 0 ? void 0 : u.clone());
            }, s;
        })();
        return Zc.CborMap = c, Zc;
    }
    var Wc = {}, N6;
    function _h() {
        if (N6) return Wc;
        N6 = 1, Object.defineProperty(Wc, "__esModule", {
            value: !0
        }), Wc.CborNegInt = Wc.isRawCborNegative = void 0;
        var n = Va(), t = cp(), e = ve(), o = d0(), _ = Gl();
        function a(s) {
            if (typeof s != "object" || s === null) return !1;
            var u = Object.keys(s);
            return u.includes("neg") && typeof s.neg == "bigint" && s.neg < 0;
        }
        Wc.isRawCborNegative = a;
        var c = (function() {
            function s(u, l, f, p) {
                this.subCborRef = p, typeof u == "number" && (u = BigInt(u)), this.num = u, this.addInfos = l ?? (0, _.headerFollowingToAddInfos)(u), f instanceof t.CborBytes ? this.bigNumEncoding = f : this.bigNumEncoding = void 0;
            }
            return Object.defineProperty(s.prototype, "num", {
                get: function() {
                    return this.bigNumEncoding instanceof t.CborBytes && (this._num = -(BigInt("0x" + (0, e.toHex)(this.bigNumEncoding.bytes)) + BigInt(1))), this._num;
                },
                set: function(u) {
                    if ((0, n.assert)(u < 0, "neg CBOR numbers must be less than 0; got: " + u), u = BigInt(u), u < o.minBigInt) {
                        u = BigInt(-1) - BigInt(u);
                        var l = u.toString(16);
                        l.length % 2 === 1 && (l = "0" + l), this.bigNumEncoding = new t.CborBytes((0, e.fromHex)(l));
                    }
                    this._num = BigInt(u);
                },
                enumerable: !1,
                configurable: !0
            }), s.prototype.isBigNum = function() {
                return this.bigNumEncoding instanceof t.CborBytes;
            }, s.bigNum = function(u, l) {
                typeof u == "number" && (u = BigInt(u)), typeof u == "bigint" && u >= 0 && (u = -u);
                var f = void 0;
                if (u instanceof t.CborBytes) f = BigInt(-1) - BigInt("0x" + (0, e.toHex)(u.bytes));
                else {
                    f = u, u = BigInt(-1) - BigInt(u);
                    var p = u.toString(16);
                    p.length % 2 === 1 && (p = "0" + p), u = new t.CborBytes((0, e.fromHex)(p));
                }
                return new s(f, 0, u, l);
            }, s.prototype.toRawObj = function() {
                return {
                    neg: this.num
                };
            }, s.prototype.clone = function() {
                var u, l;
                return new s(this.num, this.addInfos, (u = this.bigNumEncoding) === null || u === void 0 ? void 0 : u.clone(), (l = this.subCborRef) === null || l === void 0 ? void 0 : l.clone());
            }, s;
        })();
        return Wc.CborNegInt = c, Wc;
    }
    var To = {}, M6;
    function ah() {
        if (M6) return To;
        M6 = 1, Object.defineProperty(To, "__esModule", {
            value: !0
        }), To.CborSimple = To.isRawCborSimple = To.isSimpleCborValue = void 0;
        var n = dp(), t = Va();
        function e(a) {
            var c = typeof a;
            return a === null || c === "boolean" || c === "undefined" || c === "number";
        }
        To.isSimpleCborValue = e;
        function o(a) {
            if (typeof a != "object" || a === null) return !1;
            var c = Object.keys(a);
            return c.includes("simple") && e(a.simple);
        }
        To.isRawCborSimple = o;
        var _ = (function() {
            function a(c, s, u) {
                this.subCborRef = u, s === void 0 && typeof c == "number" && c >= 0 && c <= 255 && c === Math.round(c) && (s = "simple"), s === void 0 && (s = "float"), s === "simple" && (0, t.assert)(typeof c == "number" && c >= 0 && c <= 255 && c === Math.round(c), "invalid simple value"), (0, t.assert)(e(c), "invalid cbor simple value; received: " + c), (0, n.defineReadOnlyProperty)(this, "simple", c), (0, n.defineReadOnlyProperty)(this, "numAs", s);
            }
            return a.prototype.toRawObj = function() {
                return {
                    simple: this.simple
                };
            }, a.prototype.clone = function() {
                var c;
                return new a(this.simple, this.numAs, (c = this.subCborRef) === null || c === void 0 ? void 0 : c.clone());
            }, Object.defineProperty(a, "null", {
                get: function() {
                    return new a(null);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(a, "true", {
                get: function() {
                    return new a(!0);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(a, "false", {
                get: function() {
                    return new a(!1);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(a, "undefined", {
                get: function() {
                    return new a(void 0);
                },
                enumerable: !1,
                configurable: !0
            }), a.simpleNumber = function(c) {
                return typeof c != "number" && (c = 0), new a(c, "simple");
            }, a.float = function(c) {
                return typeof c != "number" && (c = 0), new a(c, "float");
            }, a;
        })();
        return To.CborSimple = _, To;
    }
    var Jc = {}, Po = {}, L6;
    function Dx() {
        if (L6) return Po;
        L6 = 1, Object.defineProperty(Po, "__esModule", {
            value: !0
        }), Po.unsafeForceUInt = Po.forceBigUInt = Po.canBeUInteger = void 0;
        function n(o) {
            return typeof o == "bigint" && o >= BigInt(0) || typeof o == "number" && o === Math.round(Math.abs(o));
        }
        Po.canBeUInteger = n;
        function t(o) {
            if (!n(o)) throw new Error("trying to convert an integer to an unsigned Integer, the number was negative");
            return BigInt(o);
        }
        Po.forceBigUInt = t;
        function e(o) {
            if (!n(o)) throw new Error("trying to convert an integer to an unsigned Integer, the number was negative");
            return Number(o);
        }
        return Po.unsafeForceUInt = e, Po;
    }
    var z6;
    function u0() {
        if (z6) return Jc;
        z6 = 1, Object.defineProperty(Jc, "__esModule", {
            value: !0
        }), Jc.CborTag = Jc.isRawCborTag = void 0;
        var n = dp(), t = Va(), e = Dx(), o = ch();
        function _(c) {
            if (typeof c != "object" || c === null) return !1;
            var s = Object.keys(c);
            return s.includes("tag") && s.includes("data") && (0, e.canBeUInteger)(c.tag) && (0, o.isRawCborObj)(c.data);
        }
        Jc.isRawCborTag = _;
        var a = (function() {
            function c(s, u, l) {
                this.subCborRef = l, typeof s == "number" && (s = BigInt(s)), (0, t.assert)(typeof s == "bigint" && (0, o.isCborObj)(u), "using direct value constructor; either 'tag' is not a number or 'data' is missing"), (0, n.defineReadOnlyProperty)(this, "tag", s), (0, n.defineReadOnlyProperty)(this, "data", u);
            }
            return c.prototype.toRawObj = function() {
                return {
                    tag: this.tag,
                    data: this.data.toRawObj()
                };
            }, c.prototype.clone = function() {
                var s;
                return new c(this.tag, this.data.clone(), (s = this.subCborRef) === null || s === void 0 ? void 0 : s.clone());
            }, c;
        })();
        return Jc.CborTag = a, Jc;
    }
    var Xc = {}, q6;
    function oh() {
        if (q6) return Xc;
        q6 = 1, Object.defineProperty(Xc, "__esModule", {
            value: !0
        }), Xc.CborText = Xc.isRawCborText = void 0;
        var n = Gl();
        function t(o) {
            if (typeof o != "object" || o === null) return !1;
            var _ = Object.keys(o);
            return _.includes("text") && typeof o.text == "string";
        }
        Xc.isRawCborText = t;
        var e = (function() {
            function o(_, a, c) {
                this.subCborRef = c, this.chunks = _, this.addInfos = a ?? (0, n.headerFollowingToAddInfos)(_.length);
            }
            return Object.defineProperty(o.prototype, "text", {
                get: function() {
                    return typeof this.chunks == "string" ? this.chunks : this.chunks.reduce(function(_, a) {
                        return _ + a.text;
                    }, "");
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(o.prototype, "isDefiniteLength", {
                get: function() {
                    return typeof this.chunks == "string";
                },
                enumerable: !1,
                configurable: !0
            }), o.prototype.toRawObj = function() {
                return {
                    text: this.text
                };
            }, o.prototype.clone = function() {
                var _;
                return new o(typeof this.chunks == "string" ? this.chunks : this.chunks.map(function(a) {
                    return a.clone();
                }), this.addInfos, (_ = this.subCborRef) === null || _ === void 0 ? void 0 : _.clone());
            }, o;
        })();
        return Xc.CborText = e, Xc;
    }
    var Qc = {}, D6;
    function l0() {
        if (D6) return Qc;
        D6 = 1, Object.defineProperty(Qc, "__esModule", {
            value: !0
        }), Qc.CborUInt = Qc.isRawCborUnsigned = void 0;
        var n = Va(), t = cp(), e = ve(), o = d0(), _ = Gl();
        function a(s) {
            if (typeof s != "object" || s === null) return !1;
            var u = Object.keys(s);
            return u.includes("uint") && typeof s.uint == "bigint" && s.uint >= 0;
        }
        Qc.isRawCborUnsigned = a;
        var c = (function() {
            function s(u, l, f, p) {
                this.subCborRef = p, this.num = u, this.addInfos = l ?? (0, _.headerFollowingToAddInfos)(u), f instanceof t.CborBytes ? this.bigNumEncoding = f : this.bigNumEncoding = void 0;
            }
            return Object.defineProperty(s.prototype, "num", {
                get: function() {
                    return this.bigNumEncoding instanceof t.CborBytes && (this._num = BigInt("0x" + (0, e.toHex)(this.bigNumEncoding.bytes))), this._num;
                },
                set: function(u) {
                    if ((0, n.assert)(u >= BigInt(0), "uint CBOR numbers must be greater or equal 0; got: " + u), u = BigInt(u), u > o.maxBigInt) {
                        var l = u.toString(16);
                        l.length % 2 === 1 && (l = "0" + l), this.bigNumEncoding = new t.CborBytes((0, e.fromHex)(l));
                    }
                    this._num = u;
                },
                enumerable: !1,
                configurable: !0
            }), s.prototype.isBigNum = function() {
                return this.bigNumEncoding instanceof t.CborBytes;
            }, s.bigNum = function(u, l) {
                var f = void 0;
                if (u instanceof t.CborBytes) f = BigInt("0x" + (0, e.toHex)(u.bytes));
                else {
                    u = BigInt(u), f = u;
                    var p = u.toString(16);
                    p.length % 2 === 1 && (p = "0" + p), u = new t.CborBytes((0, e.fromHex)(p));
                }
                return new s(f, 0, u, l);
            }, s.prototype.toRawObj = function() {
                return {
                    uint: this.num
                };
            }, s.prototype.clone = function() {
                var u, l;
                return new s(this.num, this.addInfos, (u = this.bigNumEncoding) === null || u === void 0 ? void 0 : u.clone(), (l = this.subCborRef) === null || l === void 0 ? void 0 : l.clone());
            }, s;
        })();
        return Qc.CborUInt = c, Qc;
    }
    var $c = {}, td = {}, G6;
    function ih() {
        if (G6) return td;
        G6 = 1;
        var n = td && td.__extends || (function() {
            var e = function(o, _) {
                return e = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(a, c) {
                    a.__proto__ = c;
                } || function(a, c) {
                    for(var s in c)Object.prototype.hasOwnProperty.call(c, s) && (a[s] = c[s]);
                }, e(o, _);
            };
            return function(o, _) {
                if (typeof _ != "function" && _ !== null) throw new TypeError("Class extends value " + String(_) + " is not a constructor or null");
                e(o, _);
                function a() {
                    this.constructor = o;
                }
                o.prototype = _ === null ? Object.create(_) : (a.prototype = _.prototype, new a);
            };
        })();
        Object.defineProperty(td, "__esModule", {
            value: !0
        }), td.BaseCborError = void 0;
        var t = (function(e) {
            n(o, e);
            function o() {
                return e !== null && e.apply(this, arguments) || this;
            }
            return o;
        })(Error);
        return td.BaseCborError = t, td;
    }
    var ed = {}, H6;
    function h4t() {
        if (H6) return ed;
        H6 = 1;
        var n = ed && ed.__extends || (function() {
            var o = function(_, a) {
                return o = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(c, s) {
                    c.__proto__ = s;
                } || function(c, s) {
                    for(var u in s)Object.prototype.hasOwnProperty.call(s, u) && (c[u] = s[u]);
                }, o(_, a);
            };
            return function(_, a) {
                if (typeof a != "function" && a !== null) throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
                o(_, a);
                function c() {
                    this.constructor = _;
                }
                _.prototype = a === null ? Object.create(a) : (c.prototype = a.prototype, new c);
            };
        })();
        Object.defineProperty(ed, "__esModule", {
            value: !0
        }), ed.CborParseError = void 0;
        var t = ih(), e = (function(o) {
            n(_, o);
            function _() {
                return o !== null && o.apply(this, arguments) || this;
            }
            return _;
        })(t.BaseCborError);
        return ed.CborParseError = e, ed;
    }
    var K6;
    function sh() {
        return K6 || (K6 = 1, (function(n) {
            var t = $c && $c.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = $c && $c.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(ih(), n), e(h4t(), n);
        })($c)), $c;
    }
    var V6;
    function ch() {
        if (V6) return Fo;
        V6 = 1, Object.defineProperty(Fo, "__esModule", {
            value: !0
        }), Fo.cborObjFromRaw = Fo.isRawCborObj = Fo.isCborObj = void 0;
        var n = ve(), t = f0(), e = cp(), o = nh(), _ = _h(), a = ah(), c = u0(), s = oh(), u = l0(), l = sh(), f = Va();
        function p(B) {
            return B instanceof _.CborNegInt || B instanceof u.CborUInt || B instanceof e.CborBytes || B instanceof s.CborText || B instanceof t.CborArray || B instanceof o.CborMap || B instanceof c.CborTag || B instanceof a.CborSimple;
        }
        Fo.isCborObj = p;
        function g(B) {
            if (typeof B != "object" || B === null || Array.isArray(B)) return !1;
            var I = Object.keys(B);
            if (I.length <= 0) return !1;
            if (I.includes("array")) return Array.isArray(B.array) && B.array.every(g);
            if (I.includes("map")) return Array.isArray(B.map) && B.map.every(function(w) {
                return g(w.k) && g(w.v);
            });
            if (I.includes("tag")) return I.includes("data") && g(B.data);
            var j = function(w) {
                return I.includes(w);
            };
            return j("neg") && typeof B.neg == "bigint" && B.neg < 0 || j("uint") && typeof B.uint == "bigint" && B.uint >= 0 || j("bytes") && (0, n.isUint8Array)(B.bytes) || j("text") && typeof B.text == "string" || j("simple") && (0, a.isSimpleCborValue)(B.simple);
        }
        Fo.isRawCborObj = g;
        function h(B) {
            (0, f.assert)(g(B), "expected a vaild 'RawCborObj' as input; got: " + Object.keys(B));
            function I(j) {
                if ((0, _.isRawCborNegative)(j)) return new _.CborNegInt(j.neg);
                if ((0, u.isRawCborUnsigned)(j)) return new u.CborUInt(j.uint);
                if ((0, e.isRawCborBytes)(j)) return new e.CborBytes(j.bytes);
                if ((0, s.isRawCborText)(j)) return new s.CborText(j.text);
                if ((0, t.isRawCborArray)(j)) return new t.CborArray(j.array.map(I), j.options);
                if ((0, o.isRawCborMap)(j)) return new o.CborMap(j.map.map(function(w) {
                    return {
                        k: I(w.k),
                        v: I(w.v)
                    };
                }), j.options);
                if ((0, c.isRawCborTag)(j)) return new c.CborTag(j.tag, I(j.data));
                if ((0, a.isRawCborSimple)(j)) return new a.CborSimple(j.simple);
                throw new l.BaseCborError("'cborObjFromRaw' did not match any possible 'RawCborObj'");
            }
            return I(B);
        }
        return Fo.cborObjFromRaw = h, Fo;
    }
    var Z6;
    function f0() {
        if (Z6) return Vc;
        Z6 = 1, Object.defineProperty(Vc, "__esModule", {
            value: !0
        }), Vc.CborArray = Vc.isRawCborArray = void 0;
        var n = ch(), t = Va(), e = Gl();
        function o(c) {
            if (typeof c != "object") return !1;
            var s = Object.keys(c);
            return s.includes("array") && Array.isArray(c.array) && c.array.every(n.isRawCborObj);
        }
        Vc.isRawCborArray = o;
        var _ = Object.freeze({
            indefinite: !1,
            addInfos: 0
        }), a = (function() {
            function c(s, u, l) {
                var f;
                this.subCborRef = l, (0, t.assert)(Array.isArray(s) && s.every(n.isCborObj), "in 'CborArray' constructor: invalid input; got: " + s);
                var p = u?.indefinite === !0 ? !0 : _.indefinite;
                this.addInfos = (f = u?.addInfos) !== null && f !== void 0 ? f : (0, e.headerFollowingToAddInfos)(s.length), this.array = s, this.indefinite = p === !0;
            }
            return c.prototype.toRawObj = function() {
                return {
                    array: this.array.map(function(s) {
                        return s.toRawObj();
                    }),
                    options: this.indefinite === !0 ? {
                        indefinite: this.indefinite
                    } : void 0
                };
            }, c.prototype.clone = function() {
                var s;
                return new c(this.array.map(function(u) {
                    return u.clone();
                }), {
                    indefinite: this.indefinite,
                    addInfos: this.addInfos
                }, (s = this.subCborRef) === null || s === void 0 ? void 0 : s.clone());
            }, c;
        })();
        return Vc.CborArray = a, Vc;
    }
    var rd = {}, nw = {}, Y6;
    function v4t() {
        return Y6 || (Y6 = 1, Object.defineProperty(nw, "__esModule", {
            value: !0
        })), nw;
    }
    var W6;
    function m4t() {
        return W6 || (W6 = 1, (function(n) {
            var t = rd && rd.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = rd && rd.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(v4t(), n);
        })(rd)), rd;
    }
    var J6;
    function up() {
        return J6 || (J6 = 1, (function(n) {
            var t = Kc && Kc.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = Kc && Kc.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(f0(), n), e(cp(), n), e(nh(), n), e(_h(), n), e(ah(), n), e(u0(), n), e(oh(), n), e(l0(), n), e(m4t(), n), e(ch(), n);
        })(Kc)), Kc;
    }
    var _w = {}, X6;
    function Gx() {
        return X6 || (X6 = 1, (function(n) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.CborConstants = n.isUInt8MajorType = n.UInt8MajorType = n.isMajorTypeTag = n.MajorType = void 0;
            var t;
            (function(s) {
                s[s.unsigned = 0] = "unsigned", s[s.negative = 1] = "negative", s[s.bytes = 2] = "bytes", s[s.text = 3] = "text", s[s.array = 4] = "array", s[s.map = 5] = "map", s[s.tag = 6] = "tag", s[s.float_or_simple = 7] = "float_or_simple";
            })(t = n.MajorType || (n.MajorType = {})), Object.freeze(t);
            function e(s) {
                return s >= 0 && s <= 7 && s === Math.round(s);
            }
            n.isMajorTypeTag = e;
            var o;
            (function(s) {
                s[s.unsigned = 0] = "unsigned", s[s.negative = 32] = "negative", s[s.bytes = 64] = "bytes", s[s.text = 96] = "text", s[s.array = 128] = "array", s[s.map = 160] = "map", s[s.tag = 192] = "tag", s[s.float_or_simple = 224] = "float_or_simple";
            })(o = n.UInt8MajorType || (n.UInt8MajorType = {})), Object.freeze(o);
            function _(s) {
                return (s & 224) === s && e(s >> 5);
            }
            n.isUInt8MajorType = _;
            var a = (function() {
                function s() {}
                return s.Length = Object.freeze({
                    expect_uint8: 24,
                    expect_uint16: 25,
                    expect_uint32: 26,
                    expect_uint64: 27,
                    make_infinite: 31
                }), s.Tag = {
                    utf8_string: 0,
                    epoch_datetime: 1,
                    positive_bignum: 2,
                    negative_bignum: 3,
                    decimal_frac_array: 4,
                    bigfloat: 5,
                    expect_base64_url: 21,
                    expect_base64: 22,
                    expect_base16: 23,
                    sub_cbor: 24,
                    uri: 32,
                    base64_url: 33,
                    base64: 34,
                    regexp: 35,
                    MIME: 36,
                    self_cbor: 55799
                }, s.Major7 = Object.freeze({
                    false: 20,
                    true: 21,
                    null: 22,
                    undefined: 23,
                    simple_byte: 24,
                    float_half: 25,
                    float_single: 26,
                    float_double: 27,
                    infinite_break: 31
                }), s;
            })(), c = (function() {
                function s() {}
                return s.MajorTypeMask = 224, s.AdditionalInfosMask = 31, s.AddInfos = a, s.MajorType = Object.freeze({
                    unsigned: 0,
                    negative: 1,
                    bytes: 2,
                    text: 3,
                    array: 4,
                    map: 5,
                    tag: 6,
                    float_or_simple: 7
                }), s.UInt8MajorType = Object.freeze({
                    unsigned: 0,
                    negative: 32,
                    bytes: 64,
                    text: 96,
                    array: 128,
                    map: 160,
                    tag: 192,
                    float_or_simple: 224
                }), s.infinite_break = 255, s;
            })();
            n.CborConstants = c;
        })(_w)), _w;
    }
    var nd = {}, Q6;
    function dh() {
        if (Q6) return nd;
        Q6 = 1;
        var n = nd && nd.__assign || function() {
            return n = Object.assign || function(_) {
                for(var a, c = 1, s = arguments.length; c < s; c++){
                    a = arguments[c];
                    for(var u in a)Object.prototype.hasOwnProperty.call(a, u) && (_[u] = a[u]);
                }
                return _;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(nd, "__esModule", {
            value: !0
        }), nd.LazyCborArray = void 0;
        var t = Va(), e = Object.freeze({
            indefinite: !1,
            addInfos: 0
        }), o = (function() {
            function _(a, c) {
                (0, t.assert)(Array.isArray(a) && a.every(function(l) {
                    return l instanceof Uint8Array;
                }), "in 'LazyCborArray' constructor: invalid input; got: " + a);
                var s = n(n({}, e), c).indefinite, u = a;
                Object.defineProperties(this, {
                    array: {
                        get: function() {
                            return u;
                        },
                        set: function(l) {
                            Array.isArray(l) && l.every(function(f) {
                                return f instanceof Uint8Array;
                            }) && (u = l);
                        },
                        enumerable: !0,
                        configurable: !1
                    },
                    indefinite: {
                        value: s,
                        writable: !1,
                        enumerable: !0,
                        configurable: !1
                    }
                });
            }
            return _.prototype.clone = function() {
                return new _(this.array.map(function(a) {
                    return Uint8Array.prototype.slice.call(a);
                }), {
                    indefinite: this.indefinite
                });
            }, _;
        })();
        return nd.LazyCborArray = o, nd;
    }
    var Ro = {}, $6;
    function uh() {
        if ($6) return Ro;
        $6 = 1;
        var n = Ro && Ro.__assign || function() {
            return n = Object.assign || function(c) {
                for(var s, u = 1, l = arguments.length; u < l; u++){
                    s = arguments[u];
                    for(var f in s)Object.prototype.hasOwnProperty.call(s, f) && (c[f] = s[f]);
                }
                return c;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(Ro, "__esModule", {
            value: !0
        }), Ro.LazyCborMap = Ro.isLazyCborMapEntry = void 0;
        var t = dp(), e = Va(), o = Object.freeze({
            indefinite: !1,
            addInfos: void 0
        });
        function _(c) {
            return (0, t.isObject)(c) && (0, t.hasOwn)(c, "k") && c.k instanceof Uint8Array && (0, t.hasOwn)(c, "v") && c.v instanceof Uint8Array;
        }
        Ro.isLazyCborMapEntry = _;
        var a = (function() {
            function c(s, u) {
                (0, e.assert)(Array.isArray(s) && s.every(_), "in 'LazyCborMap' constructor: invalid input; got: " + s);
                var l = n(n({}, o), u).indefinite, f = s;
                Object.defineProperties(this, {
                    array: {
                        get: function() {
                            return f;
                        },
                        set: function(p) {
                            Array.isArray(p) && p.every(_) && (f = p);
                        },
                        enumerable: !0,
                        configurable: !1
                    },
                    indefinite: {
                        value: l,
                        writable: !1,
                        enumerable: !0,
                        configurable: !1
                    }
                });
            }
            return c.prototype.clone = function() {
                return new c(this.map.map(function(s) {
                    var u = s.k, l = s.v;
                    return {
                        k: Uint8Array.prototype.slice.call(u),
                        v: Uint8Array.prototype.slice.call(l)
                    };
                }), {
                    indefinite: this.indefinite
                });
            }, c;
        })();
        return Ro.LazyCborMap = a, Ro;
    }
    var pf = {}, bf = {}, t4;
    function Hx() {
        if (t4) return bf;
        t4 = 1, Object.defineProperty(bf, "__esModule", {
            value: !0
        }), bf.isLazyCborObj = void 0;
        var n = up(), t = dh(), e = uh(), o = lh();
        function _(a) {
            return a instanceof n.CborNegInt || a instanceof n.CborUInt || a instanceof n.CborBytes || a instanceof n.CborText || a instanceof t.LazyCborArray || a instanceof e.LazyCborMap || a instanceof o.LazyCborTag || a instanceof n.CborSimple;
        }
        return bf.isLazyCborObj = _, bf;
    }
    var e4;
    function lh() {
        if (e4) return pf;
        e4 = 1, Object.defineProperty(pf, "__esModule", {
            value: !0
        }), pf.LazyCborTag = void 0;
        var n = Va(), t = Hx(), e = (function() {
            function o(_, a) {
                typeof _ == "number" && (_ = BigInt(_)), (0, n.assert)(typeof _ == "bigint" && (0, t.isLazyCborObj)(a), "using direct value constructor; either 'tag' is not a number or 'data' is not 'LazyCborObj'");
                var c = _, s = a;
                Object.defineProperties(this, {
                    tag: {
                        get: function() {
                            return c;
                        },
                        set: function(u) {
                            typeof _ == "number" && (_ = BigInt(_)), typeof _ == "bigint" && (c = _);
                        },
                        enumerable: !0,
                        configurable: !1
                    },
                    data: {
                        get: function() {
                            return s;
                        },
                        set: function(u) {
                            (0, t.isLazyCborObj)(u) && (s = u);
                        },
                        enumerable: !0,
                        configurable: !1
                    }
                });
            }
            return o.prototype.clone = function() {
                return new o(this.tag, this.data.clone());
            }, o;
        })();
        return pf.LazyCborTag = e, pf;
    }
    var _d = {}, r4;
    function fh() {
        if (r4) return _d;
        r4 = 1;
        var n = _d && _d.__extends || (function() {
            var _ = function(a, c) {
                return _ = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(s, u) {
                    s.__proto__ = u;
                } || function(s, u) {
                    for(var l in u)Object.prototype.hasOwnProperty.call(u, l) && (s[l] = u[l]);
                }, _(a, c);
            };
            return function(a, c) {
                if (typeof c != "function" && c !== null) throw new TypeError("Class extends value " + String(c) + " is not a constructor or null");
                _(a, c);
                function s() {
                    this.constructor = a;
                }
                a.prototype = c === null ? Object.create(c) : (s.prototype = c.prototype, new s);
            };
        })();
        Object.defineProperty(_d, "__esModule", {
            value: !0
        }), _d.SubCborRef = void 0;
        var t = ve(), e = c0(), o = (function(_) {
            n(a, _);
            function a(c) {
                var s = c._bytes, u = c.start, l = c.end, f = _.call(this, s) || this;
                return f._bytes = s, f.start = u, f.end = l, f;
            }
            return a.prototype.toString = function() {
                return (0, t.toHex)(this.toBuffer());
            }, a.prototype.toBuffer = function() {
                return Uint8Array.prototype.slice.call(this._bytes, this.start, this.end);
            }, a.prototype.clone = function() {
                return new a({
                    _bytes: this._bytes,
                    start: this.start,
                    end: this.end
                });
            }, a;
        })(e.CborString);
        return _d.SubCborRef = o, _d;
    }
    var ad = {}, n4;
    function I4t() {
        if (n4) return ad;
        n4 = 1;
        var n = ad && ad.__values || function(_) {
            var a = typeof Symbol == "function" && Symbol.iterator, c = a && _[a], s = 0;
            if (c) return c.call(_);
            if (_ && typeof _.length == "number") return {
                next: function() {
                    return _ && s >= _.length && (_ = void 0), {
                        value: _ && _[s++],
                        done: !_
                    };
                }
            };
            throw new TypeError(a ? "Object is not iterable." : "Symbol.iterator is not defined.");
        };
        Object.defineProperty(ad, "__esModule", {
            value: !0
        }), ad.overwriteSubCborRefBytes = void 0;
        var t = up(), e = fh();
        function o(_, a) {
            var c, s, u, l, f, p, g, h;
            if (_.subCborRef instanceof e.SubCborRef) {
                if (_ instanceof t.CborText && typeof _.chunks != "string") try {
                    for(var B = n(_.chunks), I = B.next(); !I.done; I = B.next()){
                        var j = I.value;
                        o(j, a);
                    }
                } catch (E) {
                    c = {
                        error: E
                    };
                } finally{
                    try {
                        I && !I.done && (s = B.return) && s.call(B);
                    } finally{
                        if (c) throw c.error;
                    }
                }
                if (_ instanceof t.CborBytes && !(_.chunks instanceof Uint8Array)) try {
                    for(var w = n(_.chunks), S = w.next(); !S.done; S = w.next()){
                        var j = S.value;
                        o(j, a);
                    }
                } catch (E) {
                    u = {
                        error: E
                    };
                } finally{
                    try {
                        S && !S.done && (l = w.return) && l.call(w);
                    } finally{
                        if (u) throw u.error;
                    }
                }
                if (_ instanceof t.CborTag && o(_.data, a), (_ instanceof t.CborUInt || _ instanceof t.CborNegInt) && _.bigNumEncoding instanceof t.CborBytes && o(_.bigNumEncoding, a), _ instanceof t.CborMap) try {
                    for(var b = n(_.map), k = b.next(); !k.done; k = b.next()){
                        var F = k.value, Y = F.k, K = F.v;
                        o(Y, a), o(K, a);
                    }
                } catch (E) {
                    f = {
                        error: E
                    };
                } finally{
                    try {
                        k && !k.done && (p = b.return) && p.call(b);
                    } finally{
                        if (f) throw f.error;
                    }
                }
                if (_ instanceof t.CborArray) try {
                    for(var J = n(_.array), P = J.next(); !P.done; P = J.next()){
                        var T = P.value;
                        o(T, a);
                    }
                } catch (E) {
                    g = {
                        error: E
                    };
                } finally{
                    try {
                        P && !P.done && (h = J.return) && h.call(J);
                    } finally{
                        if (g) throw g.error;
                    }
                }
                _.subCborRef._bytes = a;
            }
        }
        return ad.overwriteSubCborRefBytes = o, ad;
    }
    var _4;
    function Kx() {
        return _4 || (_4 = 1, (function(n) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.Cbor = n.defaultParseOptions = void 0;
            var t = c0(), e = up(), o = Gx(), _ = cp(), a = oh(), c = f0(), s = nh(), u = u0(), l = ah(), f = l0(), p = _h(), g = ve(), h = ih(), B = Va(), I = dh(), j = uh(), w = lh(), S = sh(), b = d0(), k = fh(), F = I4t(), Y = (function() {
                function J() {
                    this._buff = new Uint8Array(256), this._len = 0;
                }
                return Object.defineProperty(J.prototype, "bytes", {
                    get: function() {
                        return Uint8Array.prototype.slice.call(this._buff, 0, this._len);
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(J.prototype, "length", {
                    get: function() {
                        return this._len;
                    },
                    enumerable: !1,
                    configurable: !0
                }), J.prototype._prepareAppendOfByteLength = function(P) {
                    for(var T = this._len + P, E = this._buff.byteLength; E < T;)E = E << 1;
                    if (E !== this._buff.byteLength) {
                        for(var N = new Uint8Array(E), y = 0; y < this._len; y++)(0, g.writeUInt8)(N, (0, g.readUInt8)(this._buff, y), y);
                        this._buff = N;
                    }
                }, J.prototype._commitAppendOfByteLength = function(P) {
                    this._len += P;
                }, J.prototype.appendRawBytes = function(P) {
                    this._prepareAppendOfByteLength(P.length), this._buff.set(P, this._len), this._commitAppendOfByteLength(P.length);
                }, J.prototype.appendUInt8 = function(P) {
                    (0, B.assert)(P >= 0 && P <= 255 && P === Math.round(P), "expected a byte; got: " + P), this._prepareAppendOfByteLength(1), (0, g.writeUInt8)(this._buff, P, this._len), this._commitAppendOfByteLength(1);
                }, J.prototype.appendUInt16 = function(P) {
                    (0, B.assert)(P >= 0 && P <= 65535 && P === Math.round(P), "expected two bytes; got: " + P), this._prepareAppendOfByteLength(2), (0, g.writeUInt16BE)(this._buff, P, this._len), this._commitAppendOfByteLength(2);
                }, J.prototype.appendUInt32 = function(P) {
                    (0, B.assert)(P >= 0 && P <= 4294967295 && P === Math.round(P), "expected 4 bytes; got: " + P), this._prepareAppendOfByteLength(4), (0, g.writeUInt32BE)(this._buff, P, this._len), this._commitAppendOfByteLength(4);
                }, J.prototype.appendUInt64 = function(P) {
                    (0, B.assert)(typeof P == "bigint" && P >= BigInt(0) && P <= BigInt("0b" + "11111111".repeat(8)), "expected 8 bytes; got: " + P), this._prepareAppendOfByteLength(8), (0, g.writeBigUInt64BE)(this._buff, P, this._len), this._commitAppendOfByteLength(8);
                }, J.prototype.appendFloat64 = function(P) {
                    (0, B.assert)(typeof P == "number", "expected 8 bytes; got: " + P), this._prepareAppendOfByteLength(8), (0, g.writeFloat64BE)(this._buff, P, this._len), this._commitAppendOfByteLength(8);
                }, J.prototype.appendTypeAndLength = function(P, T, E) {
                    if ((0, B.assert)((0, o.isMajorTypeTag)(P), "passed tag is not a valid major cbor type"), (0, B.assert)((typeof T == "number" || typeof T == "bigint") && T >= 0, "invalid length"), T > b.MAX_4_BYTES || E === 27) {
                        typeof T == "number" && (T = BigInt(T)), this.appendUInt8(P << 5 | 27), this.appendUInt64(T);
                        return;
                    }
                    typeof T == "bigint" && (T = Number(T));
                    var N = typeof E == "number" && E >= 24 && E <= 27;
                    T < 24 && !N ? this.appendUInt8(P << 5 | T) : T < b.OVERFLOW_1_BYTE && (!N || E === 24) ? (this.appendUInt8(P << 5 | 24), this.appendUInt8(T)) : T < b.OVERFLOW_2_BYTES && (!N || E === 25) ? (this.appendUInt8(P << 5 | 25), this.appendUInt16(T)) : (this.appendUInt8(P << 5 | 26), this.appendUInt32(T));
                }, J.prototype.appendCborObjEncoding = function(P) {
                    (0, B.assert)((0, e.isCborObj)(P), "expected 'CborObj' strict instance; got: " + P);
                    var T = this.length;
                    if (P instanceof f.CborUInt) {
                        if ((0, B.assert)(P.num >= BigInt(0), "encoding invalid unsigned integer as CBOR"), P.bigNumEncoding instanceof _.CborBytes) return this.appendCborObjEncoding(new u.CborTag(2, P.bigNumEncoding)), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        });
                        var E = P.num;
                        return E > b.maxBigInt ? (console.dir(P, {
                            depth: 1 / 0
                        }), console.warn("big positive int encountered but `bigNumEncoding` is not set; you should see the value causing this problem in the console; please report this issue at https://github.com/HarmonicLabs/cbor/issues"), this.appendCborObjEncoding(f.CborUInt.bigNum(E)), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        })) : (this.appendTypeAndLength(o.MajorType.unsigned, P.num, P.addInfos), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        }));
                    }
                    if (P instanceof p.CborNegInt) {
                        if ((0, B.assert)(P.num < BigInt(0), "encoding invalid negative integer as CBOR"), P.bigNumEncoding instanceof _.CborBytes) return this.appendCborObjEncoding(new u.CborTag(3, P.bigNumEncoding)), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        });
                        var E = P.num;
                        return E < b.minBigInt ? (console.dir(P, {
                            depth: 1 / 0
                        }), console.warn("big negative int encountered but `bigNumEncoding` is not set; you should see the value causing this problem in the console; please report this issue at https://github.com/HarmonicLabs/cbor/issues"), this.appendCborObjEncoding(p.CborNegInt.bigNum(E)), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        })) : (this.appendTypeAndLength(o.MajorType.negative, -(E + BigInt(1)), P.addInfos), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        }));
                    }
                    if (P instanceof _.CborBytes) if (P.chunks instanceof Uint8Array) {
                        var N = P.chunks;
                        return this.appendTypeAndLength(o.MajorType.bytes, N.length, P.addInfos), this.appendRawBytes(N), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        });
                    } else {
                        var y = P.chunks, O = y.length;
                        this.appendUInt8(o.MajorType.bytes << 5 | 31);
                        for(var m = 0; m < O; m++)this.appendCborObjEncoding(y[m]);
                        return this.appendUInt8(255), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        });
                    }
                    if (P instanceof a.CborText) if (typeof P.chunks == "string") {
                        var N = (0, g.fromUtf8)(P.text);
                        return this.appendTypeAndLength(o.MajorType.text, N.length, P.addInfos), this.appendRawBytes(N), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        });
                    } else {
                        var y = P.chunks, O = y.length;
                        this.appendUInt8(o.MajorType.text << 5 | 31);
                        for(var m = 0; m < O; m++)this.appendCborObjEncoding(y[m]);
                        return this.appendUInt8(255), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        });
                    }
                    if (P instanceof c.CborArray) {
                        var R = P.array, v = R.length;
                        P.indefinite ? this.appendUInt8(159) : this.appendTypeAndLength(o.MajorType.array, v, P.addInfos);
                        for(var m = 0; m < v; m++)this.appendCborObjEncoding(R[m]);
                        return P.indefinite && this.appendUInt8(255), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        });
                    }
                    if (P instanceof s.CborMap) {
                        var A = P.map;
                        P.indefinite ? this.appendUInt8(191) : this.appendTypeAndLength(o.MajorType.map, A.length, P.addInfos);
                        for(var m = 0; m < A.length; m++)this.appendCborObjEncoding(A[m].k), this.appendCborObjEncoding(A[m].v);
                        return P.indefinite && this.appendUInt8(255), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        });
                    }
                    if (P instanceof u.CborTag) return this.appendTypeAndLength(o.MajorType.tag, P.tag), this.appendCborObjEncoding(P.data), P.subCborRef = new k.SubCborRef({
                        _bytes: this._buff,
                        start: T,
                        end: this.length
                    });
                    if (P instanceof l.CborSimple) {
                        var X = P.simple;
                        return X === !1 ? (this.appendUInt8(244), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        })) : X === !0 ? (this.appendUInt8(245), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        })) : X === null ? (this.appendUInt8(246), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        })) : X === void 0 ? (this.appendUInt8(247), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        })) : P.numAs === "simple" && X >= 0 && X <= 255 && X === Math.round(X) ? (this.appendTypeAndLength(o.MajorType.float_or_simple, X), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        })) : (this.appendUInt8(251), this.appendFloat64(X), P.subCborRef = new k.SubCborRef({
                            _bytes: this._buff,
                            start: T,
                            end: this.length
                        }));
                    }
                    throw new h.BaseCborError("'CborEncoding.appendCborObjEncoding' did not match any possible 'CborObj'");
                }, J;
            })();
            n.defaultParseOptions = Object.freeze({
                keepRef: !0
            });
            var K = (function() {
                function J() {}
                return J.encode = function(P) {
                    var T = new Y;
                    T.appendCborObjEncoding(P);
                    var E = T.bytes;
                    return (0, F.overwriteSubCborRefBytes)(P, E), new t.CborString(E);
                }, J.parse = function(P, T) {
                    return T === void 0 && (T = n.defaultParseOptions), J.parseWithOffset(P, T).parsed;
                }, J.parseWithOffset = function(P, T) {
                    var E;
                    T === void 0 && (T = n.defaultParseOptions), typeof P == "string" && (P = (0, g.fromHex)(P)), (0, B.assert)(P instanceof Uint8Array || P instanceof t.CborString, "in 'Cbor.parse' expected an instance of 'CborString' or a 'Uint8Array' as input; got: " + P);
                    var N = P instanceof t.CborString ? P.toBuffer() : P, y = !!((E = T.keepRef) !== null && E !== void 0 ? E : n.defaultParseOptions.keepRef), O = 0, m = y ? function(rt) {
                        return new k.SubCborRef({
                            _bytes: N,
                            start: rt,
                            end: O
                        });
                    } : function(rt) {};
                    function R(rt) {
                        O += rt;
                    }
                    function v(rt) {
                        if (N.length < O + rt) throw new S.CborParseError("not enoug bytes; missing at least " + (O + rt - N.length) + " bytes");
                        return R(rt), N.slice(O - rt, O);
                    }
                    function A() {
                        return R(1), (0, g.readUInt8)(N, O - 1);
                    }
                    function X() {
                        return R(2), (0, g.readUInt16BE)(N, O - 2);
                    }
                    function C() {
                        return R(4), (0, g.readUInt32BE)(N, O - 4);
                    }
                    function H() {
                        return R(8), (0, g.readBigUInt64BE)(N, O - 8);
                    }
                    function U() {
                        var rt = X(), at = new ArrayBuffer(4), ut = new DataView(at), bt = rt & 32768, pt = rt & 31744, ot = rt & 1023;
                        if (pt === 31744) pt = 261120;
                        else if (pt !== 0) pt += 114688;
                        else if (ot !== 0) return new l.CborSimple((bt !== 0 ? -1 : 1) * ot * 5960464477539063e-23, "float");
                        return ut.setUint32(0, bt << 16 | pt << 13 | ot << 13), new l.CborSimple(ut.getFloat32(0), "float");
                    }
                    function L() {
                        return R(4), new l.CborSimple((0, g.readFloat32BE)(N, O - 4), "float");
                    }
                    function q() {
                        return R(8), new l.CborSimple((0, g.readFloat64BE)(N, O - 8), "float");
                    }
                    function V() {
                        return (0, g.readUInt8)(N, O) !== 255 ? !1 : (R(1), !0);
                    }
                    function Q(rt) {
                        if (rt < 24) return BigInt(rt);
                        if (rt === 24) return BigInt(A());
                        if (rt === 25) return BigInt(X());
                        if (rt === 26) return BigInt(C());
                        if (rt === 27) return H();
                        if (rt === 31) return BigInt(-1);
                        throw new h.BaseCborError("Invalid length encoding while parsing CBOR");
                    }
                    function Z(rt) {
                        return (0, g.toUtf8)(v(rt));
                    }
                    function tt() {
                        var rt = O, at = A(), ut = at >> 5, bt = at & 31;
                        if (ut === o.MajorType.float_or_simple) {
                            if (bt === 25) return U();
                            if (bt === 26) return L();
                            if (bt === 27) return q();
                        }
                        var pt = Q(bt);
                        if (pt < 0 && (ut < 2 || ut > 6)) throw new h.BaseCborError("unexpected indefinite length element while parsing CBOR");
                        switch(ut){
                            case o.MajorType.unsigned:
                                return new f.CborUInt(pt, bt, void 0, m(rt));
                            case o.MajorType.negative:
                                return new p.CborNegInt(-BigInt(1) - pt, bt, void 0, m(rt));
                            case o.MajorType.bytes:
                                {
                                    if (pt < 0) {
                                        for(var ot = [], gt = void 0; !V();){
                                            if (gt = tt(), !(gt instanceof _.CborBytes)) throw new h.BaseCborError("unexpected indefinite length element while parsing indefinite length bytes");
                                            ot.push(gt);
                                        }
                                        return new _.CborBytes(ot, bt, m(rt));
                                    }
                                    return new _.CborBytes(v(Number(pt)), bt, m(rt));
                                }
                            case o.MajorType.text:
                                {
                                    if (pt < 0) {
                                        for(var ot = [], gt = void 0; !V();){
                                            if (gt = tt(), !(gt instanceof a.CborText)) throw console.dir(gt, {
                                                depth: 1 / 0
                                            }), new h.BaseCborError("unexpected indefinite length element while parsing indefinite length text");
                                            ot.push(gt);
                                        }
                                        return new a.CborText(ot, bt, m(rt));
                                    }
                                    return new a.CborText(Z(Number(pt)), bt, m(rt));
                                }
                            case o.MajorType.array:
                                {
                                    var W = void 0;
                                    if (pt < 0) for(W = []; !V();)W.push(tt());
                                    else {
                                        W = new Array(Number(pt));
                                        for(var G = 0; G < pt; G++)W[G] = tt();
                                    }
                                    return new c.CborArray(W, {
                                        indefinite: pt < 0,
                                        addInfos: bt
                                    }, m(rt));
                                }
                            case o.MajorType.map:
                                {
                                    var et = void 0;
                                    if (pt < 0) for(et = []; !V();)et.push({
                                        k: tt(),
                                        v: tt()
                                    });
                                    else {
                                        et = new Array(Number(pt));
                                        for(var G = 0; G < pt; G++)et[G] = {
                                            k: tt(),
                                            v: tt()
                                        };
                                    }
                                    return new s.CborMap(et, {
                                        indefinite: pt < 0,
                                        addInfos: bt
                                    }, m(rt));
                                }
                            case o.MajorType.tag:
                                {
                                    var ct = Number(pt), ft = tt();
                                    return ct === 2 && ft instanceof _.CborBytes ? f.CborUInt.bigNum(ft, m(rt)) : ct === 3 && ft instanceof _.CborBytes ? p.CborNegInt.bigNum(ft, m(rt)) : new u.CborTag(ct, ft);
                                }
                            case o.MajorType.float_or_simple:
                                {
                                    var dt = Number(pt), st = m(rt);
                                    if (dt === 20) return new l.CborSimple(!1, void 0, st);
                                    if (dt === 21) return new l.CborSimple(!0, void 0, st);
                                    if (dt === 22) return new l.CborSimple(null, void 0, st);
                                    if (dt === 23) return new l.CborSimple(void 0, void 0, st);
                                    throw new h.BaseCborError("unrecognized simple value");
                                }
                            default:
                                throw new h.BaseCborError("unrecognized majorType: " + ut);
                        }
                    }
                    return {
                        parsed: tt(),
                        offset: O
                    };
                }, J.parseLazy = function(P) {
                    return J.parseLazyWithOffset(P).parsed;
                }, J.parseLazyWithOffset = function(P) {
                    typeof P == "string" && (P = (0, g.fromHex)(P)), (0, B.assert)(P instanceof Uint8Array || t.CborString.isStrictInstance(P), "in 'Cbor.parse' expected an instance of 'CborString' or a 'Uint8Array' as input; got: " + P);
                    var T = P instanceof t.CborString ? P.toBuffer() : P, E = 0;
                    function N(Z) {
                        E += Z;
                    }
                    function y(Z) {
                        if (T.length < E + Z) throw new S.CborParseError("not enoug bytes; missing at least " + (E + Z - T.length) + " bytes");
                        return N(Z), T.slice(E - Z, E);
                    }
                    function O() {
                        return N(1), (0, g.readUInt8)(T, E - 1);
                    }
                    function m() {
                        return N(2), (0, g.readUInt16BE)(T, E - 2);
                    }
                    function R() {
                        return N(4), (0, g.readUInt32BE)(T, E - 4);
                    }
                    function v() {
                        return N(8), (0, g.readBigUInt64BE)(T, E - 8);
                    }
                    function A() {
                        var Z = m(), tt = new ArrayBuffer(4), rt = new DataView(tt), at = Z & 32768, ut = Z & 31744, bt = Z & 1023;
                        if (ut === 31744) ut = 261120;
                        else if (ut !== 0) ut += 114688;
                        else if (bt !== 0) return new l.CborSimple((at !== 0 ? -1 : 1) * bt * 5960464477539063e-23, "float");
                        return rt.setUint32(0, at << 16 | ut << 13 | bt << 13), new l.CborSimple(rt.getFloat32(0), "float");
                    }
                    function X() {
                        return N(4), new l.CborSimple((0, g.readFloat32BE)(T, E - 4), "float");
                    }
                    function C() {
                        return N(8), new l.CborSimple((0, g.readFloat64BE)(T, E - 8), "float");
                    }
                    function H() {
                        return (0, g.readUInt8)(T, E) !== 255 ? !1 : (N(1), !0);
                    }
                    function U(Z) {
                        if (Z < 24) return BigInt(Z);
                        if (Z === 24) return BigInt(O());
                        if (Z === 25) return BigInt(m());
                        if (Z === 26) return BigInt(R());
                        if (Z === 27) return v();
                        if (Z === 31) return BigInt(-1);
                        throw new h.BaseCborError("Invalid length encoding while parsing CBOR");
                    }
                    function L(Z) {
                        var tt = O();
                        if (tt === 255) return BigInt(-1);
                        var rt = U(tt & 31);
                        if (rt < 0 || tt >> 5 !== Z) throw new h.BaseCborError("unexpected nested indefinite length element");
                        return rt;
                    }
                    function q(Z) {
                        return (0, g.toUtf8)(y(Z));
                    }
                    function V() {
                        var Z = E, tt = O(), rt = tt >> 5, at = tt & 31;
                        if (rt === o.MajorType.float_or_simple) {
                            if (at === 25) return T.slice(Z, Z + 2);
                            if (at === 26) return T.slice(Z, Z + 3);
                            if (at === 27) return T.slice(Z, Z + 5);
                        }
                        var ut = U(at), bt = E;
                        if (ut < 0 && (rt < 2 || rt > 6)) throw new h.BaseCborError("unexpected indefinite length element while parsing CBOR");
                        switch(rt){
                            case o.MajorType.unsigned:
                                return T.slice(Z, bt);
                            case o.MajorType.negative:
                                return T.slice(Z, bt);
                            case o.MajorType.bytes:
                                if (ut < 0) {
                                    for(var pt = void 0; (pt = L(rt)) >= 0;)N(Number(pt));
                                    return T.slice(Z, E);
                                }
                                return N(Number(ut)), T.slice(Z, E);
                            case o.MajorType.text:
                                if (ut < 0) {
                                    for(var ot = 0; (ot = Number(L(o.MajorType.text))) >= 0;)N(ot);
                                    return T.slice(Z, E);
                                }
                                return N(Number(ut)), T.slice(Z, E);
                            case o.MajorType.array:
                                if (ut < 0) for(; !H();)V();
                                else for(var gt = 0; gt < ut; gt++)V();
                                return T.slice(Z, E);
                            case o.MajorType.map:
                                if (ut < 0) for(; !H();)V(), V();
                                else for(var gt = 0; gt < ut; gt++)V(), V();
                                return T.slice(Z, E);
                            case o.MajorType.tag:
                                return V(), T.slice(Z, E);
                            case o.MajorType.float_or_simple:
                                var W = Number(ut);
                                if (W === 20 || W === 21 || W === 22 || W === 23) return T.slice(Z, E);
                                throw new h.BaseCborError("unrecognized simple value");
                            default:
                                throw new h.BaseCborError("unrecognized majorType: " + rt);
                        }
                    }
                    function Q() {
                        var Z = O(), tt = Z >> 5, rt = Z & 31;
                        if (tt === o.MajorType.float_or_simple) {
                            if (rt === 25) return A();
                            if (rt === 26) return X();
                            if (rt === 27) return C();
                        }
                        var at = U(rt);
                        if (at < 0 && (tt < 2 || tt > 6)) throw new h.BaseCborError("unexpected indefinite length element while parsing CBOR");
                        switch(tt){
                            case o.MajorType.unsigned:
                                return new f.CborUInt(at, rt);
                            case o.MajorType.negative:
                                return new p.CborNegInt(-BigInt(1) - at, rt);
                            case o.MajorType.bytes:
                                {
                                    if (at < 0) {
                                        for(var ut = [], bt = void 0; !H();){
                                            if (bt = Q(), !(bt instanceof _.CborBytes)) throw new h.BaseCborError("unexpected indefinite length element while parsing indefinite length bytes");
                                            ut.push(bt);
                                        }
                                        return new _.CborBytes(ut, rt);
                                    }
                                    return new _.CborBytes(y(Number(at)), rt);
                                }
                            case o.MajorType.text:
                                {
                                    if (at < 0) {
                                        for(var ut = [], bt = void 0; !H();){
                                            if (bt = Q(), !(bt instanceof a.CborText)) throw console.dir(bt, {
                                                depth: 1 / 0
                                            }), new h.BaseCborError("unexpected indefinite length element while parsing indefinite length text");
                                            ut.push(bt);
                                        }
                                        return new a.CborText(ut, rt);
                                    }
                                    return new a.CborText(q(Number(at)), rt);
                                }
                            case o.MajorType.array:
                                if (at < 0) {
                                    for(var pt = []; !H();)pt.push(V());
                                    return new I.LazyCborArray(pt, {
                                        indefinite: !0,
                                        addInfos: rt
                                    });
                                } else {
                                    for(var pt = new Array(Number(at)), ot = 0; ot < at; ot++)pt[ot] = V();
                                    return new I.LazyCborArray(pt, {
                                        indefinite: !1,
                                        addInfos: rt
                                    });
                                }
                            case o.MajorType.map:
                                if (at < 0) {
                                    for(var gt = []; !H();)gt.push({
                                        k: V(),
                                        v: V()
                                    });
                                    return new j.LazyCborMap(gt, {
                                        indefinite: !0,
                                        addInfos: rt
                                    });
                                } else {
                                    for(var gt = new Array(Number(at)), ot = 0; ot < at; ot++)gt[ot] = {
                                        k: V(),
                                        v: V()
                                    };
                                    return new j.LazyCborMap(gt, {
                                        indefinite: !0,
                                        addInfos: rt
                                    });
                                }
                            case o.MajorType.tag:
                                return new w.LazyCborTag(Number(at), Q());
                            case o.MajorType.float_or_simple:
                                var W = Number(at);
                                if (W === 20) return new l.CborSimple(!1);
                                if (W === 21) return new l.CborSimple(!0);
                                if (W === 22) return new l.CborSimple(null);
                                if (W === 23) return new l.CborSimple(void 0);
                                throw new h.BaseCborError("unrecognized simple value");
                            default:
                                throw new h.BaseCborError("unrecognized majorType: " + tt);
                        }
                    }
                    return {
                        parsed: Q(),
                        offset: E
                    };
                }, J;
            })();
            n.Cbor = K;
        })(rw)), rw;
    }
    var od = {}, a4;
    function k4t() {
        if (a4) return od;
        a4 = 1, Object.defineProperty(od, "__esModule", {
            value: !0
        }), od.canBeCborString = od.forceCborString = void 0;
        var n = vc(), t = c0();
        function e(_) {
            return new t.CborString(_ instanceof n.ByteString ? _.toBuffer() : _);
        }
        od.forceCborString = e;
        function o(_) {
            return typeof _ == "string" || _ instanceof Uint8Array || _ instanceof n.ByteString;
        }
        return od.canBeCborString = o, od;
    }
    var id = {}, o4;
    function B4t() {
        return o4 || (o4 = 1, (function(n) {
            var t = id && id.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = id && id.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(dh(), n), e(uh(), n), e(Hx(), n), e(lh(), n);
        })(id)), id;
    }
    var sd = {}, Uo = {}, i4;
    function x4t() {
        if (i4) return Uo;
        i4 = 1;
        var n = Uo && Uo.__extends || (function() {
            var u = function(l, f) {
                return u = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(p, g) {
                    p.__proto__ = g;
                } || function(p, g) {
                    for(var h in g)Object.prototype.hasOwnProperty.call(g, h) && (p[h] = g[h]);
                }, u(l, f);
            };
            return function(l, f) {
                if (typeof f != "function" && f !== null) throw new TypeError("Class extends value " + String(f) + " is not a constructor or null");
                u(l, f);
                function p() {
                    this.constructor = l;
                }
                l.prototype = f === null ? Object.create(f) : (p.prototype = f.prototype, new p);
            };
        })(), t = Uo && Uo.__read || function(u, l) {
            var f = typeof Symbol == "function" && u[Symbol.iterator];
            if (!f) return u;
            var p = f.call(u), g, h = [], B;
            try {
                for(; (l === void 0 || l-- > 0) && !(g = p.next()).done;)h.push(g.value);
            } catch (I) {
                B = {
                    error: I
                };
            } finally{
                try {
                    g && !g.done && (f = p.return) && f.call(p);
                } finally{
                    if (B) throw B.error;
                }
            }
            return h;
        };
        Object.defineProperty(Uo, "__esModule", {
            value: !0
        }), Uo.CborPositiveRational = void 0;
        var e = dp(), o = f0(), _ = u0(), a = l0(), c = Dx(), s = (function(u) {
            n(l, u);
            function l(f, p) {
                var g = this, h = (0, c.forceBigUInt)(f), B = (0, c.forceBigUInt)(p);
                return g = u.call(this, 30, new o.CborArray([
                    new a.CborUInt(h),
                    new a.CborUInt(B)
                ])) || this, (0, e.defineReadOnlyProperty)(g, "num", h), (0, e.defineReadOnlyProperty)(g, "den", B), g;
            }
            return l.fromCborObjOrUndef = function(f) {
                return f instanceof _.CborTag && f.data instanceof o.CborArray && f.data.array[0] instanceof a.CborUInt && f.data.array[1] instanceof a.CborUInt ? new l(f.data.array[0].num, f.data.array[1].num) : void 0;
            }, l.fromNumber = function(f) {
                var p = t(f.toString().split("."), 2), g = p[0], h = p[1];
                return typeof h != "string" ? new l(Number(g), 1) : new l(Number(g + h), Number("1e".concat(h.length)));
            }, l.prototype.toNumber = function() {
                return Number(this.num) / Number(this.den);
            }, l.prototype.valueOf = function() {
                return this.toNumber();
            }, l;
        })(_.CborTag);
        return Uo.CborPositiveRational = s, Uo;
    }
    var wf = {}, s4;
    function j4t() {
        if (s4) return wf;
        s4 = 1, Object.defineProperty(wf, "__esModule", {
            value: !0
        }), wf.readCborTypeAndLength = void 0;
        var n = ve(), t = Gx();
        function e(s) {
            if (!(s.length < 1)) {
                var u = s[0], l = u >> 5, f = u & 31;
                if (l === t.MajorType.float_or_simple) {
                    if (f === 25) {
                        var p = _(s);
                        return p === void 0 ? void 0 : {
                            type: l,
                            length: p
                        };
                    }
                    if (f === 26) {
                        var p = a(s);
                        return p === void 0 ? void 0 : {
                            type: l,
                            length: p
                        };
                    }
                    if (f === 27) {
                        var p = c(s);
                        return p === void 0 ? void 0 : {
                            type: l,
                            length: p
                        };
                    }
                    return {
                        type: l,
                        length: f
                    };
                }
                var g = o(f, s);
                if (typeof g == "bigint") return g < 0 ? {
                    type: l,
                    length: void 0
                } : {
                    type: l,
                    length: g
                };
            }
        }
        wf.readCborTypeAndLength = e;
        function o(s, u) {
            if (s < 24) return BigInt(s);
            if (s === 24) return u.length < 2 ? void 0 : BigInt((0, n.readUint8)(u, 1));
            if (s === 25) return u.length < 3 ? void 0 : BigInt((0, n.readUint16BE)(u, 1));
            if (s === 26) return u.length < 5 ? void 0 : BigInt((0, n.readUint32BE)(u, 1));
            if (s === 27) return u.length < 9 ? void 0 : BigInt((0, n.readBigUInt64BE)(u, 1));
            if (s === 31) return BigInt(-1);
        }
        function _(s) {
            if (!(s.length < 3)) {
                var u = (0, n.readUint16BE)(s, 1), l = new ArrayBuffer(4), f = new DataView(l), p = u & 32768, g = u & 31744, h = u & 1023;
                if (g === 31744) g = 261120;
                else if (g !== 0) g += 114688;
                else if (h !== 0) return (p !== 0 ? -1 : 1) * h * 5960464477539063e-23;
                return f.setUint32(0, p << 16 | g << 13 | h << 13), f.getFloat32(0);
            }
        }
        function a(s) {
            if (!(s.length < 5)) return (0, n.readFloat32BE)(s, 1);
        }
        function c(s) {
            if (!(s.length < 9)) return (0, n.readFloat64BE)(s, 1);
        }
        return wf;
    }
    var c4;
    function S4t() {
        return c4 || (c4 = 1, (function(n) {
            var t = sd && sd.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = sd && sd.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(x4t(), n), e(j4t(), n);
        })(sd)), sd;
    }
    var cd = {}, aw = {}, d4;
    function E4t() {
        return d4 || (d4 = 1, Object.defineProperty(aw, "__esModule", {
            value: !0
        })), aw;
    }
    var u4;
    function O4t() {
        return u4 || (u4 = 1, (function(n) {
            var t = cd && cd.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = cd && cd.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(E4t(), n);
        })(cd)), cd;
    }
    var l4;
    function g0() {
        return l4 || (l4 = 1, (function(n) {
            var t = Gc && Gc.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = Gc && Gc.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(Kx(), n), e(k4t(), n), e(up(), n), e(B4t(), n), e(c0(), n), e(sh(), n), e(S4t(), n), e(O4t(), n), e(fh(), n);
        })(Gc)), Gc;
    }
    var f4;
    function F4t() {
        if (f4) return Dc;
        f4 = 1, Object.defineProperty(Dc, "__esModule", {
            value: !0
        }), Dc.dataFromCbor = Dc.dataFromCborObj = void 0;
        var n = g0(), t = np(), e = _p(), o = ap(), _ = op(), a = sp(), c = ip(), s = Dl();
        function u(f) {
            if ((0, s.assert)((0, n.isCborObj)(f), "Invalid cborObj to convert to Data"), f instanceof n.CborUInt || f instanceof n.CborNegInt) return new o.DataI(f.num);
            if (f instanceof n.CborBytes) return new t.DataB(f.bytes);
            if (f instanceof n.CborArray) return new _.DataList(f.array.map(function(B) {
                return u(B);
            }));
            if (f instanceof n.CborMap) return new a.DataMap(f.map.map(function(B) {
                return new c.DataPair(u(B.k), u(B.v));
            }));
            if (f instanceof n.CborTag) {
                var p = (0, e.cborTagToConstrNumber)(f.tag), g = f.data;
                if (p < BigInt(0) || !(g instanceof n.CborArray)) return u(g);
                if (p === BigInt(102) && f.tag !== BigInt(1375)) {
                    var h = g.array;
                    if (!(h.length === 2 && h[0] instanceof n.CborUInt && h[1] instanceof n.CborArray)) throw new Error("invalid fileds for cbor tag 102 while constructing DataConstr");
                    return new e.DataConstr(h[0].num, h[1].array.map(u));
                }
                return new e.DataConstr(p, g.array.map(u));
            }
            throw new Error("invalid CBOR major type for Data");
        }
        Dc.dataFromCborObj = u;
        function l(f) {
            return u(n.Cbor.parse((0, n.forceCborString)(f)));
        }
        return Dc.dataFromCbor = l, Dc;
    }
    var Co = {}, g4;
    function A4t() {
        if (g4) return Co;
        g4 = 1;
        var n = Co && Co.__read || function(p, g) {
            var h = typeof Symbol == "function" && p[Symbol.iterator];
            if (!h) return p;
            var B = h.call(p), I, j = [], w;
            try {
                for(; (g === void 0 || g-- > 0) && !(I = B.next()).done;)j.push(I.value);
            } catch (S) {
                w = {
                    error: S
                };
            } finally{
                try {
                    I && !I.done && (h = B.return) && h.call(B);
                } finally{
                    if (w) throw w.error;
                }
            }
            return j;
        };
        Object.defineProperty(Co, "__esModule", {
            value: !0
        }), Co.dataFromString = Co.dataFromStringWithOffset = void 0;
        var t = np(), e = _p(), o = ap(), _ = op(), a = ip(), c = sp();
        function s(p) {
            var g = p.indexOf("["), h = p.indexOf("B"), B = p.indexOf("I");
            if (g < 0 || (h >= 0 ? h < g : B >= 0 && B < g)) {
                var I = p.match(/I\s+\+?\-?(?<!\.)(?<!(#|x)\d*)\d+(?!(\.|x))/), j = p.match(/B\s*#[0-9a-fA-F]*/);
                if (!j && !I) throw new Error("expected Data I or B; found none");
                var w = j && I ? p.indexOf(j[0]) < p.indexOf(I[0]) ? j : I : j || I;
                if (!w) throw new Error("expected Data I or B; found none");
                var S = w[0];
                return {
                    formatted: [
                        S
                    ],
                    offset: p.indexOf(S) + S.length
                };
            }
            for(var b = p.slice(0, g).trim(), k = g + 1, F = k, Y = "", K = 0, J = /^\(?(\s*)?Map/.test(p), P = !1, T = void 0, E = [];;){
                switch(Y = p[F], Y){
                    case "[":
                        {
                            K++;
                            break;
                        }
                    case "]":
                        {
                            if (K === 0) {
                                var N = p.substring(k, F).trim();
                                return N !== "" && E.push([
                                    N
                                ]), {
                                    formatted: [
                                        b,
                                        E
                                    ],
                                    offset: F + 1
                                };
                            } else K--;
                            break;
                        }
                    case ",":
                        {
                            if (K === 0) if (!J) E.push(s(p.substring(k, F)).formatted), k = F + 1;
                            else if (P) p[k] === "," && k++, p[k] === "(" && k++, T = s(p.substring(k, F)).formatted, k = F + 1;
                            else break;
                            break;
                        }
                    case "(":
                        {
                            K === 0 && (P = !0);
                            break;
                        }
                    case ")":
                        {
                            if (K === 0) {
                                var y = s(p.substring(k, F)).formatted;
                                k = F + 1, E.push({
                                    k: T,
                                    v: y
                                }), T = void 0, P = !1;
                            }
                            break;
                        }
                }
                F++;
            }
        }
        function u(p) {
            var g = s(p), h = g.formatted, B = g.offset;
            return {
                data: f(h),
                offset: B
            };
        }
        Co.dataFromStringWithOffset = u;
        function l(p) {
            return u(p).data;
        }
        Co.dataFromString = l;
        function f(p) {
            for(var g = p[0]; g.startsWith("(");)g = g.slice(1);
            if (/^\(?(\s*)?Constr/.test(g)) {
                var h = n(g.split(" "), 2);
                h[0];
                var B = h[1], I = BigInt(B);
                if (Array.isArray(p[1])) {
                    var j = p[1].map(f);
                    return new e.DataConstr(I, j);
                } else return l(p[0]);
            }
            if (/^\(?(\s*)?Map/.test(g)) if (Array.isArray(p[1])) {
                var w = p[1];
                return new c.DataMap(w.map(function(Y) {
                    var K = Y.k, J = Y.v;
                    return new a.DataPair(f(K), f(J));
                }));
            } else return l(p[0]);
            if (/^\(?(\s*)?List/.test(g)) return Array.isArray(p[1]) ? new _.DataList(p[1].map(f)) : l(p[0]);
            if (g[0] === "I") {
                var S = n(g.split(" "), 2);
                S[0];
                var b = S[1];
                return new o.DataI(BigInt(b));
            }
            if (g[0] === "B") {
                var k = n(g.split("#"), 2);
                k[0];
                var F = k[1];
                return new t.DataB(F);
            }
            throw new Error("invalid string to parse Data; " + JSON.stringify(p));
        }
        return Co;
    }
    var dd = {}, p4;
    function Vx() {
        if (p4) return dd;
        p4 = 1, Object.defineProperty(dd, "__esModule", {
            value: !0
        }), dd.dataToCbor = dd.dataToCborObj = void 0;
        var n = fu(), t = _p(), e = sp(), o = op(), _ = ap(), a = np(), c = g0(), s = Dl();
        ve(), BigInt("-18446744073709551616"), BigInt("18446744073709551615");
        function u(f) {
            if ((0, s.assert)((0, n.isData)(f), "Invalid data; cannot convert to CBOR"), f instanceof t.DataConstr) {
                var p = f.constr, g = (0, t.constrNumberToCborTag)(p), h = new c.CborArray(f.fields.map(u), {
                    indefinite: f.fields.length > 0
                });
                return Number(g) === 102 && (h = new c.CborArray([
                    new c.CborUInt(p),
                    h
                ])), new c.CborTag(g, h);
            }
            if (f instanceof e.DataMap) return new c.CborMap(f.map.map(function(F) {
                return {
                    k: u(F.fst),
                    v: u(F.snd)
                };
            }), {
                indefinite: f.map.length > 0
            });
            if (f instanceof o.DataList) return new c.CborArray(f.list.map(u), {
                indefinite: f.list.length > 0
            });
            if (f instanceof _.DataI) {
                var B = f.int;
                return B < 0 ? new c.CborNegInt(B) : new c.CborUInt(B);
            }
            if (f instanceof a.DataB) {
                var I = f.bytes.toBuffer();
                if (I.length <= 64) return new c.CborBytes(I);
                for(var j = 64, w = Uint8Array.prototype.slice.call(I, 0, j), S = [], b = 0, k = 0; j < I.length;)b = Math.min(64, I.length - j), k = j + b, S.push(Uint8Array.prototype.slice.call(I, j, k)), j = k;
                return new c.CborBytes(w, S);
            }
            throw new Error("'dataToCborObj' did not match any possible Data constructor");
        }
        dd.dataToCborObj = u;
        function l(f) {
            return c.Cbor.encode(u(f));
        }
        return dd.dataToCbor = l, dd;
    }
    var yf = {}, ud = {}, dn = {}, Oe = {}, w_ = {}, b4;
    function gu() {
        if (b4) return w_;
        b4 = 1;
        var n = w_ && w_.__read || function(a, c) {
            var s = typeof Symbol == "function" && a[Symbol.iterator];
            if (!s) return a;
            var u = s.call(a), l, f = [], p;
            try {
                for(; (c === void 0 || c-- > 0) && !(l = u.next()).done;)f.push(l.value);
            } catch (g) {
                p = {
                    error: g
                };
            } finally{
                try {
                    l && !l.done && (s = u.return) && s.call(u);
                } finally{
                    if (p) throw p.error;
                }
            }
            return f;
        }, t = w_ && w_.__spreadArray || function(a, c, s) {
            if (s || arguments.length === 2) for(var u = 0, l = c.length, f; u < l; u++)(f || !(u in c)) && (f || (f = Array.prototype.slice.call(c, 0, u)), f[u] = c[u]);
            return a.concat(f || Array.prototype.slice.call(c));
        };
        Object.defineProperty(w_, "__esModule", {
            value: !0
        }), w_.assertBytes = w_.assertPostiveInteger = w_.assert = void 0;
        function e(a, c, s) {
            for(var u = [], l = 3; l < arguments.length; l++)u[l - 3] = arguments[l];
            if (!a) throw u.length > 0 && console.error.apply(console, t([], n(u), !1)), s && console.error(s), c instanceof Error ? c : new Error(c);
        }
        w_.assert = e;
        function o(a) {
            if (!Number.isSafeInteger(a) || a < 0) throw new Error("positive integer expected, not ".concat(a));
        }
        w_.assertPostiveInteger = o;
        function _(a) {
            if (!(a instanceof Uint8Array)) throw new Error("Uint8Array expected");
        }
        return w_.assertBytes = _, w_;
    }
    var w4;
    function uc() {
        if (w4) return Oe;
        w4 = 1, Object.defineProperty(Oe, "__esModule", {
            value: !0
        }), Oe.uint64Rotr = Oe.uint64ToBytesBE = Oe.uint64ToBytesLE = Oe.isUint64 = Oe.forceUint64 = Oe.uint64 = Oe.buffToUint5Arr = Oe.byteArrToBin = Oe.byteArrToHex = Oe.buffToByteArr = Oe.isByteArr = Oe.isByte = Oe.byte = Oe.isUint6 = Oe.isUint5 = void 0;
        var n = ve(), t = gu();
        function e(w) {
            return typeof w == "number" && w >= 0 && w <= 31 && w === Math.round(w);
        }
        Oe.isUint5 = e;
        function o(w) {
            return typeof w == "number" && w >= 0 && w <= 63 && w === Math.round(w);
        }
        Oe.isUint6 = o;
        function _(w) {
            return Number(w) & 255;
        }
        Oe.byte = _;
        function a(w) {
            return typeof w == "number" && w >= 0 && w <= 255 && w === Math.round(w);
        }
        Oe.isByte = a;
        function c(w) {
            return Array.isArray(w) && w.every(a);
        }
        Oe.isByteArr = c;
        function s(w) {
            if (!(0, n.isUint8Array)(w)) {
                if (c(w)) return w.slice();
                throw new Error("can't convert non-buffer to byte array");
            }
            return Array.from(w);
        }
        Oe.buffToByteArr = s;
        function u(w) {
            return w instanceof Uint8Array && (w = Array.from(w)), w.reduce(function(S, b) {
                return S + b.toString(16).slice(0, 2).padStart(2, "0");
            }, "");
        }
        Oe.byteArrToHex = u;
        function l(w) {
            return w.reduce(function(S, b) {
                return S + b.toString(2).slice(0, 8).padStart(8, "0");
            }, "");
        }
        Oe.byteArrToBin = l;
        function f(w) {
            var S = [], b = (0, n.isUint8Array)(w) ? Array.from(w).reduce(function(Y, K) {
                return Y + K.toString(2).padStart(8, "0");
            }, "") : c(w) ? l(w) : void 0;
            if (b === void 0) throw new Error("invalid input to convert ot uint5 array");
            var k = b.length % 5;
            k !== 0 && (b = b.padEnd(b.length + (5 - k), "0")), b = b.split("");
            for(var F = 0; F < b.length;)S.push(Number("0b".concat(b[F++]).concat(b[F++]).concat(b[F++]).concat(b[F++]).concat(b[F++])));
            return S;
        }
        Oe.buffToUint5Arr = f;
        function p(w) {
            var S = BigInt(w);
            if (!h(S)) throw new Error("can't convert " + w + " to uint64");
            return S;
        }
        Oe.uint64 = p;
        function g(w) {
            return BigInt(w) & BigInt("0x" + "ff".repeat(8));
        }
        Oe.forceUint64 = g;
        function h(w) {
            return typeof w == "bigint" && w >= BigInt(0) && w < BigInt("0x1" + "00".repeat(8));
        }
        Oe.isUint64 = h;
        function B(w) {
            return [
                _(BigInt("0x00000000000000ff") & w),
                _((BigInt("0x000000000000ff00") & w) >> BigInt(8)),
                _((BigInt("0x0000000000ff0000") & w) >> BigInt(16)),
                _((BigInt("0x00000000ff000000") & w) >> BigInt(24)),
                _((BigInt("0x000000ff00000000") & w) >> BigInt(32)),
                _((BigInt("0x0000ff0000000000") & w) >> BigInt(40)),
                _((BigInt("0x00ff000000000000") & w) >> BigInt(48)),
                _((BigInt("0xff00000000000000") & w) >> BigInt(56))
            ];
        }
        Oe.uint64ToBytesLE = B;
        function I(w) {
            return B(w).reverse();
        }
        Oe.uint64ToBytesBE = I;
        function j(w, S) {
            if ((0, t.assert)(h(w) && o(S), "invalid args for 'uint64And'"), S === 0) return w;
            var b = BigInt(S);
            return g(g(w >> b) | g(w << BigInt(64) - b));
        }
        return Oe.uint64Rotr = j, Oe;
    }
    var ow = {}, y4;
    function Zx() {
        return y4 || (y4 = 1, (function(n) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.decodeBase32Bech32 = n.decodeBase32rfc4648 = n.encodeBase32rfc4648 = n.BECH32_BASE32_ALPHABET = n.rfc4648_ALPHABET = void 0;
            var t = uc(), e = f_();
            n.rfc4648_ALPHABET = Object.freeze([
                "a",
                "b",
                "c",
                "d",
                "e",
                "f",
                "g",
                "h",
                "i",
                "j",
                "k",
                "l",
                "m",
                "n",
                "o",
                "p",
                "q",
                "r",
                "s",
                "t",
                "u",
                "v",
                "w",
                "x",
                "y",
                "z",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7"
            ]), n.BECH32_BASE32_ALPHABET = Object.freeze([
                "q",
                "p",
                "z",
                "r",
                "y",
                "9",
                "x",
                "8",
                "g",
                "f",
                "2",
                "t",
                "v",
                "d",
                "w",
                "0",
                "s",
                "3",
                "j",
                "n",
                "5",
                "4",
                "k",
                "h",
                "c",
                "e",
                "6",
                "m",
                "u",
                "a",
                "7",
                "l"
            ]);
            function o(s) {
                return (0, t.buffToUint5Arr)(s).map(function(u) {
                    return n.rfc4648_ALPHABET[u];
                }).join("");
            }
            n.encodeBase32rfc4648 = o;
            function _(s, u) {
                if (!Array.from(s).every(function(j) {
                    return u.includes(j);
                })) throw new Error("can't decode base32 a string that is not in base32 (rfc 4648); string was: " + s);
                for(var l = s.length, f = "", p = 0; p < l - 1; p++){
                    var g = u.indexOf(s[p].toLowerCase());
                    f += g.toString(2).padStart(5, "0");
                }
                var h = l * 5 - 8 * Math.floor(l * 5 / 8), B = u.indexOf(s[l - 1].toLowerCase()), I = B.toString(2).padStart(5, "0");
                return f += I.slice(0, 5 - h), e.BitStream.fromBinStr(f).toBuffer().buffer;
            }
            function a(s) {
                return _(s, n.rfc4648_ALPHABET);
            }
            n.decodeBase32rfc4648 = a;
            function c(s) {
                return _(s, n.BECH32_BASE32_ALPHABET);
            }
            n.decodeBase32Bech32 = c;
        })(ow)), ow;
    }
    var h4;
    function T4t() {
        if (h4) return dn;
        h4 = 1;
        var n = dn && dn.__values || function(g) {
            var h = typeof Symbol == "function" && Symbol.iterator, B = h && g[h], I = 0;
            if (B) return B.call(g);
            if (g && typeof g.length == "number") return {
                next: function() {
                    return g && I >= g.length && (g = void 0), {
                        value: g && g[I++],
                        done: !g
                    };
                }
            };
            throw new TypeError(h ? "Object is not iterable." : "Symbol.iterator is not defined.");
        };
        Object.defineProperty(dn, "__esModule", {
            value: !0
        }), dn.decodeBech32 = dn.isBech32 = dn.encodeBech32 = dn.getBech32Checksum = dn.getBech32Polymod = dn.expandBech32HumanReadablePart = void 0;
        var t = ve(), e = uc(), o = Zx(), _ = gu();
        function a(g) {
            var h, B, I, j, w = [];
            try {
                for(var S = n(g), b = S.next(); !b.done; b = S.next()){
                    var k = b.value;
                    w.push(k.charCodeAt(0) >> 5);
                }
            } catch (K) {
                h = {
                    error: K
                };
            } finally{
                try {
                    b && !b.done && (B = S.return) && B.call(S);
                } finally{
                    if (h) throw h.error;
                }
            }
            w.push(0);
            try {
                for(var F = n(g), Y = F.next(); !Y.done; Y = F.next()){
                    var k = Y.value;
                    w.push(k.charCodeAt(0) & 31);
                }
            } catch (K) {
                I = {
                    error: K
                };
            } finally{
                try {
                    Y && !Y.done && (j = F.return) && j.call(F);
                } finally{
                    if (I) throw I.error;
                }
            }
            return w;
        }
        dn.expandBech32HumanReadablePart = a;
        var c = Object.freeze([
            996825010,
            642813549,
            513874426,
            1027748829,
            705979059
        ]);
        function s(g) {
            var h, B, I = 1;
            try {
                for(var j = n(g), w = j.next(); !w.done; w = j.next()){
                    var S = w.value, b = I >> 25;
                    I = (I & 536870911) << 5 ^ S;
                    for(var k = 0; k < 5; k++)(b >> k & 1) != 0 && (I ^= c[k]);
                }
            } catch (F) {
                h = {
                    error: F
                };
            } finally{
                try {
                    w && !w.done && (B = j.return) && B.call(j);
                } finally{
                    if (h) throw h.error;
                }
            }
            return I;
        }
        dn.getBech32Polymod = s;
        function u(g, h) {
            for(var B = s(a(g).concat(h).concat([
                0,
                0,
                0,
                0,
                0,
                0
            ])) ^ 1, I = [], j = 0; j < 6; j++)I.push(B >> 5 * (5 - j) & 31);
            return I;
        }
        dn.getBech32Checksum = u;
        function l(g, h) {
            (0, _.assert)(g.length > 0, "human-readable-part must have non-zero length");
            var B = (0, e.buffToUint5Arr)((0, t.isUint8Array)(h) ? h : new Uint8Array(h));
            return g + "1" + B.concat(u(g, B)).map(function(I) {
                return o.BECH32_BASE32_ALPHABET[I];
            }).join("");
        }
        dn.encodeBech32 = l;
        function f(g) {
            var h, B, I = g.indexOf("1");
            if (I == -1 || I == 0) return !1;
            var j = g.slice(0, I);
            g = g.slice(I + 1);
            var w = [];
            try {
                for(var S = n(g), b = S.next(); !b.done; b = S.next()){
                    var k = b.value, F = o.BECH32_BASE32_ALPHABET.indexOf(k);
                    if (F == -1) return !1;
                    w.push(F);
                }
            } catch (P) {
                h = {
                    error: P
                };
            } finally{
                try {
                    b && !b.done && (B = S.return) && B.call(S);
                } finally{
                    if (h) throw h.error;
                }
            }
            for(var Y = w.slice(w.length - 6), K = u(j, w.slice(0, w.length - 6)), J = 0; J < 6; J++)if (Y[J] != K[J]) return !1;
            return !0;
        }
        dn.isBech32 = f;
        function p(g) {
            (0, _.assert)(f(g), "invalid bech32 addr");
            var h = g.indexOf("1");
            (0, _.assert)(h != -1, "bech32 address missing the '1' separator");
            var B = g.slice(0, h);
            g = g.slice(h + 1);
            var I = (0, o.decodeBase32Bech32)(g.slice(0, g.length - 6));
            return [
                B,
                Array.from(I)
            ];
        }
        return dn.decodeBech32 = p, dn;
    }
    var y_ = {}, v4;
    function P4t() {
        if (v4) return y_;
        v4 = 1, Object.defineProperty(y_, "__esModule", {
            value: !0
        }), y_.blake2b_512 = y_.blake2b_256 = y_.blake2b_224 = y_.blake2b_128 = y_.blake2b = void 0;
        function n(b, k, F) {
            var Y = b[k] + b[F], K = b[k + 1] + b[F + 1];
            Y >= 4294967296 && K++, b[k] = Y, b[k + 1] = K;
        }
        function t(b, k, F, Y) {
            var K = b[k] + F;
            F < 0 && (K += 4294967296);
            var J = b[k + 1] + Y;
            K >= 4294967296 && J++, b[k] = K, b[k + 1] = J;
        }
        function e(b, k) {
            return b[k] ^ b[k + 1] << 8 ^ b[k + 2] << 16 ^ b[k + 3] << 24;
        }
        function o(b, k, F, Y, K, J) {
            var P = u[K], T = u[K + 1], E = u[J], N = u[J + 1];
            n(s, b, k), t(s, b, P, T);
            var y = s[Y] ^ s[b], O = s[Y + 1] ^ s[b + 1];
            s[Y] = O, s[Y + 1] = y, n(s, F, Y), y = s[k] ^ s[F], O = s[k + 1] ^ s[F + 1], s[k] = y >>> 24 ^ O << 8, s[k + 1] = O >>> 24 ^ y << 8, n(s, b, k), t(s, b, E, N), y = s[Y] ^ s[b], O = s[Y + 1] ^ s[b + 1], s[Y] = y >>> 16 ^ O << 16, s[Y + 1] = O >>> 16 ^ y << 16, n(s, F, Y), y = s[k] ^ s[F], O = s[k + 1] ^ s[F + 1], s[k] = O >>> 31 ^ y << 1, s[k + 1] = y >>> 31 ^ O << 1;
        }
        var _ = new Uint32Array([
            4089235720,
            1779033703,
            2227873595,
            3144134277,
            4271175723,
            1013904242,
            1595750129,
            2773480762,
            2917565137,
            1359893119,
            725511199,
            2600822924,
            4215389547,
            528734635,
            327033209,
            1541459225
        ]), a = [
            0,
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14,
            15,
            14,
            10,
            4,
            8,
            9,
            15,
            13,
            6,
            1,
            12,
            0,
            2,
            11,
            7,
            5,
            3,
            11,
            8,
            12,
            0,
            5,
            2,
            15,
            13,
            10,
            14,
            3,
            6,
            7,
            1,
            9,
            4,
            7,
            9,
            3,
            1,
            13,
            12,
            11,
            14,
            2,
            6,
            5,
            10,
            4,
            0,
            15,
            8,
            9,
            0,
            5,
            7,
            2,
            4,
            10,
            15,
            14,
            1,
            11,
            12,
            6,
            8,
            3,
            13,
            2,
            12,
            6,
            10,
            0,
            11,
            8,
            3,
            4,
            13,
            7,
            5,
            15,
            14,
            1,
            9,
            12,
            5,
            1,
            15,
            14,
            13,
            4,
            10,
            0,
            7,
            6,
            3,
            9,
            2,
            8,
            11,
            13,
            11,
            7,
            14,
            12,
            1,
            3,
            9,
            5,
            0,
            15,
            4,
            8,
            6,
            2,
            10,
            6,
            15,
            14,
            9,
            11,
            3,
            0,
            8,
            12,
            2,
            13,
            7,
            1,
            4,
            10,
            5,
            10,
            2,
            8,
            4,
            7,
            6,
            1,
            5,
            15,
            11,
            9,
            14,
            3,
            12,
            13,
            0,
            0,
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14,
            15,
            14,
            10,
            4,
            8,
            9,
            15,
            13,
            6,
            1,
            12,
            0,
            2,
            11,
            7,
            5,
            3
        ], c = new Uint8Array(a.map(function(b) {
            return b * 2;
        })), s = new Uint32Array(32), u = new Uint32Array(32);
        function l(b, k) {
            var F = 0;
            for(F = 0; F < 16; F++)s[F] = b.h[F], s[F + 16] = _[F];
            for(s[24] = s[24] ^ b.t, s[25] = s[25] ^ b.t / 4294967296, k && (s[28] = ~s[28], s[29] = ~s[29]), F = 0; F < 32; F++)u[F] = e(b.b, 4 * F);
            for(F = 0; F < 12; F++)o(0, 8, 16, 24, c[F * 16 + 0], c[F * 16 + 1]), o(2, 10, 18, 26, c[F * 16 + 2], c[F * 16 + 3]), o(4, 12, 20, 28, c[F * 16 + 4], c[F * 16 + 5]), o(6, 14, 22, 30, c[F * 16 + 6], c[F * 16 + 7]), o(0, 10, 20, 30, c[F * 16 + 8], c[F * 16 + 9]), o(2, 12, 22, 24, c[F * 16 + 10], c[F * 16 + 11]), o(4, 14, 16, 26, c[F * 16 + 12], c[F * 16 + 13]), o(6, 8, 18, 28, c[F * 16 + 14], c[F * 16 + 15]);
            for(F = 0; F < 16; F++)b.h[F] = b.h[F] ^ s[F] ^ s[F + 16];
        }
        var f = new Uint8Array(64).fill(0);
        function p(b) {
            var k = {
                b: new Uint8Array(128),
                h: new Uint32Array(16),
                t: 0,
                c: 0,
                digestSize: b
            };
            f.fill(0), f[0] = b, f[2] = 1, f[3] = 1;
            for(var F = 0; F < 16; F++)k.h[F] = _[F] ^ e(f, F * 4);
            return k;
        }
        function g(b, k) {
            for(var F = 0; F < k.length; F++)b.c === 128 && (b.t += b.c, l(b, !1), b.c = 0), b.b[b.c++] = k[F];
        }
        function h(b) {
            for(b.t += b.c; b.c < 128;)b.b[b.c++] = 0;
            l(b, !0);
            for(var k = new Uint8Array(b.digestSize), F = 0; F < b.digestSize; F++)k[F] = b.h[F >> 2] >> 8 * (F & 3);
            return k;
        }
        function B(b, k) {
            k === void 0 && (k = 32), b = new Uint8Array(b);
            var F = p(k);
            return g(F, b), h(F);
        }
        y_.blake2b = B;
        function I(b) {
            return B(b, 16);
        }
        y_.blake2b_128 = I;
        function j(b) {
            return B(b, 28);
        }
        y_.blake2b_224 = j;
        function w(b) {
            return B(b, 32);
        }
        y_.blake2b_256 = w;
        function S(b) {
            return B(b, 64);
        }
        return y_.blake2b_512 = S, y_;
    }
    var hf = {}, ld = {}, Er = {}, $t = {}, m4;
    function Yx() {
        if (m4) return $t;
        m4 = 1;
        var n = $t && $t.__read || function(P, T) {
            var E = typeof Symbol == "function" && P[Symbol.iterator];
            if (!E) return P;
            var N = E.call(P), y, O = [], m;
            try {
                for(; (T === void 0 || T-- > 0) && !(y = N.next()).done;)O.push(y.value);
            } catch (R) {
                m = {
                    error: R
                };
            } finally{
                try {
                    y && !y.done && (E = N.return) && E.call(N);
                } finally{
                    if (m) throw m.error;
                }
            }
            return O;
        };
        Object.defineProperty($t, "__esModule", {
            value: !0
        }), $t.add5H = $t.add5L = $t.add4H = $t.add4L = $t.add3H = $t.add3L = $t.add = $t.rotlBL = $t.rotlBH = $t.rotlSL = $t.rotlSH = $t.rotr32L = $t.rotr32H = $t.rotrBL = $t.rotrBH = $t.rotrSL = $t.rotrSH = $t.shrSL = $t.shrSH = $t.toBig = $t.split = $t.fromBig = void 0;
        var t = BigInt(Math.pow(2, 32) - 1), e = BigInt(32);
        function o(P, T) {
            return T === void 0 && (T = !1), T ? {
                h: Number(P & t),
                l: Number(P >> e & t)
            } : {
                h: Number(P >> e & t) | 0,
                l: Number(P & t) | 0
            };
        }
        $t.fromBig = o;
        function _(P, T) {
            var E;
            T === void 0 && (T = !1);
            for(var N = new Uint32Array(P.length), y = new Uint32Array(P.length), O = 0; O < P.length; O++){
                var m = o(P[O], T), R = m.h, v = m.l;
                E = n([
                    R,
                    v
                ], 2), N[O] = E[0], y[O] = E[1];
            }
            return [
                N,
                y
            ];
        }
        $t.split = _;
        var a = function(P, T) {
            return BigInt(P >>> 0) << e | BigInt(T >>> 0);
        };
        $t.toBig = a;
        var c = function(P, T, E) {
            return P >>> E;
        };
        $t.shrSH = c;
        var s = function(P, T, E) {
            return P << 32 - E | T >>> E;
        };
        $t.shrSL = s;
        var u = function(P, T, E) {
            return P >>> E | T << 32 - E;
        };
        $t.rotrSH = u;
        var l = function(P, T, E) {
            return P << 32 - E | T >>> E;
        };
        $t.rotrSL = l;
        var f = function(P, T, E) {
            return P << 64 - E | T >>> E - 32;
        };
        $t.rotrBH = f;
        var p = function(P, T, E) {
            return P >>> E - 32 | T << 64 - E;
        };
        $t.rotrBL = p;
        var g = function(P, T) {
            return T;
        };
        $t.rotr32H = g;
        var h = function(P, T) {
            return P;
        };
        $t.rotr32L = h;
        var B = function(P, T, E) {
            return P << E | T >>> 32 - E;
        };
        $t.rotlSH = B;
        var I = function(P, T, E) {
            return T << E | P >>> 32 - E;
        };
        $t.rotlSL = I;
        var j = function(P, T, E) {
            return T << E - 32 | P >>> 64 - E;
        };
        $t.rotlBH = j;
        var w = function(P, T, E) {
            return P << E - 32 | T >>> 64 - E;
        };
        $t.rotlBL = w;
        function S(P, T, E, N) {
            var y = (T >>> 0) + (N >>> 0);
            return {
                h: P + E + (y / Math.pow(2, 32) | 0) | 0,
                l: y | 0
            };
        }
        $t.add = S;
        var b = function(P, T, E) {
            return (P >>> 0) + (T >>> 0) + (E >>> 0);
        };
        $t.add3L = b;
        var k = function(P, T, E, N) {
            return T + E + N + (P / Math.pow(2, 32) | 0) | 0;
        };
        $t.add3H = k;
        var F = function(P, T, E, N) {
            return (P >>> 0) + (T >>> 0) + (E >>> 0) + (N >>> 0);
        };
        $t.add4L = F;
        var Y = function(P, T, E, N, y) {
            return T + E + N + y + (P / Math.pow(2, 32) | 0) | 0;
        };
        $t.add4H = Y;
        var K = function(P, T, E, N, y) {
            return (P >>> 0) + (T >>> 0) + (E >>> 0) + (N >>> 0) + (y >>> 0);
        };
        $t.add5L = K;
        var J = function(P, T, E, N, y, O) {
            return T + E + N + y + O + (P / Math.pow(2, 32) | 0) | 0;
        };
        return $t.add5H = J, $t;
    }
    var fd = {}, vf = {}, I4;
    function R4t() {
        return I4 || (I4 = 1, Object.defineProperty(vf, "__esModule", {
            value: !0
        }), vf.crypto = void 0, vf.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0), vf;
    }
    var k4;
    function Qi() {
        return k4 || (k4 = 1, (function(n) {
            var t = fd && fd.__awaiter || function(y, O, m, R) {
                function v(A) {
                    return A instanceof m ? A : new m(function(X) {
                        X(A);
                    });
                }
                return new (m || (m = Promise))(function(A, X) {
                    function C(L) {
                        try {
                            U(R.next(L));
                        } catch (q) {
                            X(q);
                        }
                    }
                    function H(L) {
                        try {
                            U(R.throw(L));
                        } catch (q) {
                            X(q);
                        }
                    }
                    function U(L) {
                        L.done ? A(L.value) : v(L.value).then(C, H);
                    }
                    U((R = R.apply(y, O || [])).next());
                });
            }, e = fd && fd.__generator || function(y, O) {
                var m = {
                    label: 0,
                    sent: function() {
                        if (A[0] & 1) throw A[1];
                        return A[1];
                    },
                    trys: [],
                    ops: []
                }, R, v, A, X;
                return X = {
                    next: C(0),
                    throw: C(1),
                    return: C(2)
                }, typeof Symbol == "function" && (X[Symbol.iterator] = function() {
                    return this;
                }), X;
                function C(U) {
                    return function(L) {
                        return H([
                            U,
                            L
                        ]);
                    };
                }
                function H(U) {
                    if (R) throw new TypeError("Generator is already executing.");
                    for(; X && (X = 0, U[0] && (m = 0)), m;)try {
                        if (R = 1, v && (A = U[0] & 2 ? v.return : U[0] ? v.throw || ((A = v.return) && A.call(v), 0) : v.next) && !(A = A.call(v, U[1])).done) return A;
                        switch(v = 0, A && (U = [
                            U[0] & 2,
                            A.value
                        ]), U[0]){
                            case 0:
                            case 1:
                                A = U;
                                break;
                            case 4:
                                return m.label++, {
                                    value: U[1],
                                    done: !1
                                };
                            case 5:
                                m.label++, v = U[1], U = [
                                    0
                                ];
                                continue;
                            case 7:
                                U = m.ops.pop(), m.trys.pop();
                                continue;
                            default:
                                if (A = m.trys, !(A = A.length > 0 && A[A.length - 1]) && (U[0] === 6 || U[0] === 2)) {
                                    m = 0;
                                    continue;
                                }
                                if (U[0] === 3 && (!A || U[1] > A[0] && U[1] < A[3])) {
                                    m.label = U[1];
                                    break;
                                }
                                if (U[0] === 6 && m.label < A[1]) {
                                    m.label = A[1], A = U;
                                    break;
                                }
                                if (A && m.label < A[2]) {
                                    m.label = A[2], m.ops.push(U);
                                    break;
                                }
                                A[2] && m.ops.pop(), m.trys.pop();
                                continue;
                        }
                        U = O.call(y, m);
                    } catch (L) {
                        U = [
                            6,
                            L
                        ], v = 0;
                    } finally{
                        R = A = 0;
                    }
                    if (U[0] & 5) throw U[1];
                    return {
                        value: U[0] ? U[1] : void 0,
                        done: !0
                    };
                }
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.randomBytes = n.wrapXOFConstructorWithOpts = n.wrapConstructorWithOpts = n.wrapConstructor = n.checkOpts = n.Hash = n.concatBytes = n.toBytes = n.asyncLoop = n.nextTick = n.hexToBytes = n.bytesToHex = n.byteSwap32 = n.byteSwapIfBE = n.byteSwap = n.isLE = n.rotl = n.rotr = n.createView = n.u32 = n.u8 = void 0;
            var o = ve(), _ = gu(), a = R4t(), c = function(y) {
                return new Uint8Array(y.buffer, y.byteOffset, y.byteLength);
            };
            n.u8 = c;
            var s = function(y) {
                return new Uint32Array(y.buffer, y.byteOffset, Math.floor(y.byteLength / 4));
            };
            n.u32 = s;
            var u = function(y) {
                return new DataView(y.buffer, y.byteOffset, y.byteLength);
            };
            n.createView = u;
            var l = function(y, O) {
                return y << 32 - O | y >>> O;
            };
            n.rotr = l;
            var f = function(y, O) {
                return y << O | y >>> 32 - O >>> 0;
            };
            n.rotl = f, n.isLE = new Uint8Array(new Uint32Array([
                287454020
            ]).buffer)[0] === 68;
            var p = function(y) {
                return y << 24 & 4278190080 | y << 8 & 16711680 | y >>> 8 & 65280 | y >>> 24 & 255;
            };
            n.byteSwap = p, n.byteSwapIfBE = n.isLE ? function(y) {
                return y;
            } : function(y) {
                return (0, n.byteSwap)(y);
            };
            function g(y) {
                for(var O = 0; O < y.length; O++)y[O] = (0, n.byteSwap)(y[O]);
            }
            n.byteSwap32 = g;
            var h = Array.from({
                length: 256
            }, function(y, O) {
                return O.toString(16).padStart(2, "0");
            });
            function B(y) {
                (0, _.assertBytes)(y);
                for(var O = "", m = 0; m < y.length; m++)O += h[y[m]];
                return O;
            }
            n.bytesToHex = B;
            var I = {
                _0: 48,
                _9: 57,
                _A: 65,
                _F: 70,
                _a: 97,
                _f: 102
            };
            function j(y) {
                if (y >= I._0 && y <= I._9) return y - I._0;
                if (y >= I._A && y <= I._F) return y - (I._A - 10);
                if (y >= I._a && y <= I._f) return y - (I._a - 10);
            }
            function w(y) {
                if (typeof y != "string") throw new Error("hex string expected, got " + typeof y);
                var O = y.length, m = O / 2;
                if (O % 2) throw new Error("padded hex string expected, got unpadded hex of length " + O);
                for(var R = new Uint8Array(m), v = 0, A = 0; v < m; v++, A += 2){
                    var X = j(y.charCodeAt(A)), C = j(y.charCodeAt(A + 1));
                    if (X === void 0 || C === void 0) {
                        var H = y[A] + y[A + 1];
                        throw new Error('hex string expected, got non-hex character "' + H + '" at index ' + A);
                    }
                    R[v] = X * 16 + C;
                }
                return R;
            }
            n.hexToBytes = w;
            var S = function() {
                return t(void 0, void 0, void 0, function() {
                    return e(this, function(y) {
                        return [
                            2
                        ];
                    });
                });
            };
            n.nextTick = S;
            function b(y, O, m) {
                return t(this, void 0, void 0, function() {
                    var R, v, A;
                    return e(this, function(X) {
                        switch(X.label){
                            case 0:
                                R = Date.now(), v = 0, X.label = 1;
                            case 1:
                                return v < y ? (m(v), A = Date.now() - R, A >= 0 && A < O ? [
                                    3,
                                    3
                                ] : [
                                    4,
                                    (0, n.nextTick)()
                                ]) : [
                                    3,
                                    4
                                ];
                            case 2:
                                X.sent(), R += A, X.label = 3;
                            case 3:
                                return v++, [
                                    3,
                                    1
                                ];
                            case 4:
                                return [
                                    2
                                ];
                        }
                    });
                });
            }
            n.asyncLoop = b;
            function k(y) {
                return typeof y == "string" && (y = (0, o.fromUtf8)(y)), (0, _.assertBytes)(y), y;
            }
            n.toBytes = k;
            function F() {
                for(var y = [], O = 0; O < arguments.length; O++)y[O] = arguments[O];
                for(var m = 0, R = 0; R < y.length; R++){
                    var v = y[R];
                    (0, _.assertBytes)(v), m += v.length;
                }
                for(var A = new Uint8Array(m), R = 0, X = 0; R < y.length; R++){
                    var v = y[R];
                    A.set(v, X), X += v.length;
                }
                return A;
            }
            n.concatBytes = F;
            var Y = (function() {
                function y() {}
                return y.prototype.clone = function() {
                    return this._cloneInto();
                }, y;
            })();
            n.Hash = Y;
            var K = {}.toString;
            function J(y, O) {
                if (O !== void 0 && K.call(O) !== "[object Object]") throw new Error("Options should be object or undefined");
                var m = Object.assign(y, O);
                return m;
            }
            n.checkOpts = J;
            function P(y) {
                var O = function(R) {
                    return y().update(k(R)).digest();
                }, m = y();
                return O.outputLen = m.outputLen, O.blockLen = m.blockLen, O.create = function() {
                    return y();
                }, O;
            }
            n.wrapConstructor = P;
            function T(y) {
                var O = function(R, v) {
                    return y(v).update(k(R)).digest();
                }, m = y({});
                return O.outputLen = m.outputLen, O.blockLen = m.blockLen, O.create = function(R) {
                    return y(R);
                }, O;
            }
            n.wrapConstructorWithOpts = T;
            function E(y) {
                var O = function(R, v) {
                    return y(v).update(k(R)).digest();
                }, m = y({});
                return O.outputLen = m.outputLen, O.blockLen = m.blockLen, O.create = function(R) {
                    return y(R);
                }, O;
            }
            n.wrapXOFConstructorWithOpts = E;
            function N(y) {
                if (y === void 0 && (y = 32), a.crypto && typeof a.crypto.getRandomValues == "function") return a.crypto.getRandomValues(new Uint8Array(y));
                throw new Error("crypto.getRandomValues must be defined");
            }
            n.randomBytes = N;
        })(fd)), fd;
    }
    var B4;
    function Wx() {
        if (B4) return Er;
        B4 = 1;
        var n = Er && Er.__extends || (function() {
            var y = function(O, m) {
                return y = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(R, v) {
                    R.__proto__ = v;
                } || function(R, v) {
                    for(var A in v)Object.prototype.hasOwnProperty.call(v, A) && (R[A] = v[A]);
                }, y(O, m);
            };
            return function(O, m) {
                if (typeof m != "function" && m !== null) throw new TypeError("Class extends value " + String(m) + " is not a constructor or null");
                y(O, m);
                function R() {
                    this.constructor = O;
                }
                O.prototype = m === null ? Object.create(m) : (R.prototype = m.prototype, new R);
            };
        })(), t = Er && Er.__read || function(y, O) {
            var m = typeof Symbol == "function" && y[Symbol.iterator];
            if (!m) return y;
            var R = m.call(y), v, A = [], X;
            try {
                for(; (O === void 0 || O-- > 0) && !(v = R.next()).done;)A.push(v.value);
            } catch (C) {
                X = {
                    error: C
                };
            } finally{
                try {
                    v && !v.done && (m = R.return) && m.call(R);
                } finally{
                    if (X) throw X.error;
                }
            }
            return A;
        }, e;
        Object.defineProperty(Er, "__esModule", {
            value: !0
        }), Er.keccak_512 = Er.keccak_384 = Er.keccak_256 = Er.keccak_224 = Er.Keccak = Er.keccakP = void 0;
        for(var o = Yx(), _ = Qi(), a = gu(), c = [], s = [], u = [], l = BigInt(0), f = BigInt(1), p = BigInt(2), g = BigInt(7), h = BigInt(256), B = BigInt(113), I = 0, j = f, w = 1, S = 0; I < 24; I++){
            e = t([
                S,
                (2 * w + 3 * S) % 5
            ], 2), w = e[0], S = e[1], c.push(2 * (5 * S + w)), s.push((I + 1) * (I + 2) / 2 % 64);
            for(var b = l, k = 0; k < 7; k++)j = (j << f ^ (j >> g) * B) % h, j & p && (b ^= f << (f << BigInt(k)) - f);
            u.push(b);
        }
        var F = t((0, o.split)(u, !0), 2), Y = F[0], K = F[1], J = function(y, O, m) {
            return m > 32 ? (0, o.rotlBH)(y, O, m) : (0, o.rotlSH)(y, O, m);
        }, P = function(y, O, m) {
            return m > 32 ? (0, o.rotlBL)(y, O, m) : (0, o.rotlSL)(y, O, m);
        };
        function T(y, O) {
            O === void 0 && (O = 24);
            for(var m = new Uint32Array(10), R = 24 - O; R < 24; R++){
                for(var v = 0; v < 10; v++)m[v] = y[v] ^ y[v + 10] ^ y[v + 20] ^ y[v + 30] ^ y[v + 40];
                for(var v = 0; v < 10; v += 2)for(var A = (v + 8) % 10, X = (v + 2) % 10, C = m[X], H = m[X + 1], U = J(C, H, 1) ^ m[A], L = P(C, H, 1) ^ m[A + 1], q = 0; q < 50; q += 10)y[v + q] ^= U, y[v + q + 1] ^= L;
                for(var V = y[2], Q = y[3], Z = 0; Z < 24; Z++){
                    var tt = s[Z], U = J(V, Q, tt), L = P(V, Q, tt), rt = c[Z];
                    V = y[rt], Q = y[rt + 1], y[rt] = U, y[rt + 1] = L;
                }
                for(var q = 0; q < 50; q += 10){
                    for(var v = 0; v < 10; v++)m[v] = y[q + v];
                    for(var v = 0; v < 10; v++)y[q + v] ^= ~m[(v + 2) % 10] & m[(v + 4) % 10];
                }
                y[0] ^= Y[R], y[1] ^= K[R];
            }
            m.fill(0);
        }
        Er.keccakP = T;
        var E = (function(y) {
            n(O, y);
            function O(m, R, v, A, X) {
                A === void 0 && (A = !1), X === void 0 && (X = 24);
                var C = y.call(this) || this;
                if (C.blockLen = m, C.suffix = R, C.outputLen = v, C.enableXOF = A, C.rounds = X, C.pos = 0, C.posOut = 0, C.finished = !1, C.destroyed = !1, (0, a.assertPostiveInteger)(v), 0 >= C.blockLen || C.blockLen >= 200) throw new Error("Sha3 supports only keccak-f1600 function");
                return C.state = new Uint8Array(200), C.state32 = (0, _.u32)(C.state), C;
            }
            return O.prototype.keccak = function() {
                _.isLE || (0, _.byteSwap32)(this.state32), T(this.state32, this.rounds), _.isLE || (0, _.byteSwap32)(this.state32), this.posOut = 0, this.pos = 0;
            }, O.prototype.update = function(m) {
                this.assertExists();
                var R = this, v = R.blockLen, A = R.state;
                m = (0, _.toBytes)(m);
                for(var X = m.length, C = 0; C < X;){
                    for(var H = Math.min(v - this.pos, X - C), U = 0; U < H; U++)A[this.pos++] ^= m[C++];
                    this.pos === v && this.keccak();
                }
                return this;
            }, O.prototype.finish = function() {
                if (!this.finished) {
                    this.finished = !0;
                    var m = this, R = m.state, v = m.suffix, A = m.pos, X = m.blockLen;
                    R[A] ^= v, (v & 128) !== 0 && A === X - 1 && this.keccak(), R[X - 1] ^= 128, this.keccak();
                }
            }, O.prototype.writeInto = function(m) {
                if (this.assertExists(!1), !(m instanceof Uint8Array)) throw new Error("Uint8Array expected");
                this.finish();
                for(var R = this.state, v = this.blockLen, A = 0, X = m.length; A < X;){
                    this.posOut >= v && this.keccak();
                    var C = Math.min(v - this.posOut, X - A);
                    m.set(R.subarray(this.posOut, this.posOut + C), A), this.posOut += C, A += C;
                }
                return m;
            }, O.prototype.xofInto = function(m) {
                if (!this.enableXOF) throw new Error("XOF is not possible for this instance");
                return this.writeInto(m);
            }, O.prototype.xof = function(m) {
                return (0, a.assertPostiveInteger)(m), this.xofInto(new Uint8Array(m));
            }, O.prototype.digestInto = function(m) {
                if (!(m instanceof Uint8Array)) throw new Error("Uint8Array expected");
                var R = this.outputLen;
                if (m.length < R) throw new Error("digestInto() expects output buffer of length at least ".concat(R));
                if (this.finished) throw new Error("digest() was already called");
                return this.writeInto(m), this.destroy(), m;
            }, O.prototype.digest = function() {
                return this.digestInto(new Uint8Array(this.outputLen));
            }, O.prototype.destroy = function() {
                this.destroyed = !0, this.state.fill(0);
            }, O.prototype._cloneInto = function(m) {
                var R = this, v = R.blockLen, A = R.suffix, X = R.outputLen, C = R.rounds, H = R.enableXOF;
                return m || (m = new O(v, A, X, H, C)), m.state32.set(this.state32), m.pos = this.pos, m.posOut = this.posOut, m.finished = this.finished, m.rounds = C, m.suffix = A, m.outputLen = X, m.enableXOF = H, m.destroyed = this.destroyed, m;
            }, O.prototype.assertExists = function(m) {
                if (m === void 0 && (m = !0), this.destroyed) throw new Error("Hash instance has been destroyed");
                if (m && this.finished) throw new Error("Hash#digest() has already been called");
            }, O;
        })(_.Hash);
        Er.Keccak = E;
        var N = function(y, O, m) {
            return (0, _.wrapConstructor)(function() {
                return new E(O, y, m);
            });
        };
        return Er.keccak_224 = N(1, 144, 224 / 8), Er.keccak_256 = N(1, 136, 256 / 8), Er.keccak_384 = N(1, 104, 384 / 8), Er.keccak_512 = N(1, 72, 512 / 8), Er;
    }
    var h_ = {}, No = {}, oe = {}, Wt = {}, x4;
    function Mi() {
        if (x4) return Wt;
        x4 = 1;
        var n = Wt && Wt.__read || function(v, A) {
            var X = typeof Symbol == "function" && v[Symbol.iterator];
            if (!X) return v;
            var C = X.call(v), H, U = [], L;
            try {
                for(; (A === void 0 || A-- > 0) && !(H = C.next()).done;)U.push(H.value);
            } catch (q) {
                L = {
                    error: q
                };
            } finally{
                try {
                    H && !H.done && (X = C.return) && X.call(C);
                } finally{
                    if (L) throw L.error;
                }
            }
            return U;
        }, t = Wt && Wt.__spreadArray || function(v, A, X) {
            if (X || arguments.length === 2) for(var C = 0, H = A.length, U; C < H; C++)(U || !(C in A)) && (U || (U = Array.prototype.slice.call(A, 0, C)), U[C] = A[C]);
            return v.concat(U || Array.prototype.slice.call(A));
        }, e = Wt && Wt.__values || function(v) {
            var A = typeof Symbol == "function" && Symbol.iterator, X = A && v[A], C = 0;
            if (X) return X.call(v);
            if (v && typeof v.length == "number") return {
                next: function() {
                    return v && C >= v.length && (v = void 0), {
                        value: v && v[C++],
                        done: !v
                    };
                }
            };
            throw new TypeError(A ? "Object is not iterable." : "Symbol.iterator is not defined.");
        };
        Object.defineProperty(Wt, "__esModule", {
            value: !0
        }), Wt.validateObject = Wt.createHmacDrbg = Wt.bitMask = Wt.bitSet = Wt.bitGet = Wt.bitLen = Wt.utf8ToBytes = Wt.equalBytes = Wt.concatBytes = Wt.ensureBytes = Wt.numberToVarBytesBE = Wt.numberToBytesLE = Wt.numberToBytesBE = Wt.bytesToNumberLE = Wt.bytesToNumberBE = Wt.hexToBytes = Wt.hexToNumber = Wt.numberToHexUnpadded = Wt.bytesToHex = Wt.abytes = Wt.isBytes = void 0;
        var o = BigInt(0), _ = BigInt(1), a = BigInt(2);
        function c(v) {
            return v instanceof Uint8Array || v != null && typeof v == "object" && v.constructor.name === "Uint8Array";
        }
        Wt.isBytes = c;
        function s(v) {
            if (!c(v)) throw new Error("Uint8Array expected");
        }
        Wt.abytes = s;
        var u = Array.from({
            length: 256
        }, function(v, A) {
            return A.toString(16).padStart(2, "0");
        });
        function l(v) {
            s(v);
            for(var A = "", X = 0; X < v.length; X++)A += u[v[X]];
            return A;
        }
        Wt.bytesToHex = l;
        function f(v) {
            var A = v.toString(16);
            return A.length & 1 ? "0".concat(A) : A;
        }
        Wt.numberToHexUnpadded = f;
        function p(v) {
            if (typeof v != "string") throw new Error("hex string expected, got " + typeof v);
            return BigInt(v === "" ? "0" : "0x".concat(v));
        }
        Wt.hexToNumber = p;
        var g = {
            _0: 48,
            _9: 57,
            _A: 65,
            _F: 70,
            _a: 97,
            _f: 102
        };
        function h(v) {
            if (v >= g._0 && v <= g._9) return v - g._0;
            if (v >= g._A && v <= g._F) return v - (g._A - 10);
            if (v >= g._a && v <= g._f) return v - (g._a - 10);
        }
        function B(v) {
            if (typeof v != "string") throw new Error("hex string expected, got " + typeof v);
            var A = v.length, X = A / 2;
            if (A % 2) throw new Error("padded hex string expected, got unpadded hex of length " + A);
            for(var C = new Uint8Array(X), H = 0, U = 0; H < X; H++, U += 2){
                var L = h(v.charCodeAt(U)), q = h(v.charCodeAt(U + 1));
                if (L === void 0 || q === void 0) {
                    var V = v[U] + v[U + 1];
                    throw new Error('hex string expected, got non-hex character "' + V + '" at index ' + U);
                }
                C[H] = L * 16 + q;
            }
            return C;
        }
        Wt.hexToBytes = B;
        function I(v) {
            return p(l(v));
        }
        Wt.bytesToNumberBE = I;
        function j(v) {
            return s(v), p(l(Uint8Array.from(v).reverse()));
        }
        Wt.bytesToNumberLE = j;
        function w(v, A) {
            return B(v.toString(16).padStart(A * 2, "0"));
        }
        Wt.numberToBytesBE = w;
        function S(v, A) {
            return w(v, A).reverse();
        }
        Wt.numberToBytesLE = S;
        function b(v) {
            return B(f(v));
        }
        Wt.numberToVarBytesBE = b;
        function k(v, A, X) {
            var C;
            if (typeof A == "string") try {
                C = B(A);
            } catch (U) {
                throw new Error("".concat(v, ' must be valid hex string, got "').concat(A, '". Cause: ').concat(U));
            }
            else if (c(A)) C = Uint8Array.from(A);
            else throw new Error("".concat(v, " must be hex string or Uint8Array"));
            var H = C.length;
            if (typeof X == "number" && H !== X) throw new Error("".concat(v, " expected ").concat(X, " bytes, got ").concat(H));
            return C;
        }
        Wt.ensureBytes = k;
        function F() {
            for(var v = [], A = 0; A < arguments.length; A++)v[A] = arguments[A];
            for(var X = 0, C = 0; C < v.length; C++){
                var H = v[C];
                s(H), X += H.length;
            }
            for(var U = new Uint8Array(X), C = 0, L = 0; C < v.length; C++){
                var H = v[C];
                U.set(H, L), L += H.length;
            }
            return U;
        }
        Wt.concatBytes = F;
        function Y(v, A) {
            if (v.length !== A.length) return !1;
            for(var X = 0, C = 0; C < v.length; C++)X |= v[C] ^ A[C];
            return X === 0;
        }
        Wt.equalBytes = Y;
        function K(v) {
            if (typeof v != "string") throw new Error("utf8ToBytes expected string, got ".concat(typeof v));
            return new Uint8Array(new TextEncoder().encode(v));
        }
        Wt.utf8ToBytes = K;
        function J(v) {
            var A;
            for(A = 0; v > o; v >>= _, A += 1);
            return A;
        }
        Wt.bitLen = J;
        function P(v, A) {
            return v >> BigInt(A) & _;
        }
        Wt.bitGet = P;
        function T(v, A, X) {
            return v | (X ? _ : o) << BigInt(A);
        }
        Wt.bitSet = T;
        var E = function(v) {
            return (a << BigInt(v - 1)) - _;
        };
        Wt.bitMask = E;
        var N = function(v) {
            return new Uint8Array(v);
        }, y = function(v) {
            return Uint8Array.from(v);
        };
        function O(v, A, X) {
            if (typeof v != "number" || v < 2) throw new Error("hashLen must be a number");
            if (typeof A != "number" || A < 2) throw new Error("qByteLen must be a number");
            if (typeof X != "function") throw new Error("hmacFn must be a function");
            var C = N(v), H = N(v), U = 0, L = function() {
                C.fill(1), H.fill(0), U = 0;
            }, q = function() {
                for(var tt = [], rt = 0; rt < arguments.length; rt++)tt[rt] = arguments[rt];
                return X.apply(void 0, t([
                    H,
                    C
                ], n(tt), !1));
            }, V = function(tt) {
                tt === void 0 && (tt = N()), H = q(y([
                    0
                ]), tt), C = q(), tt.length !== 0 && (H = q(y([
                    1
                ]), tt), C = q());
            }, Q = function() {
                if (U++ >= 1e3) throw new Error("drbg: tried 1000 values");
                for(var tt = 0, rt = []; tt < A;){
                    C = q();
                    var at = C.slice();
                    rt.push(at), tt += C.length;
                }
                return F.apply(void 0, t([], n(rt), !1));
            }, Z = function(tt, rt) {
                L(), V(tt);
                for(var at = void 0; !(at = rt(Q()));)V();
                return L(), at;
            };
            return Z;
        }
        Wt.createHmacDrbg = O;
        var m = {
            bigint: function(v) {
                return typeof v == "bigint";
            },
            function: function(v) {
                return typeof v == "function";
            },
            boolean: function(v) {
                return typeof v == "boolean";
            },
            string: function(v) {
                return typeof v == "string";
            },
            stringOrUint8Array: function(v) {
                return typeof v == "string" || c(v);
            },
            isSafeInteger: function(v) {
                return Number.isSafeInteger(v);
            },
            array: function(v) {
                return Array.isArray(v);
            },
            field: function(v, A) {
                return A.Fp.isValid(v);
            },
            hash: function(v) {
                return typeof v == "function" && Number.isSafeInteger(v.outputLen);
            }
        };
        function R(v, A, X) {
            var C, H, U, L;
            X === void 0 && (X = {});
            var q = function(pt, ot, gt) {
                var W = m[ot];
                if (typeof W != "function") throw new Error('Invalid validator "'.concat(ot, '", expected function'));
                var G = v[pt];
                if (!(gt && G === void 0) && !W(G, v)) throw new Error("Invalid param ".concat(String(pt), "=").concat(G, " (").concat(typeof G, "), expected ").concat(ot));
            };
            try {
                for(var V = e(Object.entries(A)), Q = V.next(); !Q.done; Q = V.next()){
                    var Z = n(Q.value, 2), tt = Z[0], rt = Z[1];
                    q(tt, rt, !1);
                }
            } catch (pt) {
                C = {
                    error: pt
                };
            } finally{
                try {
                    Q && !Q.done && (H = V.return) && H.call(V);
                } finally{
                    if (C) throw C.error;
                }
            }
            try {
                for(var at = e(Object.entries(X)), ut = at.next(); !ut.done; ut = at.next()){
                    var bt = n(ut.value, 2), tt = bt[0], rt = bt[1];
                    q(tt, rt, !0);
                }
            } catch (pt) {
                U = {
                    error: pt
                };
            } finally{
                try {
                    ut && !ut.done && (L = at.return) && L.call(at);
                } finally{
                    if (U) throw U.error;
                }
            }
            return v;
        }
        return Wt.validateObject = R, Wt;
    }
    var j4;
    function Hl() {
        if (j4) return oe;
        j4 = 1, Object.defineProperty(oe, "__esModule", {
            value: !0
        }), oe.mapHashToField = oe.getMinHashLength = oe.getFieldBytesLength = oe.hashToPrivateScalar = oe.FpSqrtEven = oe.FpSqrtOdd = oe.Field = oe.nLength = oe.FpIsSquare = oe.FpDiv = oe.FpInvertBatch = oe.FpPow = oe.validateField = oe.isNegativeLE = oe.FpSqrt = oe.tonelliShanks = oe.invert = oe.pow2 = oe.pow = oe.mod = void 0;
        var n = Mi(), t = BigInt(0), e = BigInt(1), o = BigInt(2), _ = BigInt(3), a = BigInt(4), c = BigInt(5), s = BigInt(8);
        BigInt(9), BigInt(16);
        function u(y, O) {
            var m = y % O;
            return m >= t ? m : O + m;
        }
        oe.mod = u;
        function l(y, O, m) {
            if (m <= t || O < t) throw new Error("Expected power/modulo > 0");
            if (m === e) return t;
            for(var R = e; O > t;)O & e && (R = R * y % m), y = y * y % m, O >>= e;
            return R;
        }
        oe.pow = l;
        function f(y, O, m) {
            for(var R = y; O-- > t;)R *= R, R %= m;
            return R;
        }
        oe.pow2 = f;
        function p(y, O) {
            if (y === t || O <= t) throw new Error("invert: expected positive integers, got n=".concat(y, " mod=").concat(O));
            for(var m = u(y, O), R = O, v = t, A = e; m !== t;){
                var X = R / m, C = R % m, H = v - A * X;
                R = m, m = C, v = A, A = H;
            }
            var U = R;
            if (U !== e) throw new Error("invert: does not exist");
            return u(v, O);
        }
        oe.invert = p;
        function g(y) {
            var O = (y - e) / o, m, R, v;
            for(m = y - e, R = 0; m % o === t; m /= o, R++);
            for(v = o; v < y && l(v, O, y) !== y - e; v++);
            if (R === 1) {
                var A = (y + e) / a;
                return function(H, U) {
                    var L = H.pow(U, A);
                    if (!H.eql(H.sqr(L), U)) throw new Error("Cannot find square root");
                    return L;
                };
            }
            var X = (m + e) / o;
            return function(H, U) {
                if (H.pow(U, O) === H.neg(H.ONE)) throw new Error("Cannot find square root");
                for(var L = R, q = H.pow(H.mul(H.ONE, v), m), V = H.pow(U, X), Q = H.pow(U, m); !H.eql(Q, H.ONE);){
                    if (H.eql(Q, H.ZERO)) return H.ZERO;
                    for(var Z = 1, tt = H.sqr(Q); Z < L && !H.eql(tt, H.ONE); Z++)tt = H.sqr(tt);
                    var rt = H.pow(q, e << BigInt(L - Z - 1));
                    q = H.sqr(rt), V = H.mul(V, rt), Q = H.mul(Q, q), L = Z;
                }
                return V;
            };
        }
        oe.tonelliShanks = g;
        function h(y) {
            if (y % a === _) {
                var O = (y + e) / a;
                return function(v, A) {
                    var X = v.pow(A, O);
                    if (!v.eql(v.sqr(X), A)) throw new Error("Cannot find square root");
                    return X;
                };
            }
            if (y % s === c) {
                var m = (y - c) / s;
                return function(v, A) {
                    var X = v.mul(A, o), C = v.pow(X, m), H = v.mul(A, C), U = v.mul(v.mul(H, o), C), L = v.mul(H, v.sub(U, v.ONE));
                    if (!v.eql(v.sqr(L), A)) throw new Error("Cannot find square root");
                    return L;
                };
            }
            return g(y);
        }
        oe.FpSqrt = h;
        var B = function(y, O) {
            return (u(y, O) & e) === e;
        };
        oe.isNegativeLE = B;
        var I = [
            "create",
            "isValid",
            "is0",
            "neg",
            "inv",
            "sqrt",
            "sqr",
            "eql",
            "add",
            "sub",
            "mul",
            "pow",
            "div",
            "addN",
            "subN",
            "mulN",
            "sqrN"
        ];
        function j(y) {
            var O = {
                ORDER: "bigint",
                MASK: "bigint",
                BYTES: "isSafeInteger",
                BITS: "isSafeInteger"
            }, m = I.reduce(function(R, v) {
                return R[v] = "function", R;
            }, O);
            return (0, n.validateObject)(y, m);
        }
        oe.validateField = j;
        function w(y, O, m) {
            if (m < t) throw new Error("Expected power > 0");
            if (m === t) return y.ONE;
            if (m === e) return O;
            for(var R = y.ONE, v = O; m > t;)m & e && (R = y.mul(R, v)), v = y.sqr(v), m >>= e;
            return R;
        }
        oe.FpPow = w;
        function S(y, O) {
            var m = new Array(O.length), R = O.reduce(function(A, X, C) {
                return y.is0(X) ? A : (m[C] = A, y.mul(A, X));
            }, y.ONE), v = y.inv(R);
            return O.reduceRight(function(A, X, C) {
                return y.is0(X) ? A : (m[C] = y.mul(A, m[C]), y.mul(A, X));
            }, v), m;
        }
        oe.FpInvertBatch = S;
        function b(y, O, m) {
            return y.mul(O, typeof m == "bigint" ? p(m, y.ORDER) : y.inv(m));
        }
        oe.FpDiv = b;
        function k(y) {
            var O = (y.ORDER - e) / o;
            return function(m) {
                var R = y.pow(m, O);
                return y.eql(R, y.ZERO) || y.eql(R, y.ONE);
            };
        }
        oe.FpIsSquare = k;
        function F(y, O) {
            var m = O !== void 0 ? O : y.toString(2).length, R = Math.ceil(m / 8);
            return {
                nBitLength: m,
                nByteLength: R
            };
        }
        oe.nLength = F;
        function Y(y, O, m, R) {
            if (m === void 0 && (m = !1), R === void 0 && (R = {}), y <= t) throw new Error("Expected Field ORDER > 0, got ".concat(y));
            var v = F(y, O), A = v.nBitLength, X = v.nByteLength;
            if (X > 2048) throw new Error("Field lengths over 2048 bytes are not supported");
            var C = h(y), H = Object.freeze({
                ORDER: y,
                BITS: A,
                BYTES: X,
                MASK: (0, n.bitMask)(A),
                ZERO: t,
                ONE: e,
                create: function(U) {
                    return u(U, y);
                },
                isValid: function(U) {
                    if (typeof U != "bigint") throw new Error("Invalid field element: expected bigint, got ".concat(typeof U));
                    return t <= U && U < y;
                },
                is0: function(U) {
                    return U === t;
                },
                isOdd: function(U) {
                    return (U & e) === e;
                },
                neg: function(U) {
                    return u(-U, y);
                },
                eql: function(U, L) {
                    return U === L;
                },
                sqr: function(U) {
                    return u(U * U, y);
                },
                add: function(U, L) {
                    return u(U + L, y);
                },
                sub: function(U, L) {
                    return u(U - L, y);
                },
                mul: function(U, L) {
                    return u(U * L, y);
                },
                pow: function(U, L) {
                    return w(H, U, L);
                },
                div: function(U, L) {
                    return u(U * p(L, y), y);
                },
                sqrN: function(U) {
                    return U * U;
                },
                addN: function(U, L) {
                    return U + L;
                },
                subN: function(U, L) {
                    return U - L;
                },
                mulN: function(U, L) {
                    return U * L;
                },
                inv: function(U) {
                    return p(U, y);
                },
                sqrt: R.sqrt || (function(U) {
                    return C(H, U);
                }),
                invertBatch: function(U) {
                    return S(H, U);
                },
                cmov: function(U, L, q) {
                    return q ? L : U;
                },
                toBytes: function(U) {
                    return m ? (0, n.numberToBytesLE)(U, X) : (0, n.numberToBytesBE)(U, X);
                },
                fromBytes: function(U) {
                    if (U.length !== X) throw new Error("Fp.fromBytes: expected ".concat(X, ", got ").concat(U.length));
                    return m ? (0, n.bytesToNumberLE)(U) : (0, n.bytesToNumberBE)(U);
                }
            });
            return Object.freeze(H);
        }
        oe.Field = Y;
        function K(y, O) {
            if (!y.isOdd) throw new Error("Field doesn't have isOdd");
            var m = y.sqrt(O);
            return y.isOdd(m) ? m : y.neg(m);
        }
        oe.FpSqrtOdd = K;
        function J(y, O) {
            if (!y.isOdd) throw new Error("Field doesn't have isOdd");
            var m = y.sqrt(O);
            return y.isOdd(m) ? y.neg(m) : m;
        }
        oe.FpSqrtEven = J;
        function P(y, O, m) {
            m === void 0 && (m = !1), y = (0, n.ensureBytes)("privateHash", y);
            var R = y.length, v = F(O).nByteLength + 8;
            if (v < 24 || R < v || R > 1024) throw new Error("hashToPrivateScalar: expected ".concat(v, "-1024 bytes of input, got ").concat(R));
            var A = m ? (0, n.bytesToNumberLE)(y) : (0, n.bytesToNumberBE)(y);
            return u(A, O - e) + e;
        }
        oe.hashToPrivateScalar = P;
        function T(y) {
            if (typeof y != "bigint") throw new Error("field order must be bigint");
            var O = y.toString(2).length;
            return Math.ceil(O / 8);
        }
        oe.getFieldBytesLength = T;
        function E(y) {
            var O = T(y);
            return O + Math.ceil(O / 2);
        }
        oe.getMinHashLength = E;
        function N(y, O, m) {
            m === void 0 && (m = !1);
            var R = y.length, v = T(O), A = E(O);
            if (R < 16 || R < A || R > 1024) throw new Error("expected ".concat(A, "-1024 bytes of input, got ").concat(R));
            var X = m ? (0, n.bytesToNumberBE)(y) : (0, n.bytesToNumberLE)(y), C = u(X, O - e) + e;
            return m ? (0, n.numberToBytesLE)(C, v) : (0, n.numberToBytesBE)(C, v);
        }
        return oe.mapHashToField = N, oe;
    }
    var Or = {}, S4;
    function p0() {
        if (S4) return Or;
        S4 = 1;
        var n = Or && Or.__assign || function() {
            return n = Object.assign || function(B) {
                for(var I, j = 1, w = arguments.length; j < w; j++){
                    I = arguments[j];
                    for(var S in I)Object.prototype.hasOwnProperty.call(I, S) && (B[S] = I[S]);
                }
                return B;
            }, n.apply(this, arguments);
        }, t = Or && Or.__read || function(B, I) {
            var j = typeof Symbol == "function" && B[Symbol.iterator];
            if (!j) return B;
            var w = j.call(B), S, b = [], k;
            try {
                for(; (I === void 0 || I-- > 0) && !(S = w.next()).done;)b.push(S.value);
            } catch (F) {
                k = {
                    error: F
                };
            } finally{
                try {
                    S && !S.done && (j = w.return) && j.call(w);
                } finally{
                    if (k) throw k.error;
                }
            }
            return b;
        }, e = Or && Or.__spreadArray || function(B, I, j) {
            if (j || arguments.length === 2) for(var w = 0, S = I.length, b; w < S; w++)(b || !(w in I)) && (b || (b = Array.prototype.slice.call(I, 0, w)), b[w] = I[w]);
            return B.concat(b || Array.prototype.slice.call(I));
        };
        Object.defineProperty(Or, "__esModule", {
            value: !0
        }), Or.createHasher = Or.isogenyMap = Or.hash_to_field = Or.expand_message_xof = Or.expand_message_xmd = void 0;
        var o = Hl(), _ = Mi(), a = _.bytesToNumberBE;
        function c(B, I) {
            if (B < 0 || B >= 1 << 8 * I) throw new Error("bad I2OSP call: value=".concat(B, " length=").concat(I));
            for(var j = Array.from({
                length: I
            }).fill(0), w = I - 1; w >= 0; w--)j[w] = B & 255, B >>>= 8;
            return new Uint8Array(j);
        }
        function s(B, I) {
            for(var j = new Uint8Array(B.length), w = 0; w < B.length; w++)j[w] = B[w] ^ I[w];
            return j;
        }
        function u(B) {
            if (!Number.isSafeInteger(B)) throw new Error("number expected");
        }
        function l(B, I, j, w) {
            (0, _.abytes)(B), (0, _.abytes)(I), u(j), I.length > 255 && (I = w((0, _.concatBytes)((0, _.utf8ToBytes)("H2C-OVERSIZE-DST-"), I)));
            var S = w.outputLen, b = w.blockLen, k = Math.ceil(j / S);
            if (k > 255) throw new Error("Invalid xmd length");
            var F = (0, _.concatBytes)(I, c(I.length, 1)), Y = c(0, b), K = c(j, 2), J = new Array(k), P = w((0, _.concatBytes)(Y, B, K, c(0, 1), F));
            J[0] = w((0, _.concatBytes)(P, c(1, 1), F));
            for(var T = 1; T <= k; T++){
                var E = [
                    s(P, J[T - 1]),
                    c(T + 1, 1),
                    F
                ];
                J[T] = w(_.concatBytes.apply(void 0, e([], t(E), !1)));
            }
            var N = _.concatBytes.apply(void 0, e([], t(J), !1));
            return N.slice(0, j);
        }
        Or.expand_message_xmd = l;
        function f(B, I, j, w, S) {
            if ((0, _.abytes)(B), (0, _.abytes)(I), u(j), I.length > 255) {
                var b = Math.ceil(2 * w / 8);
                I = S.create({
                    dkLen: b
                }).update((0, _.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(I).digest();
            }
            if (j > 65535 || I.length > 255) throw new Error("expand_message_xof: invalid lenInBytes");
            return S.create({
                dkLen: j
            }).update(B).update(c(j, 2)).update(I).update(c(I.length, 1)).digest();
        }
        Or.expand_message_xof = f;
        function p(B, I, j) {
            (0, _.validateObject)(j, {
                DST: "stringOrUint8Array",
                p: "bigint",
                m: "isSafeInteger",
                k: "isSafeInteger",
                hash: "hash"
            });
            var w = j.p, S = j.k, b = j.m, k = j.hash, F = j.expand, Y = j.DST;
            (0, _.abytes)(B), u(I);
            var K = typeof Y == "string" ? (0, _.utf8ToBytes)(Y) : Y, J = w.toString(2).length, P = Math.ceil((J + S) / 8), T = I * b * P, E;
            if (F === "xmd") E = l(B, K, T, k);
            else if (F === "xof") E = f(B, K, T, S, k);
            else if (F === "_internal_pass") E = B;
            else throw new Error('expand must be "xmd" or "xof"');
            for(var N = new Array(I), y = 0; y < I; y++){
                for(var O = new Array(b), m = 0; m < b; m++){
                    var R = P * (m + y * b), v = E.subarray(R, R + P);
                    O[m] = (0, o.mod)(a(v), w);
                }
                N[y] = O;
            }
            return N;
        }
        Or.hash_to_field = p;
        function g(B, I) {
            var j = I.map(function(w) {
                return Array.from(w).reverse();
            });
            return function(w, S) {
                var b = t(j.map(function(J) {
                    return J.reduce(function(P, T) {
                        return B.add(B.mul(P, w), T);
                    });
                }), 4), k = b[0], F = b[1], Y = b[2], K = b[3];
                return w = B.div(k, F), S = B.mul(S, B.div(Y, K)), {
                    x: w,
                    y: S
                };
            };
        }
        Or.isogenyMap = g;
        function h(B, I, j) {
            if (typeof I != "function") throw new Error("mapToCurve() must be defined");
            return {
                hashToCurve: function(w, S) {
                    var b = p(w, 2, n(n(n({}, j), {
                        DST: j.DST
                    }), S)), k = B.fromAffine(I(b[0])), F = B.fromAffine(I(b[1])), Y = k.add(F).clearCofactor();
                    return Y.assertValidity(), Y;
                },
                encodeToCurve: function(w, S) {
                    var b = p(w, 1, n(n(n({}, j), {
                        DST: j.encodeDST
                    }), S)), k = B.fromAffine(I(b[0])).clearCofactor();
                    return k.assertValidity(), k;
                }
            };
        }
        return Or.createHasher = h, Or;
    }
    var un = {}, Mo = {}, E4;
    function U4t() {
        if (E4) return Mo;
        E4 = 1;
        var n = Mo && Mo.__assign || function() {
            return n = Object.assign || function(s) {
                for(var u, l = 1, f = arguments.length; l < f; l++){
                    u = arguments[l];
                    for(var p in u)Object.prototype.hasOwnProperty.call(u, p) && (s[p] = u[p]);
                }
                return s;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(Mo, "__esModule", {
            value: !0
        }), Mo.validateBasic = Mo.wNAF = void 0;
        var t = Hl(), e = Mi(), o = BigInt(0), _ = BigInt(1);
        function a(s, u) {
            var l = function(p, g) {
                var h = g.negate();
                return p ? h : g;
            }, f = function(p) {
                var g = Math.ceil(u / p) + 1, h = Math.pow(2, p - 1);
                return {
                    windows: g,
                    windowSize: h
                };
            };
            return {
                constTimeNegate: l,
                unsafeLadder: function(p, g) {
                    for(var h = s.ZERO, B = p; g > o;)g & _ && (h = h.add(B)), B = B.double(), g >>= _;
                    return h;
                },
                precomputeWindow: function(p, g) {
                    for(var h = f(g), B = h.windows, I = h.windowSize, j = [], w = p, S = w, b = 0; b < B; b++){
                        S = w, j.push(S);
                        for(var k = 1; k < I; k++)S = S.add(w), j.push(S);
                        w = S.double();
                    }
                    return j;
                },
                wNAF: function(p, g, h) {
                    for(var B = f(p), I = B.windows, j = B.windowSize, w = s.ZERO, S = s.BASE, b = BigInt(Math.pow(2, p) - 1), k = Math.pow(2, p), F = BigInt(p), Y = 0; Y < I; Y++){
                        var K = Y * j, J = Number(h & b);
                        h >>= F, J > j && (J -= k, h += _);
                        var P = K, T = K + Math.abs(J) - 1, E = Y % 2 !== 0, N = J < 0;
                        J === 0 ? S = S.add(l(E, g[P])) : w = w.add(l(N, g[T]));
                    }
                    return {
                        p: w,
                        f: S
                    };
                },
                wNAFCached: function(p, g, h, B) {
                    var I = p._WINDOW_SIZE || 1, j = g.get(p);
                    return j || (j = this.precomputeWindow(p, I), I !== 1 && g.set(p, B(j))), this.wNAF(I, j, h);
                }
            };
        }
        Mo.wNAF = a;
        function c(s) {
            return (0, t.validateField)(s.Fp), (0, e.validateObject)(s, {
                n: "bigint",
                h: "bigint",
                Gx: "field",
                Gy: "field"
            }, {
                nBitLength: "isSafeInteger",
                nByteLength: "isSafeInteger"
            }), Object.freeze(n(n(n({}, (0, t.nLength)(s.n, s.nBitLength)), s), {
                p: s.Fp.ORDER
            }));
        }
        return Mo.validateBasic = c, Mo;
    }
    var O4;
    function b0() {
        return O4 || (O4 = 1, (function(n) {
            var t = un && un.__extends || (function() {
                var P = function(T, E) {
                    return P = Object.setPrototypeOf || {
                        __proto__: []
                    } instanceof Array && function(N, y) {
                        N.__proto__ = y;
                    } || function(N, y) {
                        for(var O in y)Object.prototype.hasOwnProperty.call(y, O) && (N[O] = y[O]);
                    }, P(T, E);
                };
                return function(T, E) {
                    if (typeof E != "function" && E !== null) throw new TypeError("Class extends value " + String(E) + " is not a constructor or null");
                    P(T, E);
                    function N() {
                        this.constructor = T;
                    }
                    T.prototype = E === null ? Object.create(E) : (N.prototype = E.prototype, new N);
                };
            })(), e = un && un.__assign || function() {
                return e = Object.assign || function(P) {
                    for(var T, E = 1, N = arguments.length; E < N; E++){
                        T = arguments[E];
                        for(var y in T)Object.prototype.hasOwnProperty.call(T, y) && (P[y] = T[y]);
                    }
                    return P;
                }, e.apply(this, arguments);
            }, o = un && un.__createBinding || (Object.create ? (function(P, T, E, N) {
                N === void 0 && (N = E);
                var y = Object.getOwnPropertyDescriptor(T, E);
                (!y || ("get" in y ? !T.__esModule : y.writable || y.configurable)) && (y = {
                    enumerable: !0,
                    get: function() {
                        return T[E];
                    }
                }), Object.defineProperty(P, N, y);
            }) : (function(P, T, E, N) {
                N === void 0 && (N = E), P[N] = T[E];
            })), _ = un && un.__setModuleDefault || (Object.create ? (function(P, T) {
                Object.defineProperty(P, "default", {
                    enumerable: !0,
                    value: T
                });
            }) : function(P, T) {
                P.default = T;
            }), a = un && un.__importStar || function(P) {
                if (P && P.__esModule) return P;
                var T = {};
                if (P != null) for(var E in P)E !== "default" && Object.prototype.hasOwnProperty.call(P, E) && o(T, P, E);
                return _(T, P), T;
            }, c = un && un.__read || function(P, T) {
                var E = typeof Symbol == "function" && P[Symbol.iterator];
                if (!E) return P;
                var N = E.call(P), y, O = [], m;
                try {
                    for(; (T === void 0 || T-- > 0) && !(y = N.next()).done;)O.push(y.value);
                } catch (R) {
                    m = {
                        error: R
                    };
                } finally{
                    try {
                        y && !y.done && (E = N.return) && E.call(N);
                    } finally{
                        if (m) throw m.error;
                    }
                }
                return O;
            }, s = un && un.__spreadArray || function(P, T, E) {
                if (E || arguments.length === 2) for(var N = 0, y = T.length, O; N < y; N++)(O || !(N in T)) && (O || (O = Array.prototype.slice.call(T, 0, N)), O[N] = T[N]);
                return P.concat(O || Array.prototype.slice.call(T));
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.mapToCurveSimpleSWU = n.SWUFpSqrtRatio = n.weierstrass = n.weierstrassPoints = n.DER = void 0;
            var u = a(Hl()), l = a(Mi()), f = Mi(), p = U4t();
            function g(P) {
                var T = (0, p.validateBasic)(P);
                l.validateObject(T, {
                    a: "field",
                    b: "field"
                }, {
                    allowedPrivateKeyLengths: "array",
                    wrapPrivateKey: "boolean",
                    isTorsionFree: "function",
                    clearCofactor: "function",
                    allowInfinityPoint: "boolean",
                    fromBytes: "function",
                    toBytes: "function"
                });
                var E = T.endo, N = T.Fp, y = T.a;
                if (E) {
                    if (!N.eql(y, N.ZERO)) throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");
                    if (typeof E != "object" || typeof E.beta != "bigint" || typeof E.splitScalar != "function") throw new Error("Expected endomorphism with beta: bigint and splitScalar: function");
                }
                return Object.freeze(e({}, T));
            }
            var h = l.bytesToNumberBE, B = l.hexToBytes;
            n.DER = {
                Err: (function(P) {
                    t(T, P);
                    function T(E) {
                        return E === void 0 && (E = ""), P.call(this, E) || this;
                    }
                    return T;
                })(Error),
                _parseInt: function(P) {
                    var T = n.DER.Err;
                    if (P.length < 2 || P[0] !== 2) throw new T("Invalid signature integer tag");
                    var E = P[1], N = P.subarray(2, E + 2);
                    if (!E || N.length !== E) throw new T("Invalid signature integer: wrong length");
                    if (N[0] & 128) throw new T("Invalid signature integer: negative");
                    if (N[0] === 0 && !(N[1] & 128)) throw new T("Invalid signature integer: unnecessary leading zero");
                    return {
                        d: h(N),
                        l: P.subarray(E + 2)
                    };
                },
                toSig: function(P) {
                    var T = n.DER.Err, E = typeof P == "string" ? B(P) : P;
                    l.abytes(E);
                    var N = E.length;
                    if (N < 2 || E[0] != 48) throw new T("Invalid signature tag");
                    if (E[1] !== N - 2) throw new T("Invalid signature: incorrect length");
                    var y = n.DER._parseInt(E.subarray(2)), O = y.d, m = y.l, R = n.DER._parseInt(m), v = R.d, A = R.l;
                    if (A.length) throw new T("Invalid signature: left bytes after parsing");
                    return {
                        r: O,
                        s: v
                    };
                },
                hexFromSig: function(P) {
                    var T = function(A) {
                        return Number.parseInt(A[0], 16) & 8 ? "00" + A : A;
                    }, E = function(A) {
                        var X = A.toString(16);
                        return X.length & 1 ? "0".concat(X) : X;
                    }, N = T(E(P.s)), y = T(E(P.r)), O = N.length / 2, m = y.length / 2, R = E(O), v = E(m);
                    return "30".concat(E(m + O + 4), "02").concat(v).concat(y, "02").concat(R).concat(N);
                }
            };
            var I = BigInt(0), j = BigInt(1), w = BigInt(2), S = BigInt(3), b = BigInt(4);
            function k(P) {
                var T = g(P), E = T.Fp, N = T.toBytes || (function(L, q, V) {
                    var Q = q.toAffine();
                    return l.concatBytes(Uint8Array.from([
                        4
                    ]), E.toBytes(Q.x), E.toBytes(Q.y));
                }), y = T.fromBytes || (function(L) {
                    var q = L.subarray(1), V = E.fromBytes(q.subarray(0, E.BYTES)), Q = E.fromBytes(q.subarray(E.BYTES, 2 * E.BYTES));
                    return {
                        x: V,
                        y: Q
                    };
                });
                function O(L) {
                    var q = T.a, V = T.b, Q = E.sqr(L), Z = E.mul(Q, L);
                    return E.add(E.add(Z, E.mul(L, q)), V);
                }
                if (!E.eql(E.sqr(T.Gy), O(T.Gx))) throw new Error("bad generator point: equation left != right");
                function m(L) {
                    return typeof L == "bigint" && I < L && L < T.n;
                }
                function R(L) {
                    if (!m(L)) throw new Error("Expected valid bigint: 0 < bigint < curve.n");
                }
                function v(L) {
                    var q = T.allowedPrivateKeyLengths, V = T.nByteLength, Q = T.wrapPrivateKey, Z = T.n;
                    if (q && typeof L != "bigint") {
                        if (l.isBytes(L) && (L = l.bytesToHex(L)), typeof L != "string" || !q.includes(L.length)) throw new Error("Invalid key");
                        L = L.padStart(V * 2, "0");
                    }
                    var tt;
                    try {
                        tt = typeof L == "bigint" ? L : l.bytesToNumberBE((0, f.ensureBytes)("private key", L, V));
                    } catch  {
                        throw new Error("private key must be ".concat(V, " bytes, hex or bigint, not ").concat(typeof L));
                    }
                    return Q && (tt = u.mod(tt, Z)), R(tt), tt;
                }
                var A = new Map;
                function X(L) {
                    if (!(L instanceof C)) throw new Error("ProjectivePoint expected");
                }
                var C = (function() {
                    function L(q, V, Q) {
                        if (this.px = q, this.py = V, this.pz = Q, q == null || !E.isValid(q)) throw new Error("x required");
                        if (V == null || !E.isValid(V)) throw new Error("y required");
                        if (Q == null || !E.isValid(Q)) throw new Error("z required");
                    }
                    return L.fromAffine = function(q) {
                        var V = q || {}, Q = V.x, Z = V.y;
                        if (!q || !E.isValid(Q) || !E.isValid(Z)) throw new Error("invalid affine point");
                        if (q instanceof L) throw new Error("projective point not allowed");
                        var tt = function(rt) {
                            return E.eql(rt, E.ZERO);
                        };
                        return tt(Q) && tt(Z) ? L.ZERO : new L(Q, Z, E.ONE);
                    }, Object.defineProperty(L.prototype, "x", {
                        get: function() {
                            return this.toAffine().x;
                        },
                        enumerable: !1,
                        configurable: !0
                    }), Object.defineProperty(L.prototype, "y", {
                        get: function() {
                            return this.toAffine().y;
                        },
                        enumerable: !1,
                        configurable: !0
                    }), L.normalizeZ = function(q) {
                        var V = E.invertBatch(q.map(function(Q) {
                            return Q.pz;
                        }));
                        return q.map(function(Q, Z) {
                            return Q.toAffine(V[Z]);
                        }).map(L.fromAffine);
                    }, L.fromHex = function(q) {
                        var V = L.fromAffine(y((0, f.ensureBytes)("pointHex", q)));
                        return V.assertValidity(), V;
                    }, L.fromPrivateKey = function(q) {
                        return L.BASE.multiply(v(q));
                    }, L.prototype._setWindowSize = function(q) {
                        this._WINDOW_SIZE = q, A.delete(this);
                    }, L.prototype.assertValidity = function() {
                        if (this.is0()) {
                            if (T.allowInfinityPoint && !E.is0(this.py)) return;
                            throw new Error("bad point: ZERO");
                        }
                        var q = this.toAffine(), V = q.x, Q = q.y;
                        if (!E.isValid(V) || !E.isValid(Q)) throw new Error("bad point: x or y not FE");
                        var Z = E.sqr(Q), tt = O(V);
                        if (!E.eql(Z, tt)) throw new Error("bad point: equation left != right");
                        if (!this.isTorsionFree()) throw new Error("bad point: not in prime-order subgroup");
                    }, L.prototype.hasEvenY = function() {
                        var q = this.toAffine().y;
                        if (E.isOdd) return !E.isOdd(q);
                        throw new Error("Field doesn't support isOdd");
                    }, L.prototype.equals = function(q) {
                        X(q);
                        var V = this, Q = V.px, Z = V.py, tt = V.pz, rt = q.px, at = q.py, ut = q.pz, bt = E.eql(E.mul(Q, ut), E.mul(rt, tt)), pt = E.eql(E.mul(Z, ut), E.mul(at, tt));
                        return bt && pt;
                    }, L.prototype.negate = function() {
                        return new L(this.px, E.neg(this.py), this.pz);
                    }, L.prototype.double = function() {
                        var q = T.a, V = T.b, Q = E.mul(V, S), Z = this, tt = Z.px, rt = Z.py, at = Z.pz, ut = E.ZERO, bt = E.ZERO, pt = E.ZERO, ot = E.mul(tt, tt), gt = E.mul(rt, rt), W = E.mul(at, at), G = E.mul(tt, rt);
                        return G = E.add(G, G), pt = E.mul(tt, at), pt = E.add(pt, pt), ut = E.mul(q, pt), bt = E.mul(Q, W), bt = E.add(ut, bt), ut = E.sub(gt, bt), bt = E.add(gt, bt), bt = E.mul(ut, bt), ut = E.mul(G, ut), pt = E.mul(Q, pt), W = E.mul(q, W), G = E.sub(ot, W), G = E.mul(q, G), G = E.add(G, pt), pt = E.add(ot, ot), ot = E.add(pt, ot), ot = E.add(ot, W), ot = E.mul(ot, G), bt = E.add(bt, ot), W = E.mul(rt, at), W = E.add(W, W), ot = E.mul(W, G), ut = E.sub(ut, ot), pt = E.mul(W, gt), pt = E.add(pt, pt), pt = E.add(pt, pt), new L(ut, bt, pt);
                    }, L.prototype.add = function(q) {
                        X(q);
                        var V = this, Q = V.px, Z = V.py, tt = V.pz, rt = q.px, at = q.py, ut = q.pz, bt = E.ZERO, pt = E.ZERO, ot = E.ZERO, gt = T.a, W = E.mul(T.b, S), G = E.mul(Q, rt), et = E.mul(Z, at), ct = E.mul(tt, ut), ft = E.add(Q, Z), dt = E.add(rt, at);
                        ft = E.mul(ft, dt), dt = E.add(G, et), ft = E.sub(ft, dt), dt = E.add(Q, tt);
                        var st = E.add(rt, ut);
                        return dt = E.mul(dt, st), st = E.add(G, ct), dt = E.sub(dt, st), st = E.add(Z, tt), bt = E.add(at, ut), st = E.mul(st, bt), bt = E.add(et, ct), st = E.sub(st, bt), ot = E.mul(gt, dt), bt = E.mul(W, ct), ot = E.add(bt, ot), bt = E.sub(et, ot), ot = E.add(et, ot), pt = E.mul(bt, ot), et = E.add(G, G), et = E.add(et, G), ct = E.mul(gt, ct), dt = E.mul(W, dt), et = E.add(et, ct), ct = E.sub(G, ct), ct = E.mul(gt, ct), dt = E.add(dt, ct), G = E.mul(et, dt), pt = E.add(pt, G), G = E.mul(st, dt), bt = E.mul(ft, bt), bt = E.sub(bt, G), G = E.mul(ft, et), ot = E.mul(st, ot), ot = E.add(ot, G), new L(bt, pt, ot);
                    }, L.prototype.subtract = function(q) {
                        return this.add(q.negate());
                    }, L.prototype.is0 = function() {
                        return this.equals(L.ZERO);
                    }, L.prototype.wNAF = function(q) {
                        return U.wNAFCached(this, A, q, function(V) {
                            var Q = E.invertBatch(V.map(function(Z) {
                                return Z.pz;
                            }));
                            return V.map(function(Z, tt) {
                                return Z.toAffine(Q[tt]);
                            }).map(L.fromAffine);
                        });
                    }, L.prototype.multiplyUnsafe = function(q) {
                        var V = L.ZERO;
                        if (q === I) return V;
                        if (R(q), q === j) return this;
                        var Q = T.endo;
                        if (!Q) return U.unsafeLadder(this, q);
                        for(var Z = Q.splitScalar(q), tt = Z.k1neg, rt = Z.k1, at = Z.k2neg, ut = Z.k2, bt = V, pt = V, ot = this; rt > I || ut > I;)rt & j && (bt = bt.add(ot)), ut & j && (pt = pt.add(ot)), ot = ot.double(), rt >>= j, ut >>= j;
                        return tt && (bt = bt.negate()), at && (pt = pt.negate()), pt = new L(E.mul(pt.px, Q.beta), pt.py, pt.pz), bt.add(pt);
                    }, L.prototype.multiply = function(q) {
                        R(q);
                        var V = q, Q, Z, tt = T.endo;
                        if (tt) {
                            var rt = tt.splitScalar(V), at = rt.k1neg, ut = rt.k1, bt = rt.k2neg, pt = rt.k2, ot = this.wNAF(ut), gt = ot.p, W = ot.f, G = this.wNAF(pt), et = G.p, ct = G.f;
                            gt = U.constTimeNegate(at, gt), et = U.constTimeNegate(bt, et), et = new L(E.mul(et.px, tt.beta), et.py, et.pz), Q = gt.add(et), Z = W.add(ct);
                        } else {
                            var ft = this.wNAF(V), dt = ft.p, st = ft.f;
                            Q = dt, Z = st;
                        }
                        return L.normalizeZ([
                            Q,
                            Z
                        ])[0];
                    }, L.prototype.multiplyAndAddUnsafe = function(q, V, Q) {
                        var Z = L.BASE, tt = function(at, ut) {
                            return ut === I || ut === j || !at.equals(Z) ? at.multiplyUnsafe(ut) : at.multiply(ut);
                        }, rt = tt(this, V).add(tt(q, Q));
                        return rt.is0() ? void 0 : rt;
                    }, L.prototype.toAffine = function(q) {
                        var V = this, Q = V.px, Z = V.py, tt = V.pz, rt = this.is0();
                        q == null && (q = rt ? E.ONE : E.inv(tt));
                        var at = E.mul(Q, q), ut = E.mul(Z, q), bt = E.mul(tt, q);
                        if (rt) return {
                            x: E.ZERO,
                            y: E.ZERO
                        };
                        if (!E.eql(bt, E.ONE)) throw new Error("invZ was invalid");
                        return {
                            x: at,
                            y: ut
                        };
                    }, L.prototype.isTorsionFree = function() {
                        var q = T.h, V = T.isTorsionFree;
                        if (q === j) return !0;
                        if (V) return V(L, this);
                        throw new Error("isTorsionFree() has not been declared for the elliptic curve");
                    }, L.prototype.clearCofactor = function() {
                        var q = T.h, V = T.clearCofactor;
                        return q === j ? this : V ? V(L, this) : this.multiplyUnsafe(T.h);
                    }, L.prototype.toRawBytes = function(q) {
                        return q === void 0 && (q = !0), this.assertValidity(), N(L, this, q);
                    }, L.prototype.toHex = function(q) {
                        return q === void 0 && (q = !0), l.bytesToHex(this.toRawBytes(q));
                    }, L.BASE = new L(T.Gx, T.Gy, E.ONE), L.ZERO = new L(E.ZERO, E.ONE, E.ZERO), L;
                })(), H = T.nBitLength, U = (0, p.wNAF)(C, T.endo ? Math.ceil(H / 2) : H);
                return {
                    CURVE: T,
                    ProjectivePoint: C,
                    normPrivateKeyToScalar: v,
                    weierstrassEquation: O,
                    isWithinCurveOrder: m
                };
            }
            n.weierstrassPoints = k;
            function F(P) {
                var T = (0, p.validateBasic)(P);
                return l.validateObject(T, {
                    hash: "hash",
                    hmac: "function",
                    randomBytes: "function"
                }, {
                    bits2int: "function",
                    bits2int_modN: "function",
                    lowS: "boolean"
                }), Object.freeze(e({
                    lowS: !0
                }, T));
            }
            function Y(P) {
                var T = F(P), E = T.Fp, N = T.n, y = E.BYTES + 1, O = 2 * E.BYTES + 1;
                function m(dt) {
                    return I < dt && dt < E.ORDER;
                }
                function R(dt) {
                    return u.mod(dt, N);
                }
                function v(dt) {
                    return u.invert(dt, N);
                }
                var A = k(e(e({}, T), {
                    toBytes: function(dt, st, wt) {
                        var It = st.toAffine(), Ot = E.toBytes(It.x), St = l.concatBytes;
                        return wt ? St(Uint8Array.from([
                            st.hasEvenY() ? 2 : 3
                        ]), Ot) : St(Uint8Array.from([
                            4
                        ]), Ot, E.toBytes(It.y));
                    },
                    fromBytes: function(dt) {
                        var st = dt.length, wt = dt[0], It = dt.subarray(1);
                        if (st === y && (wt === 2 || wt === 3)) {
                            var Ot = l.bytesToNumberBE(It);
                            if (!m(Ot)) throw new Error("Point is not on curve");
                            var St = H(Ot), Ft = void 0;
                            try {
                                Ft = E.sqrt(St);
                            } catch (be) {
                                var Ct = be instanceof Error ? ": " + be.message : "";
                                throw new Error("Point is not on curve" + Ct);
                            }
                            var Ut = (Ft & j) === j, Gt = (wt & 1) === 1;
                            return Gt !== Ut && (Ft = E.neg(Ft)), {
                                x: Ot,
                                y: Ft
                            };
                        } else if (st === O && wt === 4) {
                            var Ot = E.fromBytes(It.subarray(0, E.BYTES)), Ft = E.fromBytes(It.subarray(E.BYTES, 2 * E.BYTES));
                            return {
                                x: Ot,
                                y: Ft
                            };
                        } else throw new Error("Point of length ".concat(st, " was invalid. Expected ").concat(y, " compressed bytes or ").concat(O, " uncompressed bytes"));
                    }
                })), X = A.ProjectivePoint, C = A.normPrivateKeyToScalar, H = A.weierstrassEquation, U = A.isWithinCurveOrder, L = function(dt) {
                    return l.bytesToHex(l.numberToBytesBE(dt, T.nByteLength));
                };
                function q(dt) {
                    var st = N >> j;
                    return dt > st;
                }
                function V(dt) {
                    return q(dt) ? R(-dt) : dt;
                }
                var Q = function(dt, st, wt) {
                    return l.bytesToNumberBE(dt.slice(st, wt));
                }, Z = (function() {
                    function dt(st, wt, It) {
                        this.r = st, this.s = wt, this.recovery = It, this.assertValidity();
                    }
                    return dt.fromCompact = function(st) {
                        var wt = T.nByteLength;
                        return st = (0, f.ensureBytes)("compactSignature", st, wt * 2), new dt(Q(st, 0, wt), Q(st, wt, 2 * wt));
                    }, dt.fromDER = function(st) {
                        var wt = n.DER.toSig((0, f.ensureBytes)("DER", st)), It = wt.r, Ot = wt.s;
                        return new dt(It, Ot);
                    }, dt.prototype.assertValidity = function() {
                        if (!U(this.r)) throw new Error("r must be 0 < r < CURVE.n");
                        if (!U(this.s)) throw new Error("s must be 0 < s < CURVE.n");
                    }, dt.prototype.addRecoveryBit = function(st) {
                        return new dt(this.r, this.s, st);
                    }, dt.prototype.recoverPublicKey = function(st) {
                        var wt = this, It = wt.r, Ot = wt.s, St = wt.recovery, Ft = pt((0, f.ensureBytes)("msgHash", st));
                        if (St == null || ![
                            0,
                            1,
                            2,
                            3
                        ].includes(St)) throw new Error("recovery id invalid");
                        var Ct = St === 2 || St === 3 ? It + T.n : It;
                        if (Ct >= E.ORDER) throw new Error("recovery id 2 or 3 invalid");
                        var Ut = (St & 1) === 0 ? "02" : "03", Gt = X.fromHex(Ut + L(Ct)), be = v(Ct), xe = R(-Ft * be), De = R(Ot * be), _r = X.BASE.multiplyAndAddUnsafe(Gt, xe, De);
                        if (!_r) throw new Error("point at infinify");
                        return _r.assertValidity(), _r;
                    }, dt.prototype.hasHighS = function() {
                        return q(this.s);
                    }, dt.prototype.normalizeS = function() {
                        return this.hasHighS() ? new dt(this.r, R(-this.s), this.recovery) : this;
                    }, dt.prototype.toDERRawBytes = function() {
                        return l.hexToBytes(this.toDERHex());
                    }, dt.prototype.toDERHex = function() {
                        return n.DER.hexFromSig({
                            r: this.r,
                            s: this.s
                        });
                    }, dt.prototype.toCompactRawBytes = function() {
                        return l.hexToBytes(this.toCompactHex());
                    }, dt.prototype.toCompactHex = function() {
                        return L(this.r) + L(this.s);
                    }, dt;
                })(), tt = {
                    isValidPrivateKey: function(dt) {
                        try {
                            return C(dt), !0;
                        } catch  {
                            return !1;
                        }
                    },
                    normPrivateKeyToScalar: C,
                    randomPrivateKey: function() {
                        var dt = u.getMinHashLength(T.n);
                        return u.mapHashToField(T.randomBytes(dt), T.n);
                    },
                    precompute: function(dt, st) {
                        return dt === void 0 && (dt = 8), st === void 0 && (st = X.BASE), st._setWindowSize(dt), st.multiply(BigInt(3)), st;
                    }
                };
                function rt(dt, st) {
                    return st === void 0 && (st = !0), X.fromPrivateKey(dt).toRawBytes(st);
                }
                function at(dt) {
                    var st = l.isBytes(dt), wt = typeof dt == "string", It = (st || wt) && dt.length;
                    return st ? It === y || It === O : wt ? It === 2 * y || It === 2 * O : dt instanceof X;
                }
                function ut(dt, st, wt) {
                    if (wt === void 0 && (wt = !0), at(dt)) throw new Error("first arg must be private key");
                    if (!at(st)) throw new Error("second arg must be public key");
                    var It = X.fromHex(st);
                    return It.multiply(C(dt)).toRawBytes(wt);
                }
                var bt = T.bits2int || function(dt) {
                    var st = l.bytesToNumberBE(dt), wt = dt.length * 8 - T.nBitLength;
                    return wt > 0 ? st >> BigInt(wt) : st;
                }, pt = T.bits2int_modN || function(dt) {
                    return R(bt(dt));
                }, ot = l.bitMask(T.nBitLength);
                function gt(dt) {
                    if (typeof dt != "bigint") throw new Error("bigint expected");
                    if (!(I <= dt && dt < ot)) throw new Error("bigint expected < 2^".concat(T.nBitLength));
                    return l.numberToBytesBE(dt, T.nByteLength);
                }
                function W(dt, st, wt) {
                    if (wt === void 0 && (wt = G), [
                        "recovered",
                        "canonical"
                    ].some(function(M) {
                        return M in wt;
                    })) throw new Error("sign() legacy options not supported");
                    var It = T.hash, Ot = T.randomBytes, St = wt.lowS, Ft = wt.prehash, Ct = wt.extraEntropy;
                    St == null && (St = !0), dt = (0, f.ensureBytes)("msgHash", dt), Ft && (dt = (0, f.ensureBytes)("prehashed msgHash", It(dt)));
                    var Ut = pt(dt), Gt = C(st), be = [
                        gt(Gt),
                        gt(Ut)
                    ];
                    if (Ct != null && Ct !== !1) {
                        var xe = Ct === !0 ? Ot(E.BYTES) : Ct;
                        be.push((0, f.ensureBytes)("extraEntropy", xe));
                    }
                    var De = l.concatBytes.apply(l, s([], c(be), !1)), _r = Ut;
                    function yr(M) {
                        var D = bt(M);
                        if (U(D)) {
                            var nt = v(D), it = X.BASE.multiply(D).toAffine(), ht = R(it.x);
                            if (ht !== I) {
                                var vt = R(nt * R(_r + ht * Gt));
                                if (vt !== I) {
                                    var kt = (it.x === ht ? 0 : 2) | Number(it.y & j), jt = vt;
                                    return St && q(vt) && (jt = V(vt), kt ^= 1), new Z(ht, jt, kt);
                                }
                            }
                        }
                    }
                    return {
                        seed: De,
                        k2sig: yr
                    };
                }
                var G = {
                    lowS: T.lowS,
                    prehash: !1
                }, et = {
                    lowS: T.lowS,
                    prehash: !1
                };
                function ct(dt, st, wt) {
                    wt === void 0 && (wt = G);
                    var It = W(dt, st, wt), Ot = It.seed, St = It.k2sig, Ft = T, Ct = l.createHmacDrbg(Ft.hash.outputLen, Ft.nByteLength, Ft.hmac);
                    return Ct(Ot, St);
                }
                X.BASE._setWindowSize(8);
                function ft(dt, st, wt, It) {
                    var Ot;
                    It === void 0 && (It = et);
                    var St = dt;
                    if (st = (0, f.ensureBytes)("msgHash", st), wt = (0, f.ensureBytes)("publicKey", wt), "strict" in It) throw new Error("options.strict was renamed to lowS");
                    var Ft = It.lowS, Ct = It.prehash, Ut = void 0, Gt;
                    try {
                        if (typeof St == "string" || l.isBytes(St)) try {
                            Ut = Z.fromDER(St);
                        } catch (vt) {
                            if (!(vt instanceof n.DER.Err)) throw vt;
                            Ut = Z.fromCompact(St);
                        }
                        else if (typeof St == "object" && typeof St.r == "bigint" && typeof St.s == "bigint") {
                            var be = St.r, xe = St.s;
                            Ut = new Z(be, xe);
                        } else throw new Error("PARSE");
                        Gt = X.fromHex(wt);
                    } catch (vt) {
                        if (vt.message === "PARSE") throw new Error("signature must be Signature instance, Uint8Array or hex string");
                        return !1;
                    }
                    if (Ft && Ut.hasHighS()) return !1;
                    Ct && (st = T.hash(st));
                    var De = Ut.r, _r = Ut.s, yr = pt(st), M = v(_r), D = R(yr * M), nt = R(De * M), it = (Ot = X.BASE.multiplyAndAddUnsafe(Gt, D, nt)) === null || Ot === void 0 ? void 0 : Ot.toAffine();
                    if (!it) return !1;
                    var ht = R(it.x);
                    return ht === De;
                }
                return {
                    CURVE: T,
                    getPublicKey: rt,
                    getSharedSecret: ut,
                    sign: ct,
                    verify: ft,
                    ProjectivePoint: X,
                    Signature: Z,
                    utils: tt
                };
            }
            n.weierstrass = Y;
            function K(P, T) {
                for(var E = P.ORDER, N = I, y = E - j; y % w === I; y /= w)N += j;
                var O = N, m = w << O - j - j, R = m * w, v = (E - j) / R, A = (v - j) / w, X = R - j, C = m, H = P.pow(T, v), U = P.pow(T, (v + j) / w), L = function(Q, Z) {
                    var tt = H, rt = P.pow(Z, X), at = P.sqr(rt);
                    at = P.mul(at, Z);
                    var ut = P.mul(Q, at);
                    ut = P.pow(ut, A), ut = P.mul(ut, rt), rt = P.mul(ut, Z), at = P.mul(ut, Q);
                    var bt = P.mul(at, rt);
                    ut = P.pow(bt, C);
                    var pt = P.eql(ut, P.ONE);
                    rt = P.mul(at, U), ut = P.mul(bt, tt), at = P.cmov(rt, at, pt), bt = P.cmov(ut, bt, pt);
                    for(var ot = O; ot > j; ot--){
                        var gt = ot - w;
                        gt = w << gt - j;
                        var W = P.pow(bt, gt), G = P.eql(W, P.ONE);
                        rt = P.mul(at, tt), tt = P.mul(tt, tt), W = P.mul(bt, tt), at = P.cmov(rt, at, G), bt = P.cmov(W, bt, G);
                    }
                    return {
                        isValid: pt,
                        value: at
                    };
                };
                if (P.ORDER % b === S) {
                    var q = (P.ORDER - S) / b, V = P.sqrt(P.neg(T));
                    L = function(Q, Z) {
                        var tt = P.sqr(Z), rt = P.mul(Q, Z);
                        tt = P.mul(tt, rt);
                        var at = P.pow(tt, q);
                        at = P.mul(at, rt);
                        var ut = P.mul(at, V), bt = P.mul(P.sqr(at), Z), pt = P.eql(bt, Q), ot = P.cmov(ut, at, pt);
                        return {
                            isValid: pt,
                            value: ot
                        };
                    };
                }
                return L;
            }
            n.SWUFpSqrtRatio = K;
            function J(P, T) {
                if (u.validateField(P), !P.isValid(T.A) || !P.isValid(T.B) || !P.isValid(T.Z)) throw new Error("mapToCurveSimpleSWU: invalid opts");
                var E = K(P, T.Z);
                if (!P.isOdd) throw new Error("Fp.isOdd is not implemented!");
                return function(N) {
                    var y, O, m, R, v, A, X, C;
                    y = P.sqr(N), y = P.mul(y, T.Z), O = P.sqr(y), O = P.add(O, y), m = P.add(O, P.ONE), m = P.mul(m, T.B), R = P.cmov(T.Z, P.neg(O), !P.eql(O, P.ZERO)), R = P.mul(R, T.A), O = P.sqr(m), A = P.sqr(R), v = P.mul(A, T.A), O = P.add(O, v), O = P.mul(O, m), A = P.mul(A, R), v = P.mul(A, T.B), O = P.add(O, v), X = P.mul(y, m);
                    var H = E(O, A), U = H.isValid, L = H.value;
                    C = P.mul(y, N), C = P.mul(C, L), X = P.cmov(X, m, U), C = P.cmov(C, L, U);
                    var q = P.isOdd(N) === P.isOdd(C);
                    return C = P.cmov(P.neg(C), C, q), X = P.div(X, R), {
                        x: X,
                        y: C
                    };
                };
            }
            n.mapToCurveSimpleSWU = J;
        })(un)), un;
    }
    var F4;
    function C4t() {
        if (F4) return No;
        F4 = 1;
        var n = No && No.__assign || function() {
            return n = Object.assign || function(l) {
                for(var f, p = 1, g = arguments.length; p < g; p++){
                    f = arguments[p];
                    for(var h in f)Object.prototype.hasOwnProperty.call(f, h) && (l[h] = f[h]);
                }
                return l;
            }, n.apply(this, arguments);
        }, t = No && No.__values || function(l) {
            var f = typeof Symbol == "function" && Symbol.iterator, p = f && l[f], g = 0;
            if (p) return p.call(l);
            if (l && typeof l.length == "number") return {
                next: function() {
                    return l && g >= l.length && (l = void 0), {
                        value: l && l[g++],
                        done: !l
                    };
                }
            };
            throw new TypeError(f ? "Object is not iterable." : "Symbol.iterator is not defined.");
        };
        Object.defineProperty(No, "__esModule", {
            value: !0
        }), No.bls = void 0;
        var e = Hl(), o = Mi(), _ = p0(), a = b0(), c = BigInt(2), s = BigInt(3);
        function u(l) {
            var f = l.fields, p = f.Fp, g = f.Fr, h = f.Fp2, B = f.Fp6, I = f.Fp12, j = (0, o.bitLen)(l.params.x);
            function w(Q) {
                for(var Z = Q.x, tt = Q.y, rt = Z, at = tt, ut = h.ONE, bt = rt, pt = at, ot = ut, gt = [], W = j - 2; W >= 0; W--){
                    var G = h.sqr(pt), et = h.sqr(ot), ct = h.multiplyByB(h.mul(et, s)), ft = h.mul(ct, s), dt = h.sub(h.sub(h.sqr(h.add(pt, ot)), et), G);
                    if (gt.push([
                        h.sub(ct, G),
                        h.mul(h.sqr(bt), s),
                        h.neg(dt)
                    ]), bt = h.div(h.mul(h.mul(h.sub(G, ft), bt), pt), c), pt = h.sub(h.sqr(h.div(h.add(G, ft), c)), h.mul(h.sqr(ct), s)), ot = h.mul(G, dt), (0, o.bitGet)(l.params.x, W)) {
                        var st = h.sub(pt, h.mul(at, ot)), wt = h.sub(bt, h.mul(rt, ot));
                        gt.push([
                            h.sub(h.mul(st, rt), h.mul(wt, at)),
                            h.neg(st),
                            wt
                        ]);
                        var It = h.sqr(wt), Ot = h.mul(It, wt), St = h.mul(It, bt), Ft = h.add(h.sub(Ot, h.mul(St, c)), h.mul(h.sqr(st), ot));
                        bt = h.mul(wt, Ft), pt = h.sub(h.mul(h.sub(St, Ft), st), h.mul(Ot, pt)), ot = h.mul(ot, Ot);
                    }
                }
                return gt;
            }
            function S(Q, Z) {
                for(var tt = l.params.x, rt = Z[0], at = Z[1], ut = I.ONE, bt = 0, pt = j - 2; pt >= 0; pt--, bt++){
                    var ot = Q[bt];
                    if (ut = I.multiplyBy014(ut, ot[0], h.mul(ot[1], rt), h.mul(ot[2], at)), (0, o.bitGet)(tt, pt)) {
                        bt += 1;
                        var gt = Q[bt];
                        ut = I.multiplyBy014(ut, gt[0], h.mul(gt[1], rt), h.mul(gt[2], at));
                    }
                    pt !== 0 && (ut = I.sqr(ut));
                }
                return I.conjugate(ut);
            }
            var b = {
                randomPrivateKey: function() {
                    var Q = (0, e.getMinHashLength)(g.ORDER);
                    return (0, e.mapHashToField)(l.randomBytes(Q), g.ORDER);
                },
                calcPairingPrecomputes: w
            }, k = (0, a.weierstrassPoints)(n({
                n: g.ORDER
            }, l.G1)), F = Object.assign(k, (0, _.createHasher)(k.ProjectivePoint, l.G1.mapToCurve, n(n({}, l.htfDefaults), l.G1.htfDefaults)));
            function Y(Q) {
                var Z = Q;
                return Z._PPRECOMPUTES || (Z._PPRECOMPUTES = w(Q.toAffine())), Z._PPRECOMPUTES;
            }
            var K = (0, a.weierstrassPoints)(n({
                n: g.ORDER
            }, l.G2)), J = Object.assign(K, (0, _.createHasher)(K.ProjectivePoint, l.G2.mapToCurve, n(n({}, l.htfDefaults), l.G2.htfDefaults))), P = l.G1.ShortSignature, T = l.G2.Signature;
            function E(Q, Z, tt) {
                if (tt === void 0 && (tt = !0), Q.equals(F.ProjectivePoint.ZERO) || Z.equals(J.ProjectivePoint.ZERO)) throw new Error("pairing is not available for ZERO point");
                Q.assertValidity(), Z.assertValidity();
                var rt = Q.toAffine(), at = S(Y(Z), [
                    rt.x,
                    rt.y
                ]);
                return tt ? I.finalExponentiate(at) : at;
            }
            function N(Q) {
                return Q instanceof F.ProjectivePoint ? Q : F.ProjectivePoint.fromHex(Q);
            }
            function y(Q, Z) {
                return Q instanceof F.ProjectivePoint ? Q : F.hashToCurve((0, o.ensureBytes)("point", Q), Z);
            }
            function O(Q) {
                return Q instanceof J.ProjectivePoint ? Q : T.fromHex(Q);
            }
            function m(Q, Z) {
                return Q instanceof J.ProjectivePoint ? Q : J.hashToCurve((0, o.ensureBytes)("point", Q), Z);
            }
            function R(Q) {
                return F.ProjectivePoint.fromPrivateKey(Q).toRawBytes(!0);
            }
            function v(Q) {
                return J.ProjectivePoint.fromPrivateKey(Q).toRawBytes(!0);
            }
            function A(Q, Z, tt) {
                var rt = m(Q, tt);
                rt.assertValidity();
                var at = rt.multiply(F.normPrivateKeyToScalar(Z));
                return Q instanceof J.ProjectivePoint ? at : T.toRawBytes(at);
            }
            function X(Q, Z, tt) {
                var rt = y(Q, tt);
                rt.assertValidity();
                var at = rt.multiply(F.normPrivateKeyToScalar(Z));
                return Q instanceof F.ProjectivePoint ? at : P.toRawBytes(at);
            }
            function C(Q, Z, tt, rt) {
                var at = N(tt), ut = m(Z, rt), bt = F.ProjectivePoint.BASE, pt = O(Q), ot = E(at.negate(), ut, !1), gt = E(bt, pt, !1), W = I.finalExponentiate(I.mul(gt, ot));
                return I.eql(W, I.ONE);
            }
            function H(Q, Z, tt, rt) {
                var at = O(tt), ut = y(Z, rt), bt = J.ProjectivePoint.BASE, pt = N(Q), ot = E(ut, at, !1), gt = E(pt, bt.negate(), !1), W = I.finalExponentiate(I.mul(gt, ot));
                return I.eql(W, I.ONE);
            }
            function U(Q) {
                if (!Q.length) throw new Error("Expected non-empty array");
                var Z = Q.map(N).reduce(function(rt, at) {
                    return rt.add(at);
                }, F.ProjectivePoint.ZERO), tt = Z;
                return Q[0] instanceof F.ProjectivePoint ? (tt.assertValidity(), tt) : tt.toRawBytes(!0);
            }
            function L(Q) {
                if (!Q.length) throw new Error("Expected non-empty array");
                var Z = Q.map(O).reduce(function(rt, at) {
                    return rt.add(at);
                }, J.ProjectivePoint.ZERO), tt = Z;
                return Q[0] instanceof J.ProjectivePoint ? (tt.assertValidity(), tt) : T.toRawBytes(tt);
            }
            function q(Q) {
                if (!Q.length) throw new Error("Expected non-empty array");
                var Z = Q.map(N).reduce(function(rt, at) {
                    return rt.add(at);
                }, F.ProjectivePoint.ZERO), tt = Z;
                return Q[0] instanceof F.ProjectivePoint ? (tt.assertValidity(), tt) : P.toRawBytes(tt);
            }
            function V(Q, Z, tt, rt) {
                var at, ut;
                if (!Z.length) throw new Error("Expected non-empty messages array");
                if (tt.length !== Z.length) throw new Error("Pubkey count should equal msg count");
                var bt = O(Q), pt = Z.map(function(st) {
                    return m(st, rt);
                }), ot = tt.map(N);
                try {
                    var gt = [], W = function(st) {
                        var wt = pt.reduce(function(It, Ot, St) {
                            return Ot === st ? It.add(ot[St]) : It;
                        }, F.ProjectivePoint.ZERO);
                        gt.push(E(wt, st, !1));
                    };
                    try {
                        for(var G = t(new Set(pt)), et = G.next(); !et.done; et = G.next()){
                            var ct = et.value;
                            W(ct);
                        }
                    } catch (st) {
                        at = {
                            error: st
                        };
                    } finally{
                        try {
                            et && !et.done && (ut = G.return) && ut.call(G);
                        } finally{
                            if (at) throw at.error;
                        }
                    }
                    gt.push(E(F.ProjectivePoint.BASE.negate(), bt, !1));
                    var ft = gt.reduce(function(st, wt) {
                        return I.mul(st, wt);
                    }, I.ONE), dt = I.finalExponentiate(ft);
                    return I.eql(dt, I.ONE);
                } catch  {
                    return !1;
                }
            }
            return F.ProjectivePoint.BASE._setWindowSize(4), {
                getPublicKey: R,
                getPublicKeyForShortSignatures: v,
                sign: A,
                signShortSignature: X,
                verify: C,
                verifyBatch: V,
                verifyShortSignature: H,
                aggregatePublicKeys: U,
                aggregateSignatures: L,
                aggregateShortSignatures: q,
                millerLoop: S,
                pairing: E,
                G1: F,
                G2: J,
                Signature: T,
                ShortSignature: P,
                fields: {
                    Fr: g,
                    Fp: p,
                    Fp2: h,
                    Fp6: B,
                    Fp12: I
                },
                params: {
                    x: l.params.x,
                    r: l.params.r,
                    G1b: l.G1.b,
                    G2b: l.G2.b
                },
                utils: b
            };
        }
        return No.bls = u, No;
    }
    var Lo = {}, Un = {}, Cr = {}, A4;
    function Jx() {
        if (A4) return Cr;
        A4 = 1, Object.defineProperty(Cr, "__esModule", {
            value: !0
        }), Cr.output = Cr.exists = Cr.hash = Cr.bytes = Cr.bool = Cr.number = Cr.isBytes = void 0;
        function n(u) {
            if (!Number.isSafeInteger(u) || u < 0) throw new Error("positive integer expected, not ".concat(u));
        }
        Cr.number = n;
        function t(u) {
            if (typeof u != "boolean") throw new Error("boolean expected, not ".concat(u));
        }
        Cr.bool = t;
        function e(u) {
            return u instanceof Uint8Array || u != null && typeof u == "object" && u.constructor.name === "Uint8Array";
        }
        Cr.isBytes = e;
        function o(u) {
            for(var l = [], f = 1; f < arguments.length; f++)l[f - 1] = arguments[f];
            if (!e(u)) throw new Error("Uint8Array expected");
            if (l.length > 0 && !l.includes(u.length)) throw new Error("Uint8Array expected of length ".concat(l, ", not of length=").concat(u.length));
        }
        Cr.bytes = o;
        function _(u) {
            if (typeof u != "function" || typeof u.create != "function") throw new Error("Hash should be wrapped by utils.wrapConstructor");
            n(u.outputLen), n(u.blockLen);
        }
        Cr.hash = _;
        function a(u, l) {
            if (l === void 0 && (l = !0), u.destroyed) throw new Error("Hash instance has been destroyed");
            if (l && u.finished) throw new Error("Hash#digest() has already been called");
        }
        Cr.exists = a;
        function c(u, l) {
            o(u);
            var f = l.outputLen;
            if (u.length < f) throw new Error("digestInto() expects output buffer of length at least ".concat(f));
        }
        Cr.output = c;
        var s = {
            number: n,
            bool: t,
            bytes: o,
            hash: _,
            exists: a,
            output: c
        };
        return Cr.default = s, Cr;
    }
    var T4;
    function gh() {
        if (T4) return Un;
        T4 = 1;
        var n = Un && Un.__extends || (function() {
            var l = function(f, p) {
                return l = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(g, h) {
                    g.__proto__ = h;
                } || function(g, h) {
                    for(var B in h)Object.prototype.hasOwnProperty.call(h, B) && (g[B] = h[B]);
                }, l(f, p);
            };
            return function(f, p) {
                if (typeof p != "function" && p !== null) throw new TypeError("Class extends value " + String(p) + " is not a constructor or null");
                l(f, p);
                function g() {
                    this.constructor = f;
                }
                f.prototype = p === null ? Object.create(p) : (g.prototype = p.prototype, new g);
            };
        })(), t = Un && Un.__read || function(l, f) {
            var p = typeof Symbol == "function" && l[Symbol.iterator];
            if (!p) return l;
            var g = p.call(l), h, B = [], I;
            try {
                for(; (f === void 0 || f-- > 0) && !(h = g.next()).done;)B.push(h.value);
            } catch (j) {
                I = {
                    error: j
                };
            } finally{
                try {
                    h && !h.done && (p = g.return) && p.call(g);
                } finally{
                    if (I) throw I.error;
                }
            }
            return B;
        }, e = Un && Un.__spreadArray || function(l, f, p) {
            if (p || arguments.length === 2) for(var g = 0, h = f.length, B; g < h; g++)(B || !(g in f)) && (B || (B = Array.prototype.slice.call(f, 0, g)), B[g] = f[g]);
            return l.concat(B || Array.prototype.slice.call(f));
        };
        Object.defineProperty(Un, "__esModule", {
            value: !0
        }), Un.HashMD = Un.Maj = Un.Chi = void 0;
        var o = Jx(), _ = Qi();
        function a(l, f, p, g) {
            if (typeof l.setBigUint64 == "function") return l.setBigUint64(f, p, g);
            var h = BigInt(32), B = BigInt(4294967295), I = Number(p >> h & B), j = Number(p & B), w = g ? 4 : 0, S = g ? 0 : 4;
            l.setUint32(f + w, I, g), l.setUint32(f + S, j, g);
        }
        var c = function(l, f, p) {
            return l & f ^ ~l & p;
        };
        Un.Chi = c;
        var s = function(l, f, p) {
            return l & f ^ l & p ^ f & p;
        };
        Un.Maj = s;
        var u = (function(l) {
            n(f, l);
            function f(p, g, h, B) {
                var I = l.call(this) || this;
                return I.blockLen = p, I.outputLen = g, I.padOffset = h, I.isLE = B, I.finished = !1, I.length = 0, I.pos = 0, I.destroyed = !1, I.buffer = new Uint8Array(p), I.view = (0, _.createView)(I.buffer), I;
            }
            return f.prototype.update = function(p) {
                (0, o.exists)(this);
                var g = this, h = g.view, B = g.buffer, I = g.blockLen;
                p = (0, _.toBytes)(p);
                for(var j = p.length, w = 0; w < j;){
                    var S = Math.min(I - this.pos, j - w);
                    if (S === I) {
                        for(var b = (0, _.createView)(p); I <= j - w; w += I)this.process(b, w);
                        continue;
                    }
                    B.set(p.subarray(w, w + S), this.pos), this.pos += S, w += S, this.pos === I && (this.process(h, 0), this.pos = 0);
                }
                return this.length += p.length, this.roundClean(), this;
            }, f.prototype.digestInto = function(p) {
                (0, o.exists)(this), (0, o.output)(p, this), this.finished = !0;
                var g = this, h = g.buffer, B = g.view, I = g.blockLen, j = g.isLE, w = this.pos;
                h[w++] = 128, this.buffer.subarray(w).fill(0), this.padOffset > I - w && (this.process(B, 0), w = 0);
                for(var S = w; S < I; S++)h[S] = 0;
                a(B, I - 8, BigInt(this.length * 8), j), this.process(B, 0);
                var b = (0, _.createView)(p), k = this.outputLen;
                if (k % 4) throw new Error("_sha2: outputLen should be aligned to 32bit");
                var F = k / 4, Y = this.get();
                if (F > Y.length) throw new Error("_sha2: outputLen bigger than state");
                for(var S = 0; S < F; S++)b.setUint32(4 * S, Y[S], j);
            }, f.prototype.digest = function() {
                var p = this, g = p.buffer, h = p.outputLen;
                this.digestInto(g);
                var B = Uint8Array.prototype.slice.call(g, 0, h);
                return this.destroy(), B;
            }, f.prototype._cloneInto = function(p) {
                p || (p = new this.constructor), p.set.apply(p, e([], t(this.get()), !1));
                var g = this, h = g.blockLen, B = g.buffer, I = g.length, j = g.finished, w = g.destroyed, S = g.pos;
                return p.length = I, p.pos = S, p.finished = j, p.destroyed = w, I % h && p.buffer.set(B), p;
            }, f;
        })(_.Hash);
        return Un.HashMD = u, Un;
    }
    var P4;
    function ph() {
        if (P4) return Lo;
        P4 = 1;
        var n = Lo && Lo.__extends || (function() {
            var u = function(l, f) {
                return u = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(p, g) {
                    p.__proto__ = g;
                } || function(p, g) {
                    for(var h in g)Object.prototype.hasOwnProperty.call(g, h) && (p[h] = g[h]);
                }, u(l, f);
            };
            return function(l, f) {
                if (typeof f != "function" && f !== null) throw new TypeError("Class extends value " + String(f) + " is not a constructor or null");
                u(l, f);
                function p() {
                    this.constructor = l;
                }
                l.prototype = f === null ? Object.create(f) : (p.prototype = f.prototype, new p);
            };
        })();
        Object.defineProperty(Lo, "__esModule", {
            value: !0
        }), Lo.sha224 = Lo.sha256 = void 0;
        var t = gh(), e = Qi(), o = new Uint32Array([
            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
        ]), _ = new Uint32Array([
            1779033703,
            3144134277,
            1013904242,
            2773480762,
            1359893119,
            2600822924,
            528734635,
            1541459225
        ]), a = new Uint32Array(64), c = (function(u) {
            n(l, u);
            function l() {
                var f = u.call(this, 64, 32, 8, !1) || this;
                return f.A = _[0] | 0, f.B = _[1] | 0, f.C = _[2] | 0, f.D = _[3] | 0, f.E = _[4] | 0, f.F = _[5] | 0, f.G = _[6] | 0, f.H = _[7] | 0, f;
            }
            return l.prototype.get = function() {
                var f = this, p = f.A, g = f.B, h = f.C, B = f.D, I = f.E, j = f.F, w = f.G, S = f.H;
                return [
                    p,
                    g,
                    h,
                    B,
                    I,
                    j,
                    w,
                    S
                ];
            }, l.prototype.set = function(f, p, g, h, B, I, j, w) {
                this.A = f | 0, this.B = p | 0, this.C = g | 0, this.D = h | 0, this.E = B | 0, this.F = I | 0, this.G = j | 0, this.H = w | 0;
            }, l.prototype.process = function(f, p) {
                for(var g = 0; g < 16; g++, p += 4)a[g] = f.getUint32(p, !1);
                for(var g = 16; g < 64; g++){
                    var h = a[g - 15], B = a[g - 2], I = (0, e.rotr)(h, 7) ^ (0, e.rotr)(h, 18) ^ h >>> 3, j = (0, e.rotr)(B, 17) ^ (0, e.rotr)(B, 19) ^ B >>> 10;
                    a[g] = j + a[g - 7] + I + a[g - 16] | 0;
                }
                for(var w = this, S = w.A, b = w.B, k = w.C, F = w.D, Y = w.E, K = w.F, J = w.G, P = w.H, g = 0; g < 64; g++){
                    var T = (0, e.rotr)(Y, 6) ^ (0, e.rotr)(Y, 11) ^ (0, e.rotr)(Y, 25), E = P + T + (0, t.Chi)(Y, K, J) + o[g] + a[g] | 0, N = (0, e.rotr)(S, 2) ^ (0, e.rotr)(S, 13) ^ (0, e.rotr)(S, 22), y = N + (0, t.Maj)(S, b, k) | 0;
                    P = J, J = K, K = Y, Y = F + E | 0, F = k, k = b, b = S, S = E + y | 0;
                }
                S = S + this.A | 0, b = b + this.B | 0, k = k + this.C | 0, F = F + this.D | 0, Y = Y + this.E | 0, K = K + this.F | 0, J = J + this.G | 0, P = P + this.H | 0, this.set(S, b, k, F, Y, K, J, P);
            }, l.prototype.roundClean = function() {
                a.fill(0);
            }, l.prototype.destroy = function() {
                this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
            }, l;
        })(t.HashMD), s = (function(u) {
            n(l, u);
            function l() {
                var f = u.call(this) || this;
                return f.A = -1056596264, f.B = 914150663, f.C = 812702999, f.D = -150054599, f.E = -4191439, f.F = 1750603025, f.G = 1694076839, f.H = -1090891868, f.outputLen = 28, f;
            }
            return l;
        })(c);
        return Lo.sha256 = (0, e.wrapConstructor)(function() {
            return new c;
        }), Lo.sha224 = (0, e.wrapConstructor)(function() {
            return new s;
        }), Lo;
    }
    var R4;
    function N4t() {
        return R4 || (R4 = 1, (function(n) {
            var t = h_ && h_.__assign || function() {
                return t = Object.assign || function(M) {
                    for(var D, nt = 1, it = arguments.length; nt < it; nt++){
                        D = arguments[nt];
                        for(var ht in D)Object.prototype.hasOwnProperty.call(D, ht) && (M[ht] = D[ht]);
                    }
                    return M;
                }, t.apply(this, arguments);
            }, e = h_ && h_.__createBinding || (Object.create ? (function(M, D, nt, it) {
                it === void 0 && (it = nt);
                var ht = Object.getOwnPropertyDescriptor(D, nt);
                (!ht || ("get" in ht ? !D.__esModule : ht.writable || ht.configurable)) && (ht = {
                    enumerable: !0,
                    get: function() {
                        return D[nt];
                    }
                }), Object.defineProperty(M, it, ht);
            }) : (function(M, D, nt, it) {
                it === void 0 && (it = nt), M[it] = D[nt];
            })), o = h_ && h_.__setModuleDefault || (Object.create ? (function(M, D) {
                Object.defineProperty(M, "default", {
                    enumerable: !0,
                    value: D
                });
            }) : function(M, D) {
                M.default = D;
            }), _ = h_ && h_.__importStar || function(M) {
                if (M && M.__esModule) return M;
                var D = {};
                if (M != null) for(var nt in M)nt !== "default" && Object.prototype.hasOwnProperty.call(M, nt) && e(D, M, nt);
                return o(D, M), D;
            }, a = h_ && h_.__read || function(M, D) {
                var nt = typeof Symbol == "function" && M[Symbol.iterator];
                if (!nt) return M;
                var it = nt.call(M), ht, vt = [], kt;
                try {
                    for(; (D === void 0 || D-- > 0) && !(ht = it.next()).done;)vt.push(ht.value);
                } catch (jt) {
                    kt = {
                        error: jt
                    };
                } finally{
                    try {
                        ht && !ht.done && (nt = it.return) && nt.call(it);
                    } finally{
                        if (kt) throw kt.error;
                    }
                }
                return vt;
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.bls12_381 = n.G2_mapToCurve = n.G1_mapToCurve = n.G1_formBytes = n.parseMask = n.Fp12 = n.Fp12_ONE = n.Fp12_eql = n.Fp12_conjugate = n.Fp12_finalExponentiate = n.Fp12Multiply = n.Fp2 = n.Fp = void 0;
            var c = C4t(), s = _(Hl()), u = Mi(), l = b0(), f = p0(), p = ph(), g = Qi(), h = BigInt(0), B = BigInt(1), I = BigInt(2), j = BigInt(3), w = BigInt(4), S = BigInt(8), b = BigInt(16), k = BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab");
            n.Fp = s.Field(k);
            var F = s.Field(BigInt("0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001")), Y = function(M, D) {
                var nt = M.c0, it = M.c1, ht = D.c0, vt = D.c1;
                return {
                    c0: n.Fp.add(nt, ht),
                    c1: n.Fp.add(it, vt)
                };
            }, K = function(M, D) {
                var nt = M.c0, it = M.c1, ht = D.c0, vt = D.c1;
                return {
                    c0: n.Fp.sub(nt, ht),
                    c1: n.Fp.sub(it, vt)
                };
            }, J = function(M, D) {
                var nt = M.c0, it = M.c1;
                if (typeof D == "bigint") return {
                    c0: n.Fp.mul(nt, D),
                    c1: n.Fp.mul(it, D)
                };
                var ht = D.c0, vt = D.c1, kt = n.Fp.mul(nt, ht), jt = n.Fp.mul(it, vt), Rt = n.Fp.sub(kt, jt), Lt = n.Fp.sub(n.Fp.mul(n.Fp.add(nt, it), n.Fp.add(ht, vt)), n.Fp.add(kt, jt));
                return {
                    c0: Rt,
                    c1: Lt
                };
            }, P = function(M) {
                var D = M.c0, nt = M.c1, it = n.Fp.add(D, nt), ht = n.Fp.sub(D, nt), vt = n.Fp.add(D, D);
                return {
                    c0: n.Fp.mul(it, ht),
                    c1: n.Fp.mul(vt, nt)
                };
            }, T = k * k;
            n.Fp2 = {
                ORDER: T,
                BITS: (0, u.bitLen)(T),
                BYTES: Math.ceil((0, u.bitLen)(T) / 8),
                MASK: (0, u.bitMask)((0, u.bitLen)(T)),
                ZERO: {
                    c0: n.Fp.ZERO,
                    c1: n.Fp.ZERO
                },
                ONE: {
                    c0: n.Fp.ONE,
                    c1: n.Fp.ZERO
                },
                create: function(M) {
                    return M;
                },
                isValid: function(M) {
                    var D = M.c0, nt = M.c1;
                    return typeof D == "bigint" && typeof nt == "bigint";
                },
                is0: function(M) {
                    var D = M.c0, nt = M.c1;
                    return n.Fp.is0(D) && n.Fp.is0(nt);
                },
                eql: function(M, D) {
                    var nt = M.c0, it = M.c1, ht = D.c0, vt = D.c1;
                    return n.Fp.eql(nt, ht) && n.Fp.eql(it, vt);
                },
                neg: function(M) {
                    var D = M.c0, nt = M.c1;
                    return {
                        c0: n.Fp.neg(D),
                        c1: n.Fp.neg(nt)
                    };
                },
                pow: function(M, D) {
                    return s.FpPow(n.Fp2, M, D);
                },
                invertBatch: function(M) {
                    return s.FpInvertBatch(n.Fp2, M);
                },
                add: Y,
                sub: K,
                mul: J,
                sqr: P,
                addN: Y,
                subN: K,
                mulN: J,
                sqrN: P,
                div: function(M, D) {
                    return n.Fp2.mul(M, typeof D == "bigint" ? n.Fp.inv(n.Fp.create(D)) : n.Fp2.inv(D));
                },
                inv: function(M) {
                    var D = M.c0, nt = M.c1, it = n.Fp.inv(n.Fp.create(D * D + nt * nt));
                    return {
                        c0: n.Fp.mul(it, n.Fp.create(D)),
                        c1: n.Fp.mul(it, n.Fp.create(-nt))
                    };
                },
                sqrt: function(M) {
                    if (n.Fp2.eql(M, n.Fp2.ZERO)) return n.Fp2.ZERO;
                    var D = n.Fp2.pow(M, (n.Fp2.ORDER + S) / b), nt = n.Fp2.div(n.Fp2.sqr(D), M), it = y, ht = [
                        it[0],
                        it[2],
                        it[4],
                        it[6]
                    ].find(function(gr) {
                        return n.Fp2.eql(gr, nt);
                    });
                    if (!ht) throw new Error("No root");
                    var vt = it.indexOf(ht), kt = it[vt / 2];
                    if (!kt) throw new Error("Invalid root");
                    var jt = n.Fp2.div(D, kt), Rt = n.Fp2.neg(jt), Lt = n.Fp2.reim(jt), Dt = Lt.re, ue = Lt.im, Se = n.Fp2.reim(Rt), le = Se.re, we = Se.im;
                    return ue > we || ue === we && Dt > le ? jt : Rt;
                },
                isOdd: function(M) {
                    var D = n.Fp2.reim(M), nt = D.re, it = D.im, ht = nt % I, vt = nt === h, kt = it % I;
                    return BigInt(ht || vt && kt) == B;
                },
                fromBytes: function(M) {
                    if (M.length !== n.Fp2.BYTES) throw new Error("fromBytes wrong length=".concat(M.length));
                    return {
                        c0: n.Fp.fromBytes(M.subarray(0, n.Fp.BYTES)),
                        c1: n.Fp.fromBytes(M.subarray(n.Fp.BYTES))
                    };
                },
                toBytes: function(M) {
                    var D = M.c0, nt = M.c1;
                    return (0, u.concatBytes)(n.Fp.toBytes(D), n.Fp.toBytes(nt));
                },
                cmov: function(M, D, nt) {
                    var it = M.c0, ht = M.c1, vt = D.c0, kt = D.c1;
                    return {
                        c0: n.Fp.cmov(it, vt, nt),
                        c1: n.Fp.cmov(ht, kt, nt)
                    };
                },
                reim: function(M) {
                    var D = M.c0, nt = M.c1;
                    return {
                        re: D,
                        im: nt
                    };
                },
                mulByNonresidue: function(M) {
                    var D = M.c0, nt = M.c1;
                    return {
                        c0: n.Fp.sub(D, nt),
                        c1: n.Fp.add(D, nt)
                    };
                },
                multiplyByB: function(M) {
                    var D = M.c0, nt = M.c1, it = n.Fp.mul(D, w), ht = n.Fp.mul(nt, w);
                    return {
                        c0: n.Fp.sub(it, ht),
                        c1: n.Fp.add(it, ht)
                    };
                },
                fromBigTuple: function(M) {
                    if (M.length !== 2) throw new Error("Invalid tuple");
                    var D = M.map(function(nt) {
                        return n.Fp.create(nt);
                    });
                    return {
                        c0: D[0],
                        c1: D[1]
                    };
                },
                frobeniusMap: function(M, D) {
                    var nt = M.c0, it = M.c1;
                    return {
                        c0: nt,
                        c1: n.Fp.mul(it, E[D % 2])
                    };
                }
            };
            var E = [
                BigInt("0x1"),
                BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa")
            ].map(function(M) {
                return n.Fp.create(M);
            }), N = BigInt("0x6af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09"), y = [
                [
                    B,
                    h
                ],
                [
                    N,
                    -N
                ],
                [
                    h,
                    B
                ],
                [
                    N,
                    N
                ],
                [
                    -B,
                    h
                ],
                [
                    -N,
                    N
                ],
                [
                    h,
                    -B
                ],
                [
                    -N,
                    -N
                ]
            ].map(function(M) {
                return n.Fp2.fromBigTuple(M);
            }), O = function(M, D) {
                var nt = M.c0, it = M.c1, ht = M.c2, vt = D.c0, kt = D.c1, jt = D.c2;
                return {
                    c0: n.Fp2.add(nt, vt),
                    c1: n.Fp2.add(it, kt),
                    c2: n.Fp2.add(ht, jt)
                };
            }, m = function(M, D) {
                var nt = M.c0, it = M.c1, ht = M.c2, vt = D.c0, kt = D.c1, jt = D.c2;
                return {
                    c0: n.Fp2.sub(nt, vt),
                    c1: n.Fp2.sub(it, kt),
                    c2: n.Fp2.sub(ht, jt)
                };
            }, R = function(M, D) {
                var nt = M.c0, it = M.c1, ht = M.c2;
                if (typeof D == "bigint") return {
                    c0: n.Fp2.mul(nt, D),
                    c1: n.Fp2.mul(it, D),
                    c2: n.Fp2.mul(ht, D)
                };
                var vt = D.c0, kt = D.c1, jt = D.c2, Rt = n.Fp2.mul(nt, vt), Lt = n.Fp2.mul(it, kt), Dt = n.Fp2.mul(ht, jt);
                return {
                    c0: n.Fp2.add(Rt, n.Fp2.mulByNonresidue(n.Fp2.sub(n.Fp2.mul(n.Fp2.add(it, ht), n.Fp2.add(kt, jt)), n.Fp2.add(Lt, Dt)))),
                    c1: n.Fp2.add(n.Fp2.sub(n.Fp2.mul(n.Fp2.add(nt, it), n.Fp2.add(vt, kt)), n.Fp2.add(Rt, Lt)), n.Fp2.mulByNonresidue(Dt)),
                    c2: n.Fp2.sub(n.Fp2.add(Lt, n.Fp2.mul(n.Fp2.add(nt, ht), n.Fp2.add(vt, jt))), n.Fp2.add(Rt, Dt))
                };
            }, v = function(M) {
                var D = M.c0, nt = M.c1, it = M.c2, ht = n.Fp2.sqr(D), vt = n.Fp2.mul(n.Fp2.mul(D, nt), I), kt = n.Fp2.mul(n.Fp2.mul(nt, it), I), jt = n.Fp2.sqr(it);
                return {
                    c0: n.Fp2.add(n.Fp2.mulByNonresidue(kt), ht),
                    c1: n.Fp2.add(n.Fp2.mulByNonresidue(jt), vt),
                    c2: n.Fp2.sub(n.Fp2.sub(n.Fp2.add(n.Fp2.add(vt, n.Fp2.sqr(n.Fp2.add(n.Fp2.sub(D, nt), it))), kt), ht), jt)
                };
            }, A = {
                ORDER: n.Fp2.ORDER,
                BITS: 3 * n.Fp2.BITS,
                BYTES: 3 * n.Fp2.BYTES,
                MASK: (0, u.bitMask)(3 * n.Fp2.BITS),
                ZERO: {
                    c0: n.Fp2.ZERO,
                    c1: n.Fp2.ZERO,
                    c2: n.Fp2.ZERO
                },
                ONE: {
                    c0: n.Fp2.ONE,
                    c1: n.Fp2.ZERO,
                    c2: n.Fp2.ZERO
                },
                create: function(M) {
                    return M;
                },
                isValid: function(M) {
                    var D = M.c0, nt = M.c1, it = M.c2;
                    return n.Fp2.isValid(D) && n.Fp2.isValid(nt) && n.Fp2.isValid(it);
                },
                is0: function(M) {
                    var D = M.c0, nt = M.c1, it = M.c2;
                    return n.Fp2.is0(D) && n.Fp2.is0(nt) && n.Fp2.is0(it);
                },
                neg: function(M) {
                    var D = M.c0, nt = M.c1, it = M.c2;
                    return {
                        c0: n.Fp2.neg(D),
                        c1: n.Fp2.neg(nt),
                        c2: n.Fp2.neg(it)
                    };
                },
                eql: function(M, D) {
                    var nt = M.c0, it = M.c1, ht = M.c2, vt = D.c0, kt = D.c1, jt = D.c2;
                    return n.Fp2.eql(nt, vt) && n.Fp2.eql(it, kt) && n.Fp2.eql(ht, jt);
                },
                sqrt: function() {
                    throw new Error("Not implemented");
                },
                div: function(M, D) {
                    return A.mul(M, typeof D == "bigint" ? n.Fp.inv(n.Fp.create(D)) : A.inv(D));
                },
                pow: function(M, D) {
                    return s.FpPow(A, M, D);
                },
                invertBatch: function(M) {
                    return s.FpInvertBatch(A, M);
                },
                add: O,
                sub: m,
                mul: R,
                sqr: v,
                addN: O,
                subN: m,
                mulN: R,
                sqrN: v,
                inv: function(M) {
                    var D = M.c0, nt = M.c1, it = M.c2, ht = n.Fp2.sub(n.Fp2.sqr(D), n.Fp2.mulByNonresidue(n.Fp2.mul(it, nt))), vt = n.Fp2.sub(n.Fp2.mulByNonresidue(n.Fp2.sqr(it)), n.Fp2.mul(D, nt)), kt = n.Fp2.sub(n.Fp2.sqr(nt), n.Fp2.mul(D, it)), jt = n.Fp2.inv(n.Fp2.add(n.Fp2.mulByNonresidue(n.Fp2.add(n.Fp2.mul(it, vt), n.Fp2.mul(nt, kt))), n.Fp2.mul(D, ht)));
                    return {
                        c0: n.Fp2.mul(jt, ht),
                        c1: n.Fp2.mul(jt, vt),
                        c2: n.Fp2.mul(jt, kt)
                    };
                },
                fromBytes: function(M) {
                    if (M.length !== A.BYTES) throw new Error("fromBytes wrong length=".concat(M.length));
                    return {
                        c0: n.Fp2.fromBytes(M.subarray(0, n.Fp2.BYTES)),
                        c1: n.Fp2.fromBytes(M.subarray(n.Fp2.BYTES, 2 * n.Fp2.BYTES)),
                        c2: n.Fp2.fromBytes(M.subarray(2 * n.Fp2.BYTES))
                    };
                },
                toBytes: function(M) {
                    var D = M.c0, nt = M.c1, it = M.c2;
                    return (0, u.concatBytes)(n.Fp2.toBytes(D), n.Fp2.toBytes(nt), n.Fp2.toBytes(it));
                },
                cmov: function(M, D, nt) {
                    var it = M.c0, ht = M.c1, vt = M.c2, kt = D.c0, jt = D.c1, Rt = D.c2;
                    return {
                        c0: n.Fp2.cmov(it, kt, nt),
                        c1: n.Fp2.cmov(ht, jt, nt),
                        c2: n.Fp2.cmov(vt, Rt, nt)
                    };
                },
                fromBigSix: function(M) {
                    if (!Array.isArray(M) || M.length !== 6) throw new Error("Invalid Fp6 usage");
                    return {
                        c0: n.Fp2.fromBigTuple(M.slice(0, 2)),
                        c1: n.Fp2.fromBigTuple(M.slice(2, 4)),
                        c2: n.Fp2.fromBigTuple(M.slice(4, 6))
                    };
                },
                frobeniusMap: function(M, D) {
                    var nt = M.c0, it = M.c1, ht = M.c2;
                    return {
                        c0: n.Fp2.frobeniusMap(nt, D),
                        c1: n.Fp2.mul(n.Fp2.frobeniusMap(it, D), X[D % 6]),
                        c2: n.Fp2.mul(n.Fp2.frobeniusMap(ht, D), C[D % 6])
                    };
                },
                mulByNonresidue: function(M) {
                    var D = M.c0, nt = M.c1, it = M.c2;
                    return {
                        c0: n.Fp2.mulByNonresidue(it),
                        c1: D,
                        c2: nt
                    };
                },
                multiplyBy1: function(M, D) {
                    var nt = M.c0, it = M.c1, ht = M.c2;
                    return {
                        c0: n.Fp2.mulByNonresidue(n.Fp2.mul(ht, D)),
                        c1: n.Fp2.mul(nt, D),
                        c2: n.Fp2.mul(it, D)
                    };
                },
                multiplyBy01: function(M, D, nt) {
                    var it = M.c0, ht = M.c1, vt = M.c2, kt = n.Fp2.mul(it, D), jt = n.Fp2.mul(ht, nt);
                    return {
                        c0: n.Fp2.add(n.Fp2.mulByNonresidue(n.Fp2.sub(n.Fp2.mul(n.Fp2.add(ht, vt), nt), jt)), kt),
                        c1: n.Fp2.sub(n.Fp2.sub(n.Fp2.mul(n.Fp2.add(D, nt), n.Fp2.add(it, ht)), kt), jt),
                        c2: n.Fp2.add(n.Fp2.sub(n.Fp2.mul(n.Fp2.add(it, vt), D), kt), jt)
                    };
                },
                multiplyByFp2: function(M, D) {
                    var nt = M.c0, it = M.c1, ht = M.c2;
                    return {
                        c0: n.Fp2.mul(nt, D),
                        c1: n.Fp2.mul(it, D),
                        c2: n.Fp2.mul(ht, D)
                    };
                }
            }, X = [
                [
                    BigInt("0x1"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x0"),
                    BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac")
                ],
                [
                    BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x0"),
                    BigInt("0x1")
                ],
                [
                    BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x0"),
                    BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe")
                ]
            ].map(function(M) {
                return n.Fp2.fromBigTuple(M);
            }), C = [
                [
                    BigInt("0x1"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffeffff"),
                    BigInt("0x0")
                ]
            ].map(function(M) {
                return n.Fp2.fromBigTuple(M);
            }), H = BigInt("0xd201000000010000"), U = (0, u.bitLen)(H), L = function(M, D) {
                var nt = M.c0, it = M.c1, ht = D.c0, vt = D.c1;
                return {
                    c0: A.add(nt, ht),
                    c1: A.add(it, vt)
                };
            }, q = function(M, D) {
                var nt = M.c0, it = M.c1, ht = D.c0, vt = D.c1;
                return {
                    c0: A.sub(nt, ht),
                    c1: A.sub(it, vt)
                };
            }, V = function(M, D) {
                var nt = M.c0, it = M.c1;
                if (typeof D == "bigint") return {
                    c0: A.mul(nt, D),
                    c1: A.mul(it, D)
                };
                var ht = D.c0, vt = D.c1, kt = A.mul(nt, ht), jt = A.mul(it, vt);
                return {
                    c0: A.add(kt, A.mulByNonresidue(jt)),
                    c1: A.sub(A.mul(A.add(nt, it), A.add(ht, vt)), A.add(kt, jt))
                };
            };
            n.Fp12Multiply = V;
            var Q = function(M) {
                var D = M.c0, nt = M.c1, it = A.mul(D, nt);
                return {
                    c0: A.sub(A.sub(A.mul(A.add(A.mulByNonresidue(nt), D), A.add(D, nt)), it), A.mulByNonresidue(it)),
                    c1: A.add(it, it)
                };
            };
            function Z(M, D) {
                var nt = n.Fp2.sqr(M), it = n.Fp2.sqr(D);
                return {
                    first: n.Fp2.add(n.Fp2.mulByNonresidue(it), nt),
                    second: n.Fp2.sub(n.Fp2.sub(n.Fp2.sqr(n.Fp2.add(M, D)), nt), it)
                };
            }
            var tt = function(M) {
                var D = H, nt = n.Fp12.div(n.Fp12.frobeniusMap(M, 6), M), it = n.Fp12.mul(n.Fp12.frobeniusMap(nt, 2), nt), ht = n.Fp12.conjugate(n.Fp12._cyclotomicExp(it, D)), vt = n.Fp12.mul(n.Fp12.conjugate(n.Fp12._cyclotomicSquare(it)), ht), kt = n.Fp12.conjugate(n.Fp12._cyclotomicExp(vt, D)), jt = n.Fp12.conjugate(n.Fp12._cyclotomicExp(kt, D)), Rt = n.Fp12.mul(n.Fp12.conjugate(n.Fp12._cyclotomicExp(jt, D)), n.Fp12._cyclotomicSquare(ht)), Lt = n.Fp12.conjugate(n.Fp12._cyclotomicExp(Rt, D)), Dt = n.Fp12.frobeniusMap(n.Fp12.mul(ht, jt), 2), ue = n.Fp12.frobeniusMap(n.Fp12.mul(kt, it), 3), Se = n.Fp12.frobeniusMap(n.Fp12.mul(Rt, n.Fp12.conjugate(it)), 1), le = n.Fp12.mul(n.Fp12.mul(Lt, n.Fp12.conjugate(vt)), it);
                return n.Fp12.mul(n.Fp12.mul(n.Fp12.mul(Dt, ue), Se), le);
            };
            n.Fp12_finalExponentiate = tt;
            var rt = function(M) {
                var D = M.c0, nt = M.c1;
                return {
                    c0: D,
                    c1: A.neg(nt)
                };
            };
            n.Fp12_conjugate = rt;
            var at = function(M, D) {
                var nt = M.c0, it = M.c1, ht = D.c0, vt = D.c1;
                return A.eql(nt, ht) && A.eql(it, vt);
            };
            n.Fp12_eql = at, n.Fp12_ONE = {
                c0: A.ONE,
                c1: A.ZERO
            }, n.Fp12 = {
                ORDER: n.Fp2.ORDER,
                BITS: 2 * n.Fp2.BITS,
                BYTES: 2 * n.Fp2.BYTES,
                MASK: (0, u.bitMask)(2 * n.Fp2.BITS),
                ZERO: {
                    c0: A.ZERO,
                    c1: A.ZERO
                },
                ONE: {
                    c0: A.ONE,
                    c1: A.ZERO
                },
                create: function(M) {
                    return M;
                },
                isValid: function(M) {
                    var D = M.c0, nt = M.c1;
                    return A.isValid(D) && A.isValid(nt);
                },
                is0: function(M) {
                    var D = M.c0, nt = M.c1;
                    return A.is0(D) && A.is0(nt);
                },
                neg: function(M) {
                    var D = M.c0, nt = M.c1;
                    return {
                        c0: A.neg(D),
                        c1: A.neg(nt)
                    };
                },
                eql: n.Fp12_eql,
                sqrt: function() {
                    throw new Error("Not implemented");
                },
                inv: function(M) {
                    var D = M.c0, nt = M.c1, it = A.inv(A.sub(A.sqr(D), A.mulByNonresidue(A.sqr(nt))));
                    return {
                        c0: A.mul(D, it),
                        c1: A.neg(A.mul(nt, it))
                    };
                },
                div: function(M, D) {
                    return n.Fp12.mul(M, typeof D == "bigint" ? n.Fp.inv(n.Fp.create(D)) : n.Fp12.inv(D));
                },
                pow: function(M, D) {
                    return s.FpPow(n.Fp12, M, D);
                },
                invertBatch: function(M) {
                    return s.FpInvertBatch(n.Fp12, M);
                },
                add: L,
                sub: q,
                mul: n.Fp12Multiply,
                sqr: Q,
                addN: L,
                subN: q,
                mulN: n.Fp12Multiply,
                sqrN: Q,
                fromBytes: function(M) {
                    if (M.length !== n.Fp12.BYTES) throw new Error("fromBytes wrong length=".concat(M.length));
                    return {
                        c0: A.fromBytes(M.subarray(0, A.BYTES)),
                        c1: A.fromBytes(M.subarray(A.BYTES))
                    };
                },
                toBytes: function(M) {
                    var D = M.c0, nt = M.c1;
                    return (0, u.concatBytes)(A.toBytes(D), A.toBytes(nt));
                },
                cmov: function(M, D, nt) {
                    var it = M.c0, ht = M.c1, vt = D.c0, kt = D.c1;
                    return {
                        c0: A.cmov(it, vt, nt),
                        c1: A.cmov(ht, kt, nt)
                    };
                },
                fromBigTwelve: function(M) {
                    return {
                        c0: A.fromBigSix(M.slice(0, 6)),
                        c1: A.fromBigSix(M.slice(6, 12))
                    };
                },
                frobeniusMap: function(M, D) {
                    var nt = A.frobeniusMap(M.c0, D), it = A.frobeniusMap(M.c1, D), ht = it.c0, vt = it.c1, kt = it.c2, jt = ut[D % 12];
                    return {
                        c0: nt,
                        c1: A.create({
                            c0: n.Fp2.mul(ht, jt),
                            c1: n.Fp2.mul(vt, jt),
                            c2: n.Fp2.mul(kt, jt)
                        })
                    };
                },
                multiplyBy014: function(M, D, nt, it) {
                    var ht = M.c0, vt = M.c1, kt = A.multiplyBy01(ht, D, nt), jt = A.multiplyBy1(vt, it);
                    return {
                        c0: A.add(A.mulByNonresidue(jt), kt),
                        c1: A.sub(A.sub(A.multiplyBy01(A.add(vt, ht), D, n.Fp2.add(nt, it)), kt), jt)
                    };
                },
                multiplyByFp2: function(M, D) {
                    var nt = M.c0, it = M.c1;
                    return {
                        c0: A.multiplyByFp2(nt, D),
                        c1: A.multiplyByFp2(it, D)
                    };
                },
                conjugate: n.Fp12_conjugate,
                _cyclotomicSquare: function(M) {
                    var D = M.c0, nt = M.c1, it = D.c0, ht = D.c1, vt = D.c2, kt = nt.c0, jt = nt.c1, Rt = nt.c2, Lt = Z(it, jt), Dt = Lt.first, ue = Lt.second, Se = Z(kt, vt), le = Se.first, we = Se.second, gr = Z(ht, Rt), rn = gr.first, g_ = gr.second, p_ = n.Fp2.mulByNonresidue(g_);
                    return {
                        c0: A.create({
                            c0: n.Fp2.add(n.Fp2.mul(n.Fp2.sub(Dt, it), I), Dt),
                            c1: n.Fp2.add(n.Fp2.mul(n.Fp2.sub(le, ht), I), le),
                            c2: n.Fp2.add(n.Fp2.mul(n.Fp2.sub(rn, vt), I), rn)
                        }),
                        c1: A.create({
                            c0: n.Fp2.add(n.Fp2.mul(n.Fp2.add(p_, kt), I), p_),
                            c1: n.Fp2.add(n.Fp2.mul(n.Fp2.add(ue, jt), I), ue),
                            c2: n.Fp2.add(n.Fp2.mul(n.Fp2.add(we, Rt), I), we)
                        })
                    };
                },
                _cyclotomicExp: function(M, D) {
                    for(var nt = n.Fp12.ONE, it = U - 1; it >= 0; it--)nt = n.Fp12._cyclotomicSquare(nt), (0, u.bitGet)(D, it) && (nt = n.Fp12.mul(nt, M));
                    return nt;
                },
                finalExponentiate: n.Fp12_finalExponentiate
            };
            var ut = [
                [
                    BigInt("0x1"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x1904d3bf02bb0667c231beb4202c0d1f0fd603fd3cbd5f4f7b2443d784bab9c4f67ea53d63e7813d8d0775ed92235fb8"),
                    BigInt("0x00fc3e2b36c4e03288e9e902231f9fb854a14787b6c7b36fec0c8ec971f63c5f282d5ac14d6c7ec22cf78a126ddc4af3")
                ],
                [
                    BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffeffff"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2"),
                    BigInt("0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09")
                ],
                [
                    BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x144e4211384586c16bd3ad4afa99cc9170df3560e77982d0db45f3536814f0bd5871c1908bd478cd1ee605167ff82995"),
                    BigInt("0x05b2cfd9013a5fd8df47fa6b48b1e045f39816240c0b8fee8beadf4d8e9c0566c63a3e6e257f87329b18fae980078116")
                ],
                [
                    BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x00fc3e2b36c4e03288e9e902231f9fb854a14787b6c7b36fec0c8ec971f63c5f282d5ac14d6c7ec22cf78a126ddc4af3"),
                    BigInt("0x1904d3bf02bb0667c231beb4202c0d1f0fd603fd3cbd5f4f7b2443d784bab9c4f67ea53d63e7813d8d0775ed92235fb8")
                ],
                [
                    BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09"),
                    BigInt("0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2")
                ],
                [
                    BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x05b2cfd9013a5fd8df47fa6b48b1e045f39816240c0b8fee8beadf4d8e9c0566c63a3e6e257f87329b18fae980078116"),
                    BigInt("0x144e4211384586c16bd3ad4afa99cc9170df3560e77982d0db45f3536814f0bd5871c1908bd478cd1ee605167ff82995")
                ]
            ].map(function(M) {
                return n.Fp2.fromBigTuple(M);
            }), bt = (0, f.isogenyMap)(n.Fp2, [
                [
                    [
                        "0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97d6",
                        "0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97d6"
                    ],
                    [
                        "0x0",
                        "0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71a"
                    ],
                    [
                        "0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71e",
                        "0x8ab05f8bdd54cde190937e76bc3e447cc27c3d6fbd7063fcd104635a790520c0a395554e5c6aaaa9354ffffffffe38d"
                    ],
                    [
                        "0x171d6541fa38ccfaed6dea691f5fb614cb14b4e7f4e810aa22d6108f142b85757098e38d0f671c7188e2aaaaaaaa5ed1",
                        "0x0"
                    ]
                ],
                [
                    [
                        "0x0",
                        "0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa63"
                    ],
                    [
                        "0xc",
                        "0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa9f"
                    ],
                    [
                        "0x1",
                        "0x0"
                    ]
                ],
                [
                    [
                        "0x1530477c7ab4113b59a4c18b076d11930f7da5d4a07f649bf54439d87d27e500fc8c25ebf8c92f6812cfc71c71c6d706",
                        "0x1530477c7ab4113b59a4c18b076d11930f7da5d4a07f649bf54439d87d27e500fc8c25ebf8c92f6812cfc71c71c6d706"
                    ],
                    [
                        "0x0",
                        "0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97be"
                    ],
                    [
                        "0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71c",
                        "0x8ab05f8bdd54cde190937e76bc3e447cc27c3d6fbd7063fcd104635a790520c0a395554e5c6aaaa9354ffffffffe38f"
                    ],
                    [
                        "0x124c9ad43b6cf79bfbf7043de3811ad0761b0f37a1e26286b0e977c69aa274524e79097a56dc4bd9e1b371c71c718b10",
                        "0x0"
                    ]
                ],
                [
                    [
                        "0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa8fb",
                        "0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa8fb"
                    ],
                    [
                        "0x0",
                        "0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa9d3"
                    ],
                    [
                        "0x12",
                        "0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa99"
                    ],
                    [
                        "0x1",
                        "0x0"
                    ]
                ]
            ].map(function(M) {
                return M.map(function(D) {
                    return n.Fp2.fromBigTuple(D.map(BigInt));
                });
            })), pt = (0, f.isogenyMap)(n.Fp, [
                [
                    "0x11a05f2b1e833340b809101dd99815856b303e88a2d7005ff2627b56cdb4e2c85610c2d5f2e62d6eaeac1662734649b7",
                    "0x17294ed3e943ab2f0588bab22147a81c7c17e75b2f6a8417f565e33c70d1e86b4838f2a6f318c356e834eef1b3cb83bb",
                    "0xd54005db97678ec1d1048c5d10a9a1bce032473295983e56878e501ec68e25c958c3e3d2a09729fe0179f9dac9edcb0",
                    "0x1778e7166fcc6db74e0609d307e55412d7f5e4656a8dbf25f1b33289f1b330835336e25ce3107193c5b388641d9b6861",
                    "0xe99726a3199f4436642b4b3e4118e5499db995a1257fb3f086eeb65982fac18985a286f301e77c451154ce9ac8895d9",
                    "0x1630c3250d7313ff01d1201bf7a74ab5db3cb17dd952799b9ed3ab9097e68f90a0870d2dcae73d19cd13c1c66f652983",
                    "0xd6ed6553fe44d296a3726c38ae652bfb11586264f0f8ce19008e218f9c86b2a8da25128c1052ecaddd7f225a139ed84",
                    "0x17b81e7701abdbe2e8743884d1117e53356de5ab275b4db1a682c62ef0f2753339b7c8f8c8f475af9ccb5618e3f0c88e",
                    "0x80d3cf1f9a78fc47b90b33563be990dc43b756ce79f5574a2c596c928c5d1de4fa295f296b74e956d71986a8497e317",
                    "0x169b1f8e1bcfa7c42e0c37515d138f22dd2ecb803a0c5c99676314baf4bb1b7fa3190b2edc0327797f241067be390c9e",
                    "0x10321da079ce07e272d8ec09d2565b0dfa7dccdde6787f96d50af36003b14866f69b771f8c285decca67df3f1605fb7b",
                    "0x6e08c248e260e70bd1e962381edee3d31d79d7e22c837bc23c0bf1bc24c6b68c24b1b80b64d391fa9c8ba2e8ba2d229"
                ],
                [
                    "0x8ca8d548cff19ae18b2e62f4bd3fa6f01d5ef4ba35b48ba9c9588617fc8ac62b558d681be343df8993cf9fa40d21b1c",
                    "0x12561a5deb559c4348b4711298e536367041e8ca0cf0800c0126c2588c48bf5713daa8846cb026e9e5c8276ec82b3bff",
                    "0xb2962fe57a3225e8137e629bff2991f6f89416f5a718cd1fca64e00b11aceacd6a3d0967c94fedcfcc239ba5cb83e19",
                    "0x3425581a58ae2fec83aafef7c40eb545b08243f16b1655154cca8abc28d6fd04976d5243eecf5c4130de8938dc62cd8",
                    "0x13a8e162022914a80a6f1d5f43e7a07dffdfc759a12062bb8d6b44e833b306da9bd29ba81f35781d539d395b3532a21e",
                    "0xe7355f8e4e667b955390f7f0506c6e9395735e9ce9cad4d0a43bcef24b8982f7400d24bc4228f11c02df9a29f6304a5",
                    "0x772caacf16936190f3e0c63e0596721570f5799af53a1894e2e073062aede9cea73b3538f0de06cec2574496ee84a3a",
                    "0x14a7ac2a9d64a8b230b3f5b074cf01996e7f63c21bca68a81996e1cdf9822c580fa5b9489d11e2d311f7d99bbdcc5a5e",
                    "0xa10ecf6ada54f825e920b3dafc7a3cce07f8d1d7161366b74100da67f39883503826692abba43704776ec3a79a1d641",
                    "0x95fc13ab9e92ad4476d6e3eb3a56680f682b4ee96f7d03776df533978f31c1593174e4b4b7865002d6384d168ecdd0a",
                    "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
                ],
                [
                    "0x90d97c81ba24ee0259d1f094980dcfa11ad138e48a869522b52af6c956543d3cd0c7aee9b3ba3c2be9845719707bb33",
                    "0x134996a104ee5811d51036d776fb46831223e96c254f383d0f906343eb67ad34d6c56711962fa8bfe097e75a2e41c696",
                    "0xcc786baa966e66f4a384c86a3b49942552e2d658a31ce2c344be4b91400da7d26d521628b00523b8dfe240c72de1f6",
                    "0x1f86376e8981c217898751ad8746757d42aa7b90eeb791c09e4a3ec03251cf9de405aba9ec61deca6355c77b0e5f4cb",
                    "0x8cc03fdefe0ff135caf4fe2a21529c4195536fbe3ce50b879833fd221351adc2ee7f8dc099040a841b6daecf2e8fedb",
                    "0x16603fca40634b6a2211e11db8f0a6a074a7d0d4afadb7bd76505c3d3ad5544e203f6326c95a807299b23ab13633a5f0",
                    "0x4ab0b9bcfac1bbcb2c977d027796b3ce75bb8ca2be184cb5231413c4d634f3747a87ac2460f415ec961f8855fe9d6f2",
                    "0x987c8d5333ab86fde9926bd2ca6c674170a05bfe3bdd81ffd038da6c26c842642f64550fedfe935a15e4ca31870fb29",
                    "0x9fc4018bd96684be88c9e221e4da1bb8f3abd16679dc26c1e8b6e6a1f20cabe69d65201c78607a360370e577bdba587",
                    "0xe1bba7a1186bdb5223abde7ada14a23c42a0ca7915af6fe06985e7ed1e4d43b9b3f7055dd4eba6f2bafaaebca731c30",
                    "0x19713e47937cd1be0dfd0b8f1d43fb93cd2fcbcb6caf493fd1183e416389e61031bf3a5cce3fbafce813711ad011c132",
                    "0x18b46a908f36f6deb918c143fed2edcc523559b8aaf0c2462e6bfe7f911f643249d9cdf41b44d606ce07c8a4d0074d8e",
                    "0xb182cac101b9399d155096004f53f447aa7b12a3426b08ec02710e807b4633f06c851c1919211f20d4c04f00b971ef8",
                    "0x245a394ad1eca9b72fc00ae7be315dc757b3b080d4c158013e6632d3c40659cc6cf90ad1c232a6442d9d3f5db980133",
                    "0x5c129645e44cf1102a159f748c4a3fc5e673d81d7e86568d9ab0f5d396a7ce46ba1049b6579afb7866b1e715475224b",
                    "0x15e6be4e990f03ce4ea50b3b42df2eb5cb181d8f84965a3957add4fa95af01b2b665027efec01c7704b456be69c8b604"
                ],
                [
                    "0x16112c4c3a9c98b252181140fad0eae9601a6de578980be6eec3232b5be72e7a07f3688ef60c206d01479253b03663c1",
                    "0x1962d75c2381201e1a0cbd6c43c348b885c84ff731c4d59ca4a10356f453e01f78a4260763529e3532f6102c2e49a03d",
                    "0x58df3306640da276faaae7d6e8eb15778c4855551ae7f310c35a5dd279cd2eca6757cd636f96f891e2538b53dbf67f2",
                    "0x16b7d288798e5395f20d23bf89edb4d1d115c5dbddbcd30e123da489e726af41727364f2c28297ada8d26d98445f5416",
                    "0xbe0e079545f43e4b00cc912f8228ddcc6d19c9f0f69bbb0542eda0fc9dec916a20b15dc0fd2ededda39142311a5001d",
                    "0x8d9e5297186db2d9fb266eaac783182b70152c65550d881c5ecd87b6f0f5a6449f38db9dfa9cce202c6477faaf9b7ac",
                    "0x166007c08a99db2fc3ba8734ace9824b5eecfdfa8d0cf8ef5dd365bc400a0051d5fa9c01a58b1fb93d1a1399126a775c",
                    "0x16a3ef08be3ea7ea03bcddfabba6ff6ee5a4375efa1f4fd7feb34fd206357132b920f5b00801dee460ee415a15812ed9",
                    "0x1866c8ed336c61231a1be54fd1d74cc4f9fb0ce4c6af5920abc5750c4bf39b4852cfe2f7bb9248836b233d9d55535d4a",
                    "0x167a55cda70a6e1cea820597d94a84903216f763e13d87bb5308592e7ea7d4fbc7385ea3d529b35e346ef48bb8913f55",
                    "0x4d2f259eea405bd48f010a01ad2911d9c6dd039bb61a6290e591b36e636a5c871a5c29f4f83060400f8b49cba8f6aa8",
                    "0xaccbb67481d033ff5852c1e48c50c477f94ff8aefce42d28c0f9a88cea7913516f968986f7ebbea9684b529e2561092",
                    "0xad6b9514c767fe3c3613144b45f1496543346d98adf02267d5ceef9a00d9b8693000763e3b90ac11e99b138573345cc",
                    "0x2660400eb2e4f3b628bdd0d53cd76f2bf565b94e72927c1cb748df27942480e420517bd8714cc80d1fadc1326ed06f7",
                    "0xe0fa1d816ddc03e6b24255e0d7819c171c40f65e273b853324efcd6356caa205ca2f570f13497804415473a1d634b8f",
                    "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
                ]
            ].map(function(M) {
                return M.map(function(D) {
                    return BigInt(D);
                });
            })), ot = (0, l.mapToCurveSimpleSWU)(n.Fp2, {
                A: n.Fp2.create({
                    c0: n.Fp.create(h),
                    c1: n.Fp.create(BigInt(240))
                }),
                B: n.Fp2.create({
                    c0: n.Fp.create(BigInt(1012)),
                    c1: n.Fp.create(BigInt(1012))
                }),
                Z: n.Fp2.create({
                    c0: n.Fp.create(BigInt(-2)),
                    c1: n.Fp.create(BigInt(-1))
                })
            }), gt = (0, l.mapToCurveSimpleSWU)(n.Fp, {
                A: n.Fp.create(BigInt("0x144698a3b8e9433d693a02c96d4982b0ea985383ee66a8d8e8981aefd881ac98936f8da0e0f97f5cf428082d584c1d")),
                B: n.Fp.create(BigInt("0x12e2908d11688030018b12e8753eee3b2016c1f0f24f4070a0b9c14fcef35ef55a23215a316ceaa5d1cc48e98e172be0")),
                Z: n.Fp.create(BigInt(11))
            }), W = A.create({
                c0: n.Fp2.ZERO,
                c1: n.Fp2.ONE,
                c2: n.Fp2.ZERO
            }), G = n.Fp12.create({
                c0: W,
                c1: A.ZERO
            }), et = n.Fp12.create({
                c0: A.ZERO,
                c1: W
            }), ct = a(n.Fp12.invertBatch([
                G,
                et
            ]), 2), ft = ct[0], dt = ct[1];
            function st(M, D) {
                var nt = n.Fp12.mul(n.Fp12.frobeniusMap(n.Fp12.multiplyByFp2(ft, M), 1), G).c0.c0, it = n.Fp12.mul(n.Fp12.frobeniusMap(n.Fp12.multiplyByFp2(dt, D), 1), et).c0.c0;
                return [
                    nt,
                    it
                ];
            }
            function wt(M, D) {
                var nt = D.toAffine(), it = st(nt.x, nt.y);
                return new M(it[0], it[1], n.Fp2.ONE);
            }
            var It = BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac");
            function Ot(M, D) {
                return [
                    n.Fp2.mul(M, It),
                    n.Fp2.neg(D)
                ];
            }
            function St(M, D) {
                var nt = D.toAffine(), it = Ot(nt.x, nt.y);
                return new M(it[0], it[1], n.Fp2.ONE);
            }
            var Ft = Object.freeze({
                DST: "",
                encodeDST: "",
                p: n.Fp.ORDER,
                m: 2,
                k: 128,
                expand: "xmd",
                hash: p.sha256
            }), Ct = Gt(n.Fp.toBytes(h), {
                infinity: !0,
                compressed: !0
            });
            function Ut(M) {
                M = M.slice();
                var D = M[0] & 224, nt = !!(D >> 7 & 1), it = !!(D >> 6 & 1), ht = !!(D >> 5 & 1);
                return M[0] &= 31, {
                    compressed: nt,
                    infinity: it,
                    sort: ht,
                    value: M
                };
            }
            n.parseMask = Ut;
            function Gt(M, D) {
                if (M[0] & 224) throw new Error("setMask: non-empty mask");
                return D.compressed && (M[0] |= 128), D.infinity && (M[0] |= 64), D.sort && (M[0] |= 32), M;
            }
            function be(M) {
                M.assertValidity();
                var D = M.equals(n.bls12_381.G1.ProjectivePoint.ZERO), nt = M.toAffine(), it = nt.x, ht = nt.y;
                if (D) return Ct.slice();
                var vt = n.Fp.ORDER, kt = !!(ht * I / vt);
                return Gt((0, u.numberToBytesBE)(it, n.Fp.BYTES), {
                    compressed: !0,
                    sort: kt
                });
            }
            function xe(M) {
                M.assertValidity();
                var D = n.Fp.BYTES;
                if (M.equals(n.bls12_381.G2.ProjectivePoint.ZERO)) return (0, u.concatBytes)(Ct, (0, u.numberToBytesBE)(h, D));
                var nt = M.toAffine(), it = nt.x, ht = nt.y, vt = n.Fp2.reim(it), kt = vt.re, jt = vt.im, Rt = n.Fp2.reim(ht), Lt = Rt.re, Dt = Rt.im, ue = Dt > h ? Dt * I : Lt * I, Se = !!(ue / n.Fp.ORDER & B), le = kt;
                return (0, u.concatBytes)(Gt((0, u.numberToBytesBE)(jt, D), {
                    sort: Se,
                    compressed: !0
                }), (0, u.numberToBytesBE)(le, D));
            }
            var De = function(M) {
                var D = Ut(M), nt = D.compressed, it = D.infinity, ht = D.sort, vt = D.value;
                if (vt.length === 48 && nt) {
                    var kt = n.Fp.ORDER, jt = (0, u.bytesToNumberBE)(vt), Rt = n.Fp.create(jt & n.Fp.MASK);
                    if (it) {
                        if (Rt !== h) throw new Error("G1: non-empty compressed point at infinity");
                        return {
                            x: h,
                            y: h
                        };
                    }
                    var Lt = n.Fp.add(n.Fp.pow(Rt, j), n.Fp.create(n.bls12_381.params.G1b)), Dt = n.Fp.sqrt(Lt);
                    if (!Dt) throw new Error("Invalid compressed G1 point");
                    return Dt * I / kt !== BigInt(ht) && (Dt = n.Fp.neg(Dt)), {
                        x: n.Fp.create(Rt),
                        y: n.Fp.create(Dt)
                    };
                } else if (vt.length === 96 && !nt) {
                    var Rt = (0, u.bytesToNumberBE)(vt.subarray(0, n.Fp.BYTES)), Dt = (0, u.bytesToNumberBE)(vt.subarray(n.Fp.BYTES));
                    if (it) {
                        if (Rt !== h || Dt !== h) throw new Error("G1: non-empty point at infinity");
                        return n.bls12_381.G1.ProjectivePoint.ZERO.toAffine();
                    }
                    return {
                        x: n.Fp.create(Rt),
                        y: n.Fp.create(Dt)
                    };
                } else throw new Error("Invalid point G1, expected 48/96 bytes");
            };
            n.G1_formBytes = De;
            var _r = function(M) {
                var D = gt(n.Fp.create(M[0])), nt = D.x, it = D.y;
                return pt(nt, it);
            };
            n.G1_mapToCurve = _r;
            var yr = function(M) {
                var D = ot(n.Fp2.fromBigTuple(M)), nt = D.x, it = D.y;
                return bt(nt, it);
            };
            n.G2_mapToCurve = yr, n.bls12_381 = (0, c.bls)({
                fields: {
                    Fp: n.Fp,
                    Fp2: n.Fp2,
                    Fp6: A,
                    Fp12: n.Fp12,
                    Fr: F
                },
                G1: {
                    Fp: n.Fp,
                    h: BigInt("0x396c8c005555e1568c00aaab0000aaab"),
                    Gx: BigInt("0x17f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb"),
                    Gy: BigInt("0x08b3f481e3aaa0f1a09e30ed741d8ae4fcf5e095d5d00af600db18cb2c04b3edd03cc744a2888ae40caa232946c5e7e1"),
                    a: n.Fp.ZERO,
                    b: w,
                    htfDefaults: t(t({}, Ft), {
                        m: 1,
                        DST: "BLS_SIG_BLS12381G1_XMD:SHA-256_SSWU_RO_NUL_"
                    }),
                    wrapPrivateKey: !0,
                    allowInfinityPoint: !0,
                    isTorsionFree: function(M, D) {
                        var nt = BigInt("0x5f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"), it = new M(n.Fp.mul(D.px, nt), D.py, D.pz), ht = D.multiplyUnsafe(n.bls12_381.params.x).negate(), vt = ht.multiplyUnsafe(n.bls12_381.params.x);
                        return vt.equals(it);
                    },
                    clearCofactor: function(M, D) {
                        return D.multiplyUnsafe(n.bls12_381.params.x).add(D);
                    },
                    mapToCurve: n.G1_mapToCurve,
                    fromBytes: n.G1_formBytes,
                    toBytes: function(M, D, nt) {
                        var it = D.equals(M.ZERO), ht = D.toAffine(), vt = ht.x, kt = ht.y;
                        if (nt) {
                            if (it) return Ct.slice();
                            var jt = n.Fp.ORDER, Rt = !!(kt * I / jt);
                            return Gt((0, u.numberToBytesBE)(vt, n.Fp.BYTES), {
                                compressed: !0,
                                sort: Rt
                            });
                        } else if (it) {
                            var Lt = (0, u.concatBytes)(new Uint8Array([
                                64
                            ]), new Uint8Array(2 * n.Fp.BYTES - 1));
                            return Lt;
                        } else return (0, u.concatBytes)((0, u.numberToBytesBE)(vt, n.Fp.BYTES), (0, u.numberToBytesBE)(kt, n.Fp.BYTES));
                    },
                    ShortSignature: {
                        fromHex: function(M) {
                            var D = Ut((0, u.ensureBytes)("signatureHex", M, 48)), nt = D.infinity, it = D.sort, ht = D.value, vt = n.Fp.ORDER, kt = (0, u.bytesToNumberBE)(ht);
                            if (nt) return n.bls12_381.G1.ProjectivePoint.ZERO;
                            var jt = n.Fp.create(kt & n.Fp.MASK), Rt = n.Fp.add(n.Fp.pow(jt, j), n.Fp.create(n.bls12_381.params.G1b)), Lt = n.Fp.sqrt(Rt);
                            if (!Lt) throw new Error("Invalid compressed G1 point");
                            var Dt = BigInt(it);
                            Lt * I / vt !== Dt && (Lt = n.Fp.neg(Lt));
                            var ue = n.bls12_381.G1.ProjectivePoint.fromAffine({
                                x: jt,
                                y: Lt
                            });
                            return ue.assertValidity(), ue;
                        },
                        toRawBytes: function(M) {
                            return be(M);
                        },
                        toHex: function(M) {
                            return (0, u.bytesToHex)(be(M));
                        }
                    }
                },
                G2: {
                    Fp: n.Fp2,
                    h: BigInt("0x5d543a95414e7f1091d50792876a202cd91de4547085abaa68a205b2e5a7ddfa628f1cb4d9e82ef21537e293a6691ae1616ec6e786f0c70cf1c38e31c7238e5"),
                    Gx: n.Fp2.fromBigTuple([
                        BigInt("0x024aa2b2f08f0a91260805272dc51051c6e47ad4fa403b02b4510b647ae3d1770bac0326a805bbefd48056c8c121bdb8"),
                        BigInt("0x13e02b6052719f607dacd3a088274f65596bd0d09920b61ab5da61bbdc7f5049334cf11213945d57e5ac7d055d042b7e")
                    ]),
                    Gy: n.Fp2.fromBigTuple([
                        BigInt("0x0ce5d527727d6e118cc9cdc6da2e351aadfd9baa8cbdd3a76d429a695160d12c923ac9cc3baca289e193548608b82801"),
                        BigInt("0x0606c4a02ea734cc32acd2b02bc28b99cb3e287e85a763af267492ab572e99ab3f370d275cec1da1aaa9075ff05f79be")
                    ]),
                    a: n.Fp2.ZERO,
                    b: n.Fp2.fromBigTuple([
                        w,
                        w
                    ]),
                    hEff: BigInt("0xbc69f08f2ee75b3584c6a0ea91b352888e2a8e9145ad7689986ff031508ffe1329c2f178731db956d82bf015d1212b02ec0ec69d7477c1ae954cbc06689f6a359894c0adebbf6b4e8020005aaa95551"),
                    htfDefaults: t({}, Ft),
                    wrapPrivateKey: !0,
                    allowInfinityPoint: !0,
                    mapToCurve: n.G2_mapToCurve,
                    isTorsionFree: function(M, D) {
                        return D.multiplyUnsafe(n.bls12_381.params.x).negate().equals(wt(M, D));
                    },
                    clearCofactor: function(M, D) {
                        var nt = n.bls12_381.params.x, it = D.multiplyUnsafe(nt).negate(), ht = wt(M, D), vt = D.double();
                        vt = St(M, vt), vt = vt.subtract(ht), ht = it.add(ht), ht = ht.multiplyUnsafe(nt).negate(), vt = vt.add(ht), vt = vt.subtract(it);
                        var kt = vt.subtract(D);
                        return kt;
                    },
                    fromBytes: function(M) {
                        var D = Ut(M), nt = D.compressed, it = D.infinity, ht = D.sort, vt = D.value;
                        if (!nt && !it && ht || !nt && it && ht || ht && it && nt) throw new Error("Invalid encoding flag: " + (M[0] & 224));
                        var kt = n.Fp.BYTES, jt = function(nn, Rn, P0) {
                            return (0, u.bytesToNumberBE)(nn.slice(Rn, P0));
                        };
                        if (vt.length === 96 && nt) {
                            var Rt = n.bls12_381.params.G2b, Lt = n.Fp.ORDER;
                            if (it) {
                                if (vt.reduce(function(nn, Rn) {
                                    return nn !== 0 ? Rn + 1 : Rn;
                                }, 0) > 0) throw new Error("Invalid compressed G2 point");
                                return {
                                    x: n.Fp2.ZERO,
                                    y: n.Fp2.ZERO
                                };
                            }
                            var Dt = jt(vt, 0, kt), ue = jt(vt, kt, 2 * kt), Se = n.Fp2.create({
                                c0: n.Fp.create(ue),
                                c1: n.Fp.create(Dt)
                            }), le = n.Fp2.add(n.Fp2.pow(Se, j), Rt), we = n.Fp2.sqrt(le), gr = we.c1 === h ? we.c0 * I / Lt : we.c1 * I / Lt ? B : h;
                            return we = ht && gr > 0 ? we : n.Fp2.neg(we), {
                                x: Se,
                                y: we
                            };
                        } else if (vt.length === 192 && !nt) {
                            if (it) {
                                if (vt.reduce(function(nn, Rn) {
                                    return nn !== 0 ? Rn + 1 : Rn;
                                }, 0) > 0) throw new Error("Invalid uncompressed G2 point");
                                return {
                                    x: n.Fp2.ZERO,
                                    y: n.Fp2.ZERO
                                };
                            }
                            var rn = jt(vt, 0, kt), g_ = jt(vt, kt, 2 * kt), p_ = jt(vt, 2 * kt, 3 * kt), kc = jt(vt, 3 * kt, 4 * kt);
                            return {
                                x: n.Fp2.fromBigTuple([
                                    g_,
                                    rn
                                ]),
                                y: n.Fp2.fromBigTuple([
                                    kc,
                                    p_
                                ])
                            };
                        } else throw new Error("Invalid point G2, expected 96/192 bytes");
                    },
                    toBytes: function(M, D, nt) {
                        var it = n.Fp.BYTES, ht = n.Fp.ORDER, vt = D.equals(M.ZERO), kt = D.toAffine(), jt = kt.x, Rt = kt.y;
                        if (nt) {
                            if (vt) return (0, u.concatBytes)(Ct, (0, u.numberToBytesBE)(h, it));
                            var Lt = !!(Rt.c1 === h ? Rt.c0 * I / ht : Rt.c1 * I / ht);
                            return (0, u.concatBytes)(Gt((0, u.numberToBytesBE)(jt.c1, it), {
                                compressed: !0,
                                sort: Lt
                            }), (0, u.numberToBytesBE)(jt.c0, it));
                        } else {
                            if (vt) return (0, u.concatBytes)(new Uint8Array([
                                64
                            ]), new Uint8Array(4 * it - 1));
                            var Dt = n.Fp2.reim(jt), ue = Dt.re, Se = Dt.im, le = n.Fp2.reim(Rt), we = le.re, gr = le.im;
                            return (0, u.concatBytes)((0, u.numberToBytesBE)(Se, it), (0, u.numberToBytesBE)(ue, it), (0, u.numberToBytesBE)(gr, it), (0, u.numberToBytesBE)(we, it));
                        }
                    },
                    Signature: {
                        fromHex: function(M) {
                            var D = Ut((0, u.ensureBytes)("signatureHex", M)), nt = D.infinity, it = D.sort, ht = D.value, vt = n.Fp.ORDER, kt = M.length / 2;
                            if (kt !== 48 && kt !== 96) throw new Error("Invalid compressed signature length, must be 96 or 192");
                            var jt = (0, u.bytesToNumberBE)(ht.slice(0, kt)), Rt = (0, u.bytesToNumberBE)(ht.slice(kt));
                            if (nt) return n.bls12_381.G2.ProjectivePoint.ZERO;
                            var Lt = n.Fp.create(jt & n.Fp.MASK), Dt = n.Fp.create(Rt), ue = n.Fp2.create({
                                c0: Dt,
                                c1: Lt
                            }), Se = n.Fp2.add(n.Fp2.pow(ue, j), n.bls12_381.params.G2b), le = n.Fp2.sqrt(Se);
                            if (!le) throw new Error("Failed to find a square root");
                            var we = n.Fp2.reim(le), gr = we.re, rn = we.im, g_ = BigInt(it), p_ = rn > h && rn * I / vt !== g_, kc = rn === h && gr * I / vt !== g_;
                            (p_ || kc) && (le = n.Fp2.neg(le));
                            var nn = n.bls12_381.G2.ProjectivePoint.fromAffine({
                                x: ue,
                                y: le
                            });
                            return nn.assertValidity(), nn;
                        },
                        toRawBytes: function(M) {
                            return xe(M);
                        },
                        toHex: function(M) {
                            return (0, u.bytesToHex)(xe(M));
                        }
                    }
                },
                params: {
                    x: H,
                    r: F.ORDER
                },
                htfDefaults: Ft,
                hash: p.sha256,
                randomBytes: g.randomBytes
            });
        })(h_)), h_;
    }
    var U4;
    function M4t() {
        return U4 || (U4 = 1, (function(n) {
            var t = ld && ld.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = ld && ld.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(Wx(), n), e(N4t(), n);
        })(ld)), ld;
    }
    var C4;
    function L4t() {
        return C4 || (C4 = 1, (function(n) {
            var t = hf && hf.__assign || function() {
                return t = Object.assign || function(L) {
                    for(var q, V = 1, Q = arguments.length; V < Q; V++){
                        q = arguments[V];
                        for(var Z in q)Object.prototype.hasOwnProperty.call(q, Z) && (L[Z] = q[Z]);
                    }
                    return L;
                }, t.apply(this, arguments);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.isFp6 = n.isBlsResult = n.bls12_381_finalVerify = n.bls12_381_eqMlResult = n.bls12_381_mulMlResult = n.bls12_381_millerLoop = n.bls12_381_G2_uncompress = n.bls12_381_G2_compress = n.bls12_381_G2_hashToGroup = n.bls12_381_G2_equal = n.bls12_381_G2_scalarMul = n.bls12_381_G2_neg = n.bls12_381_G2_add = n.bls12_381_G1_uncompress = n.bls12_381_G1_compress = n.bls12_381_G1_hashToGroup = n.bls12_381_G1_equal = n.bls12_381_G1_scalarMul = n.bls12_381_G1_neg = n.bls12_381_G1_add = n.isFp2 = n.isBlsG2 = n.isBlsG1 = n.BlsG2 = n.BlsG1 = void 0;
            var e = M4t(), o = p0(), _ = Mi(), a = ph();
            n.BlsG1 = e.bls12_381.G1.ProjectivePoint, n.BlsG2 = e.bls12_381.G2.ProjectivePoint;
            function c(L) {
                return L instanceof n.BlsG1 && typeof L.px == "bigint" && typeof L.py == "bigint" && typeof L.pz == "bigint";
            }
            n.isBlsG1 = c;
            function s(L) {
                return L instanceof n.BlsG2 && u(L.px) && u(L.py) && u(L.pz);
            }
            n.isBlsG2 = s;
            function u(L) {
                return typeof L == "object" && L !== null && !Array.isArray(L) && typeof L.c0 == "bigint" && typeof L.c1 == "bigint";
            }
            n.isFp2 = u;
            var l = BigInt("52435875175126190479447740508185965837690552500527637822603658699938581184513"), f = Object.freeze({
                DST: "",
                encodeDST: "",
                p: e.Fp.ORDER,
                m: 2,
                k: 128,
                expand: "xmd",
                hash: a.sha256
            }), p = (0, o.createHasher)(n.BlsG2, e.G2_mapToCurve, t({}, f)), g = (0, o.createHasher)(n.BlsG1, e.G1_mapToCurve, t(t({}, f), {
                m: 1,
                DST: "BLS_SIG_BLS12381G1_XMD:SHA-256_SSWU_RO_NUL_"
            }));
            function h(L, q) {
                return L.add(q);
            }
            n.bls12_381_G1_add = h;
            function B(L) {
                return L.negate();
            }
            n.bls12_381_G1_neg = B;
            function I(L, q) {
                return L < 0 ? I(-L, B(q)) : (L = BigInt(L), L >= l && (L = L % l), L === BigInt(0) ? n.BlsG1.ZERO : q.multiply(L));
            }
            n.bls12_381_G1_scalarMul = I;
            function j(L, q) {
                return L.equals(q);
            }
            n.bls12_381_G1_equal = j;
            function w(L, q) {
                if (q.length > 255) throw new Error("DST length can not be greater than 255");
                return n.BlsG1.fromAffine(g.hashToCurve(L, {
                    DST: q
                }).toAffine());
            }
            n.bls12_381_G1_hashToGroup = w;
            function S(L) {
                return L.toRawBytes();
            }
            n.bls12_381_G1_compress = S;
            function b(L) {
                var q = (0, e.parseMask)(L), V = q.compressed, Q = q.infinity, Z = q.sort, tt = q.value;
                if (V && Q && Z && tt.every(function(rt) {
                    return rt === 0;
                })) throw new Error("sign bit set on pont ZERO, we don't like it");
                if (!V) throw new Error("uncompress only works with compressed byets");
                return n.BlsG1.fromHex(L);
            }
            n.bls12_381_G1_uncompress = b;
            function k(L, q) {
                return L.add(q);
            }
            n.bls12_381_G2_add = k;
            function F(L) {
                return L.negate();
            }
            n.bls12_381_G2_neg = F;
            function Y(L, q) {
                return L < 0 ? Y(-L, F(q)) : (L = BigInt(L), L >= l && (L = L % l), L === BigInt(0) ? n.BlsG2.ZERO : q.multiply(BigInt(L)));
            }
            n.bls12_381_G2_scalarMul = Y;
            function K(L, q) {
                return L.equals(q);
            }
            n.bls12_381_G2_equal = K;
            function J(L, q) {
                if (q.length > 255) throw new Error("DST length can not be greater than 255");
                return n.BlsG2.fromAffine(p.hashToCurve(L, {
                    DST: q
                }).toAffine());
            }
            n.bls12_381_G2_hashToGroup = J;
            function P(L) {
                return L.toRawBytes();
            }
            n.bls12_381_G2_compress = P;
            function T(L) {
                var q = (0, e.parseMask)(L).compressed;
                if (!q) throw new Error("uncompress only works with compressed byets");
                return n.BlsG2.fromHex(L);
            }
            n.bls12_381_G2_uncompress = T;
            function E(L, q) {
                var V = L.toAffine(), Q = V.x, Z = V.y;
                return C(X(q), [
                    Q,
                    Z
                ]);
            }
            n.bls12_381_millerLoop = E;
            function N(L, q) {
                return (0, e.Fp12Multiply)(L, q);
            }
            n.bls12_381_mulMlResult = N, n.bls12_381_eqMlResult = e.Fp12_eql;
            function y(L, q) {
                var V = (0, e.Fp12_conjugate)(L);
                return V = (0, e.Fp12Multiply)(V, q), V = (0, e.Fp12_finalExponentiate)(V), (0, e.Fp12_eql)(V, e.Fp12_ONE);
            }
            n.bls12_381_finalVerify = y;
            var O = BigInt("0xd201000000010000"), m = (0, _.bitLen)(O), R = BigInt(2), v = BigInt(3);
            function A(L) {
                for(var q = L.x, V = L.y, Q = q, Z = V, tt = e.Fp2.ONE, rt = Q, at = Z, ut = tt, bt = [], pt = m - 2; pt >= 0; pt--){
                    var ot = e.Fp2.sqr(at), gt = e.Fp2.sqr(ut), W = e.Fp2.multiplyByB(e.Fp2.mul(gt, v)), G = e.Fp2.mul(W, v), et = e.Fp2.sub(e.Fp2.sub(e.Fp2.sqr(e.Fp2.add(at, ut)), gt), ot);
                    if (bt.push([
                        e.Fp2.sub(W, ot),
                        e.Fp2.mul(e.Fp2.sqr(rt), v),
                        e.Fp2.neg(et)
                    ]), rt = e.Fp2.div(e.Fp2.mul(e.Fp2.mul(e.Fp2.sub(ot, G), rt), at), R), at = e.Fp2.sub(e.Fp2.sqr(e.Fp2.div(e.Fp2.add(ot, G), R)), e.Fp2.mul(e.Fp2.sqr(W), v)), ut = e.Fp2.mul(ot, et), (0, _.bitGet)(O, pt)) {
                        var ct = e.Fp2.sub(at, e.Fp2.mul(Z, ut)), ft = e.Fp2.sub(rt, e.Fp2.mul(Q, ut));
                        bt.push([
                            e.Fp2.sub(e.Fp2.mul(ct, Q), e.Fp2.mul(ft, Z)),
                            e.Fp2.neg(ct),
                            ft
                        ]);
                        var dt = e.Fp2.sqr(ft), st = e.Fp2.mul(dt, ft), wt = e.Fp2.mul(dt, rt), It = e.Fp2.add(e.Fp2.sub(st, e.Fp2.mul(wt, R)), e.Fp2.mul(e.Fp2.sqr(ct), ut));
                        rt = e.Fp2.mul(ft, It), at = e.Fp2.sub(e.Fp2.mul(e.Fp2.sub(wt, It), ct), e.Fp2.mul(st, at)), ut = e.Fp2.mul(ut, st);
                    }
                }
                return bt;
            }
            function X(L) {
                var q = L;
                return q._PPRECOMPUTES || (q._PPRECOMPUTES = A(L.toAffine())), q._PPRECOMPUTES;
            }
            function C(L, q) {
                for(var V = O, Q = q[0], Z = q[1], tt = e.Fp12.ONE, rt = 0, at = m - 2; at >= 0; at--, rt++){
                    var ut = L[rt];
                    if (tt = e.Fp12.multiplyBy014(tt, ut[0], e.Fp2.mul(ut[1], Q), e.Fp2.mul(ut[2], Z)), (0, _.bitGet)(V, at)) {
                        rt += 1;
                        var bt = L[rt];
                        tt = e.Fp12.multiplyBy014(tt, bt[0], e.Fp2.mul(bt[1], Q), e.Fp2.mul(bt[2], Z));
                    }
                    at !== 0 && (tt = e.Fp12.sqr(tt));
                }
                return e.Fp12.conjugate(tt);
            }
            function H(L) {
                return typeof L == "object" && L !== null && !Array.isArray(L) && U(L.c0) && U(L.c1);
            }
            n.isBlsResult = H;
            function U(L) {
                return typeof L == "object" && L !== null && !Array.isArray(L) && u(L.c0) && u(L.c1) && u(L.c2);
            }
            n.isFp6 = U;
        })(hf)), hf;
    }
    var ye = {}, pa = {}, N4;
    function bh() {
        if (N4) return pa;
        N4 = 1;
        var n = pa && pa.__read || function(c, s) {
            var u = typeof Symbol == "function" && c[Symbol.iterator];
            if (!u) return c;
            var l = u.call(c), f, p = [], g;
            try {
                for(; (s === void 0 || s-- > 0) && !(f = l.next()).done;)p.push(f.value);
            } catch (h) {
                g = {
                    error: h
                };
            } finally{
                try {
                    f && !f.done && (u = l.return) && u.call(l);
                } finally{
                    if (g) throw g.error;
                }
            }
            return p;
        }, t = pa && pa.__spreadArray || function(c, s, u) {
            if (u || arguments.length === 2) for(var l = 0, f = s.length, p; l < f; l++)(p || !(l in s)) && (p || (p = Array.prototype.slice.call(s, 0, l)), p[l] = s[l]);
            return c.concat(p || Array.prototype.slice.call(s));
        };
        Object.defineProperty(pa, "__esModule", {
            value: !0
        }), pa.sha2_512 = pa._sha2_512_pad = void 0;
        var e = uc();
        function o(c) {
            var s = c.length * 8, u = c.slice();
            u.push(128);
            var l = 128 - u.length % 128 - 8;
            l < 0 && (l += 128);
            for(var f = 0; f < l; f++)u.push(0);
            return u.push(0), u.push(0), u.push(0), u.push(0), u.push(s >> 24 & 255), u.push(s >> 16 & 255), u.push(s >> 8 & 255), u.push(s >> 0 & 255), u;
        }
        pa._sha2_512_pad = o;
        var _ = Object.freeze([
            (0, e.uint64)("0x428a2f98d728ae22"),
            (0, e.uint64)("0x7137449123ef65cd"),
            (0, e.uint64)("0xb5c0fbcfec4d3b2f"),
            (0, e.uint64)("0xe9b5dba58189dbbc"),
            (0, e.uint64)("0x3956c25bf348b538"),
            (0, e.uint64)("0x59f111f1b605d019"),
            (0, e.uint64)("0x923f82a4af194f9b"),
            (0, e.uint64)("0xab1c5ed5da6d8118"),
            (0, e.uint64)("0xd807aa98a3030242"),
            (0, e.uint64)("0x12835b0145706fbe"),
            (0, e.uint64)("0x243185be4ee4b28c"),
            (0, e.uint64)("0x550c7dc3d5ffb4e2"),
            (0, e.uint64)("0x72be5d74f27b896f"),
            (0, e.uint64)("0x80deb1fe3b1696b1"),
            (0, e.uint64)("0x9bdc06a725c71235"),
            (0, e.uint64)("0xc19bf174cf692694"),
            (0, e.uint64)("0xe49b69c19ef14ad2"),
            (0, e.uint64)("0xefbe4786384f25e3"),
            (0, e.uint64)("0x0fc19dc68b8cd5b5"),
            (0, e.uint64)("0x240ca1cc77ac9c65"),
            (0, e.uint64)("0x2de92c6f592b0275"),
            (0, e.uint64)("0x4a7484aa6ea6e483"),
            (0, e.uint64)("0x5cb0a9dcbd41fbd4"),
            (0, e.uint64)("0x76f988da831153b5"),
            (0, e.uint64)("0x983e5152ee66dfab"),
            (0, e.uint64)("0xa831c66d2db43210"),
            (0, e.uint64)("0xb00327c898fb213f"),
            (0, e.uint64)("0xbf597fc7beef0ee4"),
            (0, e.uint64)("0xc6e00bf33da88fc2"),
            (0, e.uint64)("0xd5a79147930aa725"),
            (0, e.uint64)("0x06ca6351e003826f"),
            (0, e.uint64)("0x142929670a0e6e70"),
            (0, e.uint64)("0x27b70a8546d22ffc"),
            (0, e.uint64)("0x2e1b21385c26c926"),
            (0, e.uint64)("0x4d2c6dfc5ac42aed"),
            (0, e.uint64)("0x53380d139d95b3df"),
            (0, e.uint64)("0x650a73548baf63de"),
            (0, e.uint64)("0x766a0abb3c77b2a8"),
            (0, e.uint64)("0x81c2c92e47edaee6"),
            (0, e.uint64)("0x92722c851482353b"),
            (0, e.uint64)("0xa2bfe8a14cf10364"),
            (0, e.uint64)("0xa81a664bbc423001"),
            (0, e.uint64)("0xc24b8b70d0f89791"),
            (0, e.uint64)("0xc76c51a30654be30"),
            (0, e.uint64)("0xd192e819d6ef5218"),
            (0, e.uint64)("0xd69906245565a910"),
            (0, e.uint64)("0xf40e35855771202a"),
            (0, e.uint64)("0x106aa07032bbd1b8"),
            (0, e.uint64)("0x19a4c116b8d2d0c8"),
            (0, e.uint64)("0x1e376c085141ab53"),
            (0, e.uint64)("0x2748774cdf8eeb99"),
            (0, e.uint64)("0x34b0bcb5e19b48a8"),
            (0, e.uint64)("0x391c0cb3c5c95a63"),
            (0, e.uint64)("0x4ed8aa4ae3418acb"),
            (0, e.uint64)("0x5b9cca4f7763e373"),
            (0, e.uint64)("0x682e6ff3d6b2b8a3"),
            (0, e.uint64)("0x748f82ee5defb2fc"),
            (0, e.uint64)("0x78a5636f43172f60"),
            (0, e.uint64)("0x84c87814a1f0ab72"),
            (0, e.uint64)("0x8cc702081a6439ec"),
            (0, e.uint64)("0x90befffa23631e28"),
            (0, e.uint64)("0xa4506cebde82bde9"),
            (0, e.uint64)("0xbef9a3f7b2c67915"),
            (0, e.uint64)("0xc67178f2e372532b"),
            (0, e.uint64)("0xca273eceea26619c"),
            (0, e.uint64)("0xd186b8c721c0c207"),
            (0, e.uint64)("0xeada7dd6cde0eb1e"),
            (0, e.uint64)("0xf57d4f7fee6ed178"),
            (0, e.uint64)("0x06f067aa72176fba"),
            (0, e.uint64)("0x0a637dc5a2c898a6"),
            (0, e.uint64)("0x113f9804bef90dae"),
            (0, e.uint64)("0x1b710b35131c471b"),
            (0, e.uint64)("0x28db77f523047d84"),
            (0, e.uint64)("0x32caab7b40c72493"),
            (0, e.uint64)("0x3c9ebe0a15c9bebc"),
            (0, e.uint64)("0x431d67c49c100d4c"),
            (0, e.uint64)("0x4cc5d4becb3e42b6"),
            (0, e.uint64)("0x597f299cfc657e2a"),
            (0, e.uint64)("0x5fcb6fab3ad6faec"),
            (0, e.uint64)("0x6c44198c4a475817")
        ]);
        function a(c) {
            c instanceof Uint8Array && (c = Array.from(c));
            var s = [
                (0, e.uint64)("0x6a09e667f3bcc908"),
                (0, e.uint64)("0xbb67ae8584caa73b"),
                (0, e.uint64)("0x3c6ef372fe94f82b"),
                (0, e.uint64)("0xa54ff53a5f1d36f1"),
                (0, e.uint64)("0x510e527fade682d1"),
                (0, e.uint64)("0x9b05688c2b3e6c1f"),
                (0, e.uint64)("0x1f83d9abfb41bd6b"),
                (0, e.uint64)("0x5be0cd19137e2179")
            ];
            function u(y) {
                return (0, e.forceUint64)((0, e.uint64Rotr)(y, 1) ^ (0, e.uint64Rotr)(y, 8) ^ y >> BigInt(7));
            }
            function l(y) {
                return (0, e.forceUint64)((0, e.uint64Rotr)(y, 19) ^ (0, e.uint64Rotr)(y, 61) ^ y >> BigInt(6));
            }
            c = o(c);
            for(var f = 0; f < c.length; f += 128){
                for(var p = c.slice(f, f + 128), g = new Array(80).fill(BigInt(0)), h = 0; h < 16; h++)g[h] = (0, e.uint64)("0x" + (0, e.byteArrToHex)(p.slice(h * 8, h * 8 + 8)));
                for(var h = 16; h < 80; h++)g[h] = (0, e.forceUint64)(l(g[h - 2]) + g[h - 7] + u(g[h - 15]) + g[h - 16]);
                for(var B = s[0], I = s[1], j = s[2], w = s[3], S = s[4], b = s[5], k = s[6], F = s[7], h = 0; h < 80; h++){
                    var Y = (0, e.uint64Rotr)(S, 14) ^ (0, e.uint64Rotr)(S, 18) ^ (0, e.uint64Rotr)(S, 41), K = S & b ^ ~S & k, J = (0, e.forceUint64)(F + Y + K + _[h] + g[h]), P = (0, e.uint64Rotr)(B, 28) ^ (0, e.uint64Rotr)(B, 34) ^ (0, e.uint64Rotr)(B, 39), T = B & I ^ B & j ^ I & j, E = (0, e.forceUint64)(P + T);
                    F = k, k = b, b = S, S = (0, e.forceUint64)(w + J), w = j, j = I, I = B, B = (0, e.forceUint64)(J + E);
                }
                s[0] = (0, e.forceUint64)(s[0] + B), s[1] = (0, e.forceUint64)(s[1] + I), s[2] = (0, e.forceUint64)(s[2] + j), s[3] = (0, e.forceUint64)(s[3] + w), s[4] = (0, e.forceUint64)(s[4] + S), s[5] = (0, e.forceUint64)(s[5] + b), s[6] = (0, e.forceUint64)(s[6] + k), s[7] = (0, e.forceUint64)(s[7] + F);
            }
            for(var N = [], h = 0; h < 8; h++)N.push.apply(N, t([], n((0, e.uint64ToBytesBE)(s[h])), !1));
            return new Uint8Array(N);
        }
        return pa.sha2_512 = a, pa;
    }
    var mf = {}, M4;
    function Xx() {
        if (M4) return mf;
        M4 = 1, Object.defineProperty(mf, "__esModule", {
            value: !0
        }), mf.positiveMod = void 0;
        function n(t, e) {
            var o = BigInt(e), _ = BigInt(t) % o;
            return _ < BigInt(0) ? _ + o : _;
        }
        return mf.positiveMod = n, mf;
    }
    var If = {}, L4;
    function z4t() {
        if (L4) return If;
        L4 = 1, Object.defineProperty(If, "__esModule", {
            value: !0
        }), If.bigintToBuffer = void 0;
        var n = gu(), t = ve();
        function e(o, _) {
            if (_ === void 0 && (_ = void 0), (0, n.assert)(o >= BigInt(0), "cannot convert negative bigint to buffer"), o == BigInt(0)) return _ === void 0 ? Uint8Array.from([]) : new Uint8Array(_);
            var a = o.toString(16);
            return a = a.length % 2 === 0 ? a : "0" + a, _ !== void 0 && ((0, n.assert)(Math.round(Math.abs(_)) === _, "cannot construct a buffer of length " + _ + ", while using BigIntUtils.toBufferOfNBytesBE"), a = a.padStart(_ * 2, "00"), a.length > _ * 2 && (console.warn("required buffer size is smaller than the one used effectively by the given bigint, truncating the initial bytes as overflow"), a = a.slice(a.length - _ * 2))), (0, t.fromHex)(a);
        }
        return If.bigintToBuffer = e, If;
    }
    var z4;
    function Qx() {
        if (z4) return ye;
        z4 = 1;
        var n = ye && ye.__generator || function(Z, tt) {
            var rt = {
                label: 0,
                sent: function() {
                    if (bt[0] & 1) throw bt[1];
                    return bt[1];
                },
                trys: [],
                ops: []
            }, at, ut, bt, pt;
            return pt = {
                next: ot(0),
                throw: ot(1),
                return: ot(2)
            }, typeof Symbol == "function" && (pt[Symbol.iterator] = function() {
                return this;
            }), pt;
            function ot(W) {
                return function(G) {
                    return gt([
                        W,
                        G
                    ]);
                };
            }
            function gt(W) {
                if (at) throw new TypeError("Generator is already executing.");
                for(; pt && (pt = 0, W[0] && (rt = 0)), rt;)try {
                    if (at = 1, ut && (bt = W[0] & 2 ? ut.return : W[0] ? ut.throw || ((bt = ut.return) && bt.call(ut), 0) : ut.next) && !(bt = bt.call(ut, W[1])).done) return bt;
                    switch(ut = 0, bt && (W = [
                        W[0] & 2,
                        bt.value
                    ]), W[0]){
                        case 0:
                        case 1:
                            bt = W;
                            break;
                        case 4:
                            return rt.label++, {
                                value: W[1],
                                done: !1
                            };
                        case 5:
                            rt.label++, ut = W[1], W = [
                                0
                            ];
                            continue;
                        case 7:
                            W = rt.ops.pop(), rt.trys.pop();
                            continue;
                        default:
                            if (bt = rt.trys, !(bt = bt.length > 0 && bt[bt.length - 1]) && (W[0] === 6 || W[0] === 2)) {
                                rt = 0;
                                continue;
                            }
                            if (W[0] === 3 && (!bt || W[1] > bt[0] && W[1] < bt[3])) {
                                rt.label = W[1];
                                break;
                            }
                            if (W[0] === 6 && rt.label < bt[1]) {
                                rt.label = bt[1], bt = W;
                                break;
                            }
                            if (bt && rt.label < bt[2]) {
                                rt.label = bt[2], rt.ops.push(W);
                                break;
                            }
                            bt[2] && rt.ops.pop(), rt.trys.pop();
                            continue;
                    }
                    W = tt.call(Z, rt);
                } catch (G) {
                    W = [
                        6,
                        G
                    ], ut = 0;
                } finally{
                    at = bt = 0;
                }
                if (W[0] & 5) throw W[1];
                return {
                    value: W[0] ? W[1] : void 0,
                    done: !0
                };
            }
        }, t = ye && ye.__read || function(Z, tt) {
            var rt = typeof Symbol == "function" && Z[Symbol.iterator];
            if (!rt) return Z;
            var at = rt.call(Z), ut, bt = [], pt;
            try {
                for(; (tt === void 0 || tt-- > 0) && !(ut = at.next()).done;)bt.push(ut.value);
            } catch (ot) {
                pt = {
                    error: ot
                };
            } finally{
                try {
                    ut && !ut.done && (rt = at.return) && rt.call(at);
                } finally{
                    if (pt) throw pt.error;
                }
            }
            return bt;
        };
        Object.defineProperty(ye, "__esModule", {
            value: !0
        }), ye.ed25519bigint = ye.verifyEd25519Signature = ye.getEd25519Signature = ye.signExtendedEd25519 = ye.signEd25519 = ye.extendedToPublic = ye.deriveEd25519PublicKey = ye.extendEd25519PrivateKey = ye.scalarMultBase = ye.scalarFromBytes = ye.pointFromBytes = ye.bigpointToUint8Array = ye.encodeInt = ye.scalarMul = ye.addPointsEdwards = void 0;
        var e = ve(), o = bh(), _ = uc(), a = Xx(), c = gu(), s = z4t(), u = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"), l = BigInt("7237005577332262213973186563042994240829374041602535252466099000494570602494"), f = BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"), p = -BigInt("4513249062541557337682894930092624173785641285191125241628941591882900924598840740"), g = BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"), h = Object.freeze([
            BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),
            BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")
        ]);
        function B(Z, tt, rt) {
            if (tt == BigInt(0)) return BigInt(1);
            var at = B(Z, tt / BigInt(2), rt);
            return at = at * at % rt, tt % BigInt(2) != BigInt(0) && (at = (0, a.positiveMod)(at * Z, rt)), at;
        }
        function I(Z) {
            var tt = (0, a.positiveMod)(Z, u), rt = u, at = BigInt(0);
            BigInt(1);
            var ut = BigInt(1);
            for(BigInt(0); tt !== BigInt(0);){
                var bt = rt / tt, pt = rt % tt, ot = at - ut * bt;
                rt = tt, tt = pt, at = ut, ut = ot;
            }
            return (0, a.positiveMod)(at, u);
        }
        function j(Z) {
            var tt = Z * Z, rt = (tt - BigInt(1)) * I(p * tt + BigInt(1)), at = B(rt, l, u);
            return (at * at - rt) % u !== BigInt(0) && (at = at * g % u), at % BigInt(2) !== BigInt(0) && (at = u - at), at;
        }
        function w(Z, tt) {
            var rt = Z[0], at = Z[1], ut = tt[0], bt = tt[1], pt = p * rt * ut * at * bt, ot = (rt * bt + ut * at) * I(BigInt(1) + pt), gt = (at * bt + rt * ut) * I(BigInt(1) - pt);
            return [
                (0, a.positiveMod)(ot, u),
                (0, a.positiveMod)(gt, u)
            ];
        }
        ye.addPointsEdwards = w;
        function S(Z, tt) {
            if (tt === BigInt(0)) return [
                BigInt(0),
                BigInt(1)
            ];
            var rt = S(Z, tt / BigInt(2));
            return rt = w(rt, rt), tt % BigInt(2) !== BigInt(0) && (rt = w(rt, Z)), rt;
        }
        ye.scalarMul = S;
        function b(Z) {
            for(var tt = Array.from((0, s.bigintToBuffer)(Z)).reverse(); tt.length < 32;)tt.push(0);
            return tt;
        }
        ye.encodeInt = b;
        function k(Z) {
            return BigInt("0x" + (0, _.byteArrToHex)(Z.reverse()));
        }
        function F(Z) {
            var tt = t(Z, 2), rt = tt[0], at = tt[1], ut = b(at);
            return ut[31] = ut[31] & 255 | Number(rt & BigInt(1)) * 128, ut;
        }
        function Y(Z) {
            return new Uint8Array(F(Z));
        }
        ye.bigpointToUint8Array = Y;
        function K(Z, tt) {
            return Z[Math.floor(tt / 8)] >> tt % 8 & 1;
        }
        function J(Z) {
            var tt = Z[0], rt = Z[1], at = tt * tt, ut = rt * rt;
            return (-at + ut - BigInt(1) - p * at * ut) % u == BigInt(0);
        }
        function P(Z) {
            Z instanceof Uint8Array && (Z = A(Z)), (0, c.assert)(Z.length == 32, "point must have length of 32");
            var tt = Z.slice();
            tt[31] = tt[31] & 127;
            var rt = k(tt), at = j(rt);
            Number(at & BigInt(1)) != K(Z, 255) && (at = u - at);
            var ut = [
                at,
                rt
            ];
            if (!J(ut)) throw new Error("point isn't on curve");
            return ut;
        }
        ye.pointFromBytes = P;
        var T = BigInt("28948022309329048855892746252171976963317496166410141009864396001978282409984");
        function E(Z) {
            var tt = Z.slice(0, 32);
            return tt[0] = tt[0] & 248, tt[31] = tt[31] & 63, T + BigInt("0x" + (0, _.byteArrToHex)(tt.reverse()));
        }
        ye.scalarFromBytes = E;
        function N(Z) {
            return k((0, o.sha2_512)(Z));
        }
        function y(Z) {
            return typeof Z == "string" ? (0, e.fromHex)(Z) : (0, e.isUint8Array)(Z) ? Z : new Uint8Array(Z);
        }
        function O(Z) {
            return S(h, Z);
        }
        ye.scalarMultBase = O;
        function m(Z) {
            var tt = (0, o.sha2_512)(Z), rt = tt.slice(32, 64), at = E(tt.slice(0, 32));
            return [
                at,
                rt
            ];
        }
        ye.extendEd25519PrivateKey = m;
        function R(Z) {
            var tt = (0, o.sha2_512)(Z), rt = E(tt), at = S(h, rt);
            return F(at);
        }
        ye.deriveEd25519PublicKey = R;
        function v(Z) {
            Z instanceof Uint8Array && (Z = Array.from(Z));
            var tt = E(Z), rt = S(h, tt);
            return new Uint8Array(F(rt));
        }
        ye.extendedToPublic = v;
        function A(Z) {
            return typeof Z == "string" ? A((0, e.fromHex)(Z)) : Array.from(Z);
        }
        function X(Z, tt) {
            return Z = y(Z), tt = y(tt), C(Z, (0, o.sha2_512)(A(tt)));
        }
        ye.signEd25519 = X;
        function C(Z, tt) {
            var rt;
            if (Z = y(Z), tt = y(tt), tt.length !== 64) throw new Error("signExtendedEd25519:: extended key must have length 64");
            var at = A(tt), ut = E(at), bt = F(S(h, ut)), pt = N(at.slice(32, 64).concat(A(Z))), ot = S(h, pt), gt = (0, a.positiveMod)(pt + N(F(ot).concat(bt).concat(A(Z))) * ut, f), W = new Uint8Array(bt), G = new Uint8Array(F(ot).concat(b(gt)));
            return rt = {
                0: W,
                1: G,
                length: 2
            }, rt[Symbol.iterator] = function() {
                return n(this, function(et) {
                    switch(et.label){
                        case 0:
                            return [
                                4,
                                W
                            ];
                        case 1:
                            return et.sent(), [
                                4,
                                G
                            ];
                        case 2:
                            return et.sent(), [
                                2
                            ];
                    }
                });
            }, rt.pubKey = W, rt.signature = G, rt;
        }
        ye.signExtendedEd25519 = C;
        function H(Z, tt) {
            return X(Z, tt).signature;
        }
        ye.getEd25519Signature = H;
        function U(Z, tt, rt) {
            if (Z.length !== 64 || rt.length != 32) throw new Error("unexpected signature length ".concat(Z.length));
            (0, e.isUint8Array)(Z) && (Z = (0, _.buffToByteArr)(Z)), (0, e.isUint8Array)(tt) && (tt = (0, _.buffToByteArr)(tt)), (0, e.isUint8Array)(rt) && (rt = (0, _.buffToByteArr)(rt));
            var at = P(A(Z).slice(0, 32)), ut = P(A(rt)), bt = k(A(Z).slice(32, 64)), pt = N(A(Z).slice(0, 32).concat(A(rt)).concat(A(tt))), ot = S(h, bt), gt = w(at, S(ut, pt));
            return ot[0] == gt[0] && ot[1] == gt[1];
        }
        ye.verifyEd25519Signature = U;
        var L = BigInt(0), q = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949");
        function V(Z, tt) {
            var rt = Z % tt;
            return rt >= L ? rt : tt + rt;
        }
        function Q(Z) {
            return V(Z, q);
        }
        return ye.ed25519bigint = Q, ye;
    }
    var kf = {}, Bf = {}, q4;
    function $x() {
        return q4 || (q4 = 1, (function(n) {
            var t = Bf && Bf.__extends || (function() {
                var c = function(s, u) {
                    return c = Object.setPrototypeOf || {
                        __proto__: []
                    } instanceof Array && function(l, f) {
                        l.__proto__ = f;
                    } || function(l, f) {
                        for(var p in f)Object.prototype.hasOwnProperty.call(f, p) && (l[p] = f[p]);
                    }, c(s, u);
                };
                return function(s, u) {
                    if (typeof u != "function" && u !== null) throw new TypeError("Class extends value " + String(u) + " is not a constructor or null");
                    c(s, u);
                    function l() {
                        this.constructor = s;
                    }
                    s.prototype = u === null ? Object.create(u) : (l.prototype = u.prototype, new l);
                };
            })();
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.hmac = n.HMAC = void 0;
            var e = Jx(), o = Qi(), _ = (function(c) {
                t(s, c);
                function s(u, l) {
                    var f = c.call(this) || this;
                    f.finished = !1, f.destroyed = !1, (0, e.hash)(u);
                    var p = (0, o.toBytes)(l);
                    if (f.iHash = u.create(), typeof f.iHash.update != "function") throw new Error("Expected instance of class which extends utils.Hash");
                    f.blockLen = f.iHash.blockLen, f.outputLen = f.iHash.outputLen;
                    var g = f.blockLen, h = new Uint8Array(g);
                    h.set(p.length > g ? u.create().update(p).digest() : p);
                    for(var B = 0; B < h.length; B++)h[B] ^= 54;
                    f.iHash.update(h), f.oHash = u.create();
                    for(var B = 0; B < h.length; B++)h[B] ^= 106;
                    return f.oHash.update(h), h.fill(0), f;
                }
                return s.prototype.update = function(u) {
                    return (0, e.exists)(this), this.iHash.update(u), this;
                }, s.prototype.digestInto = function(u) {
                    (0, e.exists)(this), (0, e.bytes)(u, this.outputLen), this.finished = !0, this.iHash.digestInto(u), this.oHash.update(u), this.oHash.digestInto(u), this.destroy();
                }, s.prototype.digest = function() {
                    var u = new Uint8Array(this.oHash.outputLen);
                    return this.digestInto(u), u;
                }, s.prototype._cloneInto = function(u) {
                    u || (u = Object.create(Object.getPrototypeOf(this), {}));
                    var l = this, f = l.oHash, p = l.iHash, g = l.finished, h = l.destroyed, B = l.blockLen, I = l.outputLen;
                    return u = u, u.finished = g, u.destroyed = h, u.blockLen = B, u.outputLen = I, u.oHash = f._cloneInto(u.oHash), u.iHash = p._cloneInto(u.iHash), u;
                }, s.prototype.destroy = function() {
                    this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
                }, s;
            })(o.Hash);
            n.HMAC = _;
            var a = function(c, s, u) {
                return new _(c, s).update(u).digest();
            };
            n.hmac = a, n.hmac.create = function(c, s) {
                return new _(c, s);
            };
        })(Bf)), Bf;
    }
    var ar = {}, D4;
    function q4t() {
        if (D4) return ar;
        D4 = 1;
        var n = ar && ar.__extends || (function() {
            var w = function(S, b) {
                return w = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(k, F) {
                    k.__proto__ = F;
                } || function(k, F) {
                    for(var Y in F)Object.prototype.hasOwnProperty.call(F, Y) && (k[Y] = F[Y]);
                }, w(S, b);
            };
            return function(S, b) {
                if (typeof b != "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
                w(S, b);
                function k() {
                    this.constructor = S;
                }
                S.prototype = b === null ? Object.create(b) : (k.prototype = b.prototype, new k);
            };
        })(), t = ar && ar.__createBinding || (Object.create ? (function(w, S, b, k) {
            k === void 0 && (k = b);
            var F = Object.getOwnPropertyDescriptor(S, b);
            (!F || ("get" in F ? !S.__esModule : F.writable || F.configurable)) && (F = {
                enumerable: !0,
                get: function() {
                    return S[b];
                }
            }), Object.defineProperty(w, k, F);
        }) : (function(w, S, b, k) {
            k === void 0 && (k = b), w[k] = S[b];
        })), e = ar && ar.__setModuleDefault || (Object.create ? (function(w, S) {
            Object.defineProperty(w, "default", {
                enumerable: !0,
                value: S
            });
        }) : function(w, S) {
            w.default = S;
        }), o = ar && ar.__importStar || function(w) {
            if (w && w.__esModule) return w;
            var S = {};
            if (w != null) for(var b in w)b !== "default" && Object.prototype.hasOwnProperty.call(w, b) && t(S, w, b);
            return e(S, w), S;
        }, _ = ar && ar.__read || function(w, S) {
            var b = typeof Symbol == "function" && w[Symbol.iterator];
            if (!b) return w;
            var k = b.call(w), F, Y = [], K;
            try {
                for(; (S === void 0 || S-- > 0) && !(F = k.next()).done;)Y.push(F.value);
            } catch (J) {
                K = {
                    error: J
                };
            } finally{
                try {
                    F && !F.done && (b = k.return) && b.call(k);
                } finally{
                    if (K) throw K.error;
                }
            }
            return Y;
        };
        Object.defineProperty(ar, "__esModule", {
            value: !0
        }), ar.sha384 = ar.sha512_256 = ar.sha512_224 = ar.sha512 = ar.SHA512 = void 0;
        var a = gh(), c = o(Yx()), s = Qi(), u = _((function() {
            return c.split([
                "0x428a2f98d728ae22",
                "0x7137449123ef65cd",
                "0xb5c0fbcfec4d3b2f",
                "0xe9b5dba58189dbbc",
                "0x3956c25bf348b538",
                "0x59f111f1b605d019",
                "0x923f82a4af194f9b",
                "0xab1c5ed5da6d8118",
                "0xd807aa98a3030242",
                "0x12835b0145706fbe",
                "0x243185be4ee4b28c",
                "0x550c7dc3d5ffb4e2",
                "0x72be5d74f27b896f",
                "0x80deb1fe3b1696b1",
                "0x9bdc06a725c71235",
                "0xc19bf174cf692694",
                "0xe49b69c19ef14ad2",
                "0xefbe4786384f25e3",
                "0x0fc19dc68b8cd5b5",
                "0x240ca1cc77ac9c65",
                "0x2de92c6f592b0275",
                "0x4a7484aa6ea6e483",
                "0x5cb0a9dcbd41fbd4",
                "0x76f988da831153b5",
                "0x983e5152ee66dfab",
                "0xa831c66d2db43210",
                "0xb00327c898fb213f",
                "0xbf597fc7beef0ee4",
                "0xc6e00bf33da88fc2",
                "0xd5a79147930aa725",
                "0x06ca6351e003826f",
                "0x142929670a0e6e70",
                "0x27b70a8546d22ffc",
                "0x2e1b21385c26c926",
                "0x4d2c6dfc5ac42aed",
                "0x53380d139d95b3df",
                "0x650a73548baf63de",
                "0x766a0abb3c77b2a8",
                "0x81c2c92e47edaee6",
                "0x92722c851482353b",
                "0xa2bfe8a14cf10364",
                "0xa81a664bbc423001",
                "0xc24b8b70d0f89791",
                "0xc76c51a30654be30",
                "0xd192e819d6ef5218",
                "0xd69906245565a910",
                "0xf40e35855771202a",
                "0x106aa07032bbd1b8",
                "0x19a4c116b8d2d0c8",
                "0x1e376c085141ab53",
                "0x2748774cdf8eeb99",
                "0x34b0bcb5e19b48a8",
                "0x391c0cb3c5c95a63",
                "0x4ed8aa4ae3418acb",
                "0x5b9cca4f7763e373",
                "0x682e6ff3d6b2b8a3",
                "0x748f82ee5defb2fc",
                "0x78a5636f43172f60",
                "0x84c87814a1f0ab72",
                "0x8cc702081a6439ec",
                "0x90befffa23631e28",
                "0xa4506cebde82bde9",
                "0xbef9a3f7b2c67915",
                "0xc67178f2e372532b",
                "0xca273eceea26619c",
                "0xd186b8c721c0c207",
                "0xeada7dd6cde0eb1e",
                "0xf57d4f7fee6ed178",
                "0x06f067aa72176fba",
                "0x0a637dc5a2c898a6",
                "0x113f9804bef90dae",
                "0x1b710b35131c471b",
                "0x28db77f523047d84",
                "0x32caab7b40c72493",
                "0x3c9ebe0a15c9bebc",
                "0x431d67c49c100d4c",
                "0x4cc5d4becb3e42b6",
                "0x597f299cfc657e2a",
                "0x5fcb6fab3ad6faec",
                "0x6c44198c4a475817"
            ].map(function(w) {
                return BigInt(w);
            }));
        })(), 2), l = u[0], f = u[1], p = new Uint32Array(80), g = new Uint32Array(80), h = (function(w) {
            n(S, w);
            function S() {
                var b = w.call(this, 128, 64, 16, !1) || this;
                return b.Ah = 1779033703, b.Al = -205731576, b.Bh = -1150833019, b.Bl = -2067093701, b.Ch = 1013904242, b.Cl = -23791573, b.Dh = -1521486534, b.Dl = 1595750129, b.Eh = 1359893119, b.El = -1377402159, b.Fh = -1694144372, b.Fl = 725511199, b.Gh = 528734635, b.Gl = -79577749, b.Hh = 1541459225, b.Hl = 327033209, b;
            }
            return S.prototype.get = function() {
                var b = this, k = b.Ah, F = b.Al, Y = b.Bh, K = b.Bl, J = b.Ch, P = b.Cl, T = b.Dh, E = b.Dl, N = b.Eh, y = b.El, O = b.Fh, m = b.Fl, R = b.Gh, v = b.Gl, A = b.Hh, X = b.Hl;
                return [
                    k,
                    F,
                    Y,
                    K,
                    J,
                    P,
                    T,
                    E,
                    N,
                    y,
                    O,
                    m,
                    R,
                    v,
                    A,
                    X
                ];
            }, S.prototype.set = function(b, k, F, Y, K, J, P, T, E, N, y, O, m, R, v, A) {
                this.Ah = b | 0, this.Al = k | 0, this.Bh = F | 0, this.Bl = Y | 0, this.Ch = K | 0, this.Cl = J | 0, this.Dh = P | 0, this.Dl = T | 0, this.Eh = E | 0, this.El = N | 0, this.Fh = y | 0, this.Fl = O | 0, this.Gh = m | 0, this.Gl = R | 0, this.Hh = v | 0, this.Hl = A | 0;
            }, S.prototype.process = function(b, k) {
                for(var F, Y, K, J, P, T, E, N, y, O = 0; O < 16; O++, k += 4)p[O] = b.getUint32(k), g[O] = b.getUint32(k += 4);
                for(var O = 16; O < 80; O++){
                    var m = p[O - 15] | 0, R = g[O - 15] | 0, v = c.rotrSH(m, R, 1) ^ c.rotrSH(m, R, 8) ^ c.shrSH(m, R, 7), A = c.rotrSL(m, R, 1) ^ c.rotrSL(m, R, 8) ^ c.shrSL(m, R, 7), X = p[O - 2] | 0, C = g[O - 2] | 0, H = c.rotrSH(X, C, 19) ^ c.rotrBH(X, C, 61) ^ c.shrSH(X, C, 6), U = c.rotrSL(X, C, 19) ^ c.rotrBL(X, C, 61) ^ c.shrSL(X, C, 6), L = c.add4L(A, U, g[O - 7], g[O - 16]), q = c.add4H(L, v, H, p[O - 7], p[O - 16]);
                    p[O] = q | 0, g[O] = L | 0;
                }
                for(var V = this, Q = V.Ah, Z = V.Al, tt = V.Bh, rt = V.Bl, at = V.Ch, ut = V.Cl, bt = V.Dh, pt = V.Dl, ot = V.Eh, gt = V.El, W = V.Fh, G = V.Fl, et = V.Gh, ct = V.Gl, ft = V.Hh, dt = V.Hl, O = 0; O < 80; O++){
                    var st = c.rotrSH(ot, gt, 14) ^ c.rotrSH(ot, gt, 18) ^ c.rotrBH(ot, gt, 41), wt = c.rotrSL(ot, gt, 14) ^ c.rotrSL(ot, gt, 18) ^ c.rotrBL(ot, gt, 41), It = ot & W ^ ~ot & et, Ot = gt & G ^ ~gt & ct, St = c.add5L(dt, wt, Ot, f[O], g[O]), Ft = c.add5H(St, ft, st, It, l[O], p[O]), Ct = St | 0, Ut = c.rotrSH(Q, Z, 28) ^ c.rotrBH(Q, Z, 34) ^ c.rotrBH(Q, Z, 39), Gt = c.rotrSL(Q, Z, 28) ^ c.rotrBL(Q, Z, 34) ^ c.rotrBL(Q, Z, 39), be = Q & tt ^ Q & at ^ tt & at, xe = Z & rt ^ Z & ut ^ rt & ut;
                    ft = et | 0, dt = ct | 0, et = W | 0, ct = G | 0, W = ot | 0, G = gt | 0, F = c.add(bt | 0, pt | 0, Ft | 0, Ct | 0), ot = F.h, gt = F.l, bt = at | 0, pt = ut | 0, at = tt | 0, ut = rt | 0, tt = Q | 0, rt = Z | 0;
                    var De = c.add3L(Ct, Gt, xe);
                    Q = c.add3H(De, Ft, Ut, be), Z = De | 0;
                }
                Y = c.add(this.Ah | 0, this.Al | 0, Q | 0, Z | 0), Q = Y.h, Z = Y.l, K = c.add(this.Bh | 0, this.Bl | 0, tt | 0, rt | 0), tt = K.h, rt = K.l, J = c.add(this.Ch | 0, this.Cl | 0, at | 0, ut | 0), at = J.h, ut = J.l, P = c.add(this.Dh | 0, this.Dl | 0, bt | 0, pt | 0), bt = P.h, pt = P.l, T = c.add(this.Eh | 0, this.El | 0, ot | 0, gt | 0), ot = T.h, gt = T.l, E = c.add(this.Fh | 0, this.Fl | 0, W | 0, G | 0), W = E.h, G = E.l, N = c.add(this.Gh | 0, this.Gl | 0, et | 0, ct | 0), et = N.h, ct = N.l, y = c.add(this.Hh | 0, this.Hl | 0, ft | 0, dt | 0), ft = y.h, dt = y.l, this.set(Q, Z, tt, rt, at, ut, bt, pt, ot, gt, W, G, et, ct, ft, dt);
            }, S.prototype.roundClean = function() {
                p.fill(0), g.fill(0);
            }, S.prototype.destroy = function() {
                this.buffer.fill(0), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
            }, S;
        })(a.HashMD);
        ar.SHA512 = h;
        var B = (function(w) {
            n(S, w);
            function S() {
                var b = w.call(this) || this;
                return b.Ah = -1942145080, b.Al = 424955298, b.Bh = 1944164710, b.Bl = -1982016298, b.Ch = 502970286, b.Cl = 855612546, b.Dh = 1738396948, b.Dl = 1479516111, b.Eh = 258812777, b.El = 2077511080, b.Fh = 2011393907, b.Fl = 79989058, b.Gh = 1067287976, b.Gl = 1780299464, b.Hh = 286451373, b.Hl = -1848208735, b.outputLen = 28, b;
            }
            return S;
        })(h), I = (function(w) {
            n(S, w);
            function S() {
                var b = w.call(this) || this;
                return b.Ah = 573645204, b.Al = -64227540, b.Bh = -1621794909, b.Bl = -934517566, b.Ch = 596883563, b.Cl = 1867755857, b.Dh = -1774684391, b.Dl = 1497426621, b.Eh = -1775747358, b.El = -1467023389, b.Fh = -1101128155, b.Fl = 1401305490, b.Gh = 721525244, b.Gl = 746961066, b.Hh = 246885852, b.Hl = -2117784414, b.outputLen = 32, b;
            }
            return S;
        })(h), j = (function(w) {
            n(S, w);
            function S() {
                var b = w.call(this) || this;
                return b.Ah = -876896931, b.Al = -1056596264, b.Bh = 1654270250, b.Bl = 914150663, b.Ch = -1856437926, b.Cl = 812702999, b.Dh = 355462360, b.Dl = -150054599, b.Eh = 1731405415, b.El = -4191439, b.Fh = -1900787065, b.Fl = 1750603025, b.Gh = -619958771, b.Gl = 1694076839, b.Hh = 1203062813, b.Hl = -1090891868, b.outputLen = 48, b;
            }
            return S;
        })(h);
        return ar.sha512 = (0, s.wrapConstructor)(function() {
            return new h;
        }), ar.sha512_224 = (0, s.wrapConstructor)(function() {
            return new B;
        }), ar.sha512_256 = (0, s.wrapConstructor)(function() {
            return new I;
        }), ar.sha384 = (0, s.wrapConstructor)(function() {
            return new j;
        }), ar;
    }
    var G4;
    function D4t() {
        if (G4) return kf;
        G4 = 1, Object.defineProperty(kf, "__esModule", {
            value: !0
        }), kf.hmacSHA512 = void 0;
        var n = $x(), t = q4t();
        function e(o, _) {
            return new Uint8Array((0, n.hmac)(t.sha512, o, _));
        }
        return kf.hmacSHA512 = e, kf;
    }
    var ln = {}, H4;
    function G4t() {
        if (H4) return ln;
        H4 = 1;
        var n = ln && ln.__createBinding || (Object.create ? (function(u, l, f, p) {
            p === void 0 && (p = f);
            var g = Object.getOwnPropertyDescriptor(l, f);
            (!g || ("get" in g ? !l.__esModule : g.writable || g.configurable)) && (g = {
                enumerable: !0,
                get: function() {
                    return l[f];
                }
            }), Object.defineProperty(u, p, g);
        }) : (function(u, l, f, p) {
            p === void 0 && (p = f), u[p] = l[f];
        })), t = ln && ln.__setModuleDefault || (Object.create ? (function(u, l) {
            Object.defineProperty(u, "default", {
                enumerable: !0,
                value: l
            });
        }) : function(u, l) {
            u.default = l;
        }), e = ln && ln.__importStar || function(u) {
            if (u && u.__esModule) return u;
            var l = {};
            if (u != null) for(var f in u)f !== "default" && Object.prototype.hasOwnProperty.call(u, f) && n(l, u, f);
            return t(l, u), l;
        };
        Object.defineProperty(ln, "__esModule", {
            value: !0
        }), ln.keccak_512 = ln.keccak_384 = ln.keccak_224 = ln.keccak_256 = void 0;
        var o = e(Wx());
        function _(u) {
            return o.keccak_256(u);
        }
        ln.keccak_256 = _;
        function a(u) {
            return o.keccak_224(u);
        }
        ln.keccak_224 = a;
        function c(u) {
            return o.keccak_384(u);
        }
        ln.keccak_384 = c;
        function s(u) {
            return o.keccak_512(u);
        }
        return ln.keccak_512 = s, ln;
    }
    var gd = {}, pd = {}, v_ = {}, K4;
    function H4t() {
        if (K4) return v_;
        K4 = 1;
        var n = v_ && v_.__assign || function() {
            return n = Object.assign || function(u) {
                for(var l, f = 1, p = arguments.length; f < p; f++){
                    l = arguments[f];
                    for(var g in l)Object.prototype.hasOwnProperty.call(l, g) && (u[g] = l[g]);
                }
                return u;
            }, n.apply(this, arguments);
        }, t = v_ && v_.__read || function(u, l) {
            var f = typeof Symbol == "function" && u[Symbol.iterator];
            if (!f) return u;
            var p = f.call(u), g, h = [], B;
            try {
                for(; (l === void 0 || l-- > 0) && !(g = p.next()).done;)h.push(g.value);
            } catch (I) {
                B = {
                    error: I
                };
            } finally{
                try {
                    g && !g.done && (f = p.return) && f.call(p);
                } finally{
                    if (B) throw B.error;
                }
            }
            return h;
        }, e = v_ && v_.__spreadArray || function(u, l, f) {
            if (f || arguments.length === 2) for(var p = 0, g = l.length, h; p < g; p++)(h || !(p in l)) && (h || (h = Array.prototype.slice.call(l, 0, p)), h[p] = l[p]);
            return u.concat(h || Array.prototype.slice.call(l));
        };
        Object.defineProperty(v_, "__esModule", {
            value: !0
        }), v_.createCurve = v_.getHash = void 0;
        var o = $x(), _ = Qi(), a = b0();
        function c(u) {
            return {
                hash: u,
                hmac: function(l) {
                    for(var f = [], p = 1; p < arguments.length; p++)f[p - 1] = arguments[p];
                    return (0, o.hmac)(u, l, _.concatBytes.apply(void 0, e([], t(f), !1)));
                },
                randomBytes: _.randomBytes
            };
        }
        v_.getHash = c;
        function s(u, l) {
            var f = function(p) {
                return (0, a.weierstrass)(n(n({}, u), c(p)));
            };
            return Object.freeze(n(n({}, f(l)), {
                create: f
            }));
        }
        return v_.createCurve = s, v_;
    }
    var V4;
    function K4t() {
        return V4 || (V4 = 1, (function(n) {
            var t = pd && pd.__read || function(q, V) {
                var Q = typeof Symbol == "function" && q[Symbol.iterator];
                if (!Q) return q;
                var Z = Q.call(q), tt, rt = [], at;
                try {
                    for(; (V === void 0 || V-- > 0) && !(tt = Z.next()).done;)rt.push(tt.value);
                } catch (ut) {
                    at = {
                        error: ut
                    };
                } finally{
                    try {
                        tt && !tt.done && (Q = Z.return) && Q.call(Z);
                    } finally{
                        if (at) throw at.error;
                    }
                }
                return rt;
            }, e = pd && pd.__spreadArray || function(q, V, Q) {
                if (Q || arguments.length === 2) for(var Z = 0, tt = V.length, rt; Z < tt; Z++)(rt || !(Z in V)) && (rt || (rt = Array.prototype.slice.call(V, 0, Z)), rt[Z] = V[Z]);
                return q.concat(rt || Array.prototype.slice.call(V));
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.verifySecp256k1 = n.signSecp256k1 = n.encodeToCurve = n.hashToCurve = n.schnorr = n.verifySchnorr = n.signSchnorr = n.Secp256k1Point = n.secp256k1PointToBytes = n.secp256k1 = void 0;
            var o = ph(), _ = Qi(), a = Hl(), c = b0(), s = Mi(), u = p0(), l = H4t(), f = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), p = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), g = BigInt(1), h = BigInt(2), B = function(q, V) {
                return (q + V / h) / V;
            };
            function I(q) {
                var V = f, Q = BigInt(3), Z = BigInt(6), tt = BigInt(11), rt = BigInt(22), at = BigInt(23), ut = BigInt(44), bt = BigInt(88), pt = q * q * q % V, ot = pt * pt * q % V, gt = (0, a.pow2)(ot, Q, V) * ot % V, W = (0, a.pow2)(gt, Q, V) * ot % V, G = (0, a.pow2)(W, h, V) * pt % V, et = (0, a.pow2)(G, tt, V) * G % V, ct = (0, a.pow2)(et, rt, V) * et % V, ft = (0, a.pow2)(ct, ut, V) * ct % V, dt = (0, a.pow2)(ft, bt, V) * ft % V, st = (0, a.pow2)(dt, ut, V) * ct % V, wt = (0, a.pow2)(st, Q, V) * ot % V, It = (0, a.pow2)(wt, at, V) * et % V, Ot = (0, a.pow2)(It, Z, V) * pt % V, St = (0, a.pow2)(Ot, h, V);
                if (!j.eql(j.sqr(St), q)) throw new Error("Cannot find square root");
                return St;
            }
            var j = (0, a.Field)(f, void 0, void 0, {
                sqrt: I
            });
            n.secp256k1 = (0, l.createCurve)({
                a: BigInt(0),
                b: BigInt(7),
                Fp: j,
                n: p,
                Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),
                Gy: BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),
                h: BigInt(1),
                lowS: !0,
                endo: {
                    beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),
                    splitScalar: function(q) {
                        var V = p, Q = BigInt("0x3086d221a7d46bcde86c90e49284eb15"), Z = -g * BigInt("0xe4437ed6010e88286f547fa90abfe4c3"), tt = BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"), rt = Q, at = BigInt("0x100000000000000000000000000000000"), ut = B(rt * q, V), bt = B(-Z * q, V), pt = (0, a.mod)(q - ut * Q - bt * tt, V), ot = (0, a.mod)(-ut * Z - bt * rt, V), gt = pt > at, W = ot > at;
                        if (gt && (pt = V - pt), W && (ot = V - ot), pt > at || ot > at) throw new Error("splitScalar: Endomorphism failed, k=" + q);
                        return {
                            k1neg: gt,
                            k1: pt,
                            k2neg: W,
                            k2: ot
                        };
                    }
                }
            }, o.sha256);
            var w = BigInt(0), S = function(q) {
                return typeof q == "bigint" && w < q && q < f;
            }, b = function(q) {
                return typeof q == "bigint" && w < q && q < p;
            }, k = {};
            function F(q) {
                for(var V = [], Q = 1; Q < arguments.length; Q++)V[Q - 1] = arguments[Q];
                var Z = k[q];
                if (Z === void 0) {
                    var tt = (0, o.sha256)(Uint8Array.from(q, function(rt) {
                        return rt.charCodeAt(0);
                    }));
                    Z = (0, s.concatBytes)(tt, tt), k[q] = Z;
                }
                return (0, o.sha256)(s.concatBytes.apply(void 0, e([
                    Z
                ], t(V), !1)));
            }
            var Y = function(q) {
                return q.toRawBytes(!0).slice(1);
            };
            n.secp256k1PointToBytes = Y;
            var K = function(q) {
                return (0, s.numberToBytesBE)(q, 32);
            }, J = function(q) {
                return (0, a.mod)(q, f);
            }, P = function(q) {
                return (0, a.mod)(q, p);
            }, T = n.secp256k1.ProjectivePoint;
            n.Secp256k1Point = n.secp256k1.ProjectivePoint;
            var E = function(q, V, Q) {
                return T.BASE.multiplyAndAddUnsafe(q, V, Q);
            };
            function N(q) {
                var V = n.secp256k1.utils.normPrivateKeyToScalar(q), Q = T.fromPrivateKey(V), Z = Q.hasEvenY() ? V : P(-V);
                return {
                    scalar: Z,
                    bytes: Y(Q)
                };
            }
            function y(q) {
                if (!S(q)) throw new Error("bad x: need 0 < x < p");
                var V = J(q * q), Q = J(V * q + BigInt(7)), Z = I(Q);
                Z % h !== w && (Z = J(-Z));
                var tt = new T(q, Z, g);
                return tt.assertValidity(), tt;
            }
            function O() {
                for(var q = [], V = 0; V < arguments.length; V++)q[V] = arguments[V];
                return P((0, s.bytesToNumberBE)(F.apply(void 0, e([
                    "BIP0340/challenge"
                ], t(q), !1))));
            }
            function m(q) {
                return N(q).bytes;
            }
            function R(q, V, Q) {
                Q === void 0 && (Q = (0, _.randomBytes)(32));
                var Z = (0, s.ensureBytes)("message", q), tt = N(V), rt = tt.bytes, at = tt.scalar, ut = (0, s.ensureBytes)("auxRand", Q, 32), bt = K(at ^ (0, s.bytesToNumberBE)(F("BIP0340/aux", ut))), pt = F("BIP0340/nonce", bt, rt, Z), ot = P((0, s.bytesToNumberBE)(pt));
                if (ot === w) throw new Error("sign failed: k is zero");
                var gt = N(ot), W = gt.bytes, G = gt.scalar, et = O(W, rt, Z), ct = new Uint8Array(64);
                if (ct.set(W, 0), ct.set(K(P(G + et * at)), 32), !v(ct, Z, rt)) throw new Error("sign: Invalid signature produced");
                return ct;
            }
            function v(q, V, Q) {
                var Z = (0, s.ensureBytes)("signature", q, 64), tt = (0, s.ensureBytes)("message", V), rt = (0, s.ensureBytes)("publicKey", Q, 32);
                try {
                    var at = y((0, s.bytesToNumberBE)(rt)), ut = (0, s.bytesToNumberBE)(Z.subarray(0, 32));
                    if (!S(ut)) return !1;
                    var bt = (0, s.bytesToNumberBE)(Z.subarray(32, 64));
                    if (!b(bt)) return !1;
                    var pt = O(K(ut), Y(at), tt), ot = E(at, bt, P(-pt));
                    return !(!ot || !ot.hasEvenY() || ot.toAffine().x !== ut);
                } catch  {
                    return !1;
                }
            }
            n.signSchnorr = R, n.verifySchnorr = v, n.schnorr = (function() {
                return {
                    getPublicKey: m,
                    sign: R,
                    verify: v,
                    utils: {
                        randomPrivateKey: n.secp256k1.utils.randomPrivateKey,
                        lift_x: y,
                        pointToBytes: Y,
                        numberToBytesBE: s.numberToBytesBE,
                        bytesToNumberBE: s.bytesToNumberBE,
                        taggedHash: F,
                        mod: a.mod
                    }
                };
            })();
            var A = (function() {
                return (0, u.isogenyMap)(j, [
                    [
                        "0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7",
                        "0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581",
                        "0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262",
                        "0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"
                    ],
                    [
                        "0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b",
                        "0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14",
                        "0x0000000000000000000000000000000000000000000000000000000000000001"
                    ],
                    [
                        "0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c",
                        "0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3",
                        "0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931",
                        "0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"
                    ],
                    [
                        "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b",
                        "0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573",
                        "0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f",
                        "0x0000000000000000000000000000000000000000000000000000000000000001"
                    ]
                ].map(function(q) {
                    return q.map(function(V) {
                        return BigInt(V);
                    });
                }));
            })(), X = (function() {
                return (0, c.mapToCurveSimpleSWU)(j, {
                    A: BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),
                    B: BigInt("1771"),
                    Z: j.create(BigInt("-11"))
                });
            })(), C = (function() {
                return (0, u.createHasher)(n.secp256k1.ProjectivePoint, function(q) {
                    var V = X(j.create(q[0])), Q = V.x, Z = V.y;
                    return A(Q, Z);
                }, {
                    DST: "secp256k1_XMD:SHA-256_SSWU_RO_",
                    encodeDST: "secp256k1_XMD:SHA-256_SSWU_NU_",
                    p: j.ORDER,
                    m: 1,
                    k: 128,
                    expand: "xmd",
                    hash: o.sha256
                });
            })();
            n.hashToCurve = (function() {
                return C.hashToCurve;
            })(), n.encodeToCurve = (function() {
                return C.encodeToCurve;
            })();
            function H(q, V, Q) {
                return n.secp256k1.sign(q, V, {
                    extraEntropy: Q
                }).toCompactRawBytes();
            }
            n.signSecp256k1 = H;
            var U = {
                lowS: !0,
                prehash: !1
            };
            function L(q, V, Q) {
                return n.secp256k1.verify(q, V, Q, U);
            }
            n.verifySecp256k1 = L;
        })(pd)), pd;
    }
    var Z4;
    function V4t() {
        if (Z4) return gd;
        Z4 = 1, Object.defineProperty(gd, "__esModule", {
            value: !0
        }), gd.verifySchnorrSecp256k1Signature = gd.verifyEcdsaSecp256k1Signature = void 0;
        var n = K4t();
        function t(o, _, a) {
            if (!(o instanceof Uint8Array && _ instanceof Uint8Array && a instanceof Uint8Array && o.length === 33 && _.length === 32 && a.length === 64)) throw new TypeError("invalid arguments passed to 'verifyEcdsaSecp256k1Signature'");
            var c = o[0];
            if (!(c === 2 || c === 3)) throw new Error("plutus-machine only supports compressed public keys for 'verifyEcdsaSecp256k1Signature'");
            return (0, n.verifySecp256k1)(a, _, o);
        }
        gd.verifyEcdsaSecp256k1Signature = t;
        function e(o, _, a) {
            if (!(o instanceof Uint8Array && _ instanceof Uint8Array && a instanceof Uint8Array && o.length === 32 && a.length === 64)) throw new TypeError("invalid arguments passed to 'verifyEcdsaSecp256k1Signature'");
            return (0, n.verifySchnorr)(a, _, o);
        }
        return gd.verifySchnorrSecp256k1Signature = e, gd;
    }
    var xf = {}, jf = {}, Y4;
    function t9() {
        if (Y4) return jf;
        Y4 = 1, Object.defineProperty(jf, "__esModule", {
            value: !0
        }), jf.rotr32 = void 0;
        function n(t, e) {
            return t >>> e | t << 32 - e | 0;
        }
        return jf.rotr32 = n, jf;
    }
    var W4;
    function Z4t() {
        if (W4) return xf;
        W4 = 1, Object.defineProperty(xf, "__esModule", {
            value: !0
        }), xf.sha2_256 = void 0;
        var n = ve(), t = uc(), e = t9();
        function o(u) {
            var l = u.length * 8, f = u.slice();
            f.push(128);
            var p = 64 - f.length % 64 - 8;
            p < 0 && (p += 64);
            for(var g = 0; g < p; g++)f.push(0);
            return f.push(0), f.push(0), f.push(0), f.push(0), f.push(l >> 24 & 255), f.push(l >> 16 & 255), f.push(l >> 8 & 255), f.push(l >> 0 & 255), f;
        }
        var _ = [
            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
        ];
        function a(u) {
            return (0, e.rotr32)(u, 7) ^ (0, e.rotr32)(u, 18) ^ u >>> 3;
        }
        function c(u) {
            return (0, e.rotr32)(u, 17) ^ (0, e.rotr32)(u, 19) ^ u >>> 10;
        }
        function s(u) {
            (0, n.isUint8Array)(u) && (u = (0, t.buffToByteArr)(u));
            var l = [
                1779033703,
                3144134277,
                1013904242,
                2773480762,
                1359893119,
                2600822924,
                528734635,
                1541459225
            ];
            u = o(u);
            for(var f = 0; f < u.length; f += 64){
                for(var p = u.slice(f, f + 64), g = new Array(64).fill(0), h = 0; h < 16; h++)g[h] = p[h * 4 + 0] << 24 | p[h * 4 + 1] << 16 | p[h * 4 + 2] << 8 | p[h * 4 + 3];
                for(var h = 16; h < 64; h++)g[h] = g[h - 16] + a(g[h - 15]) + g[h - 7] + c(g[h - 2]) | 0;
                for(var B = l[0], I = l[1], j = l[2], w = l[3], S = l[4], b = l[5], k = l[6], F = l[7], h = 0; h < 64; h++){
                    var Y = (0, e.rotr32)(S, 6) ^ (0, e.rotr32)(S, 11) ^ (0, e.rotr32)(S, 25), K = S & b ^ ~S & k, J = F + Y + K + _[h] + g[h] | 0, P = (0, e.rotr32)(B, 2) ^ (0, e.rotr32)(B, 13) ^ (0, e.rotr32)(B, 22), T = B & I ^ B & j ^ I & j, E = P + T | 0;
                    F = k, k = b, b = S, S = w + J | 0, w = j, j = I, I = B, B = J + E | 0;
                }
                l[0] = l[0] + B | 0, l[1] = l[1] + I | 0, l[2] = l[2] + j | 0, l[3] = l[3] + w | 0, l[4] = l[4] + S | 0, l[5] = l[5] + b | 0, l[6] = l[6] + k | 0, l[7] = l[7] + F | 0;
            }
            for(var N = [], h = 0; h < 8; h++){
                var y = l[h];
                N.push(y >> 24 & 255), N.push(y >> 16 & 255), N.push(y >> 8 & 255), N.push(y >> 0 & 255);
            }
            return new Uint8Array(N);
        }
        return xf.sha2_256 = s, xf;
    }
    var zo = {}, J4;
    function Y4t() {
        if (J4) return zo;
        J4 = 1;
        var n = zo && zo.__read || function(I, j) {
            var w = typeof Symbol == "function" && I[Symbol.iterator];
            if (!w) return I;
            var S = w.call(I), b, k = [], F;
            try {
                for(; (j === void 0 || j-- > 0) && !(b = S.next()).done;)k.push(b.value);
            } catch (Y) {
                F = {
                    error: Y
                };
            } finally{
                try {
                    b && !b.done && (w = S.return) && w.call(S);
                } finally{
                    if (F) throw F.error;
                }
            }
            return k;
        }, t = zo && zo.__spreadArray || function(I, j, w) {
            if (w || arguments.length === 2) for(var S = 0, b = j.length, k; S < b; S++)(k || !(S in j)) && (k || (k = Array.prototype.slice.call(j, 0, S)), k[S] = j[S]);
            return I.concat(k || Array.prototype.slice.call(j));
        };
        Object.defineProperty(zo, "__esModule", {
            value: !0
        }), zo.sha3 = void 0;
        var e = uc(), o = uc(), _ = ve(), a = gu(), c = 200, s = 136, u = c - s;
        function l(I) {
            var j = I.slice(), w = s - 2 - j.length % s;
            if (w < -1 && (w += s - 2), w == -1) j.push(134);
            else {
                j.push(6);
                for(var S = 0; S < w; S++)j.push(0);
                j.push(128);
            }
            return (0, a.assert)(j.length % s === 0, "wrong destination length"), j;
        }
        var f = Object.freeze([
            6,
            12,
            18,
            24,
            3,
            9,
            10,
            16,
            22,
            1,
            7,
            13,
            19,
            20,
            4,
            5,
            11,
            17,
            23,
            2,
            8,
            14,
            15,
            21
        ]), p = Object.freeze([
            -12,
            -11,
            21,
            14,
            28,
            20,
            3,
            -13,
            -29,
            1,
            6,
            25,
            8,
            18,
            27,
            -4,
            10,
            15,
            -24,
            -30,
            -23,
            -7,
            -9,
            2
        ]), g = Object.freeze([
            (0, o.uint64)("0x0000000000000001"),
            (0, o.uint64)("0x0000000000008082"),
            (0, o.uint64)("0x800000000000808a"),
            (0, o.uint64)("0x8000000080008000"),
            (0, o.uint64)("0x000000000000808b"),
            (0, o.uint64)("0x0000000080000001"),
            (0, o.uint64)("0x8000000080008081"),
            (0, o.uint64)("0x8000000000008009"),
            (0, o.uint64)("0x000000000000008a"),
            (0, o.uint64)("0x0000000000000088"),
            (0, o.uint64)("0x0000000080008009"),
            (0, o.uint64)("0x000000008000000a"),
            (0, o.uint64)("0x000000008000808b"),
            (0, o.uint64)("0x800000000000008b"),
            (0, o.uint64)("0x8000000000008089"),
            (0, o.uint64)("0x8000000000008003"),
            (0, o.uint64)("0x8000000000008002"),
            (0, o.uint64)("0x8000000000000080"),
            (0, o.uint64)("0x000000000000800a"),
            (0, o.uint64)("0x800000008000000a"),
            (0, o.uint64)("0x8000000080008081"),
            (0, o.uint64)("0x8000000000008080"),
            (0, o.uint64)("0x0000000080000001"),
            (0, o.uint64)("0x8000000080008008")
        ]);
        function h(I) {
            for(var j = new Array(5), w = new Array(25), S = 0; S < 24; S++){
                for(var b = 0; b < 5; b++)j[b] = (0, o.uint64)(I[b] ^ I[b + 5] ^ I[b + 10] ^ I[b + 15] ^ I[b + 20]);
                for(var b = 0; b < 5; b++)for(var k = (0, o.uint64)(j[(b + 4) % 5] ^ (0, o.uint64Rotr)(j[(b + 1) % 5], 63)), F = 0; F < 5; F++)I[b + 5 * F] = (0, o.uint64)(I[b + 5 * F] ^ k);
                w[0] = I[0];
                for(var b = 1; b < 25; b++){
                    var Y = f[b - 1], K = Math.abs(p[b - 1]), J = 32 - K;
                    p[b - 1] < 0 ? w[b] = (0, o.uint64Rotr)(I[Y], J) : w[b] = (0, o.uint64Rotr)(I[Y], J + 32);
                }
                for(var b = 0; b < 5; b++)for(var F = 0; F < 5; F++)I[b * 5 + F] = (0, o.uint64)(w[b * 5 + F] ^ ~w[b * 5 + (F + 1) % 5] & w[b * 5 + (F + 2) % 5]);
                I[0] = I[0] ^ g[S];
            }
        }
        function B(I) {
            (0, _.isUint8Array)(I) && (I = (0, e.buffToByteArr)(I)), I = l(I);
            for(var j = new Array(c / 8).fill((0, o.uint64)(0)), w = 0; w < I.length; w += s){
                for(var S = I.slice(w, w + s).concat(new Array(u).fill(0)), b = 0; b < c; b += 8)j[b / 8] = (0, o.uint64)(j[b / 8] ^ (0, o.uint64)("0x" + (0, o.byteArrToHex)(S.slice(b, b + 8).reverse())));
                h(j);
            }
            for(var k = [], b = 0; b < 4; b++)k.push.apply(k, t([], n((0, o.uint64ToBytesLE)(j[b])), !1));
            return k;
        }
        return zo.sha3 = B, zo;
    }
    var bd = {}, X4;
    function W4t() {
        return X4 || (X4 = 1, (function(n) {
            var t = bd && bd.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = bd && bd.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(Zx(), n), e(Xx(), n), e(t9(), n);
        })(bd)), bd;
    }
    var m_ = {}, Q4;
    function J4t() {
        if (Q4) return m_;
        Q4 = 1;
        var n = m_ && m_.__read || function(f, p) {
            var g = typeof Symbol == "function" && f[Symbol.iterator];
            if (!g) return f;
            var h = g.call(f), B, I = [], j;
            try {
                for(; (p === void 0 || p-- > 0) && !(B = h.next()).done;)I.push(B.value);
            } catch (w) {
                j = {
                    error: w
                };
            } finally{
                try {
                    B && !B.done && (g = h.return) && g.call(h);
                } finally{
                    if (j) throw j.error;
                }
            }
            return I;
        };
        Object.defineProperty(m_, "__esModule", {
            value: !0
        }), m_.vrf_ed25519_sha512_ell2_challenge_generation = m_.vrf_ed25519_sha512_ell2_nonce_generation = m_.vrf_ed25519_sha512_ell2_hash_to_curve = m_.vrf_ed25519_sha512_ell2_prove = void 0;
        var t = Qx(), e = bh(), o = 3, _ = 1, a = 2;
        function c(f, p) {
            var g = n((0, t.extendEd25519PrivateKey)(f), 2), h = g[0], B = g[1], I = new Uint8Array((0, t.deriveEd25519PublicKey)(Array.from(f))), j = s(I, p), w = (0, t.pointFromBytes)(j), S = (0, t.scalarMul)(w, h), b = (0, t.bigpointToUint8Array)(S), k = u(B, j), F = (0, t.bigpointToUint8Array)((0, t.scalarMultBase)(k)), Y = (0, t.bigpointToUint8Array)((0, t.scalarMul)(w, k)), K = (0, t.scalarFromBytes)(l(j, b, F, Y)), J = k + K * h;
            return {
                gamma: S,
                challange: K,
                response: J
            };
        }
        m_.vrf_ed25519_sha512_ell2_prove = c;
        function s(f, p) {
            var g = new Uint8Array(2 + f.length + p.length);
            return g[0] = o, g[1] = _, g.set(f, 2), g.set(p, 2 + f.length), (0, e.sha2_512)(g);
        }
        m_.vrf_ed25519_sha512_ell2_hash_to_curve = s;
        function u(f, p) {
            var g = new Uint8Array(64);
            return g.set(f, 0), g.set(p, 32), (0, t.scalarFromBytes)((0, e.sha2_512)(g));
        }
        m_.vrf_ed25519_sha512_ell2_nonce_generation = u;
        function l(f, p, g, h) {
            var B = new Uint8Array(2 + f.length + p.length + g.length + h.length);
            return B[0] = o, B[1] = a, B.set(f, 2), B.set(p, 2 + f.length), B.set(g, 2 + f.length + p.length), B.set(h, 2 + f.length + p.length + g.length), (0, e.sha2_512)(B).slice(0, 16);
        }
        return m_.vrf_ed25519_sha512_ell2_challenge_generation = l, m_;
    }
    var Sf = {}, qo = {}, $4;
    function X4t() {
        if ($4) return qo;
        $4 = 1;
        var n = qo && qo.__extends || (function() {
            var K = function(J, P) {
                return K = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(T, E) {
                    T.__proto__ = E;
                } || function(T, E) {
                    for(var N in E)Object.prototype.hasOwnProperty.call(E, N) && (T[N] = E[N]);
                }, K(J, P);
            };
            return function(J, P) {
                if (typeof P != "function" && P !== null) throw new TypeError("Class extends value " + String(P) + " is not a constructor or null");
                K(J, P);
                function T() {
                    this.constructor = J;
                }
                J.prototype = P === null ? Object.create(P) : (T.prototype = P.prototype, new T);
            };
        })(), t = qo && qo.__values || function(K) {
            var J = typeof Symbol == "function" && Symbol.iterator, P = J && K[J], T = 0;
            if (P) return P.call(K);
            if (K && typeof K.length == "number") return {
                next: function() {
                    return K && T >= K.length && (K = void 0), {
                        value: K && K[T++],
                        done: !K
                    };
                }
            };
            throw new TypeError(J ? "Object is not iterable." : "Symbol.iterator is not defined.");
        }, e, o;
        Object.defineProperty(qo, "__esModule", {
            value: !0
        }), qo.RIPEMD160 = void 0;
        for(var _ = gh(), a = Qi(), c = new Uint8Array([
            7,
            4,
            13,
            1,
            10,
            6,
            15,
            3,
            12,
            0,
            9,
            5,
            2,
            14,
            11,
            8
        ]), s = new Uint8Array(new Array(16).fill(0).map(function(K, J) {
            return J;
        })), u = s.map(function(K) {
            return (9 * K + 5) % 16;
        }), l = [
            s
        ], f = [
            u
        ], p = 0; p < 4; p++)try {
            for(var g = (e = void 0, t([
                l,
                f
            ])), h = g.next(); !h.done; h = g.next()){
                var B = h.value;
                B.push(B[p].map(function(K) {
                    return c[K];
                }));
            }
        } catch (K) {
            e = {
                error: K
            };
        } finally{
            try {
                h && !h.done && (o = g.return) && o.call(g);
            } finally{
                if (e) throw e.error;
            }
        }
        var I = [
            [
                11,
                14,
                15,
                12,
                5,
                8,
                7,
                9,
                11,
                13,
                14,
                15,
                6,
                7,
                9,
                8
            ],
            [
                12,
                13,
                11,
                15,
                6,
                9,
                9,
                7,
                12,
                15,
                11,
                13,
                7,
                8,
                7,
                7
            ],
            [
                13,
                15,
                14,
                11,
                7,
                7,
                6,
                8,
                13,
                14,
                13,
                12,
                5,
                5,
                6,
                9
            ],
            [
                14,
                11,
                12,
                14,
                8,
                6,
                5,
                5,
                15,
                12,
                15,
                14,
                9,
                9,
                8,
                6
            ],
            [
                15,
                12,
                13,
                13,
                9,
                5,
                8,
                6,
                14,
                11,
                12,
                11,
                8,
                6,
                5,
                5
            ]
        ].map(function(K) {
            return new Uint8Array(K);
        }), j = l.map(function(K, J) {
            return K.map(function(P) {
                return I[J][P];
            });
        }), w = f.map(function(K, J) {
            return K.map(function(P) {
                return I[J][P];
            });
        }), S = new Uint32Array([
            0,
            1518500249,
            1859775393,
            2400959708,
            2840853838
        ]), b = new Uint32Array([
            1352829926,
            1548603684,
            1836072691,
            2053994217,
            0
        ]);
        function k(K, J, P, T) {
            return K === 0 ? J ^ P ^ T : K === 1 ? J & P | ~J & T : K === 2 ? (J | ~P) ^ T : K === 3 ? J & T | P & ~T : J ^ (P | ~T);
        }
        var F = new Uint32Array(16), Y = (function(K) {
            n(J, K);
            function J() {
                var P = K.call(this, 64, 20, 8, !0) || this;
                return P.h0 = 1732584193, P.h1 = -271733879, P.h2 = -1732584194, P.h3 = 271733878, P.h4 = -1009589776, P;
            }
            return J.prototype.get = function() {
                var P = this, T = P.h0, E = P.h1, N = P.h2, y = P.h3, O = P.h4;
                return [
                    T,
                    E,
                    N,
                    y,
                    O
                ];
            }, J.prototype.set = function(P, T, E, N, y) {
                this.h0 = P | 0, this.h1 = T | 0, this.h2 = E | 0, this.h3 = N | 0, this.h4 = y | 0;
            }, J.prototype.process = function(P, T) {
                for(var E = 0; E < 16; E++, T += 4)F[E] = P.getUint32(T, !0);
                for(var N = this.h0 | 0, y = N, O = this.h1 | 0, m = O, R = this.h2 | 0, v = R, A = this.h3 | 0, X = A, C = this.h4 | 0, H = C, U = 0; U < 5; U++){
                    for(var L = 4 - U, q = S[U], V = b[U], Q = l[U], Z = f[U], tt = j[U], rt = w[U], E = 0; E < 16; E++){
                        var at = (0, a.rotl)(N + k(U, O, R, A) + F[Q[E]] + q, tt[E]) + C | 0;
                        N = C, C = A, A = (0, a.rotl)(R, 10) | 0, R = O, O = at;
                    }
                    for(var E = 0; E < 16; E++){
                        var ut = (0, a.rotl)(y + k(L, m, v, X) + F[Z[E]] + V, rt[E]) + H | 0;
                        y = H, H = X, X = (0, a.rotl)(v, 10) | 0, v = m, m = ut;
                    }
                }
                this.set(this.h1 + R + X | 0, this.h2 + A + H | 0, this.h3 + C + y | 0, this.h4 + N + m | 0, this.h0 + O + v | 0);
            }, J.prototype.roundClean = function() {
                F.fill(0);
            }, J.prototype.destroy = function() {
                this.destroyed = !0, this.buffer.fill(0), this.set(0, 0, 0, 0, 0);
            }, J;
        })(_.HashMD);
        return qo.RIPEMD160 = Y, qo;
    }
    var tI;
    function Q4t() {
        if (tI) return Sf;
        tI = 1, Object.defineProperty(Sf, "__esModule", {
            value: !0
        }), Sf.ripemd160 = void 0;
        var n = ve(), t = X4t();
        function e(_) {
            if (typeof _ == "string" && (_.startsWith("0x") ? _ = (0, n.fromHex)(_.toLowerCase().slice(2)) : o(_) ? _ = (0, n.fromHex)(_.toLowerCase()) : _ = (0, n.fromUtf8)(_)), !(_ instanceof Uint8Array)) throw new Error("ripemd160: input must be Uint8Array or string");
            return new t.RIPEMD160().update(_).digest();
        }
        Sf.ripemd160 = e;
        function o(_) {
            return /^[0-9A-Fa-f]*$/.test(_);
        }
        return Sf;
    }
    var eI;
    function $4t() {
        return eI || (eI = 1, (function(n) {
            var t = ud && ud.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = ud && ud.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(T4t(), n), e(P4t(), n), e(L4t(), n), e(Qx(), n), e(D4t(), n), e(G4t(), n), e(V4t(), n), e(Z4t(), n), e(bh(), n), e(Y4t(), n), e(uc(), n), e(W4t(), n), e(J4t(), n), e(Q4t(), n);
        })(ud)), ud;
    }
    var rI;
    function tIt() {
        if (rI) return yf;
        rI = 1, Object.defineProperty(yf, "__esModule", {
            value: !0
        }), yf.hashData = void 0;
        var n = $4t(), t = fu(), e = Vx();
        function o(_) {
            if (!(0, t.isData)(_)) throw new Error("hashData only works with Data");
            return (0, n.blake2b_256)((0, e.dataToCbor)(_).toBuffer());
        }
        return yf.hashData = o, yf;
    }
    var iw = {}, nI;
    function eIt() {
        return nI || (nI = 1, Object.defineProperty(iw, "__esModule", {
            value: !0
        })), iw;
    }
    var _I;
    function Kl() {
        return _I || (_I = 1, (function(n) {
            var t = Cc && Cc.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = Cc && Cc.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(fu(), n), e(np(), n), e(_p(), n), e(ap(), n), e(op(), n), e(sp(), n), e(ip(), n), e(F4t(), n), e(A4t(), n), e(Vx(), n), e(tIt(), n), e(eIt(), n);
        })(Cc)), Cc;
    }
    var wd = {}, fn = {}, Fe = {}, I_ = {}, aI;
    function lp() {
        if (aI) return I_;
        aI = 1;
        var n = I_ && I_.__read || function(a, c) {
            var s = typeof Symbol == "function" && a[Symbol.iterator];
            if (!s) return a;
            var u = s.call(a), l, f = [], p;
            try {
                for(; (c === void 0 || c-- > 0) && !(l = u.next()).done;)f.push(l.value);
            } catch (g) {
                p = {
                    error: g
                };
            } finally{
                try {
                    l && !l.done && (s = u.return) && s.call(u);
                } finally{
                    if (p) throw p.error;
                }
            }
            return f;
        }, t = I_ && I_.__spreadArray || function(a, c, s) {
            if (s || arguments.length === 2) for(var u = 0, l = c.length, f; u < l; u++)(f || !(u in c)) && (f || (f = Array.prototype.slice.call(c, 0, u)), f[u] = c[u]);
            return a.concat(f || Array.prototype.slice.call(c));
        };
        Object.defineProperty(I_, "__esModule", {
            value: !0
        }), I_.assertBytes = I_.assertPostiveInteger = I_.assert = void 0;
        function e(a, c, s) {
            for(var u = [], l = 3; l < arguments.length; l++)u[l - 3] = arguments[l];
            if (!a) throw u.length > 0 && console.error.apply(console, t([], n(u), !1)), s && console.error(s), c instanceof Error ? c : new Error(c);
        }
        I_.assert = e;
        function o(a) {
            if (!Number.isSafeInteger(a) || a < 0) throw new Error("positive integer expected, not ".concat(a));
        }
        I_.assertPostiveInteger = o;
        function _(a) {
            if (!(a instanceof Uint8Array)) throw new Error("Uint8Array expected");
        }
        return I_.assertBytes = _, I_;
    }
    var oI;
    function gl() {
        if (oI) return Fe;
        oI = 1, Object.defineProperty(Fe, "__esModule", {
            value: !0
        }), Fe.uint64Rotr = Fe.uint64ToBytesBE = Fe.uint64ToBytesLE = Fe.isUint64 = Fe.forceUint64 = Fe.uint64 = Fe.buffToUint5Arr = Fe.byteArrToBin = Fe.byteArrToHex = Fe.buffToByteArr = Fe.isByteArr = Fe.isByte = Fe.byte = Fe.isUint6 = Fe.isUint5 = void 0;
        var n = ve(), t = lp();
        function e(w) {
            return typeof w == "number" && w >= 0 && w <= 31 && w === Math.round(w);
        }
        Fe.isUint5 = e;
        function o(w) {
            return typeof w == "number" && w >= 0 && w <= 63 && w === Math.round(w);
        }
        Fe.isUint6 = o;
        function _(w) {
            return Number(w) & 255;
        }
        Fe.byte = _;
        function a(w) {
            return typeof w == "number" && w >= 0 && w <= 255 && w === Math.round(w);
        }
        Fe.isByte = a;
        function c(w) {
            return Array.isArray(w) && w.every(a);
        }
        Fe.isByteArr = c;
        function s(w) {
            if (!(0, n.isUint8Array)(w)) {
                if (c(w)) return w.slice();
                throw new Error("can't convert non-buffer to byte array");
            }
            return Array.from(w);
        }
        Fe.buffToByteArr = s;
        function u(w) {
            return w instanceof Uint8Array && (w = Array.from(w)), w.reduce(function(S, b) {
                return S + b.toString(16).slice(0, 2).padStart(2, "0");
            }, "");
        }
        Fe.byteArrToHex = u;
        function l(w) {
            return w.reduce(function(S, b) {
                return S + b.toString(2).slice(0, 8).padStart(8, "0");
            }, "");
        }
        Fe.byteArrToBin = l;
        function f(w) {
            var S = [], b = (0, n.isUint8Array)(w) ? Array.from(w).reduce(function(Y, K) {
                return Y + K.toString(2).padStart(8, "0");
            }, "") : c(w) ? l(w) : void 0;
            if (b === void 0) throw new Error("invalid input to convert ot uint5 array");
            var k = b.length % 5;
            k !== 0 && (b = b.padEnd(b.length + (5 - k), "0")), b = b.split("");
            for(var F = 0; F < b.length;)S.push(Number("0b".concat(b[F++]).concat(b[F++]).concat(b[F++]).concat(b[F++]).concat(b[F++])));
            return S;
        }
        Fe.buffToUint5Arr = f;
        function p(w) {
            var S = BigInt(w);
            if (!h(S)) throw new Error("can't convert " + w + " to uint64");
            return S;
        }
        Fe.uint64 = p;
        function g(w) {
            return BigInt(w) & BigInt("0x" + "ff".repeat(8));
        }
        Fe.forceUint64 = g;
        function h(w) {
            return typeof w == "bigint" && w >= BigInt(0) && w < BigInt("0x1" + "00".repeat(8));
        }
        Fe.isUint64 = h;
        function B(w) {
            return [
                _(BigInt("0x00000000000000ff") & w),
                _((BigInt("0x000000000000ff00") & w) >> BigInt(8)),
                _((BigInt("0x0000000000ff0000") & w) >> BigInt(16)),
                _((BigInt("0x00000000ff000000") & w) >> BigInt(24)),
                _((BigInt("0x000000ff00000000") & w) >> BigInt(32)),
                _((BigInt("0x0000ff0000000000") & w) >> BigInt(40)),
                _((BigInt("0x00ff000000000000") & w) >> BigInt(48)),
                _((BigInt("0xff00000000000000") & w) >> BigInt(56))
            ];
        }
        Fe.uint64ToBytesLE = B;
        function I(w) {
            return B(w).reverse();
        }
        Fe.uint64ToBytesBE = I;
        function j(w, S) {
            if ((0, t.assert)(h(w) && o(S), "invalid args for 'uint64And'"), S === 0) return w;
            var b = BigInt(S);
            return g(g(w >> b) | g(w << BigInt(64) - b));
        }
        return Fe.uint64Rotr = j, Fe;
    }
    var sw = {}, iI;
    function e9() {
        return iI || (iI = 1, (function(n) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.decodeBase32Bech32 = n.decodeBase32rfc4648 = n.encodeBase32rfc4648 = n.BECH32_BASE32_ALPHABET = n.rfc4648_ALPHABET = void 0;
            var t = gl(), e = f_();
            n.rfc4648_ALPHABET = Object.freeze([
                "a",
                "b",
                "c",
                "d",
                "e",
                "f",
                "g",
                "h",
                "i",
                "j",
                "k",
                "l",
                "m",
                "n",
                "o",
                "p",
                "q",
                "r",
                "s",
                "t",
                "u",
                "v",
                "w",
                "x",
                "y",
                "z",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7"
            ]), n.BECH32_BASE32_ALPHABET = Object.freeze([
                "q",
                "p",
                "z",
                "r",
                "y",
                "9",
                "x",
                "8",
                "g",
                "f",
                "2",
                "t",
                "v",
                "d",
                "w",
                "0",
                "s",
                "3",
                "j",
                "n",
                "5",
                "4",
                "k",
                "h",
                "c",
                "e",
                "6",
                "m",
                "u",
                "a",
                "7",
                "l"
            ]);
            function o(s) {
                return (0, t.buffToUint5Arr)(s).map(function(u) {
                    return n.rfc4648_ALPHABET[u];
                }).join("");
            }
            n.encodeBase32rfc4648 = o;
            function _(s, u) {
                if (!Array.from(s).every(function(j) {
                    return u.includes(j);
                })) throw new Error("can't decode base32 a string that is not in base32 (rfc 4648); string was: " + s);
                for(var l = s.length, f = "", p = 0; p < l - 1; p++){
                    var g = u.indexOf(s[p].toLowerCase());
                    f += g.toString(2).padStart(5, "0");
                }
                var h = l * 5 - 8 * Math.floor(l * 5 / 8), B = u.indexOf(s[l - 1].toLowerCase()), I = B.toString(2).padStart(5, "0");
                return f += I.slice(0, 5 - h), e.BitStream.fromBinStr(f).toBuffer().buffer;
            }
            function a(s) {
                return _(s, n.rfc4648_ALPHABET);
            }
            n.decodeBase32rfc4648 = a;
            function c(s) {
                return _(s, n.BECH32_BASE32_ALPHABET);
            }
            n.decodeBase32Bech32 = c;
        })(sw)), sw;
    }
    var sI;
    function rIt() {
        if (sI) return fn;
        sI = 1;
        var n = fn && fn.__values || function(g) {
            var h = typeof Symbol == "function" && Symbol.iterator, B = h && g[h], I = 0;
            if (B) return B.call(g);
            if (g && typeof g.length == "number") return {
                next: function() {
                    return g && I >= g.length && (g = void 0), {
                        value: g && g[I++],
                        done: !g
                    };
                }
            };
            throw new TypeError(h ? "Object is not iterable." : "Symbol.iterator is not defined.");
        };
        Object.defineProperty(fn, "__esModule", {
            value: !0
        }), fn.decodeBech32 = fn.isBech32 = fn.encodeBech32 = fn.getBech32Checksum = fn.getBech32Polymod = fn.expandBech32HumanReadablePart = void 0;
        var t = ve(), e = gl(), o = e9(), _ = lp();
        function a(g) {
            var h, B, I, j, w = [];
            try {
                for(var S = n(g), b = S.next(); !b.done; b = S.next()){
                    var k = b.value;
                    w.push(k.charCodeAt(0) >> 5);
                }
            } catch (K) {
                h = {
                    error: K
                };
            } finally{
                try {
                    b && !b.done && (B = S.return) && B.call(S);
                } finally{
                    if (h) throw h.error;
                }
            }
            w.push(0);
            try {
                for(var F = n(g), Y = F.next(); !Y.done; Y = F.next()){
                    var k = Y.value;
                    w.push(k.charCodeAt(0) & 31);
                }
            } catch (K) {
                I = {
                    error: K
                };
            } finally{
                try {
                    Y && !Y.done && (j = F.return) && j.call(F);
                } finally{
                    if (I) throw I.error;
                }
            }
            return w;
        }
        fn.expandBech32HumanReadablePart = a;
        var c = Object.freeze([
            996825010,
            642813549,
            513874426,
            1027748829,
            705979059
        ]);
        function s(g) {
            var h, B, I = 1;
            try {
                for(var j = n(g), w = j.next(); !w.done; w = j.next()){
                    var S = w.value, b = I >> 25;
                    I = (I & 536870911) << 5 ^ S;
                    for(var k = 0; k < 5; k++)(b >> k & 1) != 0 && (I ^= c[k]);
                }
            } catch (F) {
                h = {
                    error: F
                };
            } finally{
                try {
                    w && !w.done && (B = j.return) && B.call(j);
                } finally{
                    if (h) throw h.error;
                }
            }
            return I;
        }
        fn.getBech32Polymod = s;
        function u(g, h) {
            for(var B = s(a(g).concat(h).concat([
                0,
                0,
                0,
                0,
                0,
                0
            ])) ^ 1, I = [], j = 0; j < 6; j++)I.push(B >> 5 * (5 - j) & 31);
            return I;
        }
        fn.getBech32Checksum = u;
        function l(g, h) {
            (0, _.assert)(g.length > 0, "human-readable-part must have non-zero length");
            var B = (0, e.buffToUint5Arr)((0, t.isUint8Array)(h) ? h : new Uint8Array(h));
            return g + "1" + B.concat(u(g, B)).map(function(I) {
                return o.BECH32_BASE32_ALPHABET[I];
            }).join("");
        }
        fn.encodeBech32 = l;
        function f(g) {
            var h, B, I = g.indexOf("1");
            if (I == -1 || I == 0) return !1;
            var j = g.slice(0, I);
            g = g.slice(I + 1);
            var w = [];
            try {
                for(var S = n(g), b = S.next(); !b.done; b = S.next()){
                    var k = b.value, F = o.BECH32_BASE32_ALPHABET.indexOf(k);
                    if (F == -1) return !1;
                    w.push(F);
                }
            } catch (P) {
                h = {
                    error: P
                };
            } finally{
                try {
                    b && !b.done && (B = S.return) && B.call(S);
                } finally{
                    if (h) throw h.error;
                }
            }
            for(var Y = w.slice(w.length - 6), K = u(j, w.slice(0, w.length - 6)), J = 0; J < 6; J++)if (Y[J] != K[J]) return !1;
            return !0;
        }
        fn.isBech32 = f;
        function p(g) {
            (0, _.assert)(f(g), "invalid bech32 addr");
            var h = g.indexOf("1");
            (0, _.assert)(h != -1, "bech32 address missing the '1' separator");
            var B = g.slice(0, h);
            g = g.slice(h + 1);
            var I = (0, o.decodeBase32Bech32)(g.slice(0, g.length - 6));
            return [
                B,
                Array.from(I)
            ];
        }
        return fn.decodeBech32 = p, fn;
    }
    var k_ = {}, cI;
    function nIt() {
        if (cI) return k_;
        cI = 1, Object.defineProperty(k_, "__esModule", {
            value: !0
        }), k_.blake2b_512 = k_.blake2b_256 = k_.blake2b_224 = k_.blake2b_128 = k_.blake2b = void 0;
        function n(b, k, F) {
            var Y = b[k] + b[F], K = b[k + 1] + b[F + 1];
            Y >= 4294967296 && K++, b[k] = Y, b[k + 1] = K;
        }
        function t(b, k, F, Y) {
            var K = b[k] + F;
            F < 0 && (K += 4294967296);
            var J = b[k + 1] + Y;
            K >= 4294967296 && J++, b[k] = K, b[k + 1] = J;
        }
        function e(b, k) {
            return b[k] ^ b[k + 1] << 8 ^ b[k + 2] << 16 ^ b[k + 3] << 24;
        }
        function o(b, k, F, Y, K, J) {
            var P = u[K], T = u[K + 1], E = u[J], N = u[J + 1];
            n(s, b, k), t(s, b, P, T);
            var y = s[Y] ^ s[b], O = s[Y + 1] ^ s[b + 1];
            s[Y] = O, s[Y + 1] = y, n(s, F, Y), y = s[k] ^ s[F], O = s[k + 1] ^ s[F + 1], s[k] = y >>> 24 ^ O << 8, s[k + 1] = O >>> 24 ^ y << 8, n(s, b, k), t(s, b, E, N), y = s[Y] ^ s[b], O = s[Y + 1] ^ s[b + 1], s[Y] = y >>> 16 ^ O << 16, s[Y + 1] = O >>> 16 ^ y << 16, n(s, F, Y), y = s[k] ^ s[F], O = s[k + 1] ^ s[F + 1], s[k] = O >>> 31 ^ y << 1, s[k + 1] = y >>> 31 ^ O << 1;
        }
        var _ = new Uint32Array([
            4089235720,
            1779033703,
            2227873595,
            3144134277,
            4271175723,
            1013904242,
            1595750129,
            2773480762,
            2917565137,
            1359893119,
            725511199,
            2600822924,
            4215389547,
            528734635,
            327033209,
            1541459225
        ]), a = [
            0,
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14,
            15,
            14,
            10,
            4,
            8,
            9,
            15,
            13,
            6,
            1,
            12,
            0,
            2,
            11,
            7,
            5,
            3,
            11,
            8,
            12,
            0,
            5,
            2,
            15,
            13,
            10,
            14,
            3,
            6,
            7,
            1,
            9,
            4,
            7,
            9,
            3,
            1,
            13,
            12,
            11,
            14,
            2,
            6,
            5,
            10,
            4,
            0,
            15,
            8,
            9,
            0,
            5,
            7,
            2,
            4,
            10,
            15,
            14,
            1,
            11,
            12,
            6,
            8,
            3,
            13,
            2,
            12,
            6,
            10,
            0,
            11,
            8,
            3,
            4,
            13,
            7,
            5,
            15,
            14,
            1,
            9,
            12,
            5,
            1,
            15,
            14,
            13,
            4,
            10,
            0,
            7,
            6,
            3,
            9,
            2,
            8,
            11,
            13,
            11,
            7,
            14,
            12,
            1,
            3,
            9,
            5,
            0,
            15,
            4,
            8,
            6,
            2,
            10,
            6,
            15,
            14,
            9,
            11,
            3,
            0,
            8,
            12,
            2,
            13,
            7,
            1,
            4,
            10,
            5,
            10,
            2,
            8,
            4,
            7,
            6,
            1,
            5,
            15,
            11,
            9,
            14,
            3,
            12,
            13,
            0,
            0,
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14,
            15,
            14,
            10,
            4,
            8,
            9,
            15,
            13,
            6,
            1,
            12,
            0,
            2,
            11,
            7,
            5,
            3
        ], c = new Uint8Array(a.map(function(b) {
            return b * 2;
        })), s = new Uint32Array(32), u = new Uint32Array(32);
        function l(b, k) {
            var F = 0;
            for(F = 0; F < 16; F++)s[F] = b.h[F], s[F + 16] = _[F];
            for(s[24] = s[24] ^ b.t, s[25] = s[25] ^ b.t / 4294967296, k && (s[28] = ~s[28], s[29] = ~s[29]), F = 0; F < 32; F++)u[F] = e(b.b, 4 * F);
            for(F = 0; F < 12; F++)o(0, 8, 16, 24, c[F * 16 + 0], c[F * 16 + 1]), o(2, 10, 18, 26, c[F * 16 + 2], c[F * 16 + 3]), o(4, 12, 20, 28, c[F * 16 + 4], c[F * 16 + 5]), o(6, 14, 22, 30, c[F * 16 + 6], c[F * 16 + 7]), o(0, 10, 20, 30, c[F * 16 + 8], c[F * 16 + 9]), o(2, 12, 22, 24, c[F * 16 + 10], c[F * 16 + 11]), o(4, 14, 16, 26, c[F * 16 + 12], c[F * 16 + 13]), o(6, 8, 18, 28, c[F * 16 + 14], c[F * 16 + 15]);
            for(F = 0; F < 16; F++)b.h[F] = b.h[F] ^ s[F] ^ s[F + 16];
        }
        var f = new Uint8Array(64).fill(0);
        function p(b) {
            var k = {
                b: new Uint8Array(128),
                h: new Uint32Array(16),
                t: 0,
                c: 0,
                digestSize: b
            };
            f.fill(0), f[0] = b, f[2] = 1, f[3] = 1;
            for(var F = 0; F < 16; F++)k.h[F] = _[F] ^ e(f, F * 4);
            return k;
        }
        function g(b, k) {
            for(var F = 0; F < k.length; F++)b.c === 128 && (b.t += b.c, l(b, !1), b.c = 0), b.b[b.c++] = k[F];
        }
        function h(b) {
            for(b.t += b.c; b.c < 128;)b.b[b.c++] = 0;
            l(b, !0);
            for(var k = new Uint8Array(b.digestSize), F = 0; F < b.digestSize; F++)k[F] = b.h[F >> 2] >> 8 * (F & 3);
            return k;
        }
        function B(b, k) {
            k === void 0 && (k = 32), b = new Uint8Array(b);
            var F = p(k);
            return g(F, b), h(F);
        }
        k_.blake2b = B;
        function I(b) {
            return B(b, 16);
        }
        k_.blake2b_128 = I;
        function j(b) {
            return B(b, 28);
        }
        k_.blake2b_224 = j;
        function w(b) {
            return B(b, 32);
        }
        k_.blake2b_256 = w;
        function S(b) {
            return B(b, 64);
        }
        return k_.blake2b_512 = S, k_;
    }
    var Ef = {}, yd = {}, Fr = {}, te = {}, dI;
    function r9() {
        if (dI) return te;
        dI = 1;
        var n = te && te.__read || function(P, T) {
            var E = typeof Symbol == "function" && P[Symbol.iterator];
            if (!E) return P;
            var N = E.call(P), y, O = [], m;
            try {
                for(; (T === void 0 || T-- > 0) && !(y = N.next()).done;)O.push(y.value);
            } catch (R) {
                m = {
                    error: R
                };
            } finally{
                try {
                    y && !y.done && (E = N.return) && E.call(N);
                } finally{
                    if (m) throw m.error;
                }
            }
            return O;
        };
        Object.defineProperty(te, "__esModule", {
            value: !0
        }), te.add5H = te.add5L = te.add4H = te.add4L = te.add3H = te.add3L = te.add = te.rotlBL = te.rotlBH = te.rotlSL = te.rotlSH = te.rotr32L = te.rotr32H = te.rotrBL = te.rotrBH = te.rotrSL = te.rotrSH = te.shrSL = te.shrSH = te.toBig = te.split = te.fromBig = void 0;
        var t = BigInt(Math.pow(2, 32) - 1), e = BigInt(32);
        function o(P, T) {
            return T === void 0 && (T = !1), T ? {
                h: Number(P & t),
                l: Number(P >> e & t)
            } : {
                h: Number(P >> e & t) | 0,
                l: Number(P & t) | 0
            };
        }
        te.fromBig = o;
        function _(P, T) {
            var E;
            T === void 0 && (T = !1);
            for(var N = new Uint32Array(P.length), y = new Uint32Array(P.length), O = 0; O < P.length; O++){
                var m = o(P[O], T), R = m.h, v = m.l;
                E = n([
                    R,
                    v
                ], 2), N[O] = E[0], y[O] = E[1];
            }
            return [
                N,
                y
            ];
        }
        te.split = _;
        var a = function(P, T) {
            return BigInt(P >>> 0) << e | BigInt(T >>> 0);
        };
        te.toBig = a;
        var c = function(P, T, E) {
            return P >>> E;
        };
        te.shrSH = c;
        var s = function(P, T, E) {
            return P << 32 - E | T >>> E;
        };
        te.shrSL = s;
        var u = function(P, T, E) {
            return P >>> E | T << 32 - E;
        };
        te.rotrSH = u;
        var l = function(P, T, E) {
            return P << 32 - E | T >>> E;
        };
        te.rotrSL = l;
        var f = function(P, T, E) {
            return P << 64 - E | T >>> E - 32;
        };
        te.rotrBH = f;
        var p = function(P, T, E) {
            return P >>> E - 32 | T << 64 - E;
        };
        te.rotrBL = p;
        var g = function(P, T) {
            return T;
        };
        te.rotr32H = g;
        var h = function(P, T) {
            return P;
        };
        te.rotr32L = h;
        var B = function(P, T, E) {
            return P << E | T >>> 32 - E;
        };
        te.rotlSH = B;
        var I = function(P, T, E) {
            return T << E | P >>> 32 - E;
        };
        te.rotlSL = I;
        var j = function(P, T, E) {
            return T << E - 32 | P >>> 64 - E;
        };
        te.rotlBH = j;
        var w = function(P, T, E) {
            return P << E - 32 | T >>> 64 - E;
        };
        te.rotlBL = w;
        function S(P, T, E, N) {
            var y = (T >>> 0) + (N >>> 0);
            return {
                h: P + E + (y / Math.pow(2, 32) | 0) | 0,
                l: y | 0
            };
        }
        te.add = S;
        var b = function(P, T, E) {
            return (P >>> 0) + (T >>> 0) + (E >>> 0);
        };
        te.add3L = b;
        var k = function(P, T, E, N) {
            return T + E + N + (P / Math.pow(2, 32) | 0) | 0;
        };
        te.add3H = k;
        var F = function(P, T, E, N) {
            return (P >>> 0) + (T >>> 0) + (E >>> 0) + (N >>> 0);
        };
        te.add4L = F;
        var Y = function(P, T, E, N, y) {
            return T + E + N + y + (P / Math.pow(2, 32) | 0) | 0;
        };
        te.add4H = Y;
        var K = function(P, T, E, N, y) {
            return (P >>> 0) + (T >>> 0) + (E >>> 0) + (N >>> 0) + (y >>> 0);
        };
        te.add5L = K;
        var J = function(P, T, E, N, y, O) {
            return T + E + N + y + O + (P / Math.pow(2, 32) | 0) | 0;
        };
        return te.add5H = J, te;
    }
    var hd = {}, Of = {}, uI;
    function _It() {
        return uI || (uI = 1, Object.defineProperty(Of, "__esModule", {
            value: !0
        }), Of.crypto = void 0, Of.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0), Of;
    }
    var lI;
    function $i() {
        return lI || (lI = 1, (function(n) {
            var t = hd && hd.__awaiter || function(y, O, m, R) {
                function v(A) {
                    return A instanceof m ? A : new m(function(X) {
                        X(A);
                    });
                }
                return new (m || (m = Promise))(function(A, X) {
                    function C(L) {
                        try {
                            U(R.next(L));
                        } catch (q) {
                            X(q);
                        }
                    }
                    function H(L) {
                        try {
                            U(R.throw(L));
                        } catch (q) {
                            X(q);
                        }
                    }
                    function U(L) {
                        L.done ? A(L.value) : v(L.value).then(C, H);
                    }
                    U((R = R.apply(y, O || [])).next());
                });
            }, e = hd && hd.__generator || function(y, O) {
                var m = {
                    label: 0,
                    sent: function() {
                        if (A[0] & 1) throw A[1];
                        return A[1];
                    },
                    trys: [],
                    ops: []
                }, R, v, A, X;
                return X = {
                    next: C(0),
                    throw: C(1),
                    return: C(2)
                }, typeof Symbol == "function" && (X[Symbol.iterator] = function() {
                    return this;
                }), X;
                function C(U) {
                    return function(L) {
                        return H([
                            U,
                            L
                        ]);
                    };
                }
                function H(U) {
                    if (R) throw new TypeError("Generator is already executing.");
                    for(; X && (X = 0, U[0] && (m = 0)), m;)try {
                        if (R = 1, v && (A = U[0] & 2 ? v.return : U[0] ? v.throw || ((A = v.return) && A.call(v), 0) : v.next) && !(A = A.call(v, U[1])).done) return A;
                        switch(v = 0, A && (U = [
                            U[0] & 2,
                            A.value
                        ]), U[0]){
                            case 0:
                            case 1:
                                A = U;
                                break;
                            case 4:
                                return m.label++, {
                                    value: U[1],
                                    done: !1
                                };
                            case 5:
                                m.label++, v = U[1], U = [
                                    0
                                ];
                                continue;
                            case 7:
                                U = m.ops.pop(), m.trys.pop();
                                continue;
                            default:
                                if (A = m.trys, !(A = A.length > 0 && A[A.length - 1]) && (U[0] === 6 || U[0] === 2)) {
                                    m = 0;
                                    continue;
                                }
                                if (U[0] === 3 && (!A || U[1] > A[0] && U[1] < A[3])) {
                                    m.label = U[1];
                                    break;
                                }
                                if (U[0] === 6 && m.label < A[1]) {
                                    m.label = A[1], A = U;
                                    break;
                                }
                                if (A && m.label < A[2]) {
                                    m.label = A[2], m.ops.push(U);
                                    break;
                                }
                                A[2] && m.ops.pop(), m.trys.pop();
                                continue;
                        }
                        U = O.call(y, m);
                    } catch (L) {
                        U = [
                            6,
                            L
                        ], v = 0;
                    } finally{
                        R = A = 0;
                    }
                    if (U[0] & 5) throw U[1];
                    return {
                        value: U[0] ? U[1] : void 0,
                        done: !0
                    };
                }
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.randomBytes = n.wrapXOFConstructorWithOpts = n.wrapConstructorWithOpts = n.wrapConstructor = n.checkOpts = n.Hash = n.concatBytes = n.toBytes = n.asyncLoop = n.nextTick = n.hexToBytes = n.bytesToHex = n.byteSwap32 = n.byteSwapIfBE = n.byteSwap = n.isLE = n.rotl = n.rotr = n.createView = n.u32 = n.u8 = void 0;
            var o = ve(), _ = lp(), a = _It(), c = function(y) {
                return new Uint8Array(y.buffer, y.byteOffset, y.byteLength);
            };
            n.u8 = c;
            var s = function(y) {
                return new Uint32Array(y.buffer, y.byteOffset, Math.floor(y.byteLength / 4));
            };
            n.u32 = s;
            var u = function(y) {
                return new DataView(y.buffer, y.byteOffset, y.byteLength);
            };
            n.createView = u;
            var l = function(y, O) {
                return y << 32 - O | y >>> O;
            };
            n.rotr = l;
            var f = function(y, O) {
                return y << O | y >>> 32 - O >>> 0;
            };
            n.rotl = f, n.isLE = new Uint8Array(new Uint32Array([
                287454020
            ]).buffer)[0] === 68;
            var p = function(y) {
                return y << 24 & 4278190080 | y << 8 & 16711680 | y >>> 8 & 65280 | y >>> 24 & 255;
            };
            n.byteSwap = p, n.byteSwapIfBE = n.isLE ? function(y) {
                return y;
            } : function(y) {
                return (0, n.byteSwap)(y);
            };
            function g(y) {
                for(var O = 0; O < y.length; O++)y[O] = (0, n.byteSwap)(y[O]);
            }
            n.byteSwap32 = g;
            var h = Array.from({
                length: 256
            }, function(y, O) {
                return O.toString(16).padStart(2, "0");
            });
            function B(y) {
                (0, _.assertBytes)(y);
                for(var O = "", m = 0; m < y.length; m++)O += h[y[m]];
                return O;
            }
            n.bytesToHex = B;
            var I = {
                _0: 48,
                _9: 57,
                _A: 65,
                _F: 70,
                _a: 97,
                _f: 102
            };
            function j(y) {
                if (y >= I._0 && y <= I._9) return y - I._0;
                if (y >= I._A && y <= I._F) return y - (I._A - 10);
                if (y >= I._a && y <= I._f) return y - (I._a - 10);
            }
            function w(y) {
                if (typeof y != "string") throw new Error("hex string expected, got " + typeof y);
                var O = y.length, m = O / 2;
                if (O % 2) throw new Error("padded hex string expected, got unpadded hex of length " + O);
                for(var R = new Uint8Array(m), v = 0, A = 0; v < m; v++, A += 2){
                    var X = j(y.charCodeAt(A)), C = j(y.charCodeAt(A + 1));
                    if (X === void 0 || C === void 0) {
                        var H = y[A] + y[A + 1];
                        throw new Error('hex string expected, got non-hex character "' + H + '" at index ' + A);
                    }
                    R[v] = X * 16 + C;
                }
                return R;
            }
            n.hexToBytes = w;
            var S = function() {
                return t(void 0, void 0, void 0, function() {
                    return e(this, function(y) {
                        return [
                            2
                        ];
                    });
                });
            };
            n.nextTick = S;
            function b(y, O, m) {
                return t(this, void 0, void 0, function() {
                    var R, v, A;
                    return e(this, function(X) {
                        switch(X.label){
                            case 0:
                                R = Date.now(), v = 0, X.label = 1;
                            case 1:
                                return v < y ? (m(v), A = Date.now() - R, A >= 0 && A < O ? [
                                    3,
                                    3
                                ] : [
                                    4,
                                    (0, n.nextTick)()
                                ]) : [
                                    3,
                                    4
                                ];
                            case 2:
                                X.sent(), R += A, X.label = 3;
                            case 3:
                                return v++, [
                                    3,
                                    1
                                ];
                            case 4:
                                return [
                                    2
                                ];
                        }
                    });
                });
            }
            n.asyncLoop = b;
            function k(y) {
                return typeof y == "string" && (y = (0, o.fromUtf8)(y)), (0, _.assertBytes)(y), y;
            }
            n.toBytes = k;
            function F() {
                for(var y = [], O = 0; O < arguments.length; O++)y[O] = arguments[O];
                for(var m = 0, R = 0; R < y.length; R++){
                    var v = y[R];
                    (0, _.assertBytes)(v), m += v.length;
                }
                for(var A = new Uint8Array(m), R = 0, X = 0; R < y.length; R++){
                    var v = y[R];
                    A.set(v, X), X += v.length;
                }
                return A;
            }
            n.concatBytes = F;
            var Y = (function() {
                function y() {}
                return y.prototype.clone = function() {
                    return this._cloneInto();
                }, y;
            })();
            n.Hash = Y;
            var K = {}.toString;
            function J(y, O) {
                if (O !== void 0 && K.call(O) !== "[object Object]") throw new Error("Options should be object or undefined");
                var m = Object.assign(y, O);
                return m;
            }
            n.checkOpts = J;
            function P(y) {
                var O = function(R) {
                    return y().update(k(R)).digest();
                }, m = y();
                return O.outputLen = m.outputLen, O.blockLen = m.blockLen, O.create = function() {
                    return y();
                }, O;
            }
            n.wrapConstructor = P;
            function T(y) {
                var O = function(R, v) {
                    return y(v).update(k(R)).digest();
                }, m = y({});
                return O.outputLen = m.outputLen, O.blockLen = m.blockLen, O.create = function(R) {
                    return y(R);
                }, O;
            }
            n.wrapConstructorWithOpts = T;
            function E(y) {
                var O = function(R, v) {
                    return y(v).update(k(R)).digest();
                }, m = y({});
                return O.outputLen = m.outputLen, O.blockLen = m.blockLen, O.create = function(R) {
                    return y(R);
                }, O;
            }
            n.wrapXOFConstructorWithOpts = E;
            function N(y) {
                if (y === void 0 && (y = 32), a.crypto && typeof a.crypto.getRandomValues == "function") return a.crypto.getRandomValues(new Uint8Array(y));
                for(var O = new Uint8Array(y), m = 0; m < y; m++)O[m] = Math.floor(Math.random() * 256);
                return O;
            }
            n.randomBytes = N;
        })(hd)), hd;
    }
    var fI;
    function n9() {
        if (fI) return Fr;
        fI = 1;
        var n = Fr && Fr.__extends || (function() {
            var y = function(O, m) {
                return y = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(R, v) {
                    R.__proto__ = v;
                } || function(R, v) {
                    for(var A in v)Object.prototype.hasOwnProperty.call(v, A) && (R[A] = v[A]);
                }, y(O, m);
            };
            return function(O, m) {
                if (typeof m != "function" && m !== null) throw new TypeError("Class extends value " + String(m) + " is not a constructor or null");
                y(O, m);
                function R() {
                    this.constructor = O;
                }
                O.prototype = m === null ? Object.create(m) : (R.prototype = m.prototype, new R);
            };
        })(), t = Fr && Fr.__read || function(y, O) {
            var m = typeof Symbol == "function" && y[Symbol.iterator];
            if (!m) return y;
            var R = m.call(y), v, A = [], X;
            try {
                for(; (O === void 0 || O-- > 0) && !(v = R.next()).done;)A.push(v.value);
            } catch (C) {
                X = {
                    error: C
                };
            } finally{
                try {
                    v && !v.done && (m = R.return) && m.call(R);
                } finally{
                    if (X) throw X.error;
                }
            }
            return A;
        }, e;
        Object.defineProperty(Fr, "__esModule", {
            value: !0
        }), Fr.keccak_512 = Fr.keccak_384 = Fr.keccak_256 = Fr.keccak_224 = Fr.Keccak = Fr.keccakP = void 0;
        for(var o = r9(), _ = $i(), a = lp(), c = [], s = [], u = [], l = BigInt(0), f = BigInt(1), p = BigInt(2), g = BigInt(7), h = BigInt(256), B = BigInt(113), I = 0, j = f, w = 1, S = 0; I < 24; I++){
            e = t([
                S,
                (2 * w + 3 * S) % 5
            ], 2), w = e[0], S = e[1], c.push(2 * (5 * S + w)), s.push((I + 1) * (I + 2) / 2 % 64);
            for(var b = l, k = 0; k < 7; k++)j = (j << f ^ (j >> g) * B) % h, j & p && (b ^= f << (f << BigInt(k)) - f);
            u.push(b);
        }
        var F = t((0, o.split)(u, !0), 2), Y = F[0], K = F[1], J = function(y, O, m) {
            return m > 32 ? (0, o.rotlBH)(y, O, m) : (0, o.rotlSH)(y, O, m);
        }, P = function(y, O, m) {
            return m > 32 ? (0, o.rotlBL)(y, O, m) : (0, o.rotlSL)(y, O, m);
        };
        function T(y, O) {
            O === void 0 && (O = 24);
            for(var m = new Uint32Array(10), R = 24 - O; R < 24; R++){
                for(var v = 0; v < 10; v++)m[v] = y[v] ^ y[v + 10] ^ y[v + 20] ^ y[v + 30] ^ y[v + 40];
                for(var v = 0; v < 10; v += 2)for(var A = (v + 8) % 10, X = (v + 2) % 10, C = m[X], H = m[X + 1], U = J(C, H, 1) ^ m[A], L = P(C, H, 1) ^ m[A + 1], q = 0; q < 50; q += 10)y[v + q] ^= U, y[v + q + 1] ^= L;
                for(var V = y[2], Q = y[3], Z = 0; Z < 24; Z++){
                    var tt = s[Z], U = J(V, Q, tt), L = P(V, Q, tt), rt = c[Z];
                    V = y[rt], Q = y[rt + 1], y[rt] = U, y[rt + 1] = L;
                }
                for(var q = 0; q < 50; q += 10){
                    for(var v = 0; v < 10; v++)m[v] = y[q + v];
                    for(var v = 0; v < 10; v++)y[q + v] ^= ~m[(v + 2) % 10] & m[(v + 4) % 10];
                }
                y[0] ^= Y[R], y[1] ^= K[R];
            }
            m.fill(0);
        }
        Fr.keccakP = T;
        var E = (function(y) {
            n(O, y);
            function O(m, R, v, A, X) {
                A === void 0 && (A = !1), X === void 0 && (X = 24);
                var C = y.call(this) || this;
                if (C.blockLen = m, C.suffix = R, C.outputLen = v, C.enableXOF = A, C.rounds = X, C.pos = 0, C.posOut = 0, C.finished = !1, C.destroyed = !1, (0, a.assertPostiveInteger)(v), 0 >= C.blockLen || C.blockLen >= 200) throw new Error("Sha3 supports only keccak-f1600 function");
                return C.state = new Uint8Array(200), C.state32 = (0, _.u32)(C.state), C;
            }
            return O.prototype.keccak = function() {
                _.isLE || (0, _.byteSwap32)(this.state32), T(this.state32, this.rounds), _.isLE || (0, _.byteSwap32)(this.state32), this.posOut = 0, this.pos = 0;
            }, O.prototype.update = function(m) {
                this.assertExists();
                var R = this, v = R.blockLen, A = R.state;
                m = (0, _.toBytes)(m);
                for(var X = m.length, C = 0; C < X;){
                    for(var H = Math.min(v - this.pos, X - C), U = 0; U < H; U++)A[this.pos++] ^= m[C++];
                    this.pos === v && this.keccak();
                }
                return this;
            }, O.prototype.finish = function() {
                if (!this.finished) {
                    this.finished = !0;
                    var m = this, R = m.state, v = m.suffix, A = m.pos, X = m.blockLen;
                    R[A] ^= v, (v & 128) !== 0 && A === X - 1 && this.keccak(), R[X - 1] ^= 128, this.keccak();
                }
            }, O.prototype.writeInto = function(m) {
                if (this.assertExists(!1), !(m instanceof Uint8Array)) throw new Error("Uint8Array expected");
                this.finish();
                for(var R = this.state, v = this.blockLen, A = 0, X = m.length; A < X;){
                    this.posOut >= v && this.keccak();
                    var C = Math.min(v - this.posOut, X - A);
                    m.set(R.subarray(this.posOut, this.posOut + C), A), this.posOut += C, A += C;
                }
                return m;
            }, O.prototype.xofInto = function(m) {
                if (!this.enableXOF) throw new Error("XOF is not possible for this instance");
                return this.writeInto(m);
            }, O.prototype.xof = function(m) {
                return (0, a.assertPostiveInteger)(m), this.xofInto(new Uint8Array(m));
            }, O.prototype.digestInto = function(m) {
                if (!(m instanceof Uint8Array)) throw new Error("Uint8Array expected");
                var R = this.outputLen;
                if (m.length < R) throw new Error("digestInto() expects output buffer of length at least ".concat(R));
                if (this.finished) throw new Error("digest() was already called");
                return this.writeInto(m), this.destroy(), m;
            }, O.prototype.digest = function() {
                return this.digestInto(new Uint8Array(this.outputLen));
            }, O.prototype.destroy = function() {
                this.destroyed = !0, this.state.fill(0);
            }, O.prototype._cloneInto = function(m) {
                var R = this, v = R.blockLen, A = R.suffix, X = R.outputLen, C = R.rounds, H = R.enableXOF;
                return m || (m = new O(v, A, X, H, C)), m.state32.set(this.state32), m.pos = this.pos, m.posOut = this.posOut, m.finished = this.finished, m.rounds = C, m.suffix = A, m.outputLen = X, m.enableXOF = H, m.destroyed = this.destroyed, m;
            }, O.prototype.assertExists = function(m) {
                if (m === void 0 && (m = !0), this.destroyed) throw new Error("Hash instance has been destroyed");
                if (m && this.finished) throw new Error("Hash#digest() has already been called");
            }, O;
        })(_.Hash);
        Fr.Keccak = E;
        var N = function(y, O, m) {
            return (0, _.wrapConstructor)(function() {
                return new E(O, y, m);
            });
        };
        return Fr.keccak_224 = N(1, 144, 224 / 8), Fr.keccak_256 = N(1, 136, 256 / 8), Fr.keccak_384 = N(1, 104, 384 / 8), Fr.keccak_512 = N(1, 72, 512 / 8), Fr;
    }
    var B_ = {}, Do = {}, ie = {}, Ht = {}, gI;
    function Li() {
        if (gI) return Ht;
        gI = 1;
        var n = Ht && Ht.__read || function(U, L) {
            var q = typeof Symbol == "function" && U[Symbol.iterator];
            if (!q) return U;
            var V = q.call(U), Q, Z = [], tt;
            try {
                for(; (L === void 0 || L-- > 0) && !(Q = V.next()).done;)Z.push(Q.value);
            } catch (rt) {
                tt = {
                    error: rt
                };
            } finally{
                try {
                    Q && !Q.done && (q = V.return) && q.call(V);
                } finally{
                    if (tt) throw tt.error;
                }
            }
            return Z;
        }, t = Ht && Ht.__spreadArray || function(U, L, q) {
            if (q || arguments.length === 2) for(var V = 0, Q = L.length, Z; V < Q; V++)(Z || !(V in L)) && (Z || (Z = Array.prototype.slice.call(L, 0, V)), Z[V] = L[V]);
            return U.concat(Z || Array.prototype.slice.call(L));
        }, e = Ht && Ht.__values || function(U) {
            var L = typeof Symbol == "function" && Symbol.iterator, q = L && U[L], V = 0;
            if (q) return q.call(U);
            if (U && typeof U.length == "number") return {
                next: function() {
                    return U && V >= U.length && (U = void 0), {
                        value: U && U[V++],
                        done: !U
                    };
                }
            };
            throw new TypeError(L ? "Object is not iterable." : "Symbol.iterator is not defined.");
        };
        Object.defineProperty(Ht, "__esModule", {
            value: !0
        }), Ht.aInRange = Ht.inRange = Ht.isBytes = Ht.abool = Ht.memoized = Ht.validateObject = Ht.createHmacDrbg = Ht.bitMask = Ht.bitSet = Ht.bitGet = Ht.bitLen = Ht.utf8ToBytes = Ht.equalBytes = Ht.concatBytes = Ht.ensureBytes = Ht.numberToVarBytesBE = Ht.numberToBytesLE = Ht.numberToBytesBE = Ht.bytesToNumberLE = Ht.bytesToNumberBE = Ht.hexToBytes = Ht.hexToNumber = Ht.numberToHexUnpadded = Ht.bytesToHex = Ht.abytes = void 0;
        var o = BigInt(0), _ = BigInt(1), a = BigInt(2);
        function c(U) {
            if (!A(U)) throw new Error("Uint8Array expected");
        }
        Ht.abytes = c;
        var s = Array.from({
            length: 256
        }, function(U, L) {
            return L.toString(16).padStart(2, "0");
        });
        function u(U) {
            c(U);
            for(var L = "", q = 0; q < U.length; q++)L += s[U[q]];
            return L;
        }
        Ht.bytesToHex = u;
        function l(U) {
            var L = U.toString(16);
            return L.length & 1 ? "0".concat(L) : L;
        }
        Ht.numberToHexUnpadded = l;
        function f(U) {
            if (typeof U != "string") throw new Error("hex string expected, got " + typeof U);
            return BigInt(U === "" ? "0" : "0x".concat(U));
        }
        Ht.hexToNumber = f;
        var p = {
            _0: 48,
            _9: 57,
            _A: 65,
            _F: 70,
            _a: 97,
            _f: 102
        };
        function g(U) {
            if (U >= p._0 && U <= p._9) return U - p._0;
            if (U >= p._A && U <= p._F) return U - (p._A - 10);
            if (U >= p._a && U <= p._f) return U - (p._a - 10);
        }
        function h(U) {
            if (typeof U != "string") throw new Error("hex string expected, got " + typeof U);
            var L = U.length, q = L / 2;
            if (L % 2) throw new Error("padded hex string expected, got unpadded hex of length " + L);
            for(var V = new Uint8Array(q), Q = 0, Z = 0; Q < q; Q++, Z += 2){
                var tt = g(U.charCodeAt(Z)), rt = g(U.charCodeAt(Z + 1));
                if (tt === void 0 || rt === void 0) {
                    var at = U[Z] + U[Z + 1];
                    throw new Error('hex string expected, got non-hex character "' + at + '" at index ' + Z);
                }
                V[Q] = tt * 16 + rt;
            }
            return V;
        }
        Ht.hexToBytes = h;
        function B(U) {
            return f(u(U));
        }
        Ht.bytesToNumberBE = B;
        function I(U) {
            return c(U), f(u(Uint8Array.from(U).reverse()));
        }
        Ht.bytesToNumberLE = I;
        function j(U, L) {
            return h(U.toString(16).padStart(L * 2, "0"));
        }
        Ht.numberToBytesBE = j;
        function w(U, L) {
            return j(U, L).reverse();
        }
        Ht.numberToBytesLE = w;
        function S(U) {
            return h(l(U));
        }
        Ht.numberToVarBytesBE = S;
        function b(U, L, q) {
            var V;
            if (typeof L == "string") try {
                V = h(L);
            } catch (Z) {
                throw new Error("".concat(U, ' must be valid hex string, got "').concat(L, '". Cause: ').concat(Z));
            }
            else if (A(L)) V = Uint8Array.from(L);
            else throw new Error("".concat(U, " must be hex string or Uint8Array"));
            var Q = V.length;
            if (typeof q == "number" && Q !== q) throw new Error("".concat(U, " expected ").concat(q, " bytes, got ").concat(Q));
            return V;
        }
        Ht.ensureBytes = b;
        function k() {
            for(var U = [], L = 0; L < arguments.length; L++)U[L] = arguments[L];
            for(var q = 0, V = 0; V < U.length; V++){
                var Q = U[V];
                c(Q), q += Q.length;
            }
            for(var Z = new Uint8Array(q), V = 0, tt = 0; V < U.length; V++){
                var Q = U[V];
                Z.set(Q, tt), tt += Q.length;
            }
            return Z;
        }
        Ht.concatBytes = k;
        function F(U, L) {
            if (U.length !== L.length) return !1;
            for(var q = 0, V = 0; V < U.length; V++)q |= U[V] ^ L[V];
            return q === 0;
        }
        Ht.equalBytes = F;
        function Y(U) {
            if (typeof U != "string") throw new Error("utf8ToBytes expected string, got ".concat(typeof U));
            return new Uint8Array(new TextEncoder().encode(U));
        }
        Ht.utf8ToBytes = Y;
        function K(U) {
            var L;
            for(L = 0; U > o; U >>= _, L += 1);
            return L;
        }
        Ht.bitLen = K;
        function J(U, L) {
            return U >> BigInt(L) & _;
        }
        Ht.bitGet = J;
        function P(U, L, q) {
            return U | (q ? _ : o) << BigInt(L);
        }
        Ht.bitSet = P;
        var T = function(U) {
            return (a << BigInt(U - 1)) - _;
        };
        Ht.bitMask = T;
        var E = function(U) {
            return new Uint8Array(U);
        }, N = function(U) {
            return Uint8Array.from(U);
        };
        function y(U, L, q) {
            if (typeof U != "number" || U < 2) throw new Error("hashLen must be a number");
            if (typeof L != "number" || L < 2) throw new Error("qByteLen must be a number");
            if (typeof q != "function") throw new Error("hmacFn must be a function");
            var V = E(U), Q = E(U), Z = 0, tt = function() {
                V.fill(1), Q.fill(0), Z = 0;
            }, rt = function() {
                for(var pt = [], ot = 0; ot < arguments.length; ot++)pt[ot] = arguments[ot];
                return q.apply(void 0, t([
                    Q,
                    V
                ], n(pt), !1));
            }, at = function(pt) {
                pt === void 0 && (pt = E()), Q = rt(N([
                    0
                ]), pt), V = rt(), pt.length !== 0 && (Q = rt(N([
                    1
                ]), pt), V = rt());
            }, ut = function() {
                if (Z++ >= 1e3) throw new Error("drbg: tried 1000 values");
                for(var pt = 0, ot = []; pt < L;){
                    V = rt();
                    var gt = V.slice();
                    ot.push(gt), pt += V.length;
                }
                return k.apply(void 0, t([], n(ot), !1));
            }, bt = function(pt, ot) {
                tt(), at(pt);
                for(var gt = void 0; !(gt = ot(ut()));)at();
                return tt(), gt;
            };
            return bt;
        }
        Ht.createHmacDrbg = y;
        var O = {
            bigint: function(U) {
                return typeof U == "bigint";
            },
            function: function(U) {
                return typeof U == "function";
            },
            boolean: function(U) {
                return typeof U == "boolean";
            },
            string: function(U) {
                return typeof U == "string";
            },
            stringOrUint8Array: function(U) {
                return typeof U == "string" || A(U);
            },
            isSafeInteger: function(U) {
                return Number.isSafeInteger(U);
            },
            array: function(U) {
                return Array.isArray(U);
            },
            field: function(U, L) {
                return L.Fp.isValid(U);
            },
            hash: function(U) {
                return typeof U == "function" && Number.isSafeInteger(U.outputLen);
            }
        };
        function m(U, L, q) {
            var V, Q, Z, tt;
            q === void 0 && (q = {});
            var rt = function(et, ct, ft) {
                var dt = O[ct];
                if (typeof dt != "function") throw new Error('Invalid validator "'.concat(ct, '", expected function'));
                var st = U[et];
                if (!(ft && st === void 0) && !dt(st, U)) throw new Error("Invalid param ".concat(String(et), "=").concat(st, " (").concat(typeof st, "), expected ").concat(ct));
            };
            try {
                for(var at = e(Object.entries(L)), ut = at.next(); !ut.done; ut = at.next()){
                    var bt = n(ut.value, 2), pt = bt[0], ot = bt[1];
                    rt(pt, ot, !1);
                }
            } catch (et) {
                V = {
                    error: et
                };
            } finally{
                try {
                    ut && !ut.done && (Q = at.return) && Q.call(at);
                } finally{
                    if (V) throw V.error;
                }
            }
            try {
                for(var gt = e(Object.entries(q)), W = gt.next(); !W.done; W = gt.next()){
                    var G = n(W.value, 2), pt = G[0], ot = G[1];
                    rt(pt, ot, !0);
                }
            } catch (et) {
                Z = {
                    error: et
                };
            } finally{
                try {
                    W && !W.done && (tt = gt.return) && tt.call(gt);
                } finally{
                    if (Z) throw Z.error;
                }
            }
            return U;
        }
        Ht.validateObject = m;
        function R(U) {
            var L = new WeakMap;
            return function(q) {
                for(var V = [], Q = 1; Q < arguments.length; Q++)V[Q - 1] = arguments[Q];
                var Z = L.get(q);
                if (Z !== void 0) return Z;
                var tt = U.apply(void 0, t([
                    q
                ], n(V), !1));
                return L.set(q, tt), tt;
            };
        }
        Ht.memoized = R;
        function v(U, L) {
            if (typeof L != "boolean") throw new Error(U + " boolean expected, got " + L);
        }
        Ht.abool = v;
        function A(U) {
            return U instanceof Uint8Array || ArrayBuffer.isView(U) && U.constructor.name === "Uint8Array";
        }
        Ht.isBytes = A;
        var X = function(U) {
            return typeof U == "bigint" && o <= U;
        };
        function C(U, L, q) {
            return X(U) && X(L) && X(q) && L <= U && U < q;
        }
        Ht.inRange = C;
        function H(U, L, q, V) {
            if (!C(L, q, V)) throw new Error("expected valid " + U + ": " + q + " <= n < " + V + ", got " + L);
        }
        return Ht.aInRange = H, Ht;
    }
    var pI;
    function Vl() {
        if (pI) return ie;
        pI = 1, Object.defineProperty(ie, "__esModule", {
            value: !0
        }), ie.mapHashToField = ie.getMinHashLength = ie.getFieldBytesLength = ie.hashToPrivateScalar = ie.FpSqrtEven = ie.FpSqrtOdd = ie.Field = ie.nLength = ie.FpIsSquare = ie.FpDiv = ie.FpInvertBatch = ie.FpPow = ie.validateField = ie.isNegativeLE = ie.FpSqrt = ie.tonelliShanks = ie.invert = ie.pow2 = ie.pow = ie.mod = void 0;
        var n = Li(), t = BigInt(0), e = BigInt(1), o = BigInt(2), _ = BigInt(3), a = BigInt(4), c = BigInt(5), s = BigInt(8);
        BigInt(9), BigInt(16);
        function u(y, O) {
            var m = y % O;
            return m >= t ? m : O + m;
        }
        ie.mod = u;
        function l(y, O, m) {
            if (m <= t || O < t) throw new Error("Expected power/modulo > 0");
            if (m === e) return t;
            for(var R = e; O > t;)O & e && (R = R * y % m), y = y * y % m, O >>= e;
            return R;
        }
        ie.pow = l;
        function f(y, O, m) {
            for(var R = y; O-- > t;)R *= R, R %= m;
            return R;
        }
        ie.pow2 = f;
        function p(y, O) {
            if (y === t || O <= t) throw new Error("invert: expected positive integers, got n=".concat(y, " mod=").concat(O));
            for(var m = u(y, O), R = O, v = t, A = e; m !== t;){
                var X = R / m, C = R % m, H = v - A * X;
                R = m, m = C, v = A, A = H;
            }
            var U = R;
            if (U !== e) throw new Error("invert: does not exist");
            return u(v, O);
        }
        ie.invert = p;
        function g(y) {
            var O = (y - e) / o, m, R, v;
            for(m = y - e, R = 0; m % o === t; m /= o, R++);
            for(v = o; v < y && l(v, O, y) !== y - e; v++);
            if (R === 1) {
                var A = (y + e) / a;
                return function(H, U) {
                    var L = H.pow(U, A);
                    if (!H.eql(H.sqr(L), U)) throw new Error("Cannot find square root");
                    return L;
                };
            }
            var X = (m + e) / o;
            return function(H, U) {
                if (H.pow(U, O) === H.neg(H.ONE)) throw new Error("Cannot find square root");
                for(var L = R, q = H.pow(H.mul(H.ONE, v), m), V = H.pow(U, X), Q = H.pow(U, m); !H.eql(Q, H.ONE);){
                    if (H.eql(Q, H.ZERO)) return H.ZERO;
                    for(var Z = 1, tt = H.sqr(Q); Z < L && !H.eql(tt, H.ONE); Z++)tt = H.sqr(tt);
                    var rt = H.pow(q, e << BigInt(L - Z - 1));
                    q = H.sqr(rt), V = H.mul(V, rt), Q = H.mul(Q, q), L = Z;
                }
                return V;
            };
        }
        ie.tonelliShanks = g;
        function h(y) {
            if (y % a === _) {
                var O = (y + e) / a;
                return function(v, A) {
                    var X = v.pow(A, O);
                    if (!v.eql(v.sqr(X), A)) throw new Error("Cannot find square root");
                    return X;
                };
            }
            if (y % s === c) {
                var m = (y - c) / s;
                return function(v, A) {
                    var X = v.mul(A, o), C = v.pow(X, m), H = v.mul(A, C), U = v.mul(v.mul(H, o), C), L = v.mul(H, v.sub(U, v.ONE));
                    if (!v.eql(v.sqr(L), A)) throw new Error("Cannot find square root");
                    return L;
                };
            }
            return g(y);
        }
        ie.FpSqrt = h;
        var B = function(y, O) {
            return (u(y, O) & e) === e;
        };
        ie.isNegativeLE = B;
        var I = [
            "create",
            "isValid",
            "is0",
            "neg",
            "inv",
            "sqrt",
            "sqr",
            "eql",
            "add",
            "sub",
            "mul",
            "pow",
            "div",
            "addN",
            "subN",
            "mulN",
            "sqrN"
        ];
        function j(y) {
            var O = {
                ORDER: "bigint",
                MASK: "bigint",
                BYTES: "isSafeInteger",
                BITS: "isSafeInteger"
            }, m = I.reduce(function(R, v) {
                return R[v] = "function", R;
            }, O);
            return (0, n.validateObject)(y, m);
        }
        ie.validateField = j;
        function w(y, O, m) {
            if (m < t) throw new Error("Expected power > 0");
            if (m === t) return y.ONE;
            if (m === e) return O;
            for(var R = y.ONE, v = O; m > t;)m & e && (R = y.mul(R, v)), v = y.sqr(v), m >>= e;
            return R;
        }
        ie.FpPow = w;
        function S(y, O) {
            var m = new Array(O.length), R = O.reduce(function(A, X, C) {
                return y.is0(X) ? A : (m[C] = A, y.mul(A, X));
            }, y.ONE), v = y.inv(R);
            return O.reduceRight(function(A, X, C) {
                return y.is0(X) ? A : (m[C] = y.mul(A, m[C]), y.mul(A, X));
            }, v), m;
        }
        ie.FpInvertBatch = S;
        function b(y, O, m) {
            return y.mul(O, typeof m == "bigint" ? p(m, y.ORDER) : y.inv(m));
        }
        ie.FpDiv = b;
        function k(y) {
            var O = (y.ORDER - e) / o;
            return function(m) {
                var R = y.pow(m, O);
                return y.eql(R, y.ZERO) || y.eql(R, y.ONE);
            };
        }
        ie.FpIsSquare = k;
        function F(y, O) {
            var m = O !== void 0 ? O : y.toString(2).length, R = Math.ceil(m / 8);
            return {
                nBitLength: m,
                nByteLength: R
            };
        }
        ie.nLength = F;
        function Y(y, O, m, R) {
            if (m === void 0 && (m = !1), R === void 0 && (R = {}), y <= t) throw new Error("Expected Field ORDER > 0, got ".concat(y));
            var v = F(y, O), A = v.nBitLength, X = v.nByteLength;
            if (X > 2048) throw new Error("Field lengths over 2048 bytes are not supported");
            var C = h(y), H = Object.freeze({
                ORDER: y,
                BITS: A,
                BYTES: X,
                MASK: (0, n.bitMask)(A),
                ZERO: t,
                ONE: e,
                create: function(U) {
                    return u(U, y);
                },
                isValid: function(U) {
                    if (typeof U != "bigint") throw new Error("Invalid field element: expected bigint, got ".concat(typeof U));
                    return t <= U && U < y;
                },
                is0: function(U) {
                    return U === t;
                },
                isOdd: function(U) {
                    return (U & e) === e;
                },
                neg: function(U) {
                    return u(-U, y);
                },
                eql: function(U, L) {
                    return U === L;
                },
                sqr: function(U) {
                    return u(U * U, y);
                },
                add: function(U, L) {
                    return u(U + L, y);
                },
                sub: function(U, L) {
                    return u(U - L, y);
                },
                mul: function(U, L) {
                    return u(U * L, y);
                },
                pow: function(U, L) {
                    return w(H, U, L);
                },
                div: function(U, L) {
                    return u(U * p(L, y), y);
                },
                sqrN: function(U) {
                    return U * U;
                },
                addN: function(U, L) {
                    return U + L;
                },
                subN: function(U, L) {
                    return U - L;
                },
                mulN: function(U, L) {
                    return U * L;
                },
                inv: function(U) {
                    return p(U, y);
                },
                sqrt: R.sqrt || (function(U) {
                    return C(H, U);
                }),
                invertBatch: function(U) {
                    return S(H, U);
                },
                cmov: function(U, L, q) {
                    return q ? L : U;
                },
                toBytes: function(U) {
                    return m ? (0, n.numberToBytesLE)(U, X) : (0, n.numberToBytesBE)(U, X);
                },
                fromBytes: function(U) {
                    if (U.length !== X) throw new Error("Fp.fromBytes: expected ".concat(X, ", got ").concat(U.length));
                    return m ? (0, n.bytesToNumberLE)(U) : (0, n.bytesToNumberBE)(U);
                }
            });
            return Object.freeze(H);
        }
        ie.Field = Y;
        function K(y, O) {
            if (!y.isOdd) throw new Error("Field doesn't have isOdd");
            var m = y.sqrt(O);
            return y.isOdd(m) ? m : y.neg(m);
        }
        ie.FpSqrtOdd = K;
        function J(y, O) {
            if (!y.isOdd) throw new Error("Field doesn't have isOdd");
            var m = y.sqrt(O);
            return y.isOdd(m) ? y.neg(m) : m;
        }
        ie.FpSqrtEven = J;
        function P(y, O, m) {
            m === void 0 && (m = !1), y = (0, n.ensureBytes)("privateHash", y);
            var R = y.length, v = F(O).nByteLength + 8;
            if (v < 24 || R < v || R > 1024) throw new Error("hashToPrivateScalar: expected ".concat(v, "-1024 bytes of input, got ").concat(R));
            var A = m ? (0, n.bytesToNumberLE)(y) : (0, n.bytesToNumberBE)(y);
            return u(A, O - e) + e;
        }
        ie.hashToPrivateScalar = P;
        function T(y) {
            if (typeof y != "bigint") throw new Error("field order must be bigint");
            var O = y.toString(2).length;
            return Math.ceil(O / 8);
        }
        ie.getFieldBytesLength = T;
        function E(y) {
            var O = T(y);
            return O + Math.ceil(O / 2);
        }
        ie.getMinHashLength = E;
        function N(y, O, m) {
            m === void 0 && (m = !1);
            var R = y.length, v = T(O), A = E(O);
            if (R < 16 || R < A || R > 1024) throw new Error("expected ".concat(A, "-1024 bytes of input, got ").concat(R));
            var X = m ? (0, n.bytesToNumberBE)(y) : (0, n.bytesToNumberLE)(y), C = u(X, O - e) + e;
            return m ? (0, n.numberToBytesLE)(C, v) : (0, n.numberToBytesBE)(C, v);
        }
        return ie.mapHashToField = N, ie;
    }
    var Ar = {}, bI;
    function w0() {
        if (bI) return Ar;
        bI = 1;
        var n = Ar && Ar.__assign || function() {
            return n = Object.assign || function(B) {
                for(var I, j = 1, w = arguments.length; j < w; j++){
                    I = arguments[j];
                    for(var S in I)Object.prototype.hasOwnProperty.call(I, S) && (B[S] = I[S]);
                }
                return B;
            }, n.apply(this, arguments);
        }, t = Ar && Ar.__read || function(B, I) {
            var j = typeof Symbol == "function" && B[Symbol.iterator];
            if (!j) return B;
            var w = j.call(B), S, b = [], k;
            try {
                for(; (I === void 0 || I-- > 0) && !(S = w.next()).done;)b.push(S.value);
            } catch (F) {
                k = {
                    error: F
                };
            } finally{
                try {
                    S && !S.done && (j = w.return) && j.call(w);
                } finally{
                    if (k) throw k.error;
                }
            }
            return b;
        }, e = Ar && Ar.__spreadArray || function(B, I, j) {
            if (j || arguments.length === 2) for(var w = 0, S = I.length, b; w < S; w++)(b || !(w in I)) && (b || (b = Array.prototype.slice.call(I, 0, w)), b[w] = I[w]);
            return B.concat(b || Array.prototype.slice.call(I));
        };
        Object.defineProperty(Ar, "__esModule", {
            value: !0
        }), Ar.createHasher = Ar.isogenyMap = Ar.hash_to_field = Ar.expand_message_xof = Ar.expand_message_xmd = void 0;
        var o = Vl(), _ = Li(), a = _.bytesToNumberBE;
        function c(B, I) {
            if (B < 0 || B >= 1 << 8 * I) throw new Error("bad I2OSP call: value=".concat(B, " length=").concat(I));
            for(var j = Array.from({
                length: I
            }).fill(0), w = I - 1; w >= 0; w--)j[w] = B & 255, B >>>= 8;
            return new Uint8Array(j);
        }
        function s(B, I) {
            for(var j = new Uint8Array(B.length), w = 0; w < B.length; w++)j[w] = B[w] ^ I[w];
            return j;
        }
        function u(B) {
            if (!Number.isSafeInteger(B)) throw new Error("number expected");
        }
        function l(B, I, j, w) {
            (0, _.abytes)(B), (0, _.abytes)(I), u(j), I.length > 255 && (I = w((0, _.concatBytes)((0, _.utf8ToBytes)("H2C-OVERSIZE-DST-"), I)));
            var S = w.outputLen, b = w.blockLen, k = Math.ceil(j / S);
            if (k > 255) throw new Error("Invalid xmd length");
            var F = (0, _.concatBytes)(I, c(I.length, 1)), Y = c(0, b), K = c(j, 2), J = new Array(k), P = w((0, _.concatBytes)(Y, B, K, c(0, 1), F));
            J[0] = w((0, _.concatBytes)(P, c(1, 1), F));
            for(var T = 1; T <= k; T++){
                var E = [
                    s(P, J[T - 1]),
                    c(T + 1, 1),
                    F
                ];
                J[T] = w(_.concatBytes.apply(void 0, e([], t(E), !1)));
            }
            var N = _.concatBytes.apply(void 0, e([], t(J), !1));
            return N.slice(0, j);
        }
        Ar.expand_message_xmd = l;
        function f(B, I, j, w, S) {
            if ((0, _.abytes)(B), (0, _.abytes)(I), u(j), I.length > 255) {
                var b = Math.ceil(2 * w / 8);
                I = S.create({
                    dkLen: b
                }).update((0, _.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(I).digest();
            }
            if (j > 65535 || I.length > 255) throw new Error("expand_message_xof: invalid lenInBytes");
            return S.create({
                dkLen: j
            }).update(B).update(c(j, 2)).update(I).update(c(I.length, 1)).digest();
        }
        Ar.expand_message_xof = f;
        function p(B, I, j) {
            (0, _.validateObject)(j, {
                DST: "stringOrUint8Array",
                p: "bigint",
                m: "isSafeInteger",
                k: "isSafeInteger",
                hash: "hash"
            });
            var w = j.p, S = j.k, b = j.m, k = j.hash, F = j.expand, Y = j.DST;
            (0, _.abytes)(B), u(I);
            var K = typeof Y == "string" ? (0, _.utf8ToBytes)(Y) : Y, J = w.toString(2).length, P = Math.ceil((J + S) / 8), T = I * b * P, E;
            if (F === "xmd") E = l(B, K, T, k);
            else if (F === "xof") E = f(B, K, T, S, k);
            else if (F === "_internal_pass") E = B;
            else throw new Error('expand must be "xmd" or "xof"');
            for(var N = new Array(I), y = 0; y < I; y++){
                for(var O = new Array(b), m = 0; m < b; m++){
                    var R = P * (m + y * b), v = E.subarray(R, R + P);
                    O[m] = (0, o.mod)(a(v), w);
                }
                N[y] = O;
            }
            return N;
        }
        Ar.hash_to_field = p;
        function g(B, I) {
            var j = I.map(function(w) {
                return Array.from(w).reverse();
            });
            return function(w, S) {
                var b = t(j.map(function(J) {
                    return J.reduce(function(P, T) {
                        return B.add(B.mul(P, w), T);
                    });
                }), 4), k = b[0], F = b[1], Y = b[2], K = b[3];
                return w = B.div(k, F), S = B.mul(S, B.div(Y, K)), {
                    x: w,
                    y: S
                };
            };
        }
        Ar.isogenyMap = g;
        function h(B, I, j) {
            if (typeof I != "function") throw new Error("mapToCurve() must be defined");
            return {
                hashToCurve: function(w, S) {
                    var b = p(w, 2, n(n(n({}, j), {
                        DST: j.DST
                    }), S)), k = B.fromAffine(I(b[0])), F = B.fromAffine(I(b[1])), Y = k.add(F).clearCofactor();
                    return Y.assertValidity(), Y;
                },
                encodeToCurve: function(w, S) {
                    var b = p(w, 1, n(n(n({}, j), {
                        DST: j.encodeDST
                    }), S)), k = B.fromAffine(I(b[0])).clearCofactor();
                    return k.assertValidity(), k;
                }
            };
        }
        return Ar.createHasher = h, Ar;
    }
    var gn = {}, ba = {}, wI;
    function aIt() {
        if (wI) return ba;
        wI = 1;
        var n = ba && ba.__assign || function() {
            return n = Object.assign || function(j) {
                for(var w, S = 1, b = arguments.length; S < b; S++){
                    w = arguments[S];
                    for(var k in w)Object.prototype.hasOwnProperty.call(w, k) && (j[k] = w[k]);
                }
                return j;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(ba, "__esModule", {
            value: !0
        }), ba.pippenger = ba.validateBasic = ba.wNAF = void 0;
        var t = Vl(), e = Li(), o = BigInt(0), _ = BigInt(1), a = new WeakMap, c = new WeakMap;
        function s(j) {
            return c.get(j) || 1;
        }
        function u(j, w) {
            var S = w.negate();
            return j ? S : w;
        }
        function l(j, w) {
            if (!Number.isSafeInteger(j) || j <= 0 || j > w) throw new Error("invalid window size, expected [1.." + w + "], got W=" + j);
        }
        function f(j, w) {
            l(j, w);
            var S = Math.ceil(w / j) + 1, b = Math.pow(2, j - 1);
            return {
                windows: S,
                windowSize: b
            };
        }
        function p(j, w) {
            return {
                constTimeNegate: u,
                hasPrecomputes: function(S) {
                    return s(S) !== 1;
                },
                unsafeLadder: function(S, b, k) {
                    k === void 0 && (k = j.ZERO);
                    for(var F = S; b > o;)b & _ && (k = k.add(F)), F = F.double(), b >>= _;
                    return k;
                },
                precomputeWindow: function(S, b) {
                    for(var k = f(b, w), F = k.windows, Y = k.windowSize, K = [], J = S, P = J, T = 0; T < F; T++){
                        P = J, K.push(P);
                        for(var E = 1; E < Y; E++)P = P.add(J), K.push(P);
                        J = P.double();
                    }
                    return K;
                },
                wNAF: function(S, b, k) {
                    k = BigInt(k);
                    for(var F = f(S, w), Y = F.windows, K = F.windowSize, J = j.ZERO, P = j.BASE, T = BigInt(Math.pow(2, S) - 1), E = Math.pow(2, S), N = BigInt(S), y = 0; y < Y; y++){
                        var O = y * K, m = Number(k & T);
                        k >>= N, m > K && (m -= E, k += _);
                        var R = O, v = O + Math.abs(m) - 1, A = y % 2 !== 0, X = m < 0;
                        m === 0 ? P = P.add(u(A, b[R])) : J = J.add(u(X, b[v]));
                    }
                    return {
                        p: J,
                        f: P
                    };
                },
                wNAFUnsafe: function(S, b, k, F) {
                    F === void 0 && (F = j.ZERO);
                    for(var Y = f(S, w), K = Y.windows, J = Y.windowSize, P = BigInt(Math.pow(2, S) - 1), T = Math.pow(2, S), E = BigInt(S), N = 0; N < K; N++){
                        var y = N * J;
                        if (k === o) break;
                        var O = Number(k & P);
                        if (k >>= E, O > J && (O -= T, k += _), O !== 0) {
                            var m = b[y + Math.abs(O) - 1];
                            O < 0 && (m = m.negate()), F = F.add(m);
                        }
                    }
                    return F;
                },
                getPrecomputes: function(S, b, k) {
                    var F = a.get(b);
                    return F || (F = this.precomputeWindow(b, S), S !== 1 && a.set(b, k(F))), F;
                },
                wNAFCached: function(S, b, k) {
                    var F = s(S);
                    return this.wNAF(F, this.getPrecomputes(F, S, k), b);
                },
                wNAFCachedUnsafe: function(S, b, k, F) {
                    var Y = s(S);
                    return Y === 1 ? this.unsafeLadder(S, b, F) : this.wNAFUnsafe(Y, this.getPrecomputes(Y, S, k), b, F);
                },
                setWindowSize: function(S, b) {
                    l(b, w), c.set(S, b), a.delete(S);
                }
            };
        }
        ba.wNAF = p;
        function g(j) {
            return (0, t.validateField)(j.Fp), (0, e.validateObject)(j, {
                n: "bigint",
                h: "bigint",
                Gx: "field",
                Gy: "field"
            }, {
                nBitLength: "isSafeInteger",
                nByteLength: "isSafeInteger"
            }), Object.freeze(n(n(n({}, (0, t.nLength)(j.n, j.nBitLength)), j), {
                p: j.Fp.ORDER
            }));
        }
        ba.validateBasic = g;
        function h(j, w) {
            if (!Array.isArray(j)) throw new Error("array expected");
            j.forEach(function(S, b) {
                if (!(S instanceof w)) throw new Error("invalid point at index " + b);
            });
        }
        function B(j, w) {
            if (!Array.isArray(j)) throw new Error("array of scalars expected");
            j.forEach(function(S, b) {
                if (!w.isValid(S)) throw new Error("invalid scalar at index " + b);
            });
        }
        function I(j, w, S, b) {
            if (h(S, j), B(b, w), S.length !== b.length) throw new Error("arrays of points and scalars must have equal length");
            for(var k = j.ZERO, F = (0, e.bitLen)(BigInt(S.length)), Y = F > 12 ? F - 3 : F > 4 ? F - 2 : F ? 2 : 1, K = (1 << Y) - 1, J = new Array(K + 1).fill(k), P = Math.floor((w.BITS - 1) / Y) * Y, T = k, E = P; E >= 0; E -= Y){
                J.fill(k);
                for(var N = 0; N < b.length; N++){
                    var y = b[N], O = Number(y >> BigInt(E) & BigInt(K));
                    J[O] = J[O].add(S[N]);
                }
                for(var m = k, N = J.length - 1, R = k; N > 0; N--)R = R.add(J[N]), m = m.add(R);
                if (T = T.add(m), E !== 0) for(var N = 0; N < Y; N++)T = T.double();
            }
            return T;
        }
        return ba.pippenger = I, ba;
    }
    var Go = {}, se = {}, Jt = {}, yI;
    function _9() {
        if (yI) return Jt;
        yI = 1;
        var n = Jt && Jt.__read || function(v, A) {
            var X = typeof Symbol == "function" && v[Symbol.iterator];
            if (!X) return v;
            var C = X.call(v), H, U = [], L;
            try {
                for(; (A === void 0 || A-- > 0) && !(H = C.next()).done;)U.push(H.value);
            } catch (q) {
                L = {
                    error: q
                };
            } finally{
                try {
                    H && !H.done && (X = C.return) && X.call(C);
                } finally{
                    if (L) throw L.error;
                }
            }
            return U;
        }, t = Jt && Jt.__spreadArray || function(v, A, X) {
            if (X || arguments.length === 2) for(var C = 0, H = A.length, U; C < H; C++)(U || !(C in A)) && (U || (U = Array.prototype.slice.call(A, 0, C)), U[C] = A[C]);
            return v.concat(U || Array.prototype.slice.call(A));
        }, e = Jt && Jt.__values || function(v) {
            var A = typeof Symbol == "function" && Symbol.iterator, X = A && v[A], C = 0;
            if (X) return X.call(v);
            if (v && typeof v.length == "number") return {
                next: function() {
                    return v && C >= v.length && (v = void 0), {
                        value: v && v[C++],
                        done: !v
                    };
                }
            };
            throw new TypeError(A ? "Object is not iterable." : "Symbol.iterator is not defined.");
        };
        Object.defineProperty(Jt, "__esModule", {
            value: !0
        }), Jt.validateObject = Jt.createHmacDrbg = Jt.bitMask = Jt.bitSet = Jt.bitGet = Jt.bitLen = Jt.utf8ToBytes = Jt.equalBytes = Jt.concatBytes = Jt.ensureBytes = Jt.numberToVarBytesBE = Jt.numberToBytesLE = Jt.numberToBytesBE = Jt.bytesToNumberLE = Jt.bytesToNumberBE = Jt.hexToBytes = Jt.hexToNumber = Jt.numberToHexUnpadded = Jt.bytesToHex = Jt.abytes = Jt.isBytes = void 0;
        var o = BigInt(0), _ = BigInt(1), a = BigInt(2);
        function c(v) {
            return v instanceof Uint8Array || v != null && typeof v == "object" && v.constructor.name === "Uint8Array";
        }
        Jt.isBytes = c;
        function s(v) {
            if (!c(v)) throw new Error("Uint8Array expected");
        }
        Jt.abytes = s;
        var u = Array.from({
            length: 256
        }, function(v, A) {
            return A.toString(16).padStart(2, "0");
        });
        function l(v) {
            s(v);
            for(var A = "", X = 0; X < v.length; X++)A += u[v[X]];
            return A;
        }
        Jt.bytesToHex = l;
        function f(v) {
            var A = v.toString(16);
            return A.length & 1 ? "0".concat(A) : A;
        }
        Jt.numberToHexUnpadded = f;
        function p(v) {
            if (typeof v != "string") throw new Error("hex string expected, got " + typeof v);
            return BigInt(v === "" ? "0" : "0x".concat(v));
        }
        Jt.hexToNumber = p;
        var g = {
            _0: 48,
            _9: 57,
            _A: 65,
            _F: 70,
            _a: 97,
            _f: 102
        };
        function h(v) {
            if (v >= g._0 && v <= g._9) return v - g._0;
            if (v >= g._A && v <= g._F) return v - (g._A - 10);
            if (v >= g._a && v <= g._f) return v - (g._a - 10);
        }
        function B(v) {
            if (typeof v != "string") throw new Error("hex string expected, got " + typeof v);
            var A = v.length, X = A / 2;
            if (A % 2) throw new Error("padded hex string expected, got unpadded hex of length " + A);
            for(var C = new Uint8Array(X), H = 0, U = 0; H < X; H++, U += 2){
                var L = h(v.charCodeAt(U)), q = h(v.charCodeAt(U + 1));
                if (L === void 0 || q === void 0) {
                    var V = v[U] + v[U + 1];
                    throw new Error('hex string expected, got non-hex character "' + V + '" at index ' + U);
                }
                C[H] = L * 16 + q;
            }
            return C;
        }
        Jt.hexToBytes = B;
        function I(v) {
            return p(l(v));
        }
        Jt.bytesToNumberBE = I;
        function j(v) {
            return s(v), p(l(Uint8Array.from(v).reverse()));
        }
        Jt.bytesToNumberLE = j;
        function w(v, A) {
            return B(v.toString(16).padStart(A * 2, "0"));
        }
        Jt.numberToBytesBE = w;
        function S(v, A) {
            return w(v, A).reverse();
        }
        Jt.numberToBytesLE = S;
        function b(v) {
            return B(f(v));
        }
        Jt.numberToVarBytesBE = b;
        function k(v, A, X) {
            var C;
            if (typeof A == "string") try {
                C = B(A);
            } catch (U) {
                throw new Error("".concat(v, ' must be valid hex string, got "').concat(A, '". Cause: ').concat(U));
            }
            else if (c(A)) C = Uint8Array.from(A);
            else throw new Error("".concat(v, " must be hex string or Uint8Array"));
            var H = C.length;
            if (typeof X == "number" && H !== X) throw new Error("".concat(v, " expected ").concat(X, " bytes, got ").concat(H));
            return C;
        }
        Jt.ensureBytes = k;
        function F() {
            for(var v = [], A = 0; A < arguments.length; A++)v[A] = arguments[A];
            for(var X = 0, C = 0; C < v.length; C++){
                var H = v[C];
                s(H), X += H.length;
            }
            for(var U = new Uint8Array(X), C = 0, L = 0; C < v.length; C++){
                var H = v[C];
                U.set(H, L), L += H.length;
            }
            return U;
        }
        Jt.concatBytes = F;
        function Y(v, A) {
            if (v.length !== A.length) return !1;
            for(var X = 0, C = 0; C < v.length; C++)X |= v[C] ^ A[C];
            return X === 0;
        }
        Jt.equalBytes = Y;
        function K(v) {
            if (typeof v != "string") throw new Error("utf8ToBytes expected string, got ".concat(typeof v));
            return new Uint8Array(new TextEncoder().encode(v));
        }
        Jt.utf8ToBytes = K;
        function J(v) {
            var A;
            for(A = 0; v > o; v >>= _, A += 1);
            return A;
        }
        Jt.bitLen = J;
        function P(v, A) {
            return v >> BigInt(A) & _;
        }
        Jt.bitGet = P;
        function T(v, A, X) {
            return v | (X ? _ : o) << BigInt(A);
        }
        Jt.bitSet = T;
        var E = function(v) {
            return (a << BigInt(v - 1)) - _;
        };
        Jt.bitMask = E;
        var N = function(v) {
            return new Uint8Array(v);
        }, y = function(v) {
            return Uint8Array.from(v);
        };
        function O(v, A, X) {
            if (typeof v != "number" || v < 2) throw new Error("hashLen must be a number");
            if (typeof A != "number" || A < 2) throw new Error("qByteLen must be a number");
            if (typeof X != "function") throw new Error("hmacFn must be a function");
            var C = N(v), H = N(v), U = 0, L = function() {
                C.fill(1), H.fill(0), U = 0;
            }, q = function() {
                for(var tt = [], rt = 0; rt < arguments.length; rt++)tt[rt] = arguments[rt];
                return X.apply(void 0, t([
                    H,
                    C
                ], n(tt), !1));
            }, V = function(tt) {
                tt === void 0 && (tt = N()), H = q(y([
                    0
                ]), tt), C = q(), tt.length !== 0 && (H = q(y([
                    1
                ]), tt), C = q());
            }, Q = function() {
                if (U++ >= 1e3) throw new Error("drbg: tried 1000 values");
                for(var tt = 0, rt = []; tt < A;){
                    C = q();
                    var at = C.slice();
                    rt.push(at), tt += C.length;
                }
                return F.apply(void 0, t([], n(rt), !1));
            }, Z = function(tt, rt) {
                L(), V(tt);
                for(var at = void 0; !(at = rt(Q()));)V();
                return L(), at;
            };
            return Z;
        }
        Jt.createHmacDrbg = O;
        var m = {
            bigint: function(v) {
                return typeof v == "bigint";
            },
            function: function(v) {
                return typeof v == "function";
            },
            boolean: function(v) {
                return typeof v == "boolean";
            },
            string: function(v) {
                return typeof v == "string";
            },
            stringOrUint8Array: function(v) {
                return typeof v == "string" || c(v);
            },
            isSafeInteger: function(v) {
                return Number.isSafeInteger(v);
            },
            array: function(v) {
                return Array.isArray(v);
            },
            field: function(v, A) {
                return A.Fp.isValid(v);
            },
            hash: function(v) {
                return typeof v == "function" && Number.isSafeInteger(v.outputLen);
            }
        };
        function R(v, A, X) {
            var C, H, U, L;
            X === void 0 && (X = {});
            var q = function(pt, ot, gt) {
                var W = m[ot];
                if (typeof W != "function") throw new Error('Invalid validator "'.concat(ot, '", expected function'));
                var G = v[pt];
                if (!(gt && G === void 0) && !W(G, v)) throw new Error("Invalid param ".concat(String(pt), "=").concat(G, " (").concat(typeof G, "), expected ").concat(ot));
            };
            try {
                for(var V = e(Object.entries(A)), Q = V.next(); !Q.done; Q = V.next()){
                    var Z = n(Q.value, 2), tt = Z[0], rt = Z[1];
                    q(tt, rt, !1);
                }
            } catch (pt) {
                C = {
                    error: pt
                };
            } finally{
                try {
                    Q && !Q.done && (H = V.return) && H.call(V);
                } finally{
                    if (C) throw C.error;
                }
            }
            try {
                for(var at = e(Object.entries(X)), ut = at.next(); !ut.done; ut = at.next()){
                    var bt = n(ut.value, 2), tt = bt[0], rt = bt[1];
                    q(tt, rt, !0);
                }
            } catch (pt) {
                U = {
                    error: pt
                };
            } finally{
                try {
                    ut && !ut.done && (L = at.return) && L.call(at);
                } finally{
                    if (U) throw U.error;
                }
            }
            return v;
        }
        return Jt.validateObject = R, Jt;
    }
    var hI;
    function oIt() {
        if (hI) return se;
        hI = 1, Object.defineProperty(se, "__esModule", {
            value: !0
        }), se.mapHashToField = se.getMinHashLength = se.getFieldBytesLength = se.hashToPrivateScalar = se.FpSqrtEven = se.FpSqrtOdd = se.Field = se.nLength = se.FpIsSquare = se.FpDiv = se.FpInvertBatch = se.FpPow = se.validateField = se.isNegativeLE = se.FpSqrt = se.tonelliShanks = se.invert = se.pow2 = se.pow = se.mod = void 0;
        var n = _9(), t = BigInt(0), e = BigInt(1), o = BigInt(2), _ = BigInt(3), a = BigInt(4), c = BigInt(5), s = BigInt(8);
        BigInt(9), BigInt(16);
        function u(y, O) {
            var m = y % O;
            return m >= t ? m : O + m;
        }
        se.mod = u;
        function l(y, O, m) {
            if (m <= t || O < t) throw new Error("Expected power/modulo > 0");
            if (m === e) return t;
            for(var R = e; O > t;)O & e && (R = R * y % m), y = y * y % m, O >>= e;
            return R;
        }
        se.pow = l;
        function f(y, O, m) {
            for(var R = y; O-- > t;)R *= R, R %= m;
            return R;
        }
        se.pow2 = f;
        function p(y, O) {
            if (y === t || O <= t) throw new Error("invert: expected positive integers, got n=".concat(y, " mod=").concat(O));
            for(var m = u(y, O), R = O, v = t, A = e; m !== t;){
                var X = R / m, C = R % m, H = v - A * X;
                R = m, m = C, v = A, A = H;
            }
            var U = R;
            if (U !== e) throw new Error("invert: does not exist");
            return u(v, O);
        }
        se.invert = p;
        function g(y) {
            var O = (y - e) / o, m, R, v;
            for(m = y - e, R = 0; m % o === t; m /= o, R++);
            for(v = o; v < y && l(v, O, y) !== y - e; v++);
            if (R === 1) {
                var A = (y + e) / a;
                return function(H, U) {
                    var L = H.pow(U, A);
                    if (!H.eql(H.sqr(L), U)) throw new Error("Cannot find square root");
                    return L;
                };
            }
            var X = (m + e) / o;
            return function(H, U) {
                if (H.pow(U, O) === H.neg(H.ONE)) throw new Error("Cannot find square root");
                for(var L = R, q = H.pow(H.mul(H.ONE, v), m), V = H.pow(U, X), Q = H.pow(U, m); !H.eql(Q, H.ONE);){
                    if (H.eql(Q, H.ZERO)) return H.ZERO;
                    for(var Z = 1, tt = H.sqr(Q); Z < L && !H.eql(tt, H.ONE); Z++)tt = H.sqr(tt);
                    var rt = H.pow(q, e << BigInt(L - Z - 1));
                    q = H.sqr(rt), V = H.mul(V, rt), Q = H.mul(Q, q), L = Z;
                }
                return V;
            };
        }
        se.tonelliShanks = g;
        function h(y) {
            if (y % a === _) {
                var O = (y + e) / a;
                return function(v, A) {
                    var X = v.pow(A, O);
                    if (!v.eql(v.sqr(X), A)) throw new Error("Cannot find square root");
                    return X;
                };
            }
            if (y % s === c) {
                var m = (y - c) / s;
                return function(v, A) {
                    var X = v.mul(A, o), C = v.pow(X, m), H = v.mul(A, C), U = v.mul(v.mul(H, o), C), L = v.mul(H, v.sub(U, v.ONE));
                    if (!v.eql(v.sqr(L), A)) throw new Error("Cannot find square root");
                    return L;
                };
            }
            return g(y);
        }
        se.FpSqrt = h;
        var B = function(y, O) {
            return (u(y, O) & e) === e;
        };
        se.isNegativeLE = B;
        var I = [
            "create",
            "isValid",
            "is0",
            "neg",
            "inv",
            "sqrt",
            "sqr",
            "eql",
            "add",
            "sub",
            "mul",
            "pow",
            "div",
            "addN",
            "subN",
            "mulN",
            "sqrN"
        ];
        function j(y) {
            var O = {
                ORDER: "bigint",
                MASK: "bigint",
                BYTES: "isSafeInteger",
                BITS: "isSafeInteger"
            }, m = I.reduce(function(R, v) {
                return R[v] = "function", R;
            }, O);
            return (0, n.validateObject)(y, m);
        }
        se.validateField = j;
        function w(y, O, m) {
            if (m < t) throw new Error("Expected power > 0");
            if (m === t) return y.ONE;
            if (m === e) return O;
            for(var R = y.ONE, v = O; m > t;)m & e && (R = y.mul(R, v)), v = y.sqr(v), m >>= e;
            return R;
        }
        se.FpPow = w;
        function S(y, O) {
            var m = new Array(O.length), R = O.reduce(function(A, X, C) {
                return y.is0(X) ? A : (m[C] = A, y.mul(A, X));
            }, y.ONE), v = y.inv(R);
            return O.reduceRight(function(A, X, C) {
                return y.is0(X) ? A : (m[C] = y.mul(A, m[C]), y.mul(A, X));
            }, v), m;
        }
        se.FpInvertBatch = S;
        function b(y, O, m) {
            return y.mul(O, typeof m == "bigint" ? p(m, y.ORDER) : y.inv(m));
        }
        se.FpDiv = b;
        function k(y) {
            var O = (y.ORDER - e) / o;
            return function(m) {
                var R = y.pow(m, O);
                return y.eql(R, y.ZERO) || y.eql(R, y.ONE);
            };
        }
        se.FpIsSquare = k;
        function F(y, O) {
            var m = O !== void 0 ? O : y.toString(2).length, R = Math.ceil(m / 8);
            return {
                nBitLength: m,
                nByteLength: R
            };
        }
        se.nLength = F;
        function Y(y, O, m, R) {
            if (m === void 0 && (m = !1), R === void 0 && (R = {}), y <= t) throw new Error("Expected Field ORDER > 0, got ".concat(y));
            var v = F(y, O), A = v.nBitLength, X = v.nByteLength;
            if (X > 2048) throw new Error("Field lengths over 2048 bytes are not supported");
            var C = h(y), H = Object.freeze({
                ORDER: y,
                BITS: A,
                BYTES: X,
                MASK: (0, n.bitMask)(A),
                ZERO: t,
                ONE: e,
                create: function(U) {
                    return u(U, y);
                },
                isValid: function(U) {
                    if (typeof U != "bigint") throw new Error("Invalid field element: expected bigint, got ".concat(typeof U));
                    return t <= U && U < y;
                },
                is0: function(U) {
                    return U === t;
                },
                isOdd: function(U) {
                    return (U & e) === e;
                },
                neg: function(U) {
                    return u(-U, y);
                },
                eql: function(U, L) {
                    return U === L;
                },
                sqr: function(U) {
                    return u(U * U, y);
                },
                add: function(U, L) {
                    return u(U + L, y);
                },
                sub: function(U, L) {
                    return u(U - L, y);
                },
                mul: function(U, L) {
                    return u(U * L, y);
                },
                pow: function(U, L) {
                    return w(H, U, L);
                },
                div: function(U, L) {
                    return u(U * p(L, y), y);
                },
                sqrN: function(U) {
                    return U * U;
                },
                addN: function(U, L) {
                    return U + L;
                },
                subN: function(U, L) {
                    return U - L;
                },
                mulN: function(U, L) {
                    return U * L;
                },
                inv: function(U) {
                    return p(U, y);
                },
                sqrt: R.sqrt || (function(U) {
                    return C(H, U);
                }),
                invertBatch: function(U) {
                    return S(H, U);
                },
                cmov: function(U, L, q) {
                    return q ? L : U;
                },
                toBytes: function(U) {
                    return m ? (0, n.numberToBytesLE)(U, X) : (0, n.numberToBytesBE)(U, X);
                },
                fromBytes: function(U) {
                    if (U.length !== X) throw new Error("Fp.fromBytes: expected ".concat(X, ", got ").concat(U.length));
                    return m ? (0, n.bytesToNumberLE)(U) : (0, n.bytesToNumberBE)(U);
                }
            });
            return Object.freeze(H);
        }
        se.Field = Y;
        function K(y, O) {
            if (!y.isOdd) throw new Error("Field doesn't have isOdd");
            var m = y.sqrt(O);
            return y.isOdd(m) ? m : y.neg(m);
        }
        se.FpSqrtOdd = K;
        function J(y, O) {
            if (!y.isOdd) throw new Error("Field doesn't have isOdd");
            var m = y.sqrt(O);
            return y.isOdd(m) ? y.neg(m) : m;
        }
        se.FpSqrtEven = J;
        function P(y, O, m) {
            m === void 0 && (m = !1), y = (0, n.ensureBytes)("privateHash", y);
            var R = y.length, v = F(O).nByteLength + 8;
            if (v < 24 || R < v || R > 1024) throw new Error("hashToPrivateScalar: expected ".concat(v, "-1024 bytes of input, got ").concat(R));
            var A = m ? (0, n.bytesToNumberLE)(y) : (0, n.bytesToNumberBE)(y);
            return u(A, O - e) + e;
        }
        se.hashToPrivateScalar = P;
        function T(y) {
            if (typeof y != "bigint") throw new Error("field order must be bigint");
            var O = y.toString(2).length;
            return Math.ceil(O / 8);
        }
        se.getFieldBytesLength = T;
        function E(y) {
            var O = T(y);
            return O + Math.ceil(O / 2);
        }
        se.getMinHashLength = E;
        function N(y, O, m) {
            m === void 0 && (m = !1);
            var R = y.length, v = T(O), A = E(O);
            if (R < 16 || R < A || R > 1024) throw new Error("expected ".concat(A, "-1024 bytes of input, got ").concat(R));
            var X = m ? (0, n.bytesToNumberBE)(y) : (0, n.bytesToNumberLE)(y), C = u(X, O - e) + e;
            return m ? (0, n.numberToBytesLE)(C, v) : (0, n.numberToBytesBE)(C, v);
        }
        return se.mapHashToField = N, se;
    }
    var vI;
    function iIt() {
        if (vI) return Go;
        vI = 1;
        var n = Go && Go.__assign || function() {
            return n = Object.assign || function(s) {
                for(var u, l = 1, f = arguments.length; l < f; l++){
                    u = arguments[l];
                    for(var p in u)Object.prototype.hasOwnProperty.call(u, p) && (s[p] = u[p]);
                }
                return s;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(Go, "__esModule", {
            value: !0
        }), Go.validateBasic = Go.wNAF = void 0;
        var t = oIt(), e = _9(), o = BigInt(0), _ = BigInt(1);
        function a(s, u) {
            var l = function(p, g) {
                var h = g.negate();
                return p ? h : g;
            }, f = function(p) {
                var g = Math.ceil(u / p) + 1, h = Math.pow(2, p - 1);
                return {
                    windows: g,
                    windowSize: h
                };
            };
            return {
                constTimeNegate: l,
                unsafeLadder: function(p, g) {
                    for(var h = s.ZERO, B = p; g > o;)g & _ && (h = h.add(B)), B = B.double(), g >>= _;
                    return h;
                },
                precomputeWindow: function(p, g) {
                    for(var h = f(g), B = h.windows, I = h.windowSize, j = [], w = p, S = w, b = 0; b < B; b++){
                        S = w, j.push(S);
                        for(var k = 1; k < I; k++)S = S.add(w), j.push(S);
                        w = S.double();
                    }
                    return j;
                },
                wNAF: function(p, g, h) {
                    for(var B = f(p), I = B.windows, j = B.windowSize, w = s.ZERO, S = s.BASE, b = BigInt(Math.pow(2, p) - 1), k = Math.pow(2, p), F = BigInt(p), Y = 0; Y < I; Y++){
                        var K = Y * j, J = Number(h & b);
                        h >>= F, J > j && (J -= k, h += _);
                        var P = K, T = K + Math.abs(J) - 1, E = Y % 2 !== 0, N = J < 0;
                        J === 0 ? S = S.add(l(E, g[P])) : w = w.add(l(N, g[T]));
                    }
                    return {
                        p: w,
                        f: S
                    };
                },
                wNAFCached: function(p, g, h, B) {
                    var I = p._WINDOW_SIZE || 1, j = g.get(p);
                    return j || (j = this.precomputeWindow(p, I), I !== 1 && g.set(p, B(j))), this.wNAF(I, j, h);
                }
            };
        }
        Go.wNAF = a;
        function c(s) {
            return (0, t.validateField)(s.Fp), (0, e.validateObject)(s, {
                n: "bigint",
                h: "bigint",
                Gx: "field",
                Gy: "field"
            }, {
                nBitLength: "isSafeInteger",
                nByteLength: "isSafeInteger"
            }), Object.freeze(n(n(n({}, (0, t.nLength)(s.n, s.nBitLength)), s), {
                p: s.Fp.ORDER
            }));
        }
        return Go.validateBasic = c, Go;
    }
    var mI;
    function y0() {
        return mI || (mI = 1, (function(n) {
            var t = gn && gn.__extends || (function() {
                var T = function(E, N) {
                    return T = Object.setPrototypeOf || {
                        __proto__: []
                    } instanceof Array && function(y, O) {
                        y.__proto__ = O;
                    } || function(y, O) {
                        for(var m in O)Object.prototype.hasOwnProperty.call(O, m) && (y[m] = O[m]);
                    }, T(E, N);
                };
                return function(E, N) {
                    if (typeof N != "function" && N !== null) throw new TypeError("Class extends value " + String(N) + " is not a constructor or null");
                    T(E, N);
                    function y() {
                        this.constructor = E;
                    }
                    E.prototype = N === null ? Object.create(N) : (y.prototype = N.prototype, new y);
                };
            })(), e = gn && gn.__assign || function() {
                return e = Object.assign || function(T) {
                    for(var E, N = 1, y = arguments.length; N < y; N++){
                        E = arguments[N];
                        for(var O in E)Object.prototype.hasOwnProperty.call(E, O) && (T[O] = E[O]);
                    }
                    return T;
                }, e.apply(this, arguments);
            }, o = gn && gn.__createBinding || (Object.create ? (function(T, E, N, y) {
                y === void 0 && (y = N);
                var O = Object.getOwnPropertyDescriptor(E, N);
                (!O || ("get" in O ? !E.__esModule : O.writable || O.configurable)) && (O = {
                    enumerable: !0,
                    get: function() {
                        return E[N];
                    }
                }), Object.defineProperty(T, y, O);
            }) : (function(T, E, N, y) {
                y === void 0 && (y = N), T[y] = E[N];
            })), _ = gn && gn.__setModuleDefault || (Object.create ? (function(T, E) {
                Object.defineProperty(T, "default", {
                    enumerable: !0,
                    value: E
                });
            }) : function(T, E) {
                T.default = E;
            }), a = gn && gn.__importStar || function(T) {
                if (T && T.__esModule) return T;
                var E = {};
                if (T != null) for(var N in T)N !== "default" && Object.prototype.hasOwnProperty.call(T, N) && o(E, T, N);
                return _(E, T), E;
            }, c = gn && gn.__read || function(T, E) {
                var N = typeof Symbol == "function" && T[Symbol.iterator];
                if (!N) return T;
                var y = N.call(T), O, m = [], R;
                try {
                    for(; (E === void 0 || E-- > 0) && !(O = y.next()).done;)m.push(O.value);
                } catch (v) {
                    R = {
                        error: v
                    };
                } finally{
                    try {
                        O && !O.done && (N = y.return) && N.call(y);
                    } finally{
                        if (R) throw R.error;
                    }
                }
                return m;
            }, s = gn && gn.__spreadArray || function(T, E, N) {
                if (N || arguments.length === 2) for(var y = 0, O = E.length, m; y < O; y++)(m || !(y in E)) && (m || (m = Array.prototype.slice.call(E, 0, y)), m[y] = E[y]);
                return T.concat(m || Array.prototype.slice.call(E));
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.mapToCurveSimpleSWU = n.SWUFpSqrtRatio = n.weierstrass = n.weierstrassPoints = n.DER = void 0;
            var u = a(Vl()), l = a(Li()), f = Li(), p = aIt(), g = iIt();
            function h(T) {
                var E = (0, p.validateBasic)(T);
                l.validateObject(E, {
                    a: "field",
                    b: "field"
                }, {
                    allowedPrivateKeyLengths: "array",
                    wrapPrivateKey: "boolean",
                    isTorsionFree: "function",
                    clearCofactor: "function",
                    allowInfinityPoint: "boolean",
                    fromBytes: "function",
                    toBytes: "function"
                });
                var N = E.endo, y = E.Fp, O = E.a;
                if (N) {
                    if (!y.eql(O, y.ZERO)) throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");
                    if (typeof N != "object" || typeof N.beta != "bigint" || typeof N.splitScalar != "function") throw new Error("Expected endomorphism with beta: bigint and splitScalar: function");
                }
                return Object.freeze(e({}, E));
            }
            var B = l.bytesToNumberBE, I = l.hexToBytes;
            n.DER = {
                Err: (function(T) {
                    t(E, T);
                    function E(N) {
                        return N === void 0 && (N = ""), T.call(this, N) || this;
                    }
                    return E;
                })(Error),
                _parseInt: function(T) {
                    var E = n.DER.Err;
                    if (T.length < 2 || T[0] !== 2) throw new E("Invalid signature integer tag");
                    var N = T[1], y = T.subarray(2, N + 2);
                    if (!N || y.length !== N) throw new E("Invalid signature integer: wrong length");
                    if (y[0] & 128) throw new E("Invalid signature integer: negative");
                    if (y[0] === 0 && !(y[1] & 128)) throw new E("Invalid signature integer: unnecessary leading zero");
                    return {
                        d: B(y),
                        l: T.subarray(N + 2)
                    };
                },
                toSig: function(T) {
                    var E = n.DER.Err, N = typeof T == "string" ? I(T) : T;
                    l.abytes(N);
                    var y = N.length;
                    if (y < 2 || N[0] != 48) throw new E("Invalid signature tag");
                    if (N[1] !== y - 2) throw new E("Invalid signature: incorrect length");
                    var O = n.DER._parseInt(N.subarray(2)), m = O.d, R = O.l, v = n.DER._parseInt(R), A = v.d, X = v.l;
                    if (X.length) throw new E("Invalid signature: left bytes after parsing");
                    return {
                        r: m,
                        s: A
                    };
                },
                hexFromSig: function(T) {
                    var E = function(X) {
                        return Number.parseInt(X[0], 16) & 8 ? "00" + X : X;
                    }, N = function(X) {
                        var C = X.toString(16);
                        return C.length & 1 ? "0".concat(C) : C;
                    }, y = E(N(T.s)), O = E(N(T.r)), m = y.length / 2, R = O.length / 2, v = N(m), A = N(R);
                    return "30".concat(N(R + m + 4), "02").concat(A).concat(O, "02").concat(v).concat(y);
                }
            };
            var j = BigInt(0), w = BigInt(1), S = BigInt(2), b = BigInt(3), k = BigInt(4);
            function F(T) {
                var E = h(T), N = E.Fp, y = E.toBytes || (function(q, V, Q) {
                    var Z = V.toAffine();
                    return l.concatBytes(Uint8Array.from([
                        4
                    ]), N.toBytes(Z.x), N.toBytes(Z.y));
                }), O = E.fromBytes || (function(q) {
                    var V = q.subarray(1), Q = N.fromBytes(V.subarray(0, N.BYTES)), Z = N.fromBytes(V.subarray(N.BYTES, 2 * N.BYTES));
                    return {
                        x: Q,
                        y: Z
                    };
                });
                function m(q) {
                    var V = E.a, Q = E.b, Z = N.sqr(q), tt = N.mul(Z, q);
                    return N.add(N.add(tt, N.mul(q, V)), Q);
                }
                if (!N.eql(N.sqr(E.Gy), m(E.Gx))) throw new Error("bad generator point: equation left != right");
                function R(q) {
                    return typeof q == "bigint" && j < q && q < E.n;
                }
                function v(q) {
                    if (!R(q)) throw new Error("Expected valid bigint: 0 < bigint < curve.n");
                }
                function A(q) {
                    var V = E.allowedPrivateKeyLengths, Q = E.nByteLength, Z = E.wrapPrivateKey, tt = E.n;
                    if (V && typeof q != "bigint") {
                        if (l.isBytes(q) && (q = l.bytesToHex(q)), typeof q != "string" || !V.includes(q.length)) throw new Error("Invalid key");
                        q = q.padStart(Q * 2, "0");
                    }
                    var rt;
                    try {
                        rt = typeof q == "bigint" ? q : l.bytesToNumberBE((0, f.ensureBytes)("private key", q, Q));
                    } catch  {
                        throw new Error("private key must be ".concat(Q, " bytes, hex or bigint, not ").concat(typeof q));
                    }
                    return Z && (rt = u.mod(rt, tt)), v(rt), rt;
                }
                var X = new Map;
                function C(q) {
                    if (!(q instanceof H)) throw new Error("ProjectivePoint expected");
                }
                var H = (function() {
                    function q(V, Q, Z) {
                        if (this.px = V, this.py = Q, this.pz = Z, V == null || !N.isValid(V)) throw new Error("x required");
                        if (Q == null || !N.isValid(Q)) throw new Error("y required");
                        if (Z == null || !N.isValid(Z)) throw new Error("z required");
                    }
                    return q.fromAffine = function(V) {
                        var Q = V || {}, Z = Q.x, tt = Q.y;
                        if (!V || !N.isValid(Z) || !N.isValid(tt)) throw new Error("invalid affine point");
                        if (V instanceof q) throw new Error("projective point not allowed");
                        var rt = function(at) {
                            return N.eql(at, N.ZERO);
                        };
                        return rt(Z) && rt(tt) ? q.ZERO : new q(Z, tt, N.ONE);
                    }, Object.defineProperty(q.prototype, "x", {
                        get: function() {
                            return this.toAffine().x;
                        },
                        enumerable: !1,
                        configurable: !0
                    }), Object.defineProperty(q.prototype, "y", {
                        get: function() {
                            return this.toAffine().y;
                        },
                        enumerable: !1,
                        configurable: !0
                    }), q.normalizeZ = function(V) {
                        var Q = N.invertBatch(V.map(function(Z) {
                            return Z.pz;
                        }));
                        return V.map(function(Z, tt) {
                            return Z.toAffine(Q[tt]);
                        }).map(q.fromAffine);
                    }, q.fromHex = function(V) {
                        var Q = q.fromAffine(O((0, f.ensureBytes)("pointHex", V)));
                        return Q.assertValidity(), Q;
                    }, q.fromPrivateKey = function(V) {
                        return q.BASE.multiply(A(V));
                    }, q.prototype._setWindowSize = function(V) {
                        this._WINDOW_SIZE = V, X.delete(this);
                    }, q.prototype.assertValidity = function() {
                        if (this.is0()) {
                            if (E.allowInfinityPoint && !N.is0(this.py)) return;
                            throw new Error("bad point: ZERO");
                        }
                        var V = this.toAffine(), Q = V.x, Z = V.y;
                        if (!N.isValid(Q) || !N.isValid(Z)) throw new Error("bad point: x or y not FE");
                        var tt = N.sqr(Z), rt = m(Q);
                        if (!N.eql(tt, rt)) throw new Error("bad point: equation left != right");
                        if (!this.isTorsionFree()) throw new Error("bad point: not in prime-order subgroup");
                    }, q.prototype.hasEvenY = function() {
                        var V = this.toAffine().y;
                        if (N.isOdd) return !N.isOdd(V);
                        throw new Error("Field doesn't support isOdd");
                    }, q.prototype.equals = function(V) {
                        C(V);
                        var Q = this, Z = Q.px, tt = Q.py, rt = Q.pz, at = V.px, ut = V.py, bt = V.pz, pt = N.eql(N.mul(Z, bt), N.mul(at, rt)), ot = N.eql(N.mul(tt, bt), N.mul(ut, rt));
                        return pt && ot;
                    }, q.prototype.negate = function() {
                        return new q(this.px, N.neg(this.py), this.pz);
                    }, q.prototype.double = function() {
                        var V = E.a, Q = E.b, Z = N.mul(Q, b), tt = this, rt = tt.px, at = tt.py, ut = tt.pz, bt = N.ZERO, pt = N.ZERO, ot = N.ZERO, gt = N.mul(rt, rt), W = N.mul(at, at), G = N.mul(ut, ut), et = N.mul(rt, at);
                        return et = N.add(et, et), ot = N.mul(rt, ut), ot = N.add(ot, ot), bt = N.mul(V, ot), pt = N.mul(Z, G), pt = N.add(bt, pt), bt = N.sub(W, pt), pt = N.add(W, pt), pt = N.mul(bt, pt), bt = N.mul(et, bt), ot = N.mul(Z, ot), G = N.mul(V, G), et = N.sub(gt, G), et = N.mul(V, et), et = N.add(et, ot), ot = N.add(gt, gt), gt = N.add(ot, gt), gt = N.add(gt, G), gt = N.mul(gt, et), pt = N.add(pt, gt), G = N.mul(at, ut), G = N.add(G, G), gt = N.mul(G, et), bt = N.sub(bt, gt), ot = N.mul(G, W), ot = N.add(ot, ot), ot = N.add(ot, ot), new q(bt, pt, ot);
                    }, q.prototype.add = function(V) {
                        C(V);
                        var Q = this, Z = Q.px, tt = Q.py, rt = Q.pz, at = V.px, ut = V.py, bt = V.pz, pt = N.ZERO, ot = N.ZERO, gt = N.ZERO, W = E.a, G = N.mul(E.b, b), et = N.mul(Z, at), ct = N.mul(tt, ut), ft = N.mul(rt, bt), dt = N.add(Z, tt), st = N.add(at, ut);
                        dt = N.mul(dt, st), st = N.add(et, ct), dt = N.sub(dt, st), st = N.add(Z, rt);
                        var wt = N.add(at, bt);
                        return st = N.mul(st, wt), wt = N.add(et, ft), st = N.sub(st, wt), wt = N.add(tt, rt), pt = N.add(ut, bt), wt = N.mul(wt, pt), pt = N.add(ct, ft), wt = N.sub(wt, pt), gt = N.mul(W, st), pt = N.mul(G, ft), gt = N.add(pt, gt), pt = N.sub(ct, gt), gt = N.add(ct, gt), ot = N.mul(pt, gt), ct = N.add(et, et), ct = N.add(ct, et), ft = N.mul(W, ft), st = N.mul(G, st), ct = N.add(ct, ft), ft = N.sub(et, ft), ft = N.mul(W, ft), st = N.add(st, ft), et = N.mul(ct, st), ot = N.add(ot, et), et = N.mul(wt, st), pt = N.mul(dt, pt), pt = N.sub(pt, et), et = N.mul(dt, ct), gt = N.mul(wt, gt), gt = N.add(gt, et), new q(pt, ot, gt);
                    }, q.prototype.subtract = function(V) {
                        return this.add(V.negate());
                    }, q.prototype.is0 = function() {
                        return this.equals(q.ZERO);
                    }, q.prototype.wNAF = function(V) {
                        return L.wNAFCached(this, X, V, function(Q) {
                            var Z = N.invertBatch(Q.map(function(tt) {
                                return tt.pz;
                            }));
                            return Q.map(function(tt, rt) {
                                return tt.toAffine(Z[rt]);
                            }).map(q.fromAffine);
                        });
                    }, q.prototype.multiplyUnsafe = function(V) {
                        var Q = q.ZERO;
                        if (V === j) return Q;
                        if (v(V), V === w) return this;
                        var Z = E.endo;
                        if (!Z) return L.unsafeLadder(this, V);
                        for(var tt = Z.splitScalar(V), rt = tt.k1neg, at = tt.k1, ut = tt.k2neg, bt = tt.k2, pt = Q, ot = Q, gt = this; at > j || bt > j;)at & w && (pt = pt.add(gt)), bt & w && (ot = ot.add(gt)), gt = gt.double(), at >>= w, bt >>= w;
                        return rt && (pt = pt.negate()), ut && (ot = ot.negate()), ot = new q(N.mul(ot.px, Z.beta), ot.py, ot.pz), pt.add(ot);
                    }, q.prototype.multiply = function(V) {
                        v(V);
                        var Q = BigInt(V), Z, tt, rt = E.endo;
                        if (rt) {
                            var at = rt.splitScalar(Q), ut = at.k1neg, bt = at.k1, pt = at.k2neg, ot = at.k2, gt = this.wNAF(bt), W = gt.p, G = gt.f, et = this.wNAF(ot), ct = et.p, ft = et.f;
                            W = L.constTimeNegate(ut, W), ct = L.constTimeNegate(pt, ct), ct = new q(N.mul(ct.px, rt.beta), ct.py, ct.pz), Z = W.add(ct), tt = G.add(ft);
                        } else {
                            var dt = this.wNAF(Q), st = dt.p, wt = dt.f;
                            Z = st, tt = wt;
                        }
                        return q.normalizeZ([
                            Z,
                            tt
                        ])[0];
                    }, q.prototype.multiplyAndAddUnsafe = function(V, Q, Z) {
                        var tt = q.BASE, rt = function(ut, bt) {
                            return bt === j || bt === w || !ut.equals(tt) ? ut.multiplyUnsafe(bt) : ut.multiply(bt);
                        }, at = rt(this, Q).add(rt(V, Z));
                        return at.is0() ? void 0 : at;
                    }, q.prototype.toAffine = function(V) {
                        var Q = this, Z = Q.px, tt = Q.py, rt = Q.pz, at = this.is0();
                        V == null && (V = at ? N.ONE : N.inv(rt));
                        var ut = N.mul(Z, V), bt = N.mul(tt, V), pt = N.mul(rt, V);
                        if (at) return {
                            x: N.ZERO,
                            y: N.ZERO
                        };
                        if (!N.eql(pt, N.ONE)) throw new Error("invZ was invalid");
                        return {
                            x: ut,
                            y: bt
                        };
                    }, q.prototype.isTorsionFree = function() {
                        var V = E.h, Q = E.isTorsionFree;
                        if (V === w) return !0;
                        if (Q) return Q(q, this);
                        throw new Error("isTorsionFree() has not been declared for the elliptic curve");
                    }, q.prototype.clearCofactor = function() {
                        var V = E.h, Q = E.clearCofactor;
                        return V === w ? this : Q ? Q(q, this) : this.multiplyUnsafe(E.h);
                    }, q.prototype.toRawBytes = function(V) {
                        return V === void 0 && (V = !0), this.assertValidity(), y(q, this, V);
                    }, q.prototype.toHex = function(V) {
                        return V === void 0 && (V = !0), l.bytesToHex(this.toRawBytes(V));
                    }, q.BASE = new q(E.Gx, E.Gy, N.ONE), q.ZERO = new q(N.ZERO, N.ONE, N.ZERO), q;
                })(), U = E.nBitLength, L = (0, g.wNAF)(H, E.endo ? Math.ceil(U / 2) : U);
                return {
                    CURVE: E,
                    ProjectivePoint: H,
                    normPrivateKeyToScalar: A,
                    weierstrassEquation: m,
                    isWithinCurveOrder: R
                };
            }
            n.weierstrassPoints = F;
            function Y(T) {
                var E = (0, p.validateBasic)(T);
                return l.validateObject(E, {
                    hash: "hash",
                    hmac: "function",
                    randomBytes: "function"
                }, {
                    bits2int: "function",
                    bits2int_modN: "function",
                    lowS: "boolean"
                }), Object.freeze(e({
                    lowS: !0
                }, E));
            }
            function K(T) {
                var E = Y(T), N = E.Fp, y = E.n, O = N.BYTES + 1, m = 2 * N.BYTES + 1;
                function R(st) {
                    return j < st && st < N.ORDER;
                }
                function v(st) {
                    return u.mod(st, y);
                }
                function A(st) {
                    return u.invert(st, y);
                }
                var X = F(e(e({}, E), {
                    toBytes: function(st, wt, It) {
                        var Ot = wt.toAffine(), St = N.toBytes(Ot.x), Ft = l.concatBytes;
                        return It ? Ft(Uint8Array.from([
                            wt.hasEvenY() ? 2 : 3
                        ]), St) : Ft(Uint8Array.from([
                            4
                        ]), St, N.toBytes(Ot.y));
                    },
                    fromBytes: function(st) {
                        var wt = st.length, It = st[0], Ot = st.subarray(1);
                        if (wt === O && (It === 2 || It === 3)) {
                            var St = l.bytesToNumberBE(Ot);
                            if (!R(St)) throw new Error("Point is not on curve");
                            var Ft = U(St), Ct = void 0;
                            try {
                                Ct = N.sqrt(Ft);
                            } catch (xe) {
                                var Ut = xe instanceof Error ? ": " + xe.message : "";
                                throw new Error("Point is not on curve" + Ut);
                            }
                            var Gt = (Ct & w) === w, be = (It & 1) === 1;
                            return be !== Gt && (Ct = N.neg(Ct)), {
                                x: St,
                                y: Ct
                            };
                        } else if (wt === m && It === 4) {
                            var St = N.fromBytes(Ot.subarray(0, N.BYTES)), Ct = N.fromBytes(Ot.subarray(N.BYTES, 2 * N.BYTES));
                            return {
                                x: St,
                                y: Ct
                            };
                        } else throw new Error("Point of length ".concat(wt, " was invalid. Expected ").concat(O, " compressed bytes or ").concat(m, " uncompressed bytes"));
                    }
                })), C = X.ProjectivePoint, H = X.normPrivateKeyToScalar, U = X.weierstrassEquation, L = X.isWithinCurveOrder, q = function(st) {
                    return l.bytesToHex(l.numberToBytesBE(st, E.nByteLength));
                };
                function V(st) {
                    var wt = y >> w;
                    return st > wt;
                }
                function Q(st) {
                    return V(st) ? v(-st) : st;
                }
                var Z = function(st, wt, It) {
                    return l.bytesToNumberBE(st.slice(wt, It));
                }, tt = (function() {
                    function st(wt, It, Ot) {
                        this.r = wt, this.s = It, this.recovery = Ot, this.assertValidity();
                    }
                    return st.fromCompact = function(wt) {
                        var It = E.nByteLength;
                        return wt = (0, f.ensureBytes)("compactSignature", wt, It * 2), new st(Z(wt, 0, It), Z(wt, It, 2 * It));
                    }, st.fromDER = function(wt) {
                        var It = n.DER.toSig((0, f.ensureBytes)("DER", wt)), Ot = It.r, St = It.s;
                        return new st(Ot, St);
                    }, st.prototype.assertValidity = function() {
                        if (!L(this.r)) throw new Error("r must be 0 < r < CURVE.n");
                        if (!L(this.s)) throw new Error("s must be 0 < s < CURVE.n");
                    }, st.prototype.addRecoveryBit = function(wt) {
                        return new st(this.r, this.s, wt);
                    }, st.prototype.recoverPublicKey = function(wt) {
                        var It = this, Ot = It.r, St = It.s, Ft = It.recovery, Ct = ot((0, f.ensureBytes)("msgHash", wt));
                        if (Ft == null || ![
                            0,
                            1,
                            2,
                            3
                        ].includes(Ft)) throw new Error("recovery id invalid");
                        var Ut = Ft === 2 || Ft === 3 ? Ot + E.n : Ot;
                        if (Ut >= N.ORDER) throw new Error("recovery id 2 or 3 invalid");
                        var Gt = (Ft & 1) === 0 ? "02" : "03", be = C.fromHex(Gt + q(Ut)), xe = A(Ut), De = v(-Ct * xe), _r = v(St * xe), yr = C.BASE.multiplyAndAddUnsafe(be, De, _r);
                        if (!yr) throw new Error("point at infinify");
                        return yr.assertValidity(), yr;
                    }, st.prototype.hasHighS = function() {
                        return V(this.s);
                    }, st.prototype.normalizeS = function() {
                        return this.hasHighS() ? new st(this.r, v(-this.s), this.recovery) : this;
                    }, st.prototype.toDERRawBytes = function() {
                        return l.hexToBytes(this.toDERHex());
                    }, st.prototype.toDERHex = function() {
                        return n.DER.hexFromSig({
                            r: this.r,
                            s: this.s
                        });
                    }, st.prototype.toCompactRawBytes = function() {
                        return l.hexToBytes(this.toCompactHex());
                    }, st.prototype.toCompactHex = function() {
                        return q(this.r) + q(this.s);
                    }, st;
                })(), rt = {
                    isValidPrivateKey: function(st) {
                        try {
                            return H(st), !0;
                        } catch  {
                            return !1;
                        }
                    },
                    normPrivateKeyToScalar: H,
                    randomPrivateKey: function() {
                        var st = u.getMinHashLength(E.n);
                        return u.mapHashToField(E.randomBytes(st), E.n);
                    },
                    precompute: function(st, wt) {
                        return st === void 0 && (st = 8), wt === void 0 && (wt = C.BASE), wt._setWindowSize(st), wt.multiply(BigInt(3)), wt;
                    }
                };
                function at(st, wt) {
                    return wt === void 0 && (wt = !0), C.fromPrivateKey(st).toRawBytes(wt);
                }
                function ut(st) {
                    var wt = l.isBytes(st), It = typeof st == "string", Ot = (wt || It) && st.length;
                    return wt ? Ot === O || Ot === m : It ? Ot === 2 * O || Ot === 2 * m : st instanceof C;
                }
                function bt(st, wt, It) {
                    if (It === void 0 && (It = !0), ut(st)) throw new Error("first arg must be private key");
                    if (!ut(wt)) throw new Error("second arg must be public key");
                    var Ot = C.fromHex(wt);
                    return Ot.multiply(H(st)).toRawBytes(It);
                }
                var pt = E.bits2int || function(st) {
                    var wt = l.bytesToNumberBE(st), It = st.length * 8 - E.nBitLength;
                    return It > 0 ? wt >> BigInt(It) : wt;
                }, ot = E.bits2int_modN || function(st) {
                    return v(pt(st));
                }, gt = l.bitMask(E.nBitLength);
                function W(st) {
                    if (typeof st != "bigint") throw new Error("bigint expected");
                    if (!(j <= st && st < gt)) throw new Error("bigint expected < 2^".concat(E.nBitLength));
                    return l.numberToBytesBE(st, E.nByteLength);
                }
                function G(st, wt, It) {
                    if (It === void 0 && (It = et), [
                        "recovered",
                        "canonical"
                    ].some(function(D) {
                        return D in It;
                    })) throw new Error("sign() legacy options not supported");
                    var Ot = E.hash, St = E.randomBytes, Ft = It.lowS, Ct = It.prehash, Ut = It.extraEntropy;
                    Ft == null && (Ft = !0), st = (0, f.ensureBytes)("msgHash", st), Ct && (st = (0, f.ensureBytes)("prehashed msgHash", Ot(st)));
                    var Gt = ot(st), be = H(wt), xe = [
                        W(be),
                        W(Gt)
                    ];
                    if (Ut != null && Ut !== !1) {
                        var De = Ut === !0 ? St(N.BYTES) : Ut;
                        xe.push((0, f.ensureBytes)("extraEntropy", De));
                    }
                    var _r = l.concatBytes.apply(l, s([], c(xe), !1)), yr = Gt;
                    function M(D) {
                        var nt = pt(D);
                        if (L(nt)) {
                            var it = A(nt), ht = C.BASE.multiply(nt).toAffine(), vt = v(ht.x);
                            if (vt !== j) {
                                var kt = v(it * v(yr + vt * be));
                                if (kt !== j) {
                                    var jt = (ht.x === vt ? 0 : 2) | Number(ht.y & w), Rt = kt;
                                    return Ft && V(kt) && (Rt = Q(kt), jt ^= 1), new tt(vt, Rt, jt);
                                }
                            }
                        }
                    }
                    return {
                        seed: _r,
                        k2sig: M
                    };
                }
                var et = {
                    lowS: E.lowS,
                    prehash: !1
                }, ct = {
                    lowS: E.lowS,
                    prehash: !1
                };
                function ft(st, wt, It) {
                    It === void 0 && (It = et);
                    var Ot = G(st, wt, It), St = Ot.seed, Ft = Ot.k2sig, Ct = E, Ut = l.createHmacDrbg(Ct.hash.outputLen, Ct.nByteLength, Ct.hmac);
                    return Ut(St, Ft);
                }
                C.BASE._setWindowSize(8);
                function dt(st, wt, It, Ot) {
                    var St;
                    Ot === void 0 && (Ot = ct);
                    var Ft = st;
                    if (wt = (0, f.ensureBytes)("msgHash", wt), It = (0, f.ensureBytes)("publicKey", It), "strict" in Ot) throw new Error("options.strict was renamed to lowS");
                    var Ct = Ot.lowS, Ut = Ot.prehash, Gt = void 0, be;
                    try {
                        if (typeof Ft == "string" || l.isBytes(Ft)) try {
                            Gt = tt.fromDER(Ft);
                        } catch (kt) {
                            if (!(kt instanceof n.DER.Err)) throw kt;
                            Gt = tt.fromCompact(Ft);
                        }
                        else if (typeof Ft == "object" && typeof Ft.r == "bigint" && typeof Ft.s == "bigint") {
                            var xe = Ft.r, De = Ft.s;
                            Gt = new tt(xe, De);
                        } else throw new Error("PARSE");
                        be = C.fromHex(It);
                    } catch (kt) {
                        if (kt.message === "PARSE") throw new Error("signature must be Signature instance, Uint8Array or hex string");
                        return !1;
                    }
                    if (Ct && Gt.hasHighS()) return !1;
                    Ut && (wt = E.hash(wt));
                    var _r = Gt.r, yr = Gt.s, M = ot(wt), D = A(yr), nt = v(M * D), it = v(_r * D), ht = (St = C.BASE.multiplyAndAddUnsafe(be, nt, it)) === null || St === void 0 ? void 0 : St.toAffine();
                    if (!ht) return !1;
                    var vt = v(ht.x);
                    return vt === _r;
                }
                return {
                    CURVE: E,
                    getPublicKey: at,
                    getSharedSecret: bt,
                    sign: ft,
                    verify: dt,
                    ProjectivePoint: C,
                    Signature: tt,
                    utils: rt
                };
            }
            n.weierstrass = K;
            function J(T, E) {
                for(var N = T.ORDER, y = j, O = N - w; O % S === j; O /= S)y += w;
                var m = y, R = S << m - w - w, v = R * S, A = (N - w) / v, X = (A - w) / S, C = v - w, H = R, U = T.pow(E, A), L = T.pow(E, (A + w) / S), q = function(Z, tt) {
                    var rt = U, at = T.pow(tt, C), ut = T.sqr(at);
                    ut = T.mul(ut, tt);
                    var bt = T.mul(Z, ut);
                    bt = T.pow(bt, X), bt = T.mul(bt, at), at = T.mul(bt, tt), ut = T.mul(bt, Z);
                    var pt = T.mul(ut, at);
                    bt = T.pow(pt, H);
                    var ot = T.eql(bt, T.ONE);
                    at = T.mul(ut, L), bt = T.mul(pt, rt), ut = T.cmov(at, ut, ot), pt = T.cmov(bt, pt, ot);
                    for(var gt = m; gt > w; gt--){
                        var W = gt - S;
                        W = S << W - w;
                        var G = T.pow(pt, W), et = T.eql(G, T.ONE);
                        at = T.mul(ut, rt), rt = T.mul(rt, rt), G = T.mul(pt, rt), ut = T.cmov(at, ut, et), pt = T.cmov(G, pt, et);
                    }
                    return {
                        isValid: ot,
                        value: ut
                    };
                };
                if (T.ORDER % k === b) {
                    var V = (T.ORDER - b) / k, Q = T.sqrt(T.neg(E));
                    q = function(Z, tt) {
                        var rt = T.sqr(tt), at = T.mul(Z, tt);
                        rt = T.mul(rt, at);
                        var ut = T.pow(rt, V);
                        ut = T.mul(ut, at);
                        var bt = T.mul(ut, Q), pt = T.mul(T.sqr(ut), tt), ot = T.eql(pt, Z), gt = T.cmov(bt, ut, ot);
                        return {
                            isValid: ot,
                            value: gt
                        };
                    };
                }
                return q;
            }
            n.SWUFpSqrtRatio = J;
            function P(T, E) {
                if (u.validateField(T), !T.isValid(E.A) || !T.isValid(E.B) || !T.isValid(E.Z)) throw new Error("mapToCurveSimpleSWU: invalid opts");
                var N = J(T, E.Z);
                if (!T.isOdd) throw new Error("Fp.isOdd is not implemented!");
                return function(y) {
                    var O, m, R, v, A, X, C, H;
                    O = T.sqr(y), O = T.mul(O, E.Z), m = T.sqr(O), m = T.add(m, O), R = T.add(m, T.ONE), R = T.mul(R, E.B), v = T.cmov(E.Z, T.neg(m), !T.eql(m, T.ZERO)), v = T.mul(v, E.A), m = T.sqr(R), X = T.sqr(v), A = T.mul(X, E.A), m = T.add(m, A), m = T.mul(m, R), X = T.mul(X, v), A = T.mul(X, E.B), m = T.add(m, A), C = T.mul(O, R);
                    var U = N(m, X), L = U.isValid, q = U.value;
                    H = T.mul(O, y), H = T.mul(H, q), C = T.cmov(C, R, L), H = T.cmov(H, q, L);
                    var V = T.isOdd(y) === T.isOdd(H);
                    return H = T.cmov(T.neg(H), H, V), C = T.div(C, v), {
                        x: C,
                        y: H
                    };
                };
            }
            n.mapToCurveSimpleSWU = P;
        })(gn)), gn;
    }
    var II;
    function sIt() {
        if (II) return Do;
        II = 1;
        var n = Do && Do.__assign || function() {
            return n = Object.assign || function(l) {
                for(var f, p = 1, g = arguments.length; p < g; p++){
                    f = arguments[p];
                    for(var h in f)Object.prototype.hasOwnProperty.call(f, h) && (l[h] = f[h]);
                }
                return l;
            }, n.apply(this, arguments);
        }, t = Do && Do.__values || function(l) {
            var f = typeof Symbol == "function" && Symbol.iterator, p = f && l[f], g = 0;
            if (p) return p.call(l);
            if (l && typeof l.length == "number") return {
                next: function() {
                    return l && g >= l.length && (l = void 0), {
                        value: l && l[g++],
                        done: !l
                    };
                }
            };
            throw new TypeError(f ? "Object is not iterable." : "Symbol.iterator is not defined.");
        };
        Object.defineProperty(Do, "__esModule", {
            value: !0
        }), Do.bls = void 0;
        var e = Vl(), o = Li(), _ = w0(), a = y0(), c = BigInt(2), s = BigInt(3);
        function u(l) {
            var f = l.fields, p = f.Fp, g = f.Fr, h = f.Fp2, B = f.Fp6, I = f.Fp12, j = (0, o.bitLen)(l.params.x);
            function w(Q) {
                for(var Z = Q.x, tt = Q.y, rt = Z, at = tt, ut = h.ONE, bt = rt, pt = at, ot = ut, gt = [], W = j - 2; W >= 0; W--){
                    var G = h.sqr(pt), et = h.sqr(ot), ct = h.multiplyByB(h.mul(et, s)), ft = h.mul(ct, s), dt = h.sub(h.sub(h.sqr(h.add(pt, ot)), et), G);
                    if (gt.push([
                        h.sub(ct, G),
                        h.mul(h.sqr(bt), s),
                        h.neg(dt)
                    ]), bt = h.div(h.mul(h.mul(h.sub(G, ft), bt), pt), c), pt = h.sub(h.sqr(h.div(h.add(G, ft), c)), h.mul(h.sqr(ct), s)), ot = h.mul(G, dt), (0, o.bitGet)(l.params.x, W)) {
                        var st = h.sub(pt, h.mul(at, ot)), wt = h.sub(bt, h.mul(rt, ot));
                        gt.push([
                            h.sub(h.mul(st, rt), h.mul(wt, at)),
                            h.neg(st),
                            wt
                        ]);
                        var It = h.sqr(wt), Ot = h.mul(It, wt), St = h.mul(It, bt), Ft = h.add(h.sub(Ot, h.mul(St, c)), h.mul(h.sqr(st), ot));
                        bt = h.mul(wt, Ft), pt = h.sub(h.mul(h.sub(St, Ft), st), h.mul(Ot, pt)), ot = h.mul(ot, Ot);
                    }
                }
                return gt;
            }
            function S(Q, Z) {
                for(var tt = l.params.x, rt = Z[0], at = Z[1], ut = I.ONE, bt = 0, pt = j - 2; pt >= 0; pt--, bt++){
                    var ot = Q[bt];
                    if (ut = I.multiplyBy014(ut, ot[0], h.mul(ot[1], rt), h.mul(ot[2], at)), (0, o.bitGet)(tt, pt)) {
                        bt += 1;
                        var gt = Q[bt];
                        ut = I.multiplyBy014(ut, gt[0], h.mul(gt[1], rt), h.mul(gt[2], at));
                    }
                    pt !== 0 && (ut = I.sqr(ut));
                }
                return I.conjugate(ut);
            }
            var b = {
                randomPrivateKey: function() {
                    var Q = (0, e.getMinHashLength)(g.ORDER);
                    return (0, e.mapHashToField)(l.randomBytes(Q), g.ORDER);
                },
                calcPairingPrecomputes: w
            }, k = (0, a.weierstrassPoints)(n({
                n: g.ORDER
            }, l.G1)), F = Object.assign(k, (0, _.createHasher)(k.ProjectivePoint, l.G1.mapToCurve, n(n({}, l.htfDefaults), l.G1.htfDefaults)));
            function Y(Q) {
                var Z = Q;
                return Z._PPRECOMPUTES || (Z._PPRECOMPUTES = w(Q.toAffine())), Z._PPRECOMPUTES;
            }
            var K = (0, a.weierstrassPoints)(n({
                n: g.ORDER
            }, l.G2)), J = Object.assign(K, (0, _.createHasher)(K.ProjectivePoint, l.G2.mapToCurve, n(n({}, l.htfDefaults), l.G2.htfDefaults))), P = l.G1.ShortSignature, T = l.G2.Signature;
            function E(Q, Z, tt) {
                if (tt === void 0 && (tt = !0), Q.equals(F.ProjectivePoint.ZERO) || Z.equals(J.ProjectivePoint.ZERO)) throw new Error("pairing is not available for ZERO point");
                Q.assertValidity(), Z.assertValidity();
                var rt = Q.toAffine(), at = S(Y(Z), [
                    rt.x,
                    rt.y
                ]);
                return tt ? I.finalExponentiate(at) : at;
            }
            function N(Q) {
                return Q instanceof F.ProjectivePoint ? Q : F.ProjectivePoint.fromHex(Q);
            }
            function y(Q, Z) {
                return Q instanceof F.ProjectivePoint ? Q : F.hashToCurve((0, o.ensureBytes)("point", Q), Z);
            }
            function O(Q) {
                return Q instanceof J.ProjectivePoint ? Q : T.fromHex(Q);
            }
            function m(Q, Z) {
                return Q instanceof J.ProjectivePoint ? Q : J.hashToCurve((0, o.ensureBytes)("point", Q), Z);
            }
            function R(Q) {
                return F.ProjectivePoint.fromPrivateKey(Q).toRawBytes(!0);
            }
            function v(Q) {
                return J.ProjectivePoint.fromPrivateKey(Q).toRawBytes(!0);
            }
            function A(Q, Z, tt) {
                var rt = m(Q, tt);
                rt.assertValidity();
                var at = rt.multiply(F.normPrivateKeyToScalar(Z));
                return Q instanceof J.ProjectivePoint ? at : T.toRawBytes(at);
            }
            function X(Q, Z, tt) {
                var rt = y(Q, tt);
                rt.assertValidity();
                var at = rt.multiply(F.normPrivateKeyToScalar(Z));
                return Q instanceof F.ProjectivePoint ? at : P.toRawBytes(at);
            }
            function C(Q, Z, tt, rt) {
                var at = N(tt), ut = m(Z, rt), bt = F.ProjectivePoint.BASE, pt = O(Q), ot = E(at.negate(), ut, !1), gt = E(bt, pt, !1), W = I.finalExponentiate(I.mul(gt, ot));
                return I.eql(W, I.ONE);
            }
            function H(Q, Z, tt, rt) {
                var at = O(tt), ut = y(Z, rt), bt = J.ProjectivePoint.BASE, pt = N(Q), ot = E(ut, at, !1), gt = E(pt, bt.negate(), !1), W = I.finalExponentiate(I.mul(gt, ot));
                return I.eql(W, I.ONE);
            }
            function U(Q) {
                if (!Q.length) throw new Error("Expected non-empty array");
                var Z = Q.map(N).reduce(function(rt, at) {
                    return rt.add(at);
                }, F.ProjectivePoint.ZERO), tt = Z;
                return Q[0] instanceof F.ProjectivePoint ? (tt.assertValidity(), tt) : tt.toRawBytes(!0);
            }
            function L(Q) {
                if (!Q.length) throw new Error("Expected non-empty array");
                var Z = Q.map(O).reduce(function(rt, at) {
                    return rt.add(at);
                }, J.ProjectivePoint.ZERO), tt = Z;
                return Q[0] instanceof J.ProjectivePoint ? (tt.assertValidity(), tt) : T.toRawBytes(tt);
            }
            function q(Q) {
                if (!Q.length) throw new Error("Expected non-empty array");
                var Z = Q.map(N).reduce(function(rt, at) {
                    return rt.add(at);
                }, F.ProjectivePoint.ZERO), tt = Z;
                return Q[0] instanceof F.ProjectivePoint ? (tt.assertValidity(), tt) : P.toRawBytes(tt);
            }
            function V(Q, Z, tt, rt) {
                var at, ut;
                if (!Z.length) throw new Error("Expected non-empty messages array");
                if (tt.length !== Z.length) throw new Error("Pubkey count should equal msg count");
                var bt = O(Q), pt = Z.map(function(st) {
                    return m(st, rt);
                }), ot = tt.map(N);
                try {
                    var gt = [], W = function(st) {
                        var wt = pt.reduce(function(It, Ot, St) {
                            return Ot === st ? It.add(ot[St]) : It;
                        }, F.ProjectivePoint.ZERO);
                        gt.push(E(wt, st, !1));
                    };
                    try {
                        for(var G = t(new Set(pt)), et = G.next(); !et.done; et = G.next()){
                            var ct = et.value;
                            W(ct);
                        }
                    } catch (st) {
                        at = {
                            error: st
                        };
                    } finally{
                        try {
                            et && !et.done && (ut = G.return) && ut.call(G);
                        } finally{
                            if (at) throw at.error;
                        }
                    }
                    gt.push(E(F.ProjectivePoint.BASE.negate(), bt, !1));
                    var ft = gt.reduce(function(st, wt) {
                        return I.mul(st, wt);
                    }, I.ONE), dt = I.finalExponentiate(ft);
                    return I.eql(dt, I.ONE);
                } catch  {
                    return !1;
                }
            }
            return F.ProjectivePoint.BASE._setWindowSize(4), {
                getPublicKey: R,
                getPublicKeyForShortSignatures: v,
                sign: A,
                signShortSignature: X,
                verify: C,
                verifyBatch: V,
                verifyShortSignature: H,
                aggregatePublicKeys: U,
                aggregateSignatures: L,
                aggregateShortSignatures: q,
                millerLoop: S,
                pairing: E,
                G1: F,
                G2: J,
                Signature: T,
                ShortSignature: P,
                fields: {
                    Fr: g,
                    Fp: p,
                    Fp2: h,
                    Fp6: B,
                    Fp12: I
                },
                params: {
                    x: l.params.x,
                    r: l.params.r,
                    G1b: l.G1.b,
                    G2b: l.G2.b
                },
                utils: b
            };
        }
        return Do.bls = u, Do;
    }
    var Ho = {}, Cn = {}, Nr = {}, kI;
    function a9() {
        if (kI) return Nr;
        kI = 1, Object.defineProperty(Nr, "__esModule", {
            value: !0
        }), Nr.output = Nr.exists = Nr.hash = Nr.bytes = Nr.bool = Nr.number = Nr.isBytes = void 0;
        function n(u) {
            if (!Number.isSafeInteger(u) || u < 0) throw new Error("positive integer expected, not ".concat(u));
        }
        Nr.number = n;
        function t(u) {
            if (typeof u != "boolean") throw new Error("boolean expected, not ".concat(u));
        }
        Nr.bool = t;
        function e(u) {
            return u instanceof Uint8Array || u != null && typeof u == "object" && u.constructor.name === "Uint8Array";
        }
        Nr.isBytes = e;
        function o(u) {
            for(var l = [], f = 1; f < arguments.length; f++)l[f - 1] = arguments[f];
            if (!e(u)) throw new Error("Uint8Array expected");
            if (l.length > 0 && !l.includes(u.length)) throw new Error("Uint8Array expected of length ".concat(l, ", not of length=").concat(u.length));
        }
        Nr.bytes = o;
        function _(u) {
            if (typeof u != "function" || typeof u.create != "function") throw new Error("Hash should be wrapped by utils.wrapConstructor");
            n(u.outputLen), n(u.blockLen);
        }
        Nr.hash = _;
        function a(u, l) {
            if (l === void 0 && (l = !0), u.destroyed) throw new Error("Hash instance has been destroyed");
            if (l && u.finished) throw new Error("Hash#digest() has already been called");
        }
        Nr.exists = a;
        function c(u, l) {
            o(u);
            var f = l.outputLen;
            if (u.length < f) throw new Error("digestInto() expects output buffer of length at least ".concat(f));
        }
        Nr.output = c;
        var s = {
            number: n,
            bool: t,
            bytes: o,
            hash: _,
            exists: a,
            output: c
        };
        return Nr.default = s, Nr;
    }
    var BI;
    function wh() {
        if (BI) return Cn;
        BI = 1;
        var n = Cn && Cn.__extends || (function() {
            var l = function(f, p) {
                return l = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(g, h) {
                    g.__proto__ = h;
                } || function(g, h) {
                    for(var B in h)Object.prototype.hasOwnProperty.call(h, B) && (g[B] = h[B]);
                }, l(f, p);
            };
            return function(f, p) {
                if (typeof p != "function" && p !== null) throw new TypeError("Class extends value " + String(p) + " is not a constructor or null");
                l(f, p);
                function g() {
                    this.constructor = f;
                }
                f.prototype = p === null ? Object.create(p) : (g.prototype = p.prototype, new g);
            };
        })(), t = Cn && Cn.__read || function(l, f) {
            var p = typeof Symbol == "function" && l[Symbol.iterator];
            if (!p) return l;
            var g = p.call(l), h, B = [], I;
            try {
                for(; (f === void 0 || f-- > 0) && !(h = g.next()).done;)B.push(h.value);
            } catch (j) {
                I = {
                    error: j
                };
            } finally{
                try {
                    h && !h.done && (p = g.return) && p.call(g);
                } finally{
                    if (I) throw I.error;
                }
            }
            return B;
        }, e = Cn && Cn.__spreadArray || function(l, f, p) {
            if (p || arguments.length === 2) for(var g = 0, h = f.length, B; g < h; g++)(B || !(g in f)) && (B || (B = Array.prototype.slice.call(f, 0, g)), B[g] = f[g]);
            return l.concat(B || Array.prototype.slice.call(f));
        };
        Object.defineProperty(Cn, "__esModule", {
            value: !0
        }), Cn.HashMD = Cn.Maj = Cn.Chi = void 0;
        var o = a9(), _ = $i();
        function a(l, f, p, g) {
            if (typeof l.setBigUint64 == "function") return l.setBigUint64(f, p, g);
            var h = BigInt(32), B = BigInt(4294967295), I = Number(p >> h & B), j = Number(p & B), w = g ? 4 : 0, S = g ? 0 : 4;
            l.setUint32(f + w, I, g), l.setUint32(f + S, j, g);
        }
        var c = function(l, f, p) {
            return l & f ^ ~l & p;
        };
        Cn.Chi = c;
        var s = function(l, f, p) {
            return l & f ^ l & p ^ f & p;
        };
        Cn.Maj = s;
        var u = (function(l) {
            n(f, l);
            function f(p, g, h, B) {
                var I = l.call(this) || this;
                return I.blockLen = p, I.outputLen = g, I.padOffset = h, I.isLE = B, I.finished = !1, I.length = 0, I.pos = 0, I.destroyed = !1, I.buffer = new Uint8Array(p), I.view = (0, _.createView)(I.buffer), I;
            }
            return f.prototype.update = function(p) {
                (0, o.exists)(this);
                var g = this, h = g.view, B = g.buffer, I = g.blockLen;
                p = (0, _.toBytes)(p);
                for(var j = p.length, w = 0; w < j;){
                    var S = Math.min(I - this.pos, j - w);
                    if (S === I) {
                        for(var b = (0, _.createView)(p); I <= j - w; w += I)this.process(b, w);
                        continue;
                    }
                    B.set(p.subarray(w, w + S), this.pos), this.pos += S, w += S, this.pos === I && (this.process(h, 0), this.pos = 0);
                }
                return this.length += p.length, this.roundClean(), this;
            }, f.prototype.digestInto = function(p) {
                (0, o.exists)(this), (0, o.output)(p, this), this.finished = !0;
                var g = this, h = g.buffer, B = g.view, I = g.blockLen, j = g.isLE, w = this.pos;
                h[w++] = 128, this.buffer.subarray(w).fill(0), this.padOffset > I - w && (this.process(B, 0), w = 0);
                for(var S = w; S < I; S++)h[S] = 0;
                a(B, I - 8, BigInt(this.length * 8), j), this.process(B, 0);
                var b = (0, _.createView)(p), k = this.outputLen;
                if (k % 4) throw new Error("_sha2: outputLen should be aligned to 32bit");
                var F = k / 4, Y = this.get();
                if (F > Y.length) throw new Error("_sha2: outputLen bigger than state");
                for(var S = 0; S < F; S++)b.setUint32(4 * S, Y[S], j);
            }, f.prototype.digest = function() {
                var p = this, g = p.buffer, h = p.outputLen;
                this.digestInto(g);
                var B = Uint8Array.prototype.slice.call(g, 0, h);
                return this.destroy(), B;
            }, f.prototype._cloneInto = function(p) {
                p || (p = new this.constructor), p.set.apply(p, e([], t(this.get()), !1));
                var g = this, h = g.blockLen, B = g.buffer, I = g.length, j = g.finished, w = g.destroyed, S = g.pos;
                return p.length = I, p.pos = S, p.finished = j, p.destroyed = w, I % h && p.buffer.set(B), p;
            }, f;
        })(_.Hash);
        return Cn.HashMD = u, Cn;
    }
    var xI;
    function yh() {
        if (xI) return Ho;
        xI = 1;
        var n = Ho && Ho.__extends || (function() {
            var u = function(l, f) {
                return u = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(p, g) {
                    p.__proto__ = g;
                } || function(p, g) {
                    for(var h in g)Object.prototype.hasOwnProperty.call(g, h) && (p[h] = g[h]);
                }, u(l, f);
            };
            return function(l, f) {
                if (typeof f != "function" && f !== null) throw new TypeError("Class extends value " + String(f) + " is not a constructor or null");
                u(l, f);
                function p() {
                    this.constructor = l;
                }
                l.prototype = f === null ? Object.create(f) : (p.prototype = f.prototype, new p);
            };
        })();
        Object.defineProperty(Ho, "__esModule", {
            value: !0
        }), Ho.sha224 = Ho.sha256 = void 0;
        var t = wh(), e = $i(), o = new Uint32Array([
            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
        ]), _ = new Uint32Array([
            1779033703,
            3144134277,
            1013904242,
            2773480762,
            1359893119,
            2600822924,
            528734635,
            1541459225
        ]), a = new Uint32Array(64), c = (function(u) {
            n(l, u);
            function l() {
                var f = u.call(this, 64, 32, 8, !1) || this;
                return f.A = _[0] | 0, f.B = _[1] | 0, f.C = _[2] | 0, f.D = _[3] | 0, f.E = _[4] | 0, f.F = _[5] | 0, f.G = _[6] | 0, f.H = _[7] | 0, f;
            }
            return l.prototype.get = function() {
                var f = this, p = f.A, g = f.B, h = f.C, B = f.D, I = f.E, j = f.F, w = f.G, S = f.H;
                return [
                    p,
                    g,
                    h,
                    B,
                    I,
                    j,
                    w,
                    S
                ];
            }, l.prototype.set = function(f, p, g, h, B, I, j, w) {
                this.A = f | 0, this.B = p | 0, this.C = g | 0, this.D = h | 0, this.E = B | 0, this.F = I | 0, this.G = j | 0, this.H = w | 0;
            }, l.prototype.process = function(f, p) {
                for(var g = 0; g < 16; g++, p += 4)a[g] = f.getUint32(p, !1);
                for(var g = 16; g < 64; g++){
                    var h = a[g - 15], B = a[g - 2], I = (0, e.rotr)(h, 7) ^ (0, e.rotr)(h, 18) ^ h >>> 3, j = (0, e.rotr)(B, 17) ^ (0, e.rotr)(B, 19) ^ B >>> 10;
                    a[g] = j + a[g - 7] + I + a[g - 16] | 0;
                }
                for(var w = this, S = w.A, b = w.B, k = w.C, F = w.D, Y = w.E, K = w.F, J = w.G, P = w.H, g = 0; g < 64; g++){
                    var T = (0, e.rotr)(Y, 6) ^ (0, e.rotr)(Y, 11) ^ (0, e.rotr)(Y, 25), E = P + T + (0, t.Chi)(Y, K, J) + o[g] + a[g] | 0, N = (0, e.rotr)(S, 2) ^ (0, e.rotr)(S, 13) ^ (0, e.rotr)(S, 22), y = N + (0, t.Maj)(S, b, k) | 0;
                    P = J, J = K, K = Y, Y = F + E | 0, F = k, k = b, b = S, S = E + y | 0;
                }
                S = S + this.A | 0, b = b + this.B | 0, k = k + this.C | 0, F = F + this.D | 0, Y = Y + this.E | 0, K = K + this.F | 0, J = J + this.G | 0, P = P + this.H | 0, this.set(S, b, k, F, Y, K, J, P);
            }, l.prototype.roundClean = function() {
                a.fill(0);
            }, l.prototype.destroy = function() {
                this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
            }, l;
        })(t.HashMD), s = (function(u) {
            n(l, u);
            function l() {
                var f = u.call(this) || this;
                return f.A = -1056596264, f.B = 914150663, f.C = 812702999, f.D = -150054599, f.E = -4191439, f.F = 1750603025, f.G = 1694076839, f.H = -1090891868, f.outputLen = 28, f;
            }
            return l;
        })(c);
        return Ho.sha256 = (0, e.wrapConstructor)(function() {
            return new c;
        }), Ho.sha224 = (0, e.wrapConstructor)(function() {
            return new s;
        }), Ho;
    }
    var jI;
    function cIt() {
        return jI || (jI = 1, (function(n) {
            var t = B_ && B_.__assign || function() {
                return t = Object.assign || function(M) {
                    for(var D, nt = 1, it = arguments.length; nt < it; nt++){
                        D = arguments[nt];
                        for(var ht in D)Object.prototype.hasOwnProperty.call(D, ht) && (M[ht] = D[ht]);
                    }
                    return M;
                }, t.apply(this, arguments);
            }, e = B_ && B_.__createBinding || (Object.create ? (function(M, D, nt, it) {
                it === void 0 && (it = nt);
                var ht = Object.getOwnPropertyDescriptor(D, nt);
                (!ht || ("get" in ht ? !D.__esModule : ht.writable || ht.configurable)) && (ht = {
                    enumerable: !0,
                    get: function() {
                        return D[nt];
                    }
                }), Object.defineProperty(M, it, ht);
            }) : (function(M, D, nt, it) {
                it === void 0 && (it = nt), M[it] = D[nt];
            })), o = B_ && B_.__setModuleDefault || (Object.create ? (function(M, D) {
                Object.defineProperty(M, "default", {
                    enumerable: !0,
                    value: D
                });
            }) : function(M, D) {
                M.default = D;
            }), _ = B_ && B_.__importStar || function(M) {
                if (M && M.__esModule) return M;
                var D = {};
                if (M != null) for(var nt in M)nt !== "default" && Object.prototype.hasOwnProperty.call(M, nt) && e(D, M, nt);
                return o(D, M), D;
            }, a = B_ && B_.__read || function(M, D) {
                var nt = typeof Symbol == "function" && M[Symbol.iterator];
                if (!nt) return M;
                var it = nt.call(M), ht, vt = [], kt;
                try {
                    for(; (D === void 0 || D-- > 0) && !(ht = it.next()).done;)vt.push(ht.value);
                } catch (jt) {
                    kt = {
                        error: jt
                    };
                } finally{
                    try {
                        ht && !ht.done && (nt = it.return) && nt.call(it);
                    } finally{
                        if (kt) throw kt.error;
                    }
                }
                return vt;
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.bls12_381 = n.G2_mapToCurve = n.G1_mapToCurve = n.G1_formBytes = n.parseMask = n.Fp12 = n.Fp12_ONE = n.Fp12_eql = n.Fp12_conjugate = n.Fp12_finalExponentiate = n.Fp12Multiply = n.Fp2 = n.Fp = void 0;
            var c = sIt(), s = _(Vl()), u = Li(), l = y0(), f = w0(), p = yh(), g = $i(), h = BigInt(0), B = BigInt(1), I = BigInt(2), j = BigInt(3), w = BigInt(4), S = BigInt(8), b = BigInt(16), k = BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab");
            n.Fp = s.Field(k);
            var F = s.Field(BigInt("0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001")), Y = function(M, D) {
                var nt = M.c0, it = M.c1, ht = D.c0, vt = D.c1;
                return {
                    c0: n.Fp.add(nt, ht),
                    c1: n.Fp.add(it, vt)
                };
            }, K = function(M, D) {
                var nt = M.c0, it = M.c1, ht = D.c0, vt = D.c1;
                return {
                    c0: n.Fp.sub(nt, ht),
                    c1: n.Fp.sub(it, vt)
                };
            }, J = function(M, D) {
                var nt = M.c0, it = M.c1;
                if (typeof D == "bigint") return {
                    c0: n.Fp.mul(nt, D),
                    c1: n.Fp.mul(it, D)
                };
                var ht = D.c0, vt = D.c1, kt = n.Fp.mul(nt, ht), jt = n.Fp.mul(it, vt), Rt = n.Fp.sub(kt, jt), Lt = n.Fp.sub(n.Fp.mul(n.Fp.add(nt, it), n.Fp.add(ht, vt)), n.Fp.add(kt, jt));
                return {
                    c0: Rt,
                    c1: Lt
                };
            }, P = function(M) {
                var D = M.c0, nt = M.c1, it = n.Fp.add(D, nt), ht = n.Fp.sub(D, nt), vt = n.Fp.add(D, D);
                return {
                    c0: n.Fp.mul(it, ht),
                    c1: n.Fp.mul(vt, nt)
                };
            }, T = k * k;
            n.Fp2 = {
                ORDER: T,
                BITS: (0, u.bitLen)(T),
                BYTES: Math.ceil((0, u.bitLen)(T) / 8),
                MASK: (0, u.bitMask)((0, u.bitLen)(T)),
                ZERO: {
                    c0: n.Fp.ZERO,
                    c1: n.Fp.ZERO
                },
                ONE: {
                    c0: n.Fp.ONE,
                    c1: n.Fp.ZERO
                },
                create: function(M) {
                    return M;
                },
                isValid: function(M) {
                    var D = M.c0, nt = M.c1;
                    return typeof D == "bigint" && typeof nt == "bigint";
                },
                is0: function(M) {
                    var D = M.c0, nt = M.c1;
                    return n.Fp.is0(D) && n.Fp.is0(nt);
                },
                eql: function(M, D) {
                    var nt = M.c0, it = M.c1, ht = D.c0, vt = D.c1;
                    return n.Fp.eql(nt, ht) && n.Fp.eql(it, vt);
                },
                neg: function(M) {
                    var D = M.c0, nt = M.c1;
                    return {
                        c0: n.Fp.neg(D),
                        c1: n.Fp.neg(nt)
                    };
                },
                pow: function(M, D) {
                    return s.FpPow(n.Fp2, M, D);
                },
                invertBatch: function(M) {
                    return s.FpInvertBatch(n.Fp2, M);
                },
                add: Y,
                sub: K,
                mul: J,
                sqr: P,
                addN: Y,
                subN: K,
                mulN: J,
                sqrN: P,
                div: function(M, D) {
                    return n.Fp2.mul(M, typeof D == "bigint" ? n.Fp.inv(n.Fp.create(D)) : n.Fp2.inv(D));
                },
                inv: function(M) {
                    var D = M.c0, nt = M.c1, it = n.Fp.inv(n.Fp.create(D * D + nt * nt));
                    return {
                        c0: n.Fp.mul(it, n.Fp.create(D)),
                        c1: n.Fp.mul(it, n.Fp.create(-nt))
                    };
                },
                sqrt: function(M) {
                    if (n.Fp2.eql(M, n.Fp2.ZERO)) return n.Fp2.ZERO;
                    var D = n.Fp2.pow(M, (n.Fp2.ORDER + S) / b), nt = n.Fp2.div(n.Fp2.sqr(D), M), it = y, ht = [
                        it[0],
                        it[2],
                        it[4],
                        it[6]
                    ].find(function(gr) {
                        return n.Fp2.eql(gr, nt);
                    });
                    if (!ht) throw new Error("No root");
                    var vt = it.indexOf(ht), kt = it[vt / 2];
                    if (!kt) throw new Error("Invalid root");
                    var jt = n.Fp2.div(D, kt), Rt = n.Fp2.neg(jt), Lt = n.Fp2.reim(jt), Dt = Lt.re, ue = Lt.im, Se = n.Fp2.reim(Rt), le = Se.re, we = Se.im;
                    return ue > we || ue === we && Dt > le ? jt : Rt;
                },
                isOdd: function(M) {
                    var D = n.Fp2.reim(M), nt = D.re, it = D.im, ht = nt % I, vt = nt === h, kt = it % I;
                    return BigInt(ht || vt && kt) == B;
                },
                fromBytes: function(M) {
                    if (M.length !== n.Fp2.BYTES) throw new Error("fromBytes wrong length=".concat(M.length));
                    return {
                        c0: n.Fp.fromBytes(M.subarray(0, n.Fp.BYTES)),
                        c1: n.Fp.fromBytes(M.subarray(n.Fp.BYTES))
                    };
                },
                toBytes: function(M) {
                    var D = M.c0, nt = M.c1;
                    return (0, u.concatBytes)(n.Fp.toBytes(D), n.Fp.toBytes(nt));
                },
                cmov: function(M, D, nt) {
                    var it = M.c0, ht = M.c1, vt = D.c0, kt = D.c1;
                    return {
                        c0: n.Fp.cmov(it, vt, nt),
                        c1: n.Fp.cmov(ht, kt, nt)
                    };
                },
                reim: function(M) {
                    var D = M.c0, nt = M.c1;
                    return {
                        re: D,
                        im: nt
                    };
                },
                mulByNonresidue: function(M) {
                    var D = M.c0, nt = M.c1;
                    return {
                        c0: n.Fp.sub(D, nt),
                        c1: n.Fp.add(D, nt)
                    };
                },
                multiplyByB: function(M) {
                    var D = M.c0, nt = M.c1, it = n.Fp.mul(D, w), ht = n.Fp.mul(nt, w);
                    return {
                        c0: n.Fp.sub(it, ht),
                        c1: n.Fp.add(it, ht)
                    };
                },
                fromBigTuple: function(M) {
                    if (M.length !== 2) throw new Error("Invalid tuple");
                    var D = M.map(function(nt) {
                        return n.Fp.create(nt);
                    });
                    return {
                        c0: D[0],
                        c1: D[1]
                    };
                },
                frobeniusMap: function(M, D) {
                    var nt = M.c0, it = M.c1;
                    return {
                        c0: nt,
                        c1: n.Fp.mul(it, E[D % 2])
                    };
                }
            };
            var E = [
                BigInt("0x1"),
                BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa")
            ].map(function(M) {
                return n.Fp.create(M);
            }), N = BigInt("0x6af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09"), y = [
                [
                    B,
                    h
                ],
                [
                    N,
                    -N
                ],
                [
                    h,
                    B
                ],
                [
                    N,
                    N
                ],
                [
                    -B,
                    h
                ],
                [
                    -N,
                    N
                ],
                [
                    h,
                    -B
                ],
                [
                    -N,
                    -N
                ]
            ].map(function(M) {
                return n.Fp2.fromBigTuple(M);
            }), O = function(M, D) {
                var nt = M.c0, it = M.c1, ht = M.c2, vt = D.c0, kt = D.c1, jt = D.c2;
                return {
                    c0: n.Fp2.add(nt, vt),
                    c1: n.Fp2.add(it, kt),
                    c2: n.Fp2.add(ht, jt)
                };
            }, m = function(M, D) {
                var nt = M.c0, it = M.c1, ht = M.c2, vt = D.c0, kt = D.c1, jt = D.c2;
                return {
                    c0: n.Fp2.sub(nt, vt),
                    c1: n.Fp2.sub(it, kt),
                    c2: n.Fp2.sub(ht, jt)
                };
            }, R = function(M, D) {
                var nt = M.c0, it = M.c1, ht = M.c2;
                if (typeof D == "bigint") return {
                    c0: n.Fp2.mul(nt, D),
                    c1: n.Fp2.mul(it, D),
                    c2: n.Fp2.mul(ht, D)
                };
                var vt = D.c0, kt = D.c1, jt = D.c2, Rt = n.Fp2.mul(nt, vt), Lt = n.Fp2.mul(it, kt), Dt = n.Fp2.mul(ht, jt);
                return {
                    c0: n.Fp2.add(Rt, n.Fp2.mulByNonresidue(n.Fp2.sub(n.Fp2.mul(n.Fp2.add(it, ht), n.Fp2.add(kt, jt)), n.Fp2.add(Lt, Dt)))),
                    c1: n.Fp2.add(n.Fp2.sub(n.Fp2.mul(n.Fp2.add(nt, it), n.Fp2.add(vt, kt)), n.Fp2.add(Rt, Lt)), n.Fp2.mulByNonresidue(Dt)),
                    c2: n.Fp2.sub(n.Fp2.add(Lt, n.Fp2.mul(n.Fp2.add(nt, ht), n.Fp2.add(vt, jt))), n.Fp2.add(Rt, Dt))
                };
            }, v = function(M) {
                var D = M.c0, nt = M.c1, it = M.c2, ht = n.Fp2.sqr(D), vt = n.Fp2.mul(n.Fp2.mul(D, nt), I), kt = n.Fp2.mul(n.Fp2.mul(nt, it), I), jt = n.Fp2.sqr(it);
                return {
                    c0: n.Fp2.add(n.Fp2.mulByNonresidue(kt), ht),
                    c1: n.Fp2.add(n.Fp2.mulByNonresidue(jt), vt),
                    c2: n.Fp2.sub(n.Fp2.sub(n.Fp2.add(n.Fp2.add(vt, n.Fp2.sqr(n.Fp2.add(n.Fp2.sub(D, nt), it))), kt), ht), jt)
                };
            }, A = {
                ORDER: n.Fp2.ORDER,
                BITS: 3 * n.Fp2.BITS,
                BYTES: 3 * n.Fp2.BYTES,
                MASK: (0, u.bitMask)(3 * n.Fp2.BITS),
                ZERO: {
                    c0: n.Fp2.ZERO,
                    c1: n.Fp2.ZERO,
                    c2: n.Fp2.ZERO
                },
                ONE: {
                    c0: n.Fp2.ONE,
                    c1: n.Fp2.ZERO,
                    c2: n.Fp2.ZERO
                },
                create: function(M) {
                    return M;
                },
                isValid: function(M) {
                    var D = M.c0, nt = M.c1, it = M.c2;
                    return n.Fp2.isValid(D) && n.Fp2.isValid(nt) && n.Fp2.isValid(it);
                },
                is0: function(M) {
                    var D = M.c0, nt = M.c1, it = M.c2;
                    return n.Fp2.is0(D) && n.Fp2.is0(nt) && n.Fp2.is0(it);
                },
                neg: function(M) {
                    var D = M.c0, nt = M.c1, it = M.c2;
                    return {
                        c0: n.Fp2.neg(D),
                        c1: n.Fp2.neg(nt),
                        c2: n.Fp2.neg(it)
                    };
                },
                eql: function(M, D) {
                    var nt = M.c0, it = M.c1, ht = M.c2, vt = D.c0, kt = D.c1, jt = D.c2;
                    return n.Fp2.eql(nt, vt) && n.Fp2.eql(it, kt) && n.Fp2.eql(ht, jt);
                },
                sqrt: function() {
                    throw new Error("Not implemented");
                },
                div: function(M, D) {
                    return A.mul(M, typeof D == "bigint" ? n.Fp.inv(n.Fp.create(D)) : A.inv(D));
                },
                pow: function(M, D) {
                    return s.FpPow(A, M, D);
                },
                invertBatch: function(M) {
                    return s.FpInvertBatch(A, M);
                },
                add: O,
                sub: m,
                mul: R,
                sqr: v,
                addN: O,
                subN: m,
                mulN: R,
                sqrN: v,
                inv: function(M) {
                    var D = M.c0, nt = M.c1, it = M.c2, ht = n.Fp2.sub(n.Fp2.sqr(D), n.Fp2.mulByNonresidue(n.Fp2.mul(it, nt))), vt = n.Fp2.sub(n.Fp2.mulByNonresidue(n.Fp2.sqr(it)), n.Fp2.mul(D, nt)), kt = n.Fp2.sub(n.Fp2.sqr(nt), n.Fp2.mul(D, it)), jt = n.Fp2.inv(n.Fp2.add(n.Fp2.mulByNonresidue(n.Fp2.add(n.Fp2.mul(it, vt), n.Fp2.mul(nt, kt))), n.Fp2.mul(D, ht)));
                    return {
                        c0: n.Fp2.mul(jt, ht),
                        c1: n.Fp2.mul(jt, vt),
                        c2: n.Fp2.mul(jt, kt)
                    };
                },
                fromBytes: function(M) {
                    if (M.length !== A.BYTES) throw new Error("fromBytes wrong length=".concat(M.length));
                    return {
                        c0: n.Fp2.fromBytes(M.subarray(0, n.Fp2.BYTES)),
                        c1: n.Fp2.fromBytes(M.subarray(n.Fp2.BYTES, 2 * n.Fp2.BYTES)),
                        c2: n.Fp2.fromBytes(M.subarray(2 * n.Fp2.BYTES))
                    };
                },
                toBytes: function(M) {
                    var D = M.c0, nt = M.c1, it = M.c2;
                    return (0, u.concatBytes)(n.Fp2.toBytes(D), n.Fp2.toBytes(nt), n.Fp2.toBytes(it));
                },
                cmov: function(M, D, nt) {
                    var it = M.c0, ht = M.c1, vt = M.c2, kt = D.c0, jt = D.c1, Rt = D.c2;
                    return {
                        c0: n.Fp2.cmov(it, kt, nt),
                        c1: n.Fp2.cmov(ht, jt, nt),
                        c2: n.Fp2.cmov(vt, Rt, nt)
                    };
                },
                fromBigSix: function(M) {
                    if (!Array.isArray(M) || M.length !== 6) throw new Error("Invalid Fp6 usage");
                    return {
                        c0: n.Fp2.fromBigTuple(M.slice(0, 2)),
                        c1: n.Fp2.fromBigTuple(M.slice(2, 4)),
                        c2: n.Fp2.fromBigTuple(M.slice(4, 6))
                    };
                },
                frobeniusMap: function(M, D) {
                    var nt = M.c0, it = M.c1, ht = M.c2;
                    return {
                        c0: n.Fp2.frobeniusMap(nt, D),
                        c1: n.Fp2.mul(n.Fp2.frobeniusMap(it, D), X[D % 6]),
                        c2: n.Fp2.mul(n.Fp2.frobeniusMap(ht, D), C[D % 6])
                    };
                },
                mulByNonresidue: function(M) {
                    var D = M.c0, nt = M.c1, it = M.c2;
                    return {
                        c0: n.Fp2.mulByNonresidue(it),
                        c1: D,
                        c2: nt
                    };
                },
                multiplyBy1: function(M, D) {
                    var nt = M.c0, it = M.c1, ht = M.c2;
                    return {
                        c0: n.Fp2.mulByNonresidue(n.Fp2.mul(ht, D)),
                        c1: n.Fp2.mul(nt, D),
                        c2: n.Fp2.mul(it, D)
                    };
                },
                multiplyBy01: function(M, D, nt) {
                    var it = M.c0, ht = M.c1, vt = M.c2, kt = n.Fp2.mul(it, D), jt = n.Fp2.mul(ht, nt);
                    return {
                        c0: n.Fp2.add(n.Fp2.mulByNonresidue(n.Fp2.sub(n.Fp2.mul(n.Fp2.add(ht, vt), nt), jt)), kt),
                        c1: n.Fp2.sub(n.Fp2.sub(n.Fp2.mul(n.Fp2.add(D, nt), n.Fp2.add(it, ht)), kt), jt),
                        c2: n.Fp2.add(n.Fp2.sub(n.Fp2.mul(n.Fp2.add(it, vt), D), kt), jt)
                    };
                },
                multiplyByFp2: function(M, D) {
                    var nt = M.c0, it = M.c1, ht = M.c2;
                    return {
                        c0: n.Fp2.mul(nt, D),
                        c1: n.Fp2.mul(it, D),
                        c2: n.Fp2.mul(ht, D)
                    };
                }
            }, X = [
                [
                    BigInt("0x1"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x0"),
                    BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac")
                ],
                [
                    BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x0"),
                    BigInt("0x1")
                ],
                [
                    BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x0"),
                    BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe")
                ]
            ].map(function(M) {
                return n.Fp2.fromBigTuple(M);
            }), C = [
                [
                    BigInt("0x1"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffeffff"),
                    BigInt("0x0")
                ]
            ].map(function(M) {
                return n.Fp2.fromBigTuple(M);
            }), H = BigInt("0xd201000000010000"), U = (0, u.bitLen)(H), L = function(M, D) {
                var nt = M.c0, it = M.c1, ht = D.c0, vt = D.c1;
                return {
                    c0: A.add(nt, ht),
                    c1: A.add(it, vt)
                };
            }, q = function(M, D) {
                var nt = M.c0, it = M.c1, ht = D.c0, vt = D.c1;
                return {
                    c0: A.sub(nt, ht),
                    c1: A.sub(it, vt)
                };
            }, V = function(M, D) {
                var nt = M.c0, it = M.c1;
                if (typeof D == "bigint") return {
                    c0: A.mul(nt, D),
                    c1: A.mul(it, D)
                };
                var ht = D.c0, vt = D.c1, kt = A.mul(nt, ht), jt = A.mul(it, vt);
                return {
                    c0: A.add(kt, A.mulByNonresidue(jt)),
                    c1: A.sub(A.mul(A.add(nt, it), A.add(ht, vt)), A.add(kt, jt))
                };
            };
            n.Fp12Multiply = V;
            var Q = function(M) {
                var D = M.c0, nt = M.c1, it = A.mul(D, nt);
                return {
                    c0: A.sub(A.sub(A.mul(A.add(A.mulByNonresidue(nt), D), A.add(D, nt)), it), A.mulByNonresidue(it)),
                    c1: A.add(it, it)
                };
            };
            function Z(M, D) {
                var nt = n.Fp2.sqr(M), it = n.Fp2.sqr(D);
                return {
                    first: n.Fp2.add(n.Fp2.mulByNonresidue(it), nt),
                    second: n.Fp2.sub(n.Fp2.sub(n.Fp2.sqr(n.Fp2.add(M, D)), nt), it)
                };
            }
            var tt = function(M) {
                var D = H, nt = n.Fp12.div(n.Fp12.frobeniusMap(M, 6), M), it = n.Fp12.mul(n.Fp12.frobeniusMap(nt, 2), nt), ht = n.Fp12.conjugate(n.Fp12._cyclotomicExp(it, D)), vt = n.Fp12.mul(n.Fp12.conjugate(n.Fp12._cyclotomicSquare(it)), ht), kt = n.Fp12.conjugate(n.Fp12._cyclotomicExp(vt, D)), jt = n.Fp12.conjugate(n.Fp12._cyclotomicExp(kt, D)), Rt = n.Fp12.mul(n.Fp12.conjugate(n.Fp12._cyclotomicExp(jt, D)), n.Fp12._cyclotomicSquare(ht)), Lt = n.Fp12.conjugate(n.Fp12._cyclotomicExp(Rt, D)), Dt = n.Fp12.frobeniusMap(n.Fp12.mul(ht, jt), 2), ue = n.Fp12.frobeniusMap(n.Fp12.mul(kt, it), 3), Se = n.Fp12.frobeniusMap(n.Fp12.mul(Rt, n.Fp12.conjugate(it)), 1), le = n.Fp12.mul(n.Fp12.mul(Lt, n.Fp12.conjugate(vt)), it);
                return n.Fp12.mul(n.Fp12.mul(n.Fp12.mul(Dt, ue), Se), le);
            };
            n.Fp12_finalExponentiate = tt;
            var rt = function(M) {
                var D = M.c0, nt = M.c1;
                return {
                    c0: D,
                    c1: A.neg(nt)
                };
            };
            n.Fp12_conjugate = rt;
            var at = function(M, D) {
                var nt = M.c0, it = M.c1, ht = D.c0, vt = D.c1;
                return A.eql(nt, ht) && A.eql(it, vt);
            };
            n.Fp12_eql = at, n.Fp12_ONE = {
                c0: A.ONE,
                c1: A.ZERO
            }, n.Fp12 = {
                ORDER: n.Fp2.ORDER,
                BITS: 2 * n.Fp2.BITS,
                BYTES: 2 * n.Fp2.BYTES,
                MASK: (0, u.bitMask)(2 * n.Fp2.BITS),
                ZERO: {
                    c0: A.ZERO,
                    c1: A.ZERO
                },
                ONE: {
                    c0: A.ONE,
                    c1: A.ZERO
                },
                create: function(M) {
                    return M;
                },
                isValid: function(M) {
                    var D = M.c0, nt = M.c1;
                    return A.isValid(D) && A.isValid(nt);
                },
                is0: function(M) {
                    var D = M.c0, nt = M.c1;
                    return A.is0(D) && A.is0(nt);
                },
                neg: function(M) {
                    var D = M.c0, nt = M.c1;
                    return {
                        c0: A.neg(D),
                        c1: A.neg(nt)
                    };
                },
                eql: n.Fp12_eql,
                sqrt: function() {
                    throw new Error("Not implemented");
                },
                inv: function(M) {
                    var D = M.c0, nt = M.c1, it = A.inv(A.sub(A.sqr(D), A.mulByNonresidue(A.sqr(nt))));
                    return {
                        c0: A.mul(D, it),
                        c1: A.neg(A.mul(nt, it))
                    };
                },
                div: function(M, D) {
                    return n.Fp12.mul(M, typeof D == "bigint" ? n.Fp.inv(n.Fp.create(D)) : n.Fp12.inv(D));
                },
                pow: function(M, D) {
                    return s.FpPow(n.Fp12, M, D);
                },
                invertBatch: function(M) {
                    return s.FpInvertBatch(n.Fp12, M);
                },
                add: L,
                sub: q,
                mul: n.Fp12Multiply,
                sqr: Q,
                addN: L,
                subN: q,
                mulN: n.Fp12Multiply,
                sqrN: Q,
                fromBytes: function(M) {
                    if (M.length !== n.Fp12.BYTES) throw new Error("fromBytes wrong length=".concat(M.length));
                    return {
                        c0: A.fromBytes(M.subarray(0, A.BYTES)),
                        c1: A.fromBytes(M.subarray(A.BYTES))
                    };
                },
                toBytes: function(M) {
                    var D = M.c0, nt = M.c1;
                    return (0, u.concatBytes)(A.toBytes(D), A.toBytes(nt));
                },
                cmov: function(M, D, nt) {
                    var it = M.c0, ht = M.c1, vt = D.c0, kt = D.c1;
                    return {
                        c0: A.cmov(it, vt, nt),
                        c1: A.cmov(ht, kt, nt)
                    };
                },
                fromBigTwelve: function(M) {
                    return {
                        c0: A.fromBigSix(M.slice(0, 6)),
                        c1: A.fromBigSix(M.slice(6, 12))
                    };
                },
                frobeniusMap: function(M, D) {
                    var nt = A.frobeniusMap(M.c0, D), it = A.frobeniusMap(M.c1, D), ht = it.c0, vt = it.c1, kt = it.c2, jt = ut[D % 12];
                    return {
                        c0: nt,
                        c1: A.create({
                            c0: n.Fp2.mul(ht, jt),
                            c1: n.Fp2.mul(vt, jt),
                            c2: n.Fp2.mul(kt, jt)
                        })
                    };
                },
                multiplyBy014: function(M, D, nt, it) {
                    var ht = M.c0, vt = M.c1, kt = A.multiplyBy01(ht, D, nt), jt = A.multiplyBy1(vt, it);
                    return {
                        c0: A.add(A.mulByNonresidue(jt), kt),
                        c1: A.sub(A.sub(A.multiplyBy01(A.add(vt, ht), D, n.Fp2.add(nt, it)), kt), jt)
                    };
                },
                multiplyByFp2: function(M, D) {
                    var nt = M.c0, it = M.c1;
                    return {
                        c0: A.multiplyByFp2(nt, D),
                        c1: A.multiplyByFp2(it, D)
                    };
                },
                conjugate: n.Fp12_conjugate,
                _cyclotomicSquare: function(M) {
                    var D = M.c0, nt = M.c1, it = D.c0, ht = D.c1, vt = D.c2, kt = nt.c0, jt = nt.c1, Rt = nt.c2, Lt = Z(it, jt), Dt = Lt.first, ue = Lt.second, Se = Z(kt, vt), le = Se.first, we = Se.second, gr = Z(ht, Rt), rn = gr.first, g_ = gr.second, p_ = n.Fp2.mulByNonresidue(g_);
                    return {
                        c0: A.create({
                            c0: n.Fp2.add(n.Fp2.mul(n.Fp2.sub(Dt, it), I), Dt),
                            c1: n.Fp2.add(n.Fp2.mul(n.Fp2.sub(le, ht), I), le),
                            c2: n.Fp2.add(n.Fp2.mul(n.Fp2.sub(rn, vt), I), rn)
                        }),
                        c1: A.create({
                            c0: n.Fp2.add(n.Fp2.mul(n.Fp2.add(p_, kt), I), p_),
                            c1: n.Fp2.add(n.Fp2.mul(n.Fp2.add(ue, jt), I), ue),
                            c2: n.Fp2.add(n.Fp2.mul(n.Fp2.add(we, Rt), I), we)
                        })
                    };
                },
                _cyclotomicExp: function(M, D) {
                    for(var nt = n.Fp12.ONE, it = U - 1; it >= 0; it--)nt = n.Fp12._cyclotomicSquare(nt), (0, u.bitGet)(D, it) && (nt = n.Fp12.mul(nt, M));
                    return nt;
                },
                finalExponentiate: n.Fp12_finalExponentiate
            };
            var ut = [
                [
                    BigInt("0x1"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x1904d3bf02bb0667c231beb4202c0d1f0fd603fd3cbd5f4f7b2443d784bab9c4f67ea53d63e7813d8d0775ed92235fb8"),
                    BigInt("0x00fc3e2b36c4e03288e9e902231f9fb854a14787b6c7b36fec0c8ec971f63c5f282d5ac14d6c7ec22cf78a126ddc4af3")
                ],
                [
                    BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffeffff"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2"),
                    BigInt("0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09")
                ],
                [
                    BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x144e4211384586c16bd3ad4afa99cc9170df3560e77982d0db45f3536814f0bd5871c1908bd478cd1ee605167ff82995"),
                    BigInt("0x05b2cfd9013a5fd8df47fa6b48b1e045f39816240c0b8fee8beadf4d8e9c0566c63a3e6e257f87329b18fae980078116")
                ],
                [
                    BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x00fc3e2b36c4e03288e9e902231f9fb854a14787b6c7b36fec0c8ec971f63c5f282d5ac14d6c7ec22cf78a126ddc4af3"),
                    BigInt("0x1904d3bf02bb0667c231beb4202c0d1f0fd603fd3cbd5f4f7b2443d784bab9c4f67ea53d63e7813d8d0775ed92235fb8")
                ],
                [
                    BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09"),
                    BigInt("0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2")
                ],
                [
                    BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad"),
                    BigInt("0x0")
                ],
                [
                    BigInt("0x05b2cfd9013a5fd8df47fa6b48b1e045f39816240c0b8fee8beadf4d8e9c0566c63a3e6e257f87329b18fae980078116"),
                    BigInt("0x144e4211384586c16bd3ad4afa99cc9170df3560e77982d0db45f3536814f0bd5871c1908bd478cd1ee605167ff82995")
                ]
            ].map(function(M) {
                return n.Fp2.fromBigTuple(M);
            }), bt = (0, f.isogenyMap)(n.Fp2, [
                [
                    [
                        "0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97d6",
                        "0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97d6"
                    ],
                    [
                        "0x0",
                        "0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71a"
                    ],
                    [
                        "0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71e",
                        "0x8ab05f8bdd54cde190937e76bc3e447cc27c3d6fbd7063fcd104635a790520c0a395554e5c6aaaa9354ffffffffe38d"
                    ],
                    [
                        "0x171d6541fa38ccfaed6dea691f5fb614cb14b4e7f4e810aa22d6108f142b85757098e38d0f671c7188e2aaaaaaaa5ed1",
                        "0x0"
                    ]
                ],
                [
                    [
                        "0x0",
                        "0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa63"
                    ],
                    [
                        "0xc",
                        "0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa9f"
                    ],
                    [
                        "0x1",
                        "0x0"
                    ]
                ],
                [
                    [
                        "0x1530477c7ab4113b59a4c18b076d11930f7da5d4a07f649bf54439d87d27e500fc8c25ebf8c92f6812cfc71c71c6d706",
                        "0x1530477c7ab4113b59a4c18b076d11930f7da5d4a07f649bf54439d87d27e500fc8c25ebf8c92f6812cfc71c71c6d706"
                    ],
                    [
                        "0x0",
                        "0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97be"
                    ],
                    [
                        "0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71c",
                        "0x8ab05f8bdd54cde190937e76bc3e447cc27c3d6fbd7063fcd104635a790520c0a395554e5c6aaaa9354ffffffffe38f"
                    ],
                    [
                        "0x124c9ad43b6cf79bfbf7043de3811ad0761b0f37a1e26286b0e977c69aa274524e79097a56dc4bd9e1b371c71c718b10",
                        "0x0"
                    ]
                ],
                [
                    [
                        "0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa8fb",
                        "0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa8fb"
                    ],
                    [
                        "0x0",
                        "0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa9d3"
                    ],
                    [
                        "0x12",
                        "0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa99"
                    ],
                    [
                        "0x1",
                        "0x0"
                    ]
                ]
            ].map(function(M) {
                return M.map(function(D) {
                    return n.Fp2.fromBigTuple(D.map(BigInt));
                });
            })), pt = (0, f.isogenyMap)(n.Fp, [
                [
                    "0x11a05f2b1e833340b809101dd99815856b303e88a2d7005ff2627b56cdb4e2c85610c2d5f2e62d6eaeac1662734649b7",
                    "0x17294ed3e943ab2f0588bab22147a81c7c17e75b2f6a8417f565e33c70d1e86b4838f2a6f318c356e834eef1b3cb83bb",
                    "0xd54005db97678ec1d1048c5d10a9a1bce032473295983e56878e501ec68e25c958c3e3d2a09729fe0179f9dac9edcb0",
                    "0x1778e7166fcc6db74e0609d307e55412d7f5e4656a8dbf25f1b33289f1b330835336e25ce3107193c5b388641d9b6861",
                    "0xe99726a3199f4436642b4b3e4118e5499db995a1257fb3f086eeb65982fac18985a286f301e77c451154ce9ac8895d9",
                    "0x1630c3250d7313ff01d1201bf7a74ab5db3cb17dd952799b9ed3ab9097e68f90a0870d2dcae73d19cd13c1c66f652983",
                    "0xd6ed6553fe44d296a3726c38ae652bfb11586264f0f8ce19008e218f9c86b2a8da25128c1052ecaddd7f225a139ed84",
                    "0x17b81e7701abdbe2e8743884d1117e53356de5ab275b4db1a682c62ef0f2753339b7c8f8c8f475af9ccb5618e3f0c88e",
                    "0x80d3cf1f9a78fc47b90b33563be990dc43b756ce79f5574a2c596c928c5d1de4fa295f296b74e956d71986a8497e317",
                    "0x169b1f8e1bcfa7c42e0c37515d138f22dd2ecb803a0c5c99676314baf4bb1b7fa3190b2edc0327797f241067be390c9e",
                    "0x10321da079ce07e272d8ec09d2565b0dfa7dccdde6787f96d50af36003b14866f69b771f8c285decca67df3f1605fb7b",
                    "0x6e08c248e260e70bd1e962381edee3d31d79d7e22c837bc23c0bf1bc24c6b68c24b1b80b64d391fa9c8ba2e8ba2d229"
                ],
                [
                    "0x8ca8d548cff19ae18b2e62f4bd3fa6f01d5ef4ba35b48ba9c9588617fc8ac62b558d681be343df8993cf9fa40d21b1c",
                    "0x12561a5deb559c4348b4711298e536367041e8ca0cf0800c0126c2588c48bf5713daa8846cb026e9e5c8276ec82b3bff",
                    "0xb2962fe57a3225e8137e629bff2991f6f89416f5a718cd1fca64e00b11aceacd6a3d0967c94fedcfcc239ba5cb83e19",
                    "0x3425581a58ae2fec83aafef7c40eb545b08243f16b1655154cca8abc28d6fd04976d5243eecf5c4130de8938dc62cd8",
                    "0x13a8e162022914a80a6f1d5f43e7a07dffdfc759a12062bb8d6b44e833b306da9bd29ba81f35781d539d395b3532a21e",
                    "0xe7355f8e4e667b955390f7f0506c6e9395735e9ce9cad4d0a43bcef24b8982f7400d24bc4228f11c02df9a29f6304a5",
                    "0x772caacf16936190f3e0c63e0596721570f5799af53a1894e2e073062aede9cea73b3538f0de06cec2574496ee84a3a",
                    "0x14a7ac2a9d64a8b230b3f5b074cf01996e7f63c21bca68a81996e1cdf9822c580fa5b9489d11e2d311f7d99bbdcc5a5e",
                    "0xa10ecf6ada54f825e920b3dafc7a3cce07f8d1d7161366b74100da67f39883503826692abba43704776ec3a79a1d641",
                    "0x95fc13ab9e92ad4476d6e3eb3a56680f682b4ee96f7d03776df533978f31c1593174e4b4b7865002d6384d168ecdd0a",
                    "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
                ],
                [
                    "0x90d97c81ba24ee0259d1f094980dcfa11ad138e48a869522b52af6c956543d3cd0c7aee9b3ba3c2be9845719707bb33",
                    "0x134996a104ee5811d51036d776fb46831223e96c254f383d0f906343eb67ad34d6c56711962fa8bfe097e75a2e41c696",
                    "0xcc786baa966e66f4a384c86a3b49942552e2d658a31ce2c344be4b91400da7d26d521628b00523b8dfe240c72de1f6",
                    "0x1f86376e8981c217898751ad8746757d42aa7b90eeb791c09e4a3ec03251cf9de405aba9ec61deca6355c77b0e5f4cb",
                    "0x8cc03fdefe0ff135caf4fe2a21529c4195536fbe3ce50b879833fd221351adc2ee7f8dc099040a841b6daecf2e8fedb",
                    "0x16603fca40634b6a2211e11db8f0a6a074a7d0d4afadb7bd76505c3d3ad5544e203f6326c95a807299b23ab13633a5f0",
                    "0x4ab0b9bcfac1bbcb2c977d027796b3ce75bb8ca2be184cb5231413c4d634f3747a87ac2460f415ec961f8855fe9d6f2",
                    "0x987c8d5333ab86fde9926bd2ca6c674170a05bfe3bdd81ffd038da6c26c842642f64550fedfe935a15e4ca31870fb29",
                    "0x9fc4018bd96684be88c9e221e4da1bb8f3abd16679dc26c1e8b6e6a1f20cabe69d65201c78607a360370e577bdba587",
                    "0xe1bba7a1186bdb5223abde7ada14a23c42a0ca7915af6fe06985e7ed1e4d43b9b3f7055dd4eba6f2bafaaebca731c30",
                    "0x19713e47937cd1be0dfd0b8f1d43fb93cd2fcbcb6caf493fd1183e416389e61031bf3a5cce3fbafce813711ad011c132",
                    "0x18b46a908f36f6deb918c143fed2edcc523559b8aaf0c2462e6bfe7f911f643249d9cdf41b44d606ce07c8a4d0074d8e",
                    "0xb182cac101b9399d155096004f53f447aa7b12a3426b08ec02710e807b4633f06c851c1919211f20d4c04f00b971ef8",
                    "0x245a394ad1eca9b72fc00ae7be315dc757b3b080d4c158013e6632d3c40659cc6cf90ad1c232a6442d9d3f5db980133",
                    "0x5c129645e44cf1102a159f748c4a3fc5e673d81d7e86568d9ab0f5d396a7ce46ba1049b6579afb7866b1e715475224b",
                    "0x15e6be4e990f03ce4ea50b3b42df2eb5cb181d8f84965a3957add4fa95af01b2b665027efec01c7704b456be69c8b604"
                ],
                [
                    "0x16112c4c3a9c98b252181140fad0eae9601a6de578980be6eec3232b5be72e7a07f3688ef60c206d01479253b03663c1",
                    "0x1962d75c2381201e1a0cbd6c43c348b885c84ff731c4d59ca4a10356f453e01f78a4260763529e3532f6102c2e49a03d",
                    "0x58df3306640da276faaae7d6e8eb15778c4855551ae7f310c35a5dd279cd2eca6757cd636f96f891e2538b53dbf67f2",
                    "0x16b7d288798e5395f20d23bf89edb4d1d115c5dbddbcd30e123da489e726af41727364f2c28297ada8d26d98445f5416",
                    "0xbe0e079545f43e4b00cc912f8228ddcc6d19c9f0f69bbb0542eda0fc9dec916a20b15dc0fd2ededda39142311a5001d",
                    "0x8d9e5297186db2d9fb266eaac783182b70152c65550d881c5ecd87b6f0f5a6449f38db9dfa9cce202c6477faaf9b7ac",
                    "0x166007c08a99db2fc3ba8734ace9824b5eecfdfa8d0cf8ef5dd365bc400a0051d5fa9c01a58b1fb93d1a1399126a775c",
                    "0x16a3ef08be3ea7ea03bcddfabba6ff6ee5a4375efa1f4fd7feb34fd206357132b920f5b00801dee460ee415a15812ed9",
                    "0x1866c8ed336c61231a1be54fd1d74cc4f9fb0ce4c6af5920abc5750c4bf39b4852cfe2f7bb9248836b233d9d55535d4a",
                    "0x167a55cda70a6e1cea820597d94a84903216f763e13d87bb5308592e7ea7d4fbc7385ea3d529b35e346ef48bb8913f55",
                    "0x4d2f259eea405bd48f010a01ad2911d9c6dd039bb61a6290e591b36e636a5c871a5c29f4f83060400f8b49cba8f6aa8",
                    "0xaccbb67481d033ff5852c1e48c50c477f94ff8aefce42d28c0f9a88cea7913516f968986f7ebbea9684b529e2561092",
                    "0xad6b9514c767fe3c3613144b45f1496543346d98adf02267d5ceef9a00d9b8693000763e3b90ac11e99b138573345cc",
                    "0x2660400eb2e4f3b628bdd0d53cd76f2bf565b94e72927c1cb748df27942480e420517bd8714cc80d1fadc1326ed06f7",
                    "0xe0fa1d816ddc03e6b24255e0d7819c171c40f65e273b853324efcd6356caa205ca2f570f13497804415473a1d634b8f",
                    "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
                ]
            ].map(function(M) {
                return M.map(function(D) {
                    return BigInt(D);
                });
            })), ot = (0, l.mapToCurveSimpleSWU)(n.Fp2, {
                A: n.Fp2.create({
                    c0: n.Fp.create(h),
                    c1: n.Fp.create(BigInt(240))
                }),
                B: n.Fp2.create({
                    c0: n.Fp.create(BigInt(1012)),
                    c1: n.Fp.create(BigInt(1012))
                }),
                Z: n.Fp2.create({
                    c0: n.Fp.create(BigInt(-2)),
                    c1: n.Fp.create(BigInt(-1))
                })
            }), gt = (0, l.mapToCurveSimpleSWU)(n.Fp, {
                A: n.Fp.create(BigInt("0x144698a3b8e9433d693a02c96d4982b0ea985383ee66a8d8e8981aefd881ac98936f8da0e0f97f5cf428082d584c1d")),
                B: n.Fp.create(BigInt("0x12e2908d11688030018b12e8753eee3b2016c1f0f24f4070a0b9c14fcef35ef55a23215a316ceaa5d1cc48e98e172be0")),
                Z: n.Fp.create(BigInt(11))
            }), W = A.create({
                c0: n.Fp2.ZERO,
                c1: n.Fp2.ONE,
                c2: n.Fp2.ZERO
            }), G = n.Fp12.create({
                c0: W,
                c1: A.ZERO
            }), et = n.Fp12.create({
                c0: A.ZERO,
                c1: W
            }), ct = a(n.Fp12.invertBatch([
                G,
                et
            ]), 2), ft = ct[0], dt = ct[1];
            function st(M, D) {
                var nt = n.Fp12.mul(n.Fp12.frobeniusMap(n.Fp12.multiplyByFp2(ft, M), 1), G).c0.c0, it = n.Fp12.mul(n.Fp12.frobeniusMap(n.Fp12.multiplyByFp2(dt, D), 1), et).c0.c0;
                return [
                    nt,
                    it
                ];
            }
            function wt(M, D) {
                var nt = D.toAffine(), it = st(nt.x, nt.y);
                return new M(it[0], it[1], n.Fp2.ONE);
            }
            var It = BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac");
            function Ot(M, D) {
                return [
                    n.Fp2.mul(M, It),
                    n.Fp2.neg(D)
                ];
            }
            function St(M, D) {
                var nt = D.toAffine(), it = Ot(nt.x, nt.y);
                return new M(it[0], it[1], n.Fp2.ONE);
            }
            var Ft = Object.freeze({
                DST: "",
                encodeDST: "",
                p: n.Fp.ORDER,
                m: 2,
                k: 128,
                expand: "xmd",
                hash: p.sha256
            }), Ct = Gt(n.Fp.toBytes(h), {
                infinity: !0,
                compressed: !0
            });
            function Ut(M) {
                M = M.slice();
                var D = M[0] & 224, nt = !!(D >> 7 & 1), it = !!(D >> 6 & 1), ht = !!(D >> 5 & 1);
                return M[0] &= 31, {
                    compressed: nt,
                    infinity: it,
                    sort: ht,
                    value: M
                };
            }
            n.parseMask = Ut;
            function Gt(M, D) {
                if (M[0] & 224) throw new Error("setMask: non-empty mask");
                return D.compressed && (M[0] |= 128), D.infinity && (M[0] |= 64), D.sort && (M[0] |= 32), M;
            }
            function be(M) {
                M.assertValidity();
                var D = M.equals(n.bls12_381.G1.ProjectivePoint.ZERO), nt = M.toAffine(), it = nt.x, ht = nt.y;
                if (D) return Ct.slice();
                var vt = n.Fp.ORDER, kt = !!(ht * I / vt);
                return Gt((0, u.numberToBytesBE)(it, n.Fp.BYTES), {
                    compressed: !0,
                    sort: kt
                });
            }
            function xe(M) {
                M.assertValidity();
                var D = n.Fp.BYTES;
                if (M.equals(n.bls12_381.G2.ProjectivePoint.ZERO)) return (0, u.concatBytes)(Ct, (0, u.numberToBytesBE)(h, D));
                var nt = M.toAffine(), it = nt.x, ht = nt.y, vt = n.Fp2.reim(it), kt = vt.re, jt = vt.im, Rt = n.Fp2.reim(ht), Lt = Rt.re, Dt = Rt.im, ue = Dt > h ? Dt * I : Lt * I, Se = !!(ue / n.Fp.ORDER & B), le = kt;
                return (0, u.concatBytes)(Gt((0, u.numberToBytesBE)(jt, D), {
                    sort: Se,
                    compressed: !0
                }), (0, u.numberToBytesBE)(le, D));
            }
            var De = function(M) {
                var D = Ut(M), nt = D.compressed, it = D.infinity, ht = D.sort, vt = D.value;
                if (vt.length === 48 && nt) {
                    var kt = n.Fp.ORDER, jt = (0, u.bytesToNumberBE)(vt), Rt = n.Fp.create(jt & n.Fp.MASK);
                    if (it) {
                        if (Rt !== h) throw new Error("G1: non-empty compressed point at infinity");
                        return {
                            x: h,
                            y: h
                        };
                    }
                    var Lt = n.Fp.add(n.Fp.pow(Rt, j), n.Fp.create(n.bls12_381.params.G1b)), Dt = n.Fp.sqrt(Lt);
                    if (!Dt) throw new Error("Invalid compressed G1 point");
                    return Dt * I / kt !== BigInt(ht) && (Dt = n.Fp.neg(Dt)), {
                        x: n.Fp.create(Rt),
                        y: n.Fp.create(Dt)
                    };
                } else if (vt.length === 96 && !nt) {
                    var Rt = (0, u.bytesToNumberBE)(vt.subarray(0, n.Fp.BYTES)), Dt = (0, u.bytesToNumberBE)(vt.subarray(n.Fp.BYTES));
                    if (it) {
                        if (Rt !== h || Dt !== h) throw new Error("G1: non-empty point at infinity");
                        return n.bls12_381.G1.ProjectivePoint.ZERO.toAffine();
                    }
                    return {
                        x: n.Fp.create(Rt),
                        y: n.Fp.create(Dt)
                    };
                } else throw new Error("Invalid point G1, expected 48/96 bytes");
            };
            n.G1_formBytes = De;
            var _r = function(M) {
                var D = gt(n.Fp.create(M[0])), nt = D.x, it = D.y;
                return pt(nt, it);
            };
            n.G1_mapToCurve = _r;
            var yr = function(M) {
                var D = ot(n.Fp2.fromBigTuple(M)), nt = D.x, it = D.y;
                return bt(nt, it);
            };
            n.G2_mapToCurve = yr, n.bls12_381 = (0, c.bls)({
                fields: {
                    Fp: n.Fp,
                    Fp2: n.Fp2,
                    Fp6: A,
                    Fp12: n.Fp12,
                    Fr: F
                },
                G1: {
                    Fp: n.Fp,
                    h: BigInt("0x396c8c005555e1568c00aaab0000aaab"),
                    Gx: BigInt("0x17f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb"),
                    Gy: BigInt("0x08b3f481e3aaa0f1a09e30ed741d8ae4fcf5e095d5d00af600db18cb2c04b3edd03cc744a2888ae40caa232946c5e7e1"),
                    a: n.Fp.ZERO,
                    b: w,
                    htfDefaults: t(t({}, Ft), {
                        m: 1,
                        DST: "BLS_SIG_BLS12381G1_XMD:SHA-256_SSWU_RO_NUL_"
                    }),
                    wrapPrivateKey: !0,
                    allowInfinityPoint: !0,
                    isTorsionFree: function(M, D) {
                        var nt = BigInt("0x5f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"), it = new M(n.Fp.mul(D.px, nt), D.py, D.pz), ht = D.multiplyUnsafe(n.bls12_381.params.x).negate(), vt = ht.multiplyUnsafe(n.bls12_381.params.x);
                        return vt.equals(it);
                    },
                    clearCofactor: function(M, D) {
                        return D.multiplyUnsafe(n.bls12_381.params.x).add(D);
                    },
                    mapToCurve: n.G1_mapToCurve,
                    fromBytes: n.G1_formBytes,
                    toBytes: function(M, D, nt) {
                        var it = D.equals(M.ZERO), ht = D.toAffine(), vt = ht.x, kt = ht.y;
                        if (nt) {
                            if (it) return Ct.slice();
                            var jt = n.Fp.ORDER, Rt = !!(kt * I / jt);
                            return Gt((0, u.numberToBytesBE)(vt, n.Fp.BYTES), {
                                compressed: !0,
                                sort: Rt
                            });
                        } else if (it) {
                            var Lt = (0, u.concatBytes)(new Uint8Array([
                                64
                            ]), new Uint8Array(2 * n.Fp.BYTES - 1));
                            return Lt;
                        } else return (0, u.concatBytes)((0, u.numberToBytesBE)(vt, n.Fp.BYTES), (0, u.numberToBytesBE)(kt, n.Fp.BYTES));
                    },
                    ShortSignature: {
                        fromHex: function(M) {
                            var D = Ut((0, u.ensureBytes)("signatureHex", M, 48)), nt = D.infinity, it = D.sort, ht = D.value, vt = n.Fp.ORDER, kt = (0, u.bytesToNumberBE)(ht);
                            if (nt) return n.bls12_381.G1.ProjectivePoint.ZERO;
                            var jt = n.Fp.create(kt & n.Fp.MASK), Rt = n.Fp.add(n.Fp.pow(jt, j), n.Fp.create(n.bls12_381.params.G1b)), Lt = n.Fp.sqrt(Rt);
                            if (!Lt) throw new Error("Invalid compressed G1 point");
                            var Dt = BigInt(it);
                            Lt * I / vt !== Dt && (Lt = n.Fp.neg(Lt));
                            var ue = n.bls12_381.G1.ProjectivePoint.fromAffine({
                                x: jt,
                                y: Lt
                            });
                            return ue.assertValidity(), ue;
                        },
                        toRawBytes: function(M) {
                            return be(M);
                        },
                        toHex: function(M) {
                            return (0, u.bytesToHex)(be(M));
                        }
                    }
                },
                G2: {
                    Fp: n.Fp2,
                    h: BigInt("0x5d543a95414e7f1091d50792876a202cd91de4547085abaa68a205b2e5a7ddfa628f1cb4d9e82ef21537e293a6691ae1616ec6e786f0c70cf1c38e31c7238e5"),
                    Gx: n.Fp2.fromBigTuple([
                        BigInt("0x024aa2b2f08f0a91260805272dc51051c6e47ad4fa403b02b4510b647ae3d1770bac0326a805bbefd48056c8c121bdb8"),
                        BigInt("0x13e02b6052719f607dacd3a088274f65596bd0d09920b61ab5da61bbdc7f5049334cf11213945d57e5ac7d055d042b7e")
                    ]),
                    Gy: n.Fp2.fromBigTuple([
                        BigInt("0x0ce5d527727d6e118cc9cdc6da2e351aadfd9baa8cbdd3a76d429a695160d12c923ac9cc3baca289e193548608b82801"),
                        BigInt("0x0606c4a02ea734cc32acd2b02bc28b99cb3e287e85a763af267492ab572e99ab3f370d275cec1da1aaa9075ff05f79be")
                    ]),
                    a: n.Fp2.ZERO,
                    b: n.Fp2.fromBigTuple([
                        w,
                        w
                    ]),
                    hEff: BigInt("0xbc69f08f2ee75b3584c6a0ea91b352888e2a8e9145ad7689986ff031508ffe1329c2f178731db956d82bf015d1212b02ec0ec69d7477c1ae954cbc06689f6a359894c0adebbf6b4e8020005aaa95551"),
                    htfDefaults: t({}, Ft),
                    wrapPrivateKey: !0,
                    allowInfinityPoint: !0,
                    mapToCurve: n.G2_mapToCurve,
                    isTorsionFree: function(M, D) {
                        return D.multiplyUnsafe(n.bls12_381.params.x).negate().equals(wt(M, D));
                    },
                    clearCofactor: function(M, D) {
                        var nt = n.bls12_381.params.x, it = D.multiplyUnsafe(nt).negate(), ht = wt(M, D), vt = D.double();
                        vt = St(M, vt), vt = vt.subtract(ht), ht = it.add(ht), ht = ht.multiplyUnsafe(nt).negate(), vt = vt.add(ht), vt = vt.subtract(it);
                        var kt = vt.subtract(D);
                        return kt;
                    },
                    fromBytes: function(M) {
                        var D = Ut(M), nt = D.compressed, it = D.infinity, ht = D.sort, vt = D.value;
                        if (!nt && !it && ht || !nt && it && ht || ht && it && nt) throw new Error("Invalid encoding flag: " + (M[0] & 224));
                        var kt = n.Fp.BYTES, jt = function(nn, Rn, P0) {
                            return (0, u.bytesToNumberBE)(nn.slice(Rn, P0));
                        };
                        if (vt.length === 96 && nt) {
                            var Rt = n.bls12_381.params.G2b, Lt = n.Fp.ORDER;
                            if (it) {
                                if (vt.reduce(function(nn, Rn) {
                                    return nn !== 0 ? Rn + 1 : Rn;
                                }, 0) > 0) throw new Error("Invalid compressed G2 point");
                                return {
                                    x: n.Fp2.ZERO,
                                    y: n.Fp2.ZERO
                                };
                            }
                            var Dt = jt(vt, 0, kt), ue = jt(vt, kt, 2 * kt), Se = n.Fp2.create({
                                c0: n.Fp.create(ue),
                                c1: n.Fp.create(Dt)
                            }), le = n.Fp2.add(n.Fp2.pow(Se, j), Rt), we = n.Fp2.sqrt(le), gr = we.c1 === h ? we.c0 * I / Lt : we.c1 * I / Lt ? B : h;
                            return we = ht && gr > 0 ? we : n.Fp2.neg(we), {
                                x: Se,
                                y: we
                            };
                        } else if (vt.length === 192 && !nt) {
                            if (it) {
                                if (vt.reduce(function(nn, Rn) {
                                    return nn !== 0 ? Rn + 1 : Rn;
                                }, 0) > 0) throw new Error("Invalid uncompressed G2 point");
                                return {
                                    x: n.Fp2.ZERO,
                                    y: n.Fp2.ZERO
                                };
                            }
                            var rn = jt(vt, 0, kt), g_ = jt(vt, kt, 2 * kt), p_ = jt(vt, 2 * kt, 3 * kt), kc = jt(vt, 3 * kt, 4 * kt);
                            return {
                                x: n.Fp2.fromBigTuple([
                                    g_,
                                    rn
                                ]),
                                y: n.Fp2.fromBigTuple([
                                    kc,
                                    p_
                                ])
                            };
                        } else throw new Error("Invalid point G2, expected 96/192 bytes");
                    },
                    toBytes: function(M, D, nt) {
                        var it = n.Fp.BYTES, ht = n.Fp.ORDER, vt = D.equals(M.ZERO), kt = D.toAffine(), jt = kt.x, Rt = kt.y;
                        if (nt) {
                            if (vt) return (0, u.concatBytes)(Ct, (0, u.numberToBytesBE)(h, it));
                            var Lt = !!(Rt.c1 === h ? Rt.c0 * I / ht : Rt.c1 * I / ht);
                            return (0, u.concatBytes)(Gt((0, u.numberToBytesBE)(jt.c1, it), {
                                compressed: !0,
                                sort: Lt
                            }), (0, u.numberToBytesBE)(jt.c0, it));
                        } else {
                            if (vt) return (0, u.concatBytes)(new Uint8Array([
                                64
                            ]), new Uint8Array(4 * it - 1));
                            var Dt = n.Fp2.reim(jt), ue = Dt.re, Se = Dt.im, le = n.Fp2.reim(Rt), we = le.re, gr = le.im;
                            return (0, u.concatBytes)((0, u.numberToBytesBE)(Se, it), (0, u.numberToBytesBE)(ue, it), (0, u.numberToBytesBE)(gr, it), (0, u.numberToBytesBE)(we, it));
                        }
                    },
                    Signature: {
                        fromHex: function(M) {
                            var D = Ut((0, u.ensureBytes)("signatureHex", M)), nt = D.infinity, it = D.sort, ht = D.value, vt = n.Fp.ORDER, kt = M.length / 2;
                            if (kt !== 48 && kt !== 96) throw new Error("Invalid compressed signature length, must be 96 or 192");
                            var jt = (0, u.bytesToNumberBE)(ht.slice(0, kt)), Rt = (0, u.bytesToNumberBE)(ht.slice(kt));
                            if (nt) return n.bls12_381.G2.ProjectivePoint.ZERO;
                            var Lt = n.Fp.create(jt & n.Fp.MASK), Dt = n.Fp.create(Rt), ue = n.Fp2.create({
                                c0: Dt,
                                c1: Lt
                            }), Se = n.Fp2.add(n.Fp2.pow(ue, j), n.bls12_381.params.G2b), le = n.Fp2.sqrt(Se);
                            if (!le) throw new Error("Failed to find a square root");
                            var we = n.Fp2.reim(le), gr = we.re, rn = we.im, g_ = BigInt(it), p_ = rn > h && rn * I / vt !== g_, kc = rn === h && gr * I / vt !== g_;
                            (p_ || kc) && (le = n.Fp2.neg(le));
                            var nn = n.bls12_381.G2.ProjectivePoint.fromAffine({
                                x: ue,
                                y: le
                            });
                            return nn.assertValidity(), nn;
                        },
                        toRawBytes: function(M) {
                            return xe(M);
                        },
                        toHex: function(M) {
                            return (0, u.bytesToHex)(xe(M));
                        }
                    }
                },
                params: {
                    x: H,
                    r: F.ORDER
                },
                htfDefaults: Ft,
                hash: p.sha256,
                randomBytes: g.randomBytes
            });
        })(B_)), B_;
    }
    var SI;
    function dIt() {
        return SI || (SI = 1, (function(n) {
            var t = yd && yd.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = yd && yd.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(n9(), n), e(cIt(), n);
        })(yd)), yd;
    }
    var EI;
    function uIt() {
        return EI || (EI = 1, (function(n) {
            var t = Ef && Ef.__assign || function() {
                return t = Object.assign || function(L) {
                    for(var q, V = 1, Q = arguments.length; V < Q; V++){
                        q = arguments[V];
                        for(var Z in q)Object.prototype.hasOwnProperty.call(q, Z) && (L[Z] = q[Z]);
                    }
                    return L;
                }, t.apply(this, arguments);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.isFp6 = n.isBlsResult = n.bls12_381_finalVerify = n.bls12_381_eqMlResult = n.bls12_381_mulMlResult = n.bls12_381_millerLoop = n.bls12_381_G2_uncompress = n.bls12_381_G2_compress = n.bls12_381_G2_hashToGroup = n.bls12_381_G2_equal = n.bls12_381_G2_scalarMul = n.bls12_381_G2_neg = n.bls12_381_G2_add = n.bls12_381_G1_uncompress = n.bls12_381_G1_compress = n.bls12_381_G1_hashToGroup = n.bls12_381_G1_equal = n.bls12_381_G1_scalarMul = n.bls12_381_G1_neg = n.bls12_381_G1_add = n.isFp2 = n.isBlsG2 = n.isBlsG1 = n.BlsG2 = n.BlsG1 = void 0;
            var e = dIt(), o = w0(), _ = Li(), a = yh();
            n.BlsG1 = e.bls12_381.G1.ProjectivePoint, n.BlsG2 = e.bls12_381.G2.ProjectivePoint;
            function c(L) {
                return L instanceof n.BlsG1 && typeof L.px == "bigint" && typeof L.py == "bigint" && typeof L.pz == "bigint";
            }
            n.isBlsG1 = c;
            function s(L) {
                return L instanceof n.BlsG2 && u(L.px) && u(L.py) && u(L.pz);
            }
            n.isBlsG2 = s;
            function u(L) {
                return typeof L == "object" && L !== null && !Array.isArray(L) && typeof L.c0 == "bigint" && typeof L.c1 == "bigint";
            }
            n.isFp2 = u;
            var l = BigInt("52435875175126190479447740508185965837690552500527637822603658699938581184513"), f = Object.freeze({
                DST: "",
                encodeDST: "",
                p: e.Fp.ORDER,
                m: 2,
                k: 128,
                expand: "xmd",
                hash: a.sha256
            }), p = (0, o.createHasher)(n.BlsG2, e.G2_mapToCurve, t({}, f)), g = (0, o.createHasher)(n.BlsG1, e.G1_mapToCurve, t(t({}, f), {
                m: 1,
                DST: "BLS_SIG_BLS12381G1_XMD:SHA-256_SSWU_RO_NUL_"
            }));
            function h(L, q) {
                return L.add(q);
            }
            n.bls12_381_G1_add = h;
            function B(L) {
                return L.negate();
            }
            n.bls12_381_G1_neg = B;
            function I(L, q) {
                return L < 0 ? I(-L, B(q)) : (L = BigInt(L), L >= l && (L = L % l), L === BigInt(0) ? n.BlsG1.ZERO : q.multiply(L));
            }
            n.bls12_381_G1_scalarMul = I;
            function j(L, q) {
                return L.equals(q);
            }
            n.bls12_381_G1_equal = j;
            function w(L, q) {
                if (q.length > 255) throw new Error("DST length can not be greater than 255");
                return n.BlsG1.fromAffine(g.hashToCurve(L, {
                    DST: q
                }).toAffine());
            }
            n.bls12_381_G1_hashToGroup = w;
            function S(L) {
                return L.toRawBytes();
            }
            n.bls12_381_G1_compress = S;
            function b(L) {
                var q = (0, e.parseMask)(L), V = q.compressed, Q = q.infinity, Z = q.sort, tt = q.value;
                if (V && Q && Z && tt.every(function(rt) {
                    return rt === 0;
                })) throw new Error("sign bit set on pont ZERO, we don't like it");
                if (!V) throw new Error("uncompress only works with compressed byets");
                return n.BlsG1.fromHex(L);
            }
            n.bls12_381_G1_uncompress = b;
            function k(L, q) {
                return L.add(q);
            }
            n.bls12_381_G2_add = k;
            function F(L) {
                return L.negate();
            }
            n.bls12_381_G2_neg = F;
            function Y(L, q) {
                return L < 0 ? Y(-L, F(q)) : (L = BigInt(L), L >= l && (L = L % l), L === BigInt(0) ? n.BlsG2.ZERO : q.multiply(BigInt(L)));
            }
            n.bls12_381_G2_scalarMul = Y;
            function K(L, q) {
                return L.equals(q);
            }
            n.bls12_381_G2_equal = K;
            function J(L, q) {
                if (q.length > 255) throw new Error("DST length can not be greater than 255");
                return n.BlsG2.fromAffine(p.hashToCurve(L, {
                    DST: q
                }).toAffine());
            }
            n.bls12_381_G2_hashToGroup = J;
            function P(L) {
                return L.toRawBytes();
            }
            n.bls12_381_G2_compress = P;
            function T(L) {
                var q = (0, e.parseMask)(L).compressed;
                if (!q) throw new Error("uncompress only works with compressed byets");
                return n.BlsG2.fromHex(L);
            }
            n.bls12_381_G2_uncompress = T;
            function E(L, q) {
                var V = L.toAffine(), Q = V.x, Z = V.y;
                return C(X(q), [
                    Q,
                    Z
                ]);
            }
            n.bls12_381_millerLoop = E;
            function N(L, q) {
                return (0, e.Fp12Multiply)(L, q);
            }
            n.bls12_381_mulMlResult = N, n.bls12_381_eqMlResult = e.Fp12_eql;
            function y(L, q) {
                var V = (0, e.Fp12_conjugate)(L);
                return V = (0, e.Fp12Multiply)(V, q), V = (0, e.Fp12_finalExponentiate)(V), (0, e.Fp12_eql)(V, e.Fp12_ONE);
            }
            n.bls12_381_finalVerify = y;
            var O = BigInt("0xd201000000010000"), m = (0, _.bitLen)(O), R = BigInt(2), v = BigInt(3);
            function A(L) {
                for(var q = L.x, V = L.y, Q = q, Z = V, tt = e.Fp2.ONE, rt = Q, at = Z, ut = tt, bt = [], pt = m - 2; pt >= 0; pt--){
                    var ot = e.Fp2.sqr(at), gt = e.Fp2.sqr(ut), W = e.Fp2.multiplyByB(e.Fp2.mul(gt, v)), G = e.Fp2.mul(W, v), et = e.Fp2.sub(e.Fp2.sub(e.Fp2.sqr(e.Fp2.add(at, ut)), gt), ot);
                    if (bt.push([
                        e.Fp2.sub(W, ot),
                        e.Fp2.mul(e.Fp2.sqr(rt), v),
                        e.Fp2.neg(et)
                    ]), rt = e.Fp2.div(e.Fp2.mul(e.Fp2.mul(e.Fp2.sub(ot, G), rt), at), R), at = e.Fp2.sub(e.Fp2.sqr(e.Fp2.div(e.Fp2.add(ot, G), R)), e.Fp2.mul(e.Fp2.sqr(W), v)), ut = e.Fp2.mul(ot, et), (0, _.bitGet)(O, pt)) {
                        var ct = e.Fp2.sub(at, e.Fp2.mul(Z, ut)), ft = e.Fp2.sub(rt, e.Fp2.mul(Q, ut));
                        bt.push([
                            e.Fp2.sub(e.Fp2.mul(ct, Q), e.Fp2.mul(ft, Z)),
                            e.Fp2.neg(ct),
                            ft
                        ]);
                        var dt = e.Fp2.sqr(ft), st = e.Fp2.mul(dt, ft), wt = e.Fp2.mul(dt, rt), It = e.Fp2.add(e.Fp2.sub(st, e.Fp2.mul(wt, R)), e.Fp2.mul(e.Fp2.sqr(ct), ut));
                        rt = e.Fp2.mul(ft, It), at = e.Fp2.sub(e.Fp2.mul(e.Fp2.sub(wt, It), ct), e.Fp2.mul(st, at)), ut = e.Fp2.mul(ut, st);
                    }
                }
                return bt;
            }
            function X(L) {
                var q = L;
                return q._PPRECOMPUTES || (q._PPRECOMPUTES = A(L.toAffine())), q._PPRECOMPUTES;
            }
            function C(L, q) {
                for(var V = O, Q = q[0], Z = q[1], tt = e.Fp12.ONE, rt = 0, at = m - 2; at >= 0; at--, rt++){
                    var ut = L[rt];
                    if (tt = e.Fp12.multiplyBy014(tt, ut[0], e.Fp2.mul(ut[1], Q), e.Fp2.mul(ut[2], Z)), (0, _.bitGet)(V, at)) {
                        rt += 1;
                        var bt = L[rt];
                        tt = e.Fp12.multiplyBy014(tt, bt[0], e.Fp2.mul(bt[1], Q), e.Fp2.mul(bt[2], Z));
                    }
                    at !== 0 && (tt = e.Fp12.sqr(tt));
                }
                return e.Fp12.conjugate(tt);
            }
            function H(L) {
                return typeof L == "object" && L !== null && !Array.isArray(L) && U(L.c0) && U(L.c1);
            }
            n.isBlsResult = H;
            function U(L) {
                return typeof L == "object" && L !== null && !Array.isArray(L) && u(L.c0) && u(L.c1) && u(L.c2);
            }
            n.isFp6 = U;
        })(Ef)), Ef;
    }
    var wa = {}, Nn = {}, Ff = {}, OI;
    function h0() {
        if (OI) return Ff;
        OI = 1, Object.defineProperty(Ff, "__esModule", {
            value: !0
        }), Ff.hasGlobalWebCrypto = void 0;
        var n = !0;
        try {
            n = typeof globalThis < "u";
        } catch  {
            n = !1;
        }
        var t = n;
        if (n) try {
            t = typeof globalThis.crypto < "u" && typeof globalThis.crypto.subtle < "u";
        } catch  {
            t = !1;
        }
        return Ff.hasGlobalWebCrypto = t, Ff;
    }
    var or = {}, FI;
    function o9() {
        if (FI) return or;
        FI = 1;
        var n = or && or.__extends || (function() {
            var w = function(S, b) {
                return w = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(k, F) {
                    k.__proto__ = F;
                } || function(k, F) {
                    for(var Y in F)Object.prototype.hasOwnProperty.call(F, Y) && (k[Y] = F[Y]);
                }, w(S, b);
            };
            return function(S, b) {
                if (typeof b != "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
                w(S, b);
                function k() {
                    this.constructor = S;
                }
                S.prototype = b === null ? Object.create(b) : (k.prototype = b.prototype, new k);
            };
        })(), t = or && or.__createBinding || (Object.create ? (function(w, S, b, k) {
            k === void 0 && (k = b);
            var F = Object.getOwnPropertyDescriptor(S, b);
            (!F || ("get" in F ? !S.__esModule : F.writable || F.configurable)) && (F = {
                enumerable: !0,
                get: function() {
                    return S[b];
                }
            }), Object.defineProperty(w, k, F);
        }) : (function(w, S, b, k) {
            k === void 0 && (k = b), w[k] = S[b];
        })), e = or && or.__setModuleDefault || (Object.create ? (function(w, S) {
            Object.defineProperty(w, "default", {
                enumerable: !0,
                value: S
            });
        }) : function(w, S) {
            w.default = S;
        }), o = or && or.__importStar || function(w) {
            if (w && w.__esModule) return w;
            var S = {};
            if (w != null) for(var b in w)b !== "default" && Object.prototype.hasOwnProperty.call(w, b) && t(S, w, b);
            return e(S, w), S;
        }, _ = or && or.__read || function(w, S) {
            var b = typeof Symbol == "function" && w[Symbol.iterator];
            if (!b) return w;
            var k = b.call(w), F, Y = [], K;
            try {
                for(; (S === void 0 || S-- > 0) && !(F = k.next()).done;)Y.push(F.value);
            } catch (J) {
                K = {
                    error: J
                };
            } finally{
                try {
                    F && !F.done && (b = k.return) && b.call(k);
                } finally{
                    if (K) throw K.error;
                }
            }
            return Y;
        };
        Object.defineProperty(or, "__esModule", {
            value: !0
        }), or.sha384 = or.sha512_256 = or.sha512_224 = or.sha512 = or.SHA512 = void 0;
        var a = wh(), c = o(r9()), s = $i(), u = _((function() {
            return c.split([
                "0x428a2f98d728ae22",
                "0x7137449123ef65cd",
                "0xb5c0fbcfec4d3b2f",
                "0xe9b5dba58189dbbc",
                "0x3956c25bf348b538",
                "0x59f111f1b605d019",
                "0x923f82a4af194f9b",
                "0xab1c5ed5da6d8118",
                "0xd807aa98a3030242",
                "0x12835b0145706fbe",
                "0x243185be4ee4b28c",
                "0x550c7dc3d5ffb4e2",
                "0x72be5d74f27b896f",
                "0x80deb1fe3b1696b1",
                "0x9bdc06a725c71235",
                "0xc19bf174cf692694",
                "0xe49b69c19ef14ad2",
                "0xefbe4786384f25e3",
                "0x0fc19dc68b8cd5b5",
                "0x240ca1cc77ac9c65",
                "0x2de92c6f592b0275",
                "0x4a7484aa6ea6e483",
                "0x5cb0a9dcbd41fbd4",
                "0x76f988da831153b5",
                "0x983e5152ee66dfab",
                "0xa831c66d2db43210",
                "0xb00327c898fb213f",
                "0xbf597fc7beef0ee4",
                "0xc6e00bf33da88fc2",
                "0xd5a79147930aa725",
                "0x06ca6351e003826f",
                "0x142929670a0e6e70",
                "0x27b70a8546d22ffc",
                "0x2e1b21385c26c926",
                "0x4d2c6dfc5ac42aed",
                "0x53380d139d95b3df",
                "0x650a73548baf63de",
                "0x766a0abb3c77b2a8",
                "0x81c2c92e47edaee6",
                "0x92722c851482353b",
                "0xa2bfe8a14cf10364",
                "0xa81a664bbc423001",
                "0xc24b8b70d0f89791",
                "0xc76c51a30654be30",
                "0xd192e819d6ef5218",
                "0xd69906245565a910",
                "0xf40e35855771202a",
                "0x106aa07032bbd1b8",
                "0x19a4c116b8d2d0c8",
                "0x1e376c085141ab53",
                "0x2748774cdf8eeb99",
                "0x34b0bcb5e19b48a8",
                "0x391c0cb3c5c95a63",
                "0x4ed8aa4ae3418acb",
                "0x5b9cca4f7763e373",
                "0x682e6ff3d6b2b8a3",
                "0x748f82ee5defb2fc",
                "0x78a5636f43172f60",
                "0x84c87814a1f0ab72",
                "0x8cc702081a6439ec",
                "0x90befffa23631e28",
                "0xa4506cebde82bde9",
                "0xbef9a3f7b2c67915",
                "0xc67178f2e372532b",
                "0xca273eceea26619c",
                "0xd186b8c721c0c207",
                "0xeada7dd6cde0eb1e",
                "0xf57d4f7fee6ed178",
                "0x06f067aa72176fba",
                "0x0a637dc5a2c898a6",
                "0x113f9804bef90dae",
                "0x1b710b35131c471b",
                "0x28db77f523047d84",
                "0x32caab7b40c72493",
                "0x3c9ebe0a15c9bebc",
                "0x431d67c49c100d4c",
                "0x4cc5d4becb3e42b6",
                "0x597f299cfc657e2a",
                "0x5fcb6fab3ad6faec",
                "0x6c44198c4a475817"
            ].map(function(w) {
                return BigInt(w);
            }));
        })(), 2), l = u[0], f = u[1], p = new Uint32Array(80), g = new Uint32Array(80), h = (function(w) {
            n(S, w);
            function S() {
                var b = w.call(this, 128, 64, 16, !1) || this;
                return b.Ah = 1779033703, b.Al = -205731576, b.Bh = -1150833019, b.Bl = -2067093701, b.Ch = 1013904242, b.Cl = -23791573, b.Dh = -1521486534, b.Dl = 1595750129, b.Eh = 1359893119, b.El = -1377402159, b.Fh = -1694144372, b.Fl = 725511199, b.Gh = 528734635, b.Gl = -79577749, b.Hh = 1541459225, b.Hl = 327033209, b;
            }
            return S.prototype.get = function() {
                var b = this, k = b.Ah, F = b.Al, Y = b.Bh, K = b.Bl, J = b.Ch, P = b.Cl, T = b.Dh, E = b.Dl, N = b.Eh, y = b.El, O = b.Fh, m = b.Fl, R = b.Gh, v = b.Gl, A = b.Hh, X = b.Hl;
                return [
                    k,
                    F,
                    Y,
                    K,
                    J,
                    P,
                    T,
                    E,
                    N,
                    y,
                    O,
                    m,
                    R,
                    v,
                    A,
                    X
                ];
            }, S.prototype.set = function(b, k, F, Y, K, J, P, T, E, N, y, O, m, R, v, A) {
                this.Ah = b | 0, this.Al = k | 0, this.Bh = F | 0, this.Bl = Y | 0, this.Ch = K | 0, this.Cl = J | 0, this.Dh = P | 0, this.Dl = T | 0, this.Eh = E | 0, this.El = N | 0, this.Fh = y | 0, this.Fl = O | 0, this.Gh = m | 0, this.Gl = R | 0, this.Hh = v | 0, this.Hl = A | 0;
            }, S.prototype.process = function(b, k) {
                for(var F, Y, K, J, P, T, E, N, y, O = 0; O < 16; O++, k += 4)p[O] = b.getUint32(k), g[O] = b.getUint32(k += 4);
                for(var O = 16; O < 80; O++){
                    var m = p[O - 15] | 0, R = g[O - 15] | 0, v = c.rotrSH(m, R, 1) ^ c.rotrSH(m, R, 8) ^ c.shrSH(m, R, 7), A = c.rotrSL(m, R, 1) ^ c.rotrSL(m, R, 8) ^ c.shrSL(m, R, 7), X = p[O - 2] | 0, C = g[O - 2] | 0, H = c.rotrSH(X, C, 19) ^ c.rotrBH(X, C, 61) ^ c.shrSH(X, C, 6), U = c.rotrSL(X, C, 19) ^ c.rotrBL(X, C, 61) ^ c.shrSL(X, C, 6), L = c.add4L(A, U, g[O - 7], g[O - 16]), q = c.add4H(L, v, H, p[O - 7], p[O - 16]);
                    p[O] = q | 0, g[O] = L | 0;
                }
                for(var V = this, Q = V.Ah, Z = V.Al, tt = V.Bh, rt = V.Bl, at = V.Ch, ut = V.Cl, bt = V.Dh, pt = V.Dl, ot = V.Eh, gt = V.El, W = V.Fh, G = V.Fl, et = V.Gh, ct = V.Gl, ft = V.Hh, dt = V.Hl, O = 0; O < 80; O++){
                    var st = c.rotrSH(ot, gt, 14) ^ c.rotrSH(ot, gt, 18) ^ c.rotrBH(ot, gt, 41), wt = c.rotrSL(ot, gt, 14) ^ c.rotrSL(ot, gt, 18) ^ c.rotrBL(ot, gt, 41), It = ot & W ^ ~ot & et, Ot = gt & G ^ ~gt & ct, St = c.add5L(dt, wt, Ot, f[O], g[O]), Ft = c.add5H(St, ft, st, It, l[O], p[O]), Ct = St | 0, Ut = c.rotrSH(Q, Z, 28) ^ c.rotrBH(Q, Z, 34) ^ c.rotrBH(Q, Z, 39), Gt = c.rotrSL(Q, Z, 28) ^ c.rotrBL(Q, Z, 34) ^ c.rotrBL(Q, Z, 39), be = Q & tt ^ Q & at ^ tt & at, xe = Z & rt ^ Z & ut ^ rt & ut;
                    ft = et | 0, dt = ct | 0, et = W | 0, ct = G | 0, W = ot | 0, G = gt | 0, F = c.add(bt | 0, pt | 0, Ft | 0, Ct | 0), ot = F.h, gt = F.l, bt = at | 0, pt = ut | 0, at = tt | 0, ut = rt | 0, tt = Q | 0, rt = Z | 0;
                    var De = c.add3L(Ct, Gt, xe);
                    Q = c.add3H(De, Ft, Ut, be), Z = De | 0;
                }
                Y = c.add(this.Ah | 0, this.Al | 0, Q | 0, Z | 0), Q = Y.h, Z = Y.l, K = c.add(this.Bh | 0, this.Bl | 0, tt | 0, rt | 0), tt = K.h, rt = K.l, J = c.add(this.Ch | 0, this.Cl | 0, at | 0, ut | 0), at = J.h, ut = J.l, P = c.add(this.Dh | 0, this.Dl | 0, bt | 0, pt | 0), bt = P.h, pt = P.l, T = c.add(this.Eh | 0, this.El | 0, ot | 0, gt | 0), ot = T.h, gt = T.l, E = c.add(this.Fh | 0, this.Fl | 0, W | 0, G | 0), W = E.h, G = E.l, N = c.add(this.Gh | 0, this.Gl | 0, et | 0, ct | 0), et = N.h, ct = N.l, y = c.add(this.Hh | 0, this.Hl | 0, ft | 0, dt | 0), ft = y.h, dt = y.l, this.set(Q, Z, tt, rt, at, ut, bt, pt, ot, gt, W, G, et, ct, ft, dt);
            }, S.prototype.roundClean = function() {
                p.fill(0), g.fill(0);
            }, S.prototype.destroy = function() {
                this.buffer.fill(0), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
            }, S;
        })(a.HashMD);
        or.SHA512 = h;
        var B = (function(w) {
            n(S, w);
            function S() {
                var b = w.call(this) || this;
                return b.Ah = -1942145080, b.Al = 424955298, b.Bh = 1944164710, b.Bl = -1982016298, b.Ch = 502970286, b.Cl = 855612546, b.Dh = 1738396948, b.Dl = 1479516111, b.Eh = 258812777, b.El = 2077511080, b.Fh = 2011393907, b.Fl = 79989058, b.Gh = 1067287976, b.Gl = 1780299464, b.Hh = 286451373, b.Hl = -1848208735, b.outputLen = 28, b;
            }
            return S;
        })(h), I = (function(w) {
            n(S, w);
            function S() {
                var b = w.call(this) || this;
                return b.Ah = 573645204, b.Al = -64227540, b.Bh = -1621794909, b.Bl = -934517566, b.Ch = 596883563, b.Cl = 1867755857, b.Dh = -1774684391, b.Dl = 1497426621, b.Eh = -1775747358, b.El = -1467023389, b.Fh = -1101128155, b.Fl = 1401305490, b.Gh = 721525244, b.Gl = 746961066, b.Hh = 246885852, b.Hl = -2117784414, b.outputLen = 32, b;
            }
            return S;
        })(h), j = (function(w) {
            n(S, w);
            function S() {
                var b = w.call(this) || this;
                return b.Ah = -876896931, b.Al = -1056596264, b.Bh = 1654270250, b.Bl = 914150663, b.Ch = -1856437926, b.Cl = 812702999, b.Dh = 355462360, b.Dl = -150054599, b.Eh = 1731405415, b.El = -4191439, b.Fh = -1900787065, b.Fl = 1750603025, b.Gh = -619958771, b.Gl = 1694076839, b.Hh = 1203062813, b.Hl = -1090891868, b.outputLen = 48, b;
            }
            return S;
        })(h);
        return or.sha512 = (0, s.wrapConstructor)(function() {
            return new h;
        }), or.sha512_224 = (0, s.wrapConstructor)(function() {
            return new B;
        }), or.sha512_256 = (0, s.wrapConstructor)(function() {
            return new I;
        }), or.sha384 = (0, s.wrapConstructor)(function() {
            return new j;
        }), or;
    }
    var AI;
    function fp() {
        if (AI) return Nn;
        AI = 1;
        var n = Nn && Nn.__awaiter || function(w, S, b, k) {
            function F(Y) {
                return Y instanceof b ? Y : new b(function(K) {
                    K(Y);
                });
            }
            return new (b || (b = Promise))(function(Y, K) {
                function J(E) {
                    try {
                        T(k.next(E));
                    } catch (N) {
                        K(N);
                    }
                }
                function P(E) {
                    try {
                        T(k.throw(E));
                    } catch (N) {
                        K(N);
                    }
                }
                function T(E) {
                    E.done ? Y(E.value) : F(E.value).then(J, P);
                }
                T((k = k.apply(w, S || [])).next());
            });
        }, t = Nn && Nn.__generator || function(w, S) {
            var b = {
                label: 0,
                sent: function() {
                    if (Y[0] & 1) throw Y[1];
                    return Y[1];
                },
                trys: [],
                ops: []
            }, k, F, Y, K;
            return K = {
                next: J(0),
                throw: J(1),
                return: J(2)
            }, typeof Symbol == "function" && (K[Symbol.iterator] = function() {
                return this;
            }), K;
            function J(T) {
                return function(E) {
                    return P([
                        T,
                        E
                    ]);
                };
            }
            function P(T) {
                if (k) throw new TypeError("Generator is already executing.");
                for(; K && (K = 0, T[0] && (b = 0)), b;)try {
                    if (k = 1, F && (Y = T[0] & 2 ? F.return : T[0] ? F.throw || ((Y = F.return) && Y.call(F), 0) : F.next) && !(Y = Y.call(F, T[1])).done) return Y;
                    switch(F = 0, Y && (T = [
                        T[0] & 2,
                        Y.value
                    ]), T[0]){
                        case 0:
                        case 1:
                            Y = T;
                            break;
                        case 4:
                            return b.label++, {
                                value: T[1],
                                done: !1
                            };
                        case 5:
                            b.label++, F = T[1], T = [
                                0
                            ];
                            continue;
                        case 7:
                            T = b.ops.pop(), b.trys.pop();
                            continue;
                        default:
                            if (Y = b.trys, !(Y = Y.length > 0 && Y[Y.length - 1]) && (T[0] === 6 || T[0] === 2)) {
                                b = 0;
                                continue;
                            }
                            if (T[0] === 3 && (!Y || T[1] > Y[0] && T[1] < Y[3])) {
                                b.label = T[1];
                                break;
                            }
                            if (T[0] === 6 && b.label < Y[1]) {
                                b.label = Y[1], Y = T;
                                break;
                            }
                            if (Y && b.label < Y[2]) {
                                b.label = Y[2], b.ops.push(T);
                                break;
                            }
                            Y[2] && b.ops.pop(), b.trys.pop();
                            continue;
                    }
                    T = S.call(w, b);
                } catch (E) {
                    T = [
                        6,
                        E
                    ], F = 0;
                } finally{
                    k = Y = 0;
                }
                if (T[0] & 5) throw T[1];
                return {
                    value: T[0] ? T[1] : void 0,
                    done: !0
                };
            }
        }, e = Nn && Nn.__read || function(w, S) {
            var b = typeof Symbol == "function" && w[Symbol.iterator];
            if (!b) return w;
            var k = b.call(w), F, Y = [], K;
            try {
                for(; (S === void 0 || S-- > 0) && !(F = k.next()).done;)Y.push(F.value);
            } catch (J) {
                K = {
                    error: J
                };
            } finally{
                try {
                    F && !F.done && (b = k.return) && b.call(k);
                } finally{
                    if (K) throw K.error;
                }
            }
            return Y;
        }, o = Nn && Nn.__spreadArray || function(w, S, b) {
            if (b || arguments.length === 2) for(var k = 0, F = S.length, Y; k < F; k++)(Y || !(k in S)) && (Y || (Y = Array.prototype.slice.call(S, 0, k)), Y[k] = S[k]);
            return w.concat(Y || Array.prototype.slice.call(S));
        };
        Object.defineProperty(Nn, "__esModule", {
            value: !0
        }), Nn.sha2_512 = Nn.sha2_512_sync = void 0;
        var _ = h0(), a = o9(), c = _.hasGlobalWebCrypto && typeof globalThis.crypto.subtle.digest == "function", s = "SHA-512", u = c ? globalThis.crypto.subtle.digest.bind(globalThis.crypto.subtle) : function() {
            return Promise.resolve(new ArrayBuffer(0));
        };
        function l(w) {
            return n(this, void 0, void 0, function() {
                var S;
                return t(this, function(b) {
                    switch(b.label){
                        case 0:
                            return S = Uint8Array.bind, [
                                4,
                                u(s, w)
                            ];
                        case 1:
                            return [
                                2,
                                new (S.apply(Uint8Array, [
                                    void 0,
                                    b.sent()
                                ]))
                            ];
                    }
                });
            });
        }
        function f(w) {
            return n(this, void 0, void 0, function() {
                var S;
                return t(this, function(b) {
                    switch(b.label){
                        case 0:
                            return [
                                4,
                                B()
                            ];
                        case 1:
                            return b.sent(), c ? (S = Uint8Array.bind, [
                                4,
                                u(s, w)
                            ]) : [
                                2,
                                I(w)
                            ];
                        case 2:
                            return [
                                2,
                                new (S.apply(Uint8Array, [
                                    void 0,
                                    b.sent()
                                ]))
                            ];
                    }
                });
            });
        }
        function p(w, S) {
            return n(this, void 0, void 0, function() {
                var b, k, F, Y, K, J, P;
                return t(this, function(T) {
                    switch(T.label){
                        case 0:
                            if (!c) return [
                                2,
                                [
                                    50,
                                    1
                                ]
                            ];
                            b = 0, k = 0, T.label = 1;
                        case 1:
                            return T.trys.push([
                                1,
                                3,
                                ,
                                4
                            ]), b = performance.now(), Y = Uint8Array.bind, [
                                4,
                                l(w)
                            ];
                        case 2:
                            return F = new (Y.apply(Uint8Array, [
                                void 0,
                                T.sent()
                            ])), k = performance.now(), K = k - b, b = performance.now(), J = I(w), k = performance.now(), P = k - b, c = c && S(F, J), [
                                2,
                                [
                                    K,
                                    P
                                ]
                            ];
                        case 3:
                            return T.sent(), c = !1, [
                                3,
                                4
                            ];
                        case 4:
                            return [
                                2,
                                [
                                    50,
                                    1
                                ]
                            ];
                    }
                });
            });
        }
        var g = !1;
        function h() {
            return n(this, void 0, void 0, function() {
                var w, S, b, k;
                return t(this, function(F) {
                    switch(F.label){
                        case 0:
                            if (g || !c) return [
                                2
                            ];
                            F.label = 1;
                        case 1:
                            return F.trys.push([
                                1,
                                3,
                                ,
                                4
                            ]), w = function(Y, K) {
                                for(var J = 0; J < K; J++)Y = Y.concat.apply(Y, o([], e(Y), !1));
                                return Y;
                            }, S = function(Y, K) {
                                if (!(Y instanceof Uint8Array) || !(K instanceof Uint8Array) || Y.length !== K.length) return !1;
                                for(var J = 0; J < Y.length; J++)if (Y[J] !== K[J]) return !1;
                                return !0;
                            }, [
                                4,
                                Promise.all(w([
                                    new Uint8Array(0),
                                    new Uint8Array(10),
                                    new Uint8Array([
                                        222,
                                        173,
                                        190,
                                        239
                                    ]),
                                    new Uint8Array(w([
                                        170
                                    ], 20)),
                                    new Uint8Array(w([
                                        187
                                    ], 20)),
                                    new Uint8Array(w([
                                        204
                                    ], 20)),
                                    new Uint8Array(w([
                                        221
                                    ], 20)),
                                    new Uint8Array(w([
                                        238
                                    ], 20)),
                                    new Uint8Array(w([
                                        255
                                    ], 20)),
                                    new Uint8Array(w([
                                        170,
                                        187
                                    ], 33)),
                                    new Uint8Array(w([
                                        187,
                                        204
                                    ], 33)),
                                    new Uint8Array(w([
                                        204,
                                        221
                                    ], 33)),
                                    new Uint8Array(w([
                                        221,
                                        238
                                    ], 33)),
                                    new Uint8Array(w([
                                        238,
                                        255
                                    ], 33)),
                                    new Uint8Array(w([
                                        255,
                                        0
                                    ], 33)),
                                    new Uint8Array(w([
                                        222,
                                        173,
                                        190,
                                        239
                                    ], 30))
                                ], 10).map(function(Y) {
                                    return p(Y, S);
                                }))
                            ];
                        case 2:
                            return b = F.sent(), c ? (k = b.reduce(function(Y, K) {
                                var J = e(K, 2), P = J[0], T = J[1];
                                return Y[0] += P, Y[1] += T, Y;
                            }, [
                                0,
                                0
                            ]), c = c && k[0] < k[1], [
                                3,
                                4
                            ]) : [
                                2
                            ];
                        case 3:
                            return F.sent(), c = !1, [
                                3,
                                4
                            ];
                        case 4:
                            return g = !0, [
                                2
                            ];
                    }
                });
            });
        }
        c ? h() : g = !0;
        function B() {
            return n(this, void 0, void 0, function() {
                return t(this, function(w) {
                    switch(w.label){
                        case 0:
                            return c ? [
                                4,
                                h()
                            ] : [
                                2,
                                !1
                            ];
                        case 1:
                            return w.sent(), [
                                2,
                                c
                            ];
                    }
                });
            });
        }
        function I(w) {
            return w instanceof Uint8Array || (w = new Uint8Array(w)), w instanceof ArrayBuffer && (w = new Uint8Array(w)), (0, a.sha512)(w);
        }
        Nn.sha2_512_sync = I;
        function j(w) {
            return Promise.resolve(I(w));
        }
        return Nn.sha2_512 = c ? f : j, Nn;
    }
    var Af = {}, TI;
    function i9() {
        if (TI) return Af;
        TI = 1, Object.defineProperty(Af, "__esModule", {
            value: !0
        }), Af.positiveMod = void 0;
        var n = BigInt(0);
        function t(e, o) {
            o = typeof o == "bigint" ? o : BigInt(o), e = typeof e == "bigint" ? e : BigInt(e);
            var _ = e % o;
            return _ < n ? _ + o : _;
        }
        return Af.positiveMod = t, Af;
    }
    var Tf = {}, PI;
    function lIt() {
        if (PI) return Tf;
        PI = 1, Object.defineProperty(Tf, "__esModule", {
            value: !0
        }), Tf.bigintToBuffer = void 0;
        var n = ve();
        function t(e, o) {
            if (o === void 0 && (o = void 0), e < BigInt(0)) throw new Error("cannot convert negative bigint to buffer");
            if (typeof o != "number" && (o = void 0), e === BigInt(0)) return o === void 0 && (o = 0), new Uint8Array(o);
            var _ = e.toString(16);
            return _ = _.length % 2 === 0 ? _ : "0" + _, typeof o == "number" && (o = Math.round(Math.abs(o)), _ = _.padStart(o * 2, "00"), _.length > o * 2 && (_ = _.slice(_.length - o * 2))), (0, n.fromHex)(_);
        }
        return Tf.bigintToBuffer = t, Tf;
    }
    var RI;
    function fIt() {
        return RI || (RI = 1, (function(n) {
            var t = wa && wa.__awaiter || function(ot, gt, W, G) {
                function et(ct) {
                    return ct instanceof W ? ct : new W(function(ft) {
                        ft(ct);
                    });
                }
                return new (W || (W = Promise))(function(ct, ft) {
                    function dt(It) {
                        try {
                            wt(G.next(It));
                        } catch (Ot) {
                            ft(Ot);
                        }
                    }
                    function st(It) {
                        try {
                            wt(G.throw(It));
                        } catch (Ot) {
                            ft(Ot);
                        }
                    }
                    function wt(It) {
                        It.done ? ct(It.value) : et(It.value).then(dt, st);
                    }
                    wt((G = G.apply(ot, gt || [])).next());
                });
            }, e = wa && wa.__generator || function(ot, gt) {
                var W = {
                    label: 0,
                    sent: function() {
                        if (ct[0] & 1) throw ct[1];
                        return ct[1];
                    },
                    trys: [],
                    ops: []
                }, G, et, ct, ft;
                return ft = {
                    next: dt(0),
                    throw: dt(1),
                    return: dt(2)
                }, typeof Symbol == "function" && (ft[Symbol.iterator] = function() {
                    return this;
                }), ft;
                function dt(wt) {
                    return function(It) {
                        return st([
                            wt,
                            It
                        ]);
                    };
                }
                function st(wt) {
                    if (G) throw new TypeError("Generator is already executing.");
                    for(; ft && (ft = 0, wt[0] && (W = 0)), W;)try {
                        if (G = 1, et && (ct = wt[0] & 2 ? et.return : wt[0] ? et.throw || ((ct = et.return) && ct.call(et), 0) : et.next) && !(ct = ct.call(et, wt[1])).done) return ct;
                        switch(et = 0, ct && (wt = [
                            wt[0] & 2,
                            ct.value
                        ]), wt[0]){
                            case 0:
                            case 1:
                                ct = wt;
                                break;
                            case 4:
                                return W.label++, {
                                    value: wt[1],
                                    done: !1
                                };
                            case 5:
                                W.label++, et = wt[1], wt = [
                                    0
                                ];
                                continue;
                            case 7:
                                wt = W.ops.pop(), W.trys.pop();
                                continue;
                            default:
                                if (ct = W.trys, !(ct = ct.length > 0 && ct[ct.length - 1]) && (wt[0] === 6 || wt[0] === 2)) {
                                    W = 0;
                                    continue;
                                }
                                if (wt[0] === 3 && (!ct || wt[1] > ct[0] && wt[1] < ct[3])) {
                                    W.label = wt[1];
                                    break;
                                }
                                if (wt[0] === 6 && W.label < ct[1]) {
                                    W.label = ct[1], ct = wt;
                                    break;
                                }
                                if (ct && W.label < ct[2]) {
                                    W.label = ct[2], W.ops.push(wt);
                                    break;
                                }
                                ct[2] && W.ops.pop(), W.trys.pop();
                                continue;
                        }
                        wt = gt.call(ot, W);
                    } catch (It) {
                        wt = [
                            6,
                            It
                        ], et = 0;
                    } finally{
                        G = ct = 0;
                    }
                    if (wt[0] & 5) throw wt[1];
                    return {
                        value: wt[0] ? wt[1] : void 0,
                        done: !0
                    };
                }
            }, o = wa && wa.__read || function(ot, gt) {
                var W = typeof Symbol == "function" && ot[Symbol.iterator];
                if (!W) return ot;
                var G = W.call(ot), et, ct = [], ft;
                try {
                    for(; (gt === void 0 || gt-- > 0) && !(et = G.next()).done;)ct.push(et.value);
                } catch (dt) {
                    ft = {
                        error: dt
                    };
                } finally{
                    try {
                        et && !et.done && (W = G.return) && W.call(G);
                    } finally{
                        if (ft) throw ft.error;
                    }
                }
                return ct;
            };
            wa && wa.__spreadArray, Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.verifyEd25519Signature = n.verifyEd25519Signature_sync = n.getEd25519Signature = n.getEd25519Signature_sync = n.signExtendedEd25519 = n.signExtendedEd25519_sync = n.signEd25519 = n.signEd25519_sync = n.extendedToPublic = n.deriveEd25519PublicKey = n.deriveEd25519PublicKey_sync = n.getExtendedEd25519PrivateKey = n.getExtendedEd25519PrivateKey_sync = n.getExtendEd25519PrivateKeyComponents_sync = n.getExtendEd25519PrivateKeyComponentsAsBytes_sync = n.scalarMultBase = n.scalarToBytes = n.scalarFromBytes = n.pointFromBytes = n.bigpointToUint8Array = n.encodeInt = n.scalarMul = n.addPointsEdwards = n.ed25519bigint = void 0;
            var _ = ve(), a = fp(), c = gl(), s = i9(), u = lIt();
            h0();
            var l = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949");
            function f(ot) {
                return (0, s.positiveMod)(ot, l);
            }
            n.ed25519bigint = f;
            var p = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"), g = BigInt("7237005577332262213973186563042994240829374041602535252466099000494570602494"), h = BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"), B = -BigInt("4513249062541557337682894930092624173785641285191125241628941591882900924598840740"), I = BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"), j = Object.freeze([
                BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),
                BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")
            ]);
            function w(ot, gt, W) {
                if (gt == BigInt(0)) return BigInt(1);
                var G = w(ot, gt / BigInt(2), W);
                return G = G * G % W, gt % BigInt(2) !== BigInt(0) && (G = (0, s.positiveMod)(G * ot, W)), G;
            }
            function S(ot) {
                var gt = (0, s.positiveMod)(ot, p), W = p, G = BigInt(0);
                BigInt(1);
                var et = BigInt(1);
                for(BigInt(0); gt !== BigInt(0);){
                    var ct = W / gt, ft = W % gt, dt = G - et * ct;
                    W = gt, gt = ft, G = et, et = dt;
                }
                return (0, s.positiveMod)(G, p);
            }
            function b(ot) {
                var gt = ot * ot, W = (gt - BigInt(1)) * S(B * gt + BigInt(1)), G = w(W, g, p);
                return (G * G - W) % p !== BigInt(0) && (G = G * I % p), G % BigInt(2) !== BigInt(0) && (G = p - G), G;
            }
            function k(ot, gt) {
                var W = ot[0], G = ot[1], et = gt[0], ct = gt[1], ft = B * W * et * G * ct, dt = (W * ct + et * G) * S(BigInt(1) + ft), st = (G * ct + W * et) * S(BigInt(1) - ft);
                return [
                    (0, s.positiveMod)(dt, p),
                    (0, s.positiveMod)(st, p)
                ];
            }
            n.addPointsEdwards = k;
            function F(ot, gt) {
                if (gt === BigInt(0)) return [
                    BigInt(0),
                    BigInt(1)
                ];
                var W = F(ot, gt / BigInt(2));
                return W = k(W, W), gt % BigInt(2) !== BigInt(0) && (W = k(W, ot)), W;
            }
            n.scalarMul = F;
            function Y(ot) {
                return (0, u.bigintToBuffer)(ot, 32).reverse();
            }
            n.encodeInt = Y;
            function K(ot) {
                return BigInt("0x" + (0, c.byteArrToHex)(ot.reverse()));
            }
            function J(ot) {
                var gt = o(ot, 2), W = gt[0], G = gt[1], et = Y(G);
                return et[31] = et[31] & 255 | Number(W & BigInt(1)) * 128, et;
            }
            function P(ot) {
                return new Uint8Array(J(ot));
            }
            n.bigpointToUint8Array = P;
            function T(ot, gt) {
                return ot[Math.floor(gt / 8)] >> gt % 8 & 1;
            }
            function E(ot) {
                var gt = ot[0], W = ot[1], G = gt * gt, et = W * W;
                return (-G + et - BigInt(1) - B * G * et) % p == BigInt(0);
            }
            function N(ot) {
                ot instanceof Uint8Array || (ot = v(ot));
                var gt = ot.slice(0, 32);
                gt[31] = gt[31] & 127;
                var W = K(gt), G = b(W);
                Number(G & BigInt(1)) !== T(ot, 255) && (G = p - G);
                var et = [
                    G,
                    W
                ];
                if (!E(et)) throw new Error("point isn't on curve");
                return et;
            }
            n.pointFromBytes = N;
            var y = BigInt("28948022309329048855892746252171976963317496166410141009864396001978282409984");
            function O(ot) {
                var gt = ot.slice(0, 32);
                return gt[0] = gt[0] & 248, gt[31] = gt[31] & 63, y + BigInt("0x" + (0, c.byteArrToHex)(gt.reverse()));
            }
            n.scalarFromBytes = O;
            function m(ot) {
                ot = (0, s.positiveMod)(ot, h);
                var gt = Y(ot);
                return gt.reverse(), gt;
            }
            n.scalarToBytes = m;
            function R(ot) {
                return K((0, a.sha2_512_sync)(ot));
            }
            function v(ot) {
                return ot instanceof Uint8Array ? ot : ot instanceof ArrayBuffer ? new Uint8Array(ot) : typeof ot == "string" ? (0, _.fromHex)(ot) : new Uint8Array(ot);
            }
            function A(ot) {
                return F(j, ot);
            }
            n.scalarMultBase = A;
            function X(ot) {
                var gt = (0, a.sha2_512_sync)(ot);
                return [
                    gt.slice(0, 32),
                    gt.slice(32, 64)
                ];
            }
            n.getExtendEd25519PrivateKeyComponentsAsBytes_sync = X;
            function C(ot) {
                var gt = o(X(ot), 2), W = gt[0], G = gt[1];
                return [
                    O(W),
                    G
                ];
            }
            n.getExtendEd25519PrivateKeyComponents_sync = C;
            function H(ot) {
                ot = Uint8Array.prototype.slice.call(v(ot), 0, 32);
                var gt = (0, a.sha2_512_sync)(ot);
                return gt.set(ot, 0), gt;
            }
            n.getExtendedEd25519PrivateKey_sync = H;
            function U(ot) {
                return t(this, void 0, void 0, function() {
                    var gt;
                    return e(this, function(W) {
                        switch(W.label){
                            case 0:
                                return [
                                    2,
                                    H(ot)
                                ];
                            case 1:
                                return gt = W.sent(), gt.set(ot, 0), [
                                    2,
                                    gt
                                ];
                        }
                    });
                });
            }
            n.getExtendedEd25519PrivateKey = U;
            function L(ot) {
                var gt = (0, a.sha2_512_sync)(ot), W = O(gt), G = F(j, W);
                return J(G);
            }
            n.deriveEd25519PublicKey_sync = L;
            function q(ot) {
                return Promise.resolve(L(ot));
            }
            n.deriveEd25519PublicKey = q;
            function V(ot) {
                ot = v(ot);
                var gt = O(ot), W = F(j, gt);
                return new Uint8Array(J(W));
            }
            n.extendedToPublic = V;
            function Q(ot, gt) {
                ot = v(ot), gt = v(gt);
                var W = gt.length === 64 ? gt : (0, a.sha2_512_sync)(gt);
                return tt(ot, W);
            }
            n.signEd25519_sync = Q;
            function Z(ot, gt) {
                return t(this, void 0, void 0, function() {
                    var W, G;
                    return e(this, function(et) {
                        switch(et.label){
                            case 0:
                                return gt = v(gt), gt.length !== 64 ? [
                                    3,
                                    1
                                ] : (G = gt, [
                                    3,
                                    3
                                ]);
                            case 1:
                                return [
                                    4,
                                    (0, a.sha2_512)(gt)
                                ];
                            case 2:
                                G = et.sent(), et.label = 3;
                            case 3:
                                return W = G, [
                                    4,
                                    (0, n.signExtendedEd25519)(ot, W)
                                ];
                            case 4:
                                return [
                                    2,
                                    et.sent()
                                ];
                        }
                    });
                });
            }
            n.signEd25519 = Z;
            function tt(ot, gt) {
                var W, G = v(ot), et = v(gt);
                if (et.length !== 64) throw new Error("signExtendedEd25519_sync:: extended key must have length 64");
                var ct = O(et), ft = J(F(j, ct)), dt = R((0, _.concatUint8Array)(et.slice(32, 64), v(G))), st = F(j, dt), wt = (0, s.positiveMod)(dt + R((0, _.concatUint8Array)(J(st), ft, v(G))) * ct, h), It = ft, Ot = (0, _.concatUint8Array)(J(st), Y(wt));
                return W = {
                    0: It,
                    1: Ot,
                    length: 2
                }, W[Symbol.iterator] = function() {
                    return e(this, function(St) {
                        switch(St.label){
                            case 0:
                                return [
                                    4,
                                    It
                                ];
                            case 1:
                                return St.sent(), [
                                    4,
                                    Ot
                                ];
                            case 2:
                                return St.sent(), [
                                    2
                                ];
                        }
                    });
                }, W.pubKey = It, W.signature = Ot, W;
            }
            n.signExtendedEd25519_sync = tt;
            function rt(ot, gt) {
                return Promise.resolve(tt(ot, gt));
            }
            n.signExtendedEd25519 = rt;
            function at(ot, gt) {
                return Q(ot, gt).signature;
            }
            n.getEd25519Signature_sync = at;
            function ut(ot, gt) {
                return Promise.resolve(at(ot, gt));
            }
            n.getEd25519Signature = ut;
            function bt(ot, gt, W) {
                var G = v(ot), et = v(gt), ct = v(W);
                if (G.length !== 64 || ct.length !== 32) throw new Error("unexpected signature length ".concat(G.length));
                var ft = v(G).slice(0, 32), dt = N(ft), st = N(v(ct)), wt = K(v(G).slice(32, 64)), It = R((0, _.concatUint8Array)(ft, ct, et)), Ot = F(j, wt), St = k(dt, F(st, It));
                return Ot[0] == St[0] && Ot[1] == St[1];
            }
            n.verifyEd25519Signature_sync = bt;
            function pt(ot, gt, W) {
                return Promise.resolve(bt(ot, gt, W));
            }
            n.verifyEd25519Signature = pt;
        })(wa)), wa;
    }
    var Pf = {}, Rf = {}, UI;
    function s9() {
        return UI || (UI = 1, (function(n) {
            var t = Rf && Rf.__extends || (function() {
                var c = function(s, u) {
                    return c = Object.setPrototypeOf || {
                        __proto__: []
                    } instanceof Array && function(l, f) {
                        l.__proto__ = f;
                    } || function(l, f) {
                        for(var p in f)Object.prototype.hasOwnProperty.call(f, p) && (l[p] = f[p]);
                    }, c(s, u);
                };
                return function(s, u) {
                    if (typeof u != "function" && u !== null) throw new TypeError("Class extends value " + String(u) + " is not a constructor or null");
                    c(s, u);
                    function l() {
                        this.constructor = s;
                    }
                    s.prototype = u === null ? Object.create(u) : (l.prototype = u.prototype, new l);
                };
            })();
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.hmac = n.HMAC = void 0;
            var e = a9(), o = $i(), _ = (function(c) {
                t(s, c);
                function s(u, l) {
                    var f = c.call(this) || this;
                    f.finished = !1, f.destroyed = !1, (0, e.hash)(u);
                    var p = (0, o.toBytes)(l);
                    if (f.iHash = u.create(), typeof f.iHash.update != "function") throw new Error("Expected instance of class which extends utils.Hash");
                    f.blockLen = f.iHash.blockLen, f.outputLen = f.iHash.outputLen;
                    var g = f.blockLen, h = new Uint8Array(g);
                    h.set(p.length > g ? u.create().update(p).digest() : p);
                    for(var B = 0; B < h.length; B++)h[B] ^= 54;
                    f.iHash.update(h), f.oHash = u.create();
                    for(var B = 0; B < h.length; B++)h[B] ^= 106;
                    return f.oHash.update(h), h.fill(0), f;
                }
                return s.prototype.update = function(u) {
                    return (0, e.exists)(this), this.iHash.update(u), this;
                }, s.prototype.digestInto = function(u) {
                    (0, e.exists)(this), (0, e.bytes)(u, this.outputLen), this.finished = !0, this.iHash.digestInto(u), this.oHash.update(u), this.oHash.digestInto(u), this.destroy();
                }, s.prototype.digest = function() {
                    var u = new Uint8Array(this.oHash.outputLen);
                    return this.digestInto(u), u;
                }, s.prototype._cloneInto = function(u) {
                    u || (u = Object.create(Object.getPrototypeOf(this), {}));
                    var l = this, f = l.oHash, p = l.iHash, g = l.finished, h = l.destroyed, B = l.blockLen, I = l.outputLen;
                    return u = u, u.finished = g, u.destroyed = h, u.blockLen = B, u.outputLen = I, u.oHash = f._cloneInto(u.oHash), u.iHash = p._cloneInto(u.iHash), u;
                }, s.prototype.destroy = function() {
                    this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
                }, s;
            })(o.Hash);
            n.HMAC = _;
            var a = function(c, s, u) {
                return new _(c, s).update(u).digest();
            };
            n.hmac = a, n.hmac.create = function(c, s) {
                return new _(c, s);
            };
        })(Rf)), Rf;
    }
    var CI;
    function gIt() {
        if (CI) return Pf;
        CI = 1, Object.defineProperty(Pf, "__esModule", {
            value: !0
        }), Pf.hmacSHA512 = void 0;
        var n = s9(), t = o9();
        function e(o, _) {
            return new Uint8Array((0, n.hmac)(t.sha512, o, _));
        }
        return Pf.hmacSHA512 = e, Pf;
    }
    var pn = {}, NI;
    function pIt() {
        if (NI) return pn;
        NI = 1;
        var n = pn && pn.__createBinding || (Object.create ? (function(u, l, f, p) {
            p === void 0 && (p = f);
            var g = Object.getOwnPropertyDescriptor(l, f);
            (!g || ("get" in g ? !l.__esModule : g.writable || g.configurable)) && (g = {
                enumerable: !0,
                get: function() {
                    return l[f];
                }
            }), Object.defineProperty(u, p, g);
        }) : (function(u, l, f, p) {
            p === void 0 && (p = f), u[p] = l[f];
        })), t = pn && pn.__setModuleDefault || (Object.create ? (function(u, l) {
            Object.defineProperty(u, "default", {
                enumerable: !0,
                value: l
            });
        }) : function(u, l) {
            u.default = l;
        }), e = pn && pn.__importStar || function(u) {
            if (u && u.__esModule) return u;
            var l = {};
            if (u != null) for(var f in u)f !== "default" && Object.prototype.hasOwnProperty.call(u, f) && n(l, u, f);
            return t(l, u), l;
        };
        Object.defineProperty(pn, "__esModule", {
            value: !0
        }), pn.keccak_512 = pn.keccak_384 = pn.keccak_224 = pn.keccak_256 = void 0;
        var o = e(n9());
        function _(u) {
            return o.keccak_256(u);
        }
        pn.keccak_256 = _;
        function a(u) {
            return o.keccak_224(u);
        }
        pn.keccak_224 = a;
        function c(u) {
            return o.keccak_384(u);
        }
        pn.keccak_384 = c;
        function s(u) {
            return o.keccak_512(u);
        }
        return pn.keccak_512 = s, pn;
    }
    var vd = {}, md = {}, x_ = {}, MI;
    function bIt() {
        if (MI) return x_;
        MI = 1;
        var n = x_ && x_.__assign || function() {
            return n = Object.assign || function(u) {
                for(var l, f = 1, p = arguments.length; f < p; f++){
                    l = arguments[f];
                    for(var g in l)Object.prototype.hasOwnProperty.call(l, g) && (u[g] = l[g]);
                }
                return u;
            }, n.apply(this, arguments);
        }, t = x_ && x_.__read || function(u, l) {
            var f = typeof Symbol == "function" && u[Symbol.iterator];
            if (!f) return u;
            var p = f.call(u), g, h = [], B;
            try {
                for(; (l === void 0 || l-- > 0) && !(g = p.next()).done;)h.push(g.value);
            } catch (I) {
                B = {
                    error: I
                };
            } finally{
                try {
                    g && !g.done && (f = p.return) && f.call(p);
                } finally{
                    if (B) throw B.error;
                }
            }
            return h;
        }, e = x_ && x_.__spreadArray || function(u, l, f) {
            if (f || arguments.length === 2) for(var p = 0, g = l.length, h; p < g; p++)(h || !(p in l)) && (h || (h = Array.prototype.slice.call(l, 0, p)), h[p] = l[p]);
            return u.concat(h || Array.prototype.slice.call(l));
        };
        Object.defineProperty(x_, "__esModule", {
            value: !0
        }), x_.createCurve = x_.getHash = void 0;
        var o = s9(), _ = $i(), a = y0();
        function c(u) {
            return {
                hash: u,
                hmac: function(l) {
                    for(var f = [], p = 1; p < arguments.length; p++)f[p - 1] = arguments[p];
                    return (0, o.hmac)(u, l, _.concatBytes.apply(void 0, e([], t(f), !1)));
                },
                randomBytes: _.randomBytes
            };
        }
        x_.getHash = c;
        function s(u, l) {
            var f = function(p) {
                return (0, a.weierstrass)(n(n({}, u), c(p)));
            };
            return Object.freeze(n(n({}, f(l)), {
                create: f
            }));
        }
        return x_.createCurve = s, x_;
    }
    var LI;
    function wIt() {
        return LI || (LI = 1, (function(n) {
            var t = md && md.__read || function(q, V) {
                var Q = typeof Symbol == "function" && q[Symbol.iterator];
                if (!Q) return q;
                var Z = Q.call(q), tt, rt = [], at;
                try {
                    for(; (V === void 0 || V-- > 0) && !(tt = Z.next()).done;)rt.push(tt.value);
                } catch (ut) {
                    at = {
                        error: ut
                    };
                } finally{
                    try {
                        tt && !tt.done && (Q = Z.return) && Q.call(Z);
                    } finally{
                        if (at) throw at.error;
                    }
                }
                return rt;
            }, e = md && md.__spreadArray || function(q, V, Q) {
                if (Q || arguments.length === 2) for(var Z = 0, tt = V.length, rt; Z < tt; Z++)(rt || !(Z in V)) && (rt || (rt = Array.prototype.slice.call(V, 0, Z)), rt[Z] = V[Z]);
                return q.concat(rt || Array.prototype.slice.call(V));
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.verifySecp256k1 = n.signSecp256k1 = n.encodeToCurve = n.hashToCurve = n.schnorr = n.verifySchnorr = n.signSchnorr = n.Secp256k1Point = n.secp256k1PointToBytes = n.secp256k1 = void 0;
            var o = yh(), _ = $i(), a = Vl(), c = y0(), s = Li(), u = w0(), l = bIt(), f = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), p = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), g = BigInt(1), h = BigInt(2), B = function(q, V) {
                return (q + V / h) / V;
            };
            function I(q) {
                var V = f, Q = BigInt(3), Z = BigInt(6), tt = BigInt(11), rt = BigInt(22), at = BigInt(23), ut = BigInt(44), bt = BigInt(88), pt = q * q * q % V, ot = pt * pt * q % V, gt = (0, a.pow2)(ot, Q, V) * ot % V, W = (0, a.pow2)(gt, Q, V) * ot % V, G = (0, a.pow2)(W, h, V) * pt % V, et = (0, a.pow2)(G, tt, V) * G % V, ct = (0, a.pow2)(et, rt, V) * et % V, ft = (0, a.pow2)(ct, ut, V) * ct % V, dt = (0, a.pow2)(ft, bt, V) * ft % V, st = (0, a.pow2)(dt, ut, V) * ct % V, wt = (0, a.pow2)(st, Q, V) * ot % V, It = (0, a.pow2)(wt, at, V) * et % V, Ot = (0, a.pow2)(It, Z, V) * pt % V, St = (0, a.pow2)(Ot, h, V);
                if (!j.eql(j.sqr(St), q)) throw new Error("Cannot find square root");
                return St;
            }
            var j = (0, a.Field)(f, void 0, void 0, {
                sqrt: I
            });
            n.secp256k1 = (0, l.createCurve)({
                a: BigInt(0),
                b: BigInt(7),
                Fp: j,
                n: p,
                Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),
                Gy: BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),
                h: BigInt(1),
                lowS: !0,
                endo: {
                    beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),
                    splitScalar: function(q) {
                        var V = p, Q = BigInt("0x3086d221a7d46bcde86c90e49284eb15"), Z = -g * BigInt("0xe4437ed6010e88286f547fa90abfe4c3"), tt = BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"), rt = Q, at = BigInt("0x100000000000000000000000000000000"), ut = B(rt * q, V), bt = B(-Z * q, V), pt = (0, a.mod)(q - ut * Q - bt * tt, V), ot = (0, a.mod)(-ut * Z - bt * rt, V), gt = pt > at, W = ot > at;
                        if (gt && (pt = V - pt), W && (ot = V - ot), pt > at || ot > at) throw new Error("splitScalar: Endomorphism failed, k=" + q);
                        return {
                            k1neg: gt,
                            k1: pt,
                            k2neg: W,
                            k2: ot
                        };
                    }
                }
            }, o.sha256);
            var w = BigInt(0), S = function(q) {
                return typeof q == "bigint" && w < q && q < f;
            }, b = function(q) {
                return typeof q == "bigint" && w < q && q < p;
            }, k = {};
            function F(q) {
                for(var V = [], Q = 1; Q < arguments.length; Q++)V[Q - 1] = arguments[Q];
                var Z = k[q];
                if (Z === void 0) {
                    var tt = (0, o.sha256)(Uint8Array.from(q, function(rt) {
                        return rt.charCodeAt(0);
                    }));
                    Z = (0, s.concatBytes)(tt, tt), k[q] = Z;
                }
                return (0, o.sha256)(s.concatBytes.apply(void 0, e([
                    Z
                ], t(V), !1)));
            }
            var Y = function(q) {
                return q.toRawBytes(!0).slice(1);
            };
            n.secp256k1PointToBytes = Y;
            var K = function(q) {
                return (0, s.numberToBytesBE)(q, 32);
            }, J = function(q) {
                return (0, a.mod)(q, f);
            }, P = function(q) {
                return (0, a.mod)(q, p);
            }, T = n.secp256k1.ProjectivePoint;
            n.Secp256k1Point = n.secp256k1.ProjectivePoint;
            var E = function(q, V, Q) {
                return T.BASE.multiplyAndAddUnsafe(q, V, Q);
            };
            function N(q) {
                var V = n.secp256k1.utils.normPrivateKeyToScalar(q), Q = T.fromPrivateKey(V), Z = Q.hasEvenY() ? V : P(-V);
                return {
                    scalar: Z,
                    bytes: Y(Q)
                };
            }
            function y(q) {
                if (!S(q)) throw new Error("bad x: need 0 < x < p");
                var V = J(q * q), Q = J(V * q + BigInt(7)), Z = I(Q);
                Z % h !== w && (Z = J(-Z));
                var tt = new T(q, Z, g);
                return tt.assertValidity(), tt;
            }
            function O() {
                for(var q = [], V = 0; V < arguments.length; V++)q[V] = arguments[V];
                return P((0, s.bytesToNumberBE)(F.apply(void 0, e([
                    "BIP0340/challenge"
                ], t(q), !1))));
            }
            function m(q) {
                return N(q).bytes;
            }
            function R(q, V, Q) {
                Q === void 0 && (Q = (0, _.randomBytes)(32));
                var Z = (0, s.ensureBytes)("message", q), tt = N(V), rt = tt.bytes, at = tt.scalar, ut = (0, s.ensureBytes)("auxRand", Q, 32), bt = K(at ^ (0, s.bytesToNumberBE)(F("BIP0340/aux", ut))), pt = F("BIP0340/nonce", bt, rt, Z), ot = P((0, s.bytesToNumberBE)(pt));
                if (ot === w) throw new Error("sign failed: k is zero");
                var gt = N(ot), W = gt.bytes, G = gt.scalar, et = O(W, rt, Z), ct = new Uint8Array(64);
                if (ct.set(W, 0), ct.set(K(P(G + et * at)), 32), !v(ct, Z, rt)) throw new Error("sign: Invalid signature produced");
                return ct;
            }
            function v(q, V, Q) {
                var Z = (0, s.ensureBytes)("signature", q, 64), tt = (0, s.ensureBytes)("message", V), rt = (0, s.ensureBytes)("publicKey", Q, 32);
                try {
                    var at = y((0, s.bytesToNumberBE)(rt)), ut = (0, s.bytesToNumberBE)(Z.subarray(0, 32));
                    if (!S(ut)) return !1;
                    var bt = (0, s.bytesToNumberBE)(Z.subarray(32, 64));
                    if (!b(bt)) return !1;
                    var pt = O(K(ut), Y(at), tt), ot = E(at, bt, P(-pt));
                    return !(!ot || !ot.hasEvenY() || ot.toAffine().x !== ut);
                } catch  {
                    return !1;
                }
            }
            n.signSchnorr = R, n.verifySchnorr = v, n.schnorr = (function() {
                return {
                    getPublicKey: m,
                    sign: R,
                    verify: v,
                    utils: {
                        randomPrivateKey: n.secp256k1.utils.randomPrivateKey,
                        lift_x: y,
                        pointToBytes: Y,
                        numberToBytesBE: s.numberToBytesBE,
                        bytesToNumberBE: s.bytesToNumberBE,
                        taggedHash: F,
                        mod: a.mod
                    }
                };
            })();
            var A = (function() {
                return (0, u.isogenyMap)(j, [
                    [
                        "0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7",
                        "0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581",
                        "0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262",
                        "0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"
                    ],
                    [
                        "0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b",
                        "0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14",
                        "0x0000000000000000000000000000000000000000000000000000000000000001"
                    ],
                    [
                        "0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c",
                        "0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3",
                        "0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931",
                        "0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"
                    ],
                    [
                        "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b",
                        "0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573",
                        "0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f",
                        "0x0000000000000000000000000000000000000000000000000000000000000001"
                    ]
                ].map(function(q) {
                    return q.map(function(V) {
                        return BigInt(V);
                    });
                }));
            })(), X = (function() {
                return (0, c.mapToCurveSimpleSWU)(j, {
                    A: BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),
                    B: BigInt("1771"),
                    Z: j.create(BigInt("-11"))
                });
            })(), C = (function() {
                return (0, u.createHasher)(n.secp256k1.ProjectivePoint, function(q) {
                    var V = X(j.create(q[0])), Q = V.x, Z = V.y;
                    return A(Q, Z);
                }, {
                    DST: "secp256k1_XMD:SHA-256_SSWU_RO_",
                    encodeDST: "secp256k1_XMD:SHA-256_SSWU_NU_",
                    p: j.ORDER,
                    m: 1,
                    k: 128,
                    expand: "xmd",
                    hash: o.sha256
                });
            })();
            n.hashToCurve = (function() {
                return C.hashToCurve;
            })(), n.encodeToCurve = (function() {
                return C.encodeToCurve;
            })();
            function H(q, V, Q) {
                return n.secp256k1.sign(q, V, {
                    extraEntropy: Q
                }).toCompactRawBytes();
            }
            n.signSecp256k1 = H;
            var U = {
                lowS: !0,
                prehash: !1
            };
            function L(q, V, Q) {
                return n.secp256k1.verify(q, V, Q, U);
            }
            n.verifySecp256k1 = L;
        })(md)), md;
    }
    var zI;
    function yIt() {
        if (zI) return vd;
        zI = 1, Object.defineProperty(vd, "__esModule", {
            value: !0
        }), vd.verifySchnorrSecp256k1Signature = vd.verifyEcdsaSecp256k1Signature = void 0;
        var n = wIt();
        function t(o, _, a) {
            if (!(o instanceof Uint8Array && _ instanceof Uint8Array && a instanceof Uint8Array && o.length === 33 && _.length === 32 && a.length === 64)) throw new TypeError("invalid arguments passed to 'verifyEcdsaSecp256k1Signature'");
            var c = o[0];
            if (!(c === 2 || c === 3)) throw new Error("plutus-machine only supports compressed public keys for 'verifyEcdsaSecp256k1Signature'");
            return (0, n.verifySecp256k1)(a, _, o);
        }
        vd.verifyEcdsaSecp256k1Signature = t;
        function e(o, _, a) {
            if (!(o instanceof Uint8Array && _ instanceof Uint8Array && a instanceof Uint8Array && o.length === 32 && a.length === 64)) throw new TypeError("invalid arguments passed to 'verifyEcdsaSecp256k1Signature'");
            return (0, n.verifySchnorr)(a, _, o);
        }
        return vd.verifySchnorrSecp256k1Signature = e, vd;
    }
    var ya = {}, Uf = {}, qI;
    function c9() {
        if (qI) return Uf;
        qI = 1, Object.defineProperty(Uf, "__esModule", {
            value: !0
        }), Uf.rotr32 = void 0;
        function n(t, e) {
            return t >>> e | t << 32 - e | 0;
        }
        return Uf.rotr32 = n, Uf;
    }
    var DI;
    function hIt() {
        return DI || (DI = 1, (function(n) {
            var t = ya && ya.__awaiter || function(K, J, P, T) {
                function E(N) {
                    return N instanceof P ? N : new P(function(y) {
                        y(N);
                    });
                }
                return new (P || (P = Promise))(function(N, y) {
                    function O(v) {
                        try {
                            R(T.next(v));
                        } catch (A) {
                            y(A);
                        }
                    }
                    function m(v) {
                        try {
                            R(T.throw(v));
                        } catch (A) {
                            y(A);
                        }
                    }
                    function R(v) {
                        v.done ? N(v.value) : E(v.value).then(O, m);
                    }
                    R((T = T.apply(K, J || [])).next());
                });
            }, e = ya && ya.__generator || function(K, J) {
                var P = {
                    label: 0,
                    sent: function() {
                        if (N[0] & 1) throw N[1];
                        return N[1];
                    },
                    trys: [],
                    ops: []
                }, T, E, N, y;
                return y = {
                    next: O(0),
                    throw: O(1),
                    return: O(2)
                }, typeof Symbol == "function" && (y[Symbol.iterator] = function() {
                    return this;
                }), y;
                function O(R) {
                    return function(v) {
                        return m([
                            R,
                            v
                        ]);
                    };
                }
                function m(R) {
                    if (T) throw new TypeError("Generator is already executing.");
                    for(; y && (y = 0, R[0] && (P = 0)), P;)try {
                        if (T = 1, E && (N = R[0] & 2 ? E.return : R[0] ? E.throw || ((N = E.return) && N.call(E), 0) : E.next) && !(N = N.call(E, R[1])).done) return N;
                        switch(E = 0, N && (R = [
                            R[0] & 2,
                            N.value
                        ]), R[0]){
                            case 0:
                            case 1:
                                N = R;
                                break;
                            case 4:
                                return P.label++, {
                                    value: R[1],
                                    done: !1
                                };
                            case 5:
                                P.label++, E = R[1], R = [
                                    0
                                ];
                                continue;
                            case 7:
                                R = P.ops.pop(), P.trys.pop();
                                continue;
                            default:
                                if (N = P.trys, !(N = N.length > 0 && N[N.length - 1]) && (R[0] === 6 || R[0] === 2)) {
                                    P = 0;
                                    continue;
                                }
                                if (R[0] === 3 && (!N || R[1] > N[0] && R[1] < N[3])) {
                                    P.label = R[1];
                                    break;
                                }
                                if (R[0] === 6 && P.label < N[1]) {
                                    P.label = N[1], N = R;
                                    break;
                                }
                                if (N && P.label < N[2]) {
                                    P.label = N[2], P.ops.push(R);
                                    break;
                                }
                                N[2] && P.ops.pop(), P.trys.pop();
                                continue;
                        }
                        R = J.call(K, P);
                    } catch (v) {
                        R = [
                            6,
                            v
                        ], E = 0;
                    } finally{
                        T = N = 0;
                    }
                    if (R[0] & 5) throw R[1];
                    return {
                        value: R[0] ? R[1] : void 0,
                        done: !0
                    };
                }
            }, o = ya && ya.__read || function(K, J) {
                var P = typeof Symbol == "function" && K[Symbol.iterator];
                if (!P) return K;
                var T = P.call(K), E, N = [], y;
                try {
                    for(; (J === void 0 || J-- > 0) && !(E = T.next()).done;)N.push(E.value);
                } catch (O) {
                    y = {
                        error: O
                    };
                } finally{
                    try {
                        E && !E.done && (P = T.return) && P.call(T);
                    } finally{
                        if (y) throw y.error;
                    }
                }
                return N;
            }, _ = ya && ya.__spreadArray || function(K, J, P) {
                if (P || arguments.length === 2) for(var T = 0, E = J.length, N; T < E; T++)(N || !(T in J)) && (N || (N = Array.prototype.slice.call(J, 0, T)), N[T] = J[T]);
                return K.concat(N || Array.prototype.slice.call(J));
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.hasNativeSha2_256 = n.sha2_256 = n.sha2_256_sync = void 0;
            var a = c9(), c = h0(), s = c.hasGlobalWebCrypto && typeof globalThis.crypto.subtle.digest == "function", u = "SHA-256", l = s ? globalThis.crypto.subtle.digest.bind(globalThis.crypto.subtle) : function() {
                return Promise.resolve(new ArrayBuffer(0));
            };
            function f(K) {
                return t(this, void 0, void 0, function() {
                    var J;
                    return e(this, function(P) {
                        switch(P.label){
                            case 0:
                                return J = Uint8Array.bind, [
                                    4,
                                    l(u, K)
                                ];
                            case 1:
                                return [
                                    2,
                                    new (J.apply(Uint8Array, [
                                        void 0,
                                        P.sent()
                                    ]))
                                ];
                        }
                    });
                });
            }
            function p(K) {
                return t(this, void 0, void 0, function() {
                    var J;
                    return e(this, function(P) {
                        switch(P.label){
                            case 0:
                                return [
                                    4,
                                    I()
                                ];
                            case 1:
                                return P.sent(), s ? (J = Uint8Array.bind, [
                                    4,
                                    l(u, K)
                                ]) : [
                                    2,
                                    F(K)
                                ];
                            case 2:
                                return [
                                    2,
                                    new (J.apply(Uint8Array, [
                                        void 0,
                                        P.sent()
                                    ]))
                                ];
                        }
                    });
                });
            }
            function g(K, J) {
                return t(this, void 0, void 0, function() {
                    var P, T, E, N, y, O, m;
                    return e(this, function(R) {
                        switch(R.label){
                            case 0:
                                if (!s) return [
                                    2,
                                    [
                                        50,
                                        1
                                    ]
                                ];
                                P = 0, T = 0, R.label = 1;
                            case 1:
                                return R.trys.push([
                                    1,
                                    3,
                                    ,
                                    4
                                ]), P = performance.now(), N = Uint8Array.bind, [
                                    4,
                                    f(K)
                                ];
                            case 2:
                                return E = new (N.apply(Uint8Array, [
                                    void 0,
                                    R.sent()
                                ])), T = performance.now(), y = T - P, P = performance.now(), O = F(K), T = performance.now(), m = T - P, s = s && J(E, O), [
                                    2,
                                    [
                                        y,
                                        m
                                    ]
                                ];
                            case 3:
                                return R.sent(), s = !1, [
                                    3,
                                    4
                                ];
                            case 4:
                                return [
                                    2,
                                    [
                                        50,
                                        1
                                    ]
                                ];
                        }
                    });
                });
            }
            var h = !1;
            function B() {
                return t(this, void 0, void 0, function() {
                    var K, J, P, T;
                    return e(this, function(E) {
                        switch(E.label){
                            case 0:
                                if (h || !s) return [
                                    2
                                ];
                                E.label = 1;
                            case 1:
                                return E.trys.push([
                                    1,
                                    3,
                                    ,
                                    4
                                ]), K = function(N, y) {
                                    for(var O = 0; O < y; O++)N = N.concat.apply(N, _([], o(N), !1));
                                    return N;
                                }, J = function(N, y) {
                                    if (!(N instanceof Uint8Array) || !(y instanceof Uint8Array) || N.length !== y.length) return !1;
                                    for(var O = 0; O < N.length; O++)if (N[O] !== y[O]) return !1;
                                    return !0;
                                }, [
                                    4,
                                    Promise.all(K([
                                        new Uint8Array(0),
                                        new Uint8Array(10),
                                        new Uint8Array([
                                            222,
                                            173,
                                            190,
                                            239
                                        ]),
                                        new Uint8Array(K([
                                            170
                                        ], 20)),
                                        new Uint8Array(K([
                                            187
                                        ], 20)),
                                        new Uint8Array(K([
                                            204
                                        ], 20)),
                                        new Uint8Array(K([
                                            221
                                        ], 20)),
                                        new Uint8Array(K([
                                            238
                                        ], 20)),
                                        new Uint8Array(K([
                                            255
                                        ], 20)),
                                        new Uint8Array(K([
                                            170,
                                            187
                                        ], 33)),
                                        new Uint8Array(K([
                                            187,
                                            204
                                        ], 33)),
                                        new Uint8Array(K([
                                            204,
                                            221
                                        ], 33)),
                                        new Uint8Array(K([
                                            221,
                                            238
                                        ], 33)),
                                        new Uint8Array(K([
                                            238,
                                            255
                                        ], 33)),
                                        new Uint8Array(K([
                                            255,
                                            0
                                        ], 33)),
                                        new Uint8Array(K([
                                            222,
                                            173,
                                            190,
                                            239
                                        ], 30))
                                    ], 10).map(function(N) {
                                        return g(N, J);
                                    }))
                                ];
                            case 2:
                                return P = E.sent(), s ? (T = P.reduce(function(N, y) {
                                    var O = o(y, 2), m = O[0], R = O[1];
                                    return N[0] += m, N[1] += R, N;
                                }, [
                                    0,
                                    0
                                ]), s = s && T[0] < T[1], [
                                    3,
                                    4
                                ]) : [
                                    2
                                ];
                            case 3:
                                return E.sent(), s = !1, h = !0, [
                                    3,
                                    4
                                ];
                            case 4:
                                return h = !0, [
                                    2
                                ];
                        }
                    });
                });
            }
            s ? B() : h = !0;
            function I() {
                return t(this, void 0, void 0, function() {
                    return e(this, function(K) {
                        switch(K.label){
                            case 0:
                                return s ? [
                                    4,
                                    B()
                                ] : [
                                    2,
                                    !1
                                ];
                            case 1:
                                return K.sent(), [
                                    2,
                                    s
                                ];
                        }
                    });
                });
            }
            function j(K) {
                var J = K.length * 8, P = K.length;
                P++;
                var T = 64 - (K.length + 1) % 64 - 8;
                T < 0 && (T += 64), P += T, P += 8;
                var E = new Uint8Array(P);
                return E.set(K), E[K.length] = 128, E[P - 4] = J >>> 24 & 255, E[P - 3] = J >>> 16 & 255, E[P - 2] = J >>> 8 & 255, E[P - 1] = J & 255, E;
            }
            var w = [
                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
            ];
            function S(K) {
                return (0, a.rotr32)(K, 7) ^ (0, a.rotr32)(K, 18) ^ K >>> 3;
            }
            function b(K) {
                return (0, a.rotr32)(K, 17) ^ (0, a.rotr32)(K, 19) ^ K >>> 10;
            }
            var k = new Uint32Array([
                1779033703,
                3144134277,
                1013904242,
                2773480762,
                1359893119,
                2600822924,
                528734635,
                1541459225
            ]);
            function F(K) {
                K instanceof Uint8Array || (K = new Uint8Array(K)), K instanceof ArrayBuffer && (K = new Uint8Array(K));
                for(var J = k.slice(), P = j(K), T = 0; T < P.length; T += 64){
                    for(var E = Uint8Array.prototype.slice.call(P, T, T + 64), N = new Int32Array(64), y = 0; y < 16; y++)N[y] = E[y * 4 + 0] << 24 | E[y * 4 + 1] << 16 | E[y * 4 + 2] << 8 | E[y * 4 + 3];
                    for(var y = 16; y < 64; y++)N[y] = N[y - 16] + S(N[y - 15]) + N[y - 7] + b(N[y - 2]) | 0;
                    for(var O = J[0], m = J[1], R = J[2], v = J[3], A = J[4], X = J[5], C = J[6], H = J[7], y = 0; y < 64; y++){
                        var U = (0, a.rotr32)(A, 6) ^ (0, a.rotr32)(A, 11) ^ (0, a.rotr32)(A, 25), L = A & X ^ ~A & C, q = H + U + L + w[y] + N[y] | 0, V = (0, a.rotr32)(O, 2) ^ (0, a.rotr32)(O, 13) ^ (0, a.rotr32)(O, 22), Q = O & m ^ O & R ^ m & R, Z = V + Q | 0;
                        H = C, C = X, X = A, A = v + q | 0, v = R, R = m, m = O, O = q + Z | 0;
                    }
                    J[0] = J[0] + O | 0, J[1] = J[1] + m | 0, J[2] = J[2] + R | 0, J[3] = J[3] + v | 0, J[4] = J[4] + A | 0, J[5] = J[5] + X | 0, J[6] = J[6] + C | 0, J[7] = J[7] + H | 0;
                }
                for(var tt = new Uint8Array(32), y = 0; y < 8; y++){
                    var rt = J[y], at = y * 4;
                    tt[at] = rt >>> 24 & 255, tt[at + 1] = rt >>> 16 & 255, tt[at + 2] = rt >>> 8 & 255, tt[at + 3] = rt & 255;
                }
                return tt;
            }
            n.sha2_256_sync = F;
            function Y(K) {
                return Promise.resolve(F(K));
            }
            n.sha2_256 = s ? p : Y, n.hasNativeSha2_256 = n.sha2_256 === p;
        })(ya)), ya;
    }
    var Ko = {}, GI;
    function vIt() {
        if (GI) return Ko;
        GI = 1;
        var n = Ko && Ko.__read || function(I, j) {
            var w = typeof Symbol == "function" && I[Symbol.iterator];
            if (!w) return I;
            var S = w.call(I), b, k = [], F;
            try {
                for(; (j === void 0 || j-- > 0) && !(b = S.next()).done;)k.push(b.value);
            } catch (Y) {
                F = {
                    error: Y
                };
            } finally{
                try {
                    b && !b.done && (w = S.return) && w.call(S);
                } finally{
                    if (F) throw F.error;
                }
            }
            return k;
        }, t = Ko && Ko.__spreadArray || function(I, j, w) {
            if (w || arguments.length === 2) for(var S = 0, b = j.length, k; S < b; S++)(k || !(S in j)) && (k || (k = Array.prototype.slice.call(j, 0, S)), k[S] = j[S]);
            return I.concat(k || Array.prototype.slice.call(j));
        };
        Object.defineProperty(Ko, "__esModule", {
            value: !0
        }), Ko.sha3 = void 0;
        var e = gl(), o = gl(), _ = ve(), a = lp(), c = 200, s = 136, u = c - s;
        function l(I) {
            var j = I.slice(), w = s - 2 - j.length % s;
            if (w < -1 && (w += s - 2), w == -1) j.push(134);
            else {
                j.push(6);
                for(var S = 0; S < w; S++)j.push(0);
                j.push(128);
            }
            return (0, a.assert)(j.length % s === 0, "wrong destination length"), j;
        }
        var f = Object.freeze([
            6,
            12,
            18,
            24,
            3,
            9,
            10,
            16,
            22,
            1,
            7,
            13,
            19,
            20,
            4,
            5,
            11,
            17,
            23,
            2,
            8,
            14,
            15,
            21
        ]), p = Object.freeze([
            -12,
            -11,
            21,
            14,
            28,
            20,
            3,
            -13,
            -29,
            1,
            6,
            25,
            8,
            18,
            27,
            -4,
            10,
            15,
            -24,
            -30,
            -23,
            -7,
            -9,
            2
        ]), g = Object.freeze([
            (0, o.uint64)("0x0000000000000001"),
            (0, o.uint64)("0x0000000000008082"),
            (0, o.uint64)("0x800000000000808a"),
            (0, o.uint64)("0x8000000080008000"),
            (0, o.uint64)("0x000000000000808b"),
            (0, o.uint64)("0x0000000080000001"),
            (0, o.uint64)("0x8000000080008081"),
            (0, o.uint64)("0x8000000000008009"),
            (0, o.uint64)("0x000000000000008a"),
            (0, o.uint64)("0x0000000000000088"),
            (0, o.uint64)("0x0000000080008009"),
            (0, o.uint64)("0x000000008000000a"),
            (0, o.uint64)("0x000000008000808b"),
            (0, o.uint64)("0x800000000000008b"),
            (0, o.uint64)("0x8000000000008089"),
            (0, o.uint64)("0x8000000000008003"),
            (0, o.uint64)("0x8000000000008002"),
            (0, o.uint64)("0x8000000000000080"),
            (0, o.uint64)("0x000000000000800a"),
            (0, o.uint64)("0x800000008000000a"),
            (0, o.uint64)("0x8000000080008081"),
            (0, o.uint64)("0x8000000000008080"),
            (0, o.uint64)("0x0000000080000001"),
            (0, o.uint64)("0x8000000080008008")
        ]);
        function h(I) {
            for(var j = new Array(5), w = new Array(25), S = 0; S < 24; S++){
                for(var b = 0; b < 5; b++)j[b] = (0, o.uint64)(I[b] ^ I[b + 5] ^ I[b + 10] ^ I[b + 15] ^ I[b + 20]);
                for(var b = 0; b < 5; b++)for(var k = (0, o.uint64)(j[(b + 4) % 5] ^ (0, o.uint64Rotr)(j[(b + 1) % 5], 63)), F = 0; F < 5; F++)I[b + 5 * F] = (0, o.uint64)(I[b + 5 * F] ^ k);
                w[0] = I[0];
                for(var b = 1; b < 25; b++){
                    var Y = f[b - 1], K = Math.abs(p[b - 1]), J = 32 - K;
                    p[b - 1] < 0 ? w[b] = (0, o.uint64Rotr)(I[Y], J) : w[b] = (0, o.uint64Rotr)(I[Y], J + 32);
                }
                for(var b = 0; b < 5; b++)for(var F = 0; F < 5; F++)I[b * 5 + F] = (0, o.uint64)(w[b * 5 + F] ^ ~w[b * 5 + (F + 1) % 5] & w[b * 5 + (F + 2) % 5]);
                I[0] = I[0] ^ g[S];
            }
        }
        function B(I) {
            (0, _.isUint8Array)(I) && (I = (0, e.buffToByteArr)(I)), I = l(I);
            for(var j = new Array(c / 8).fill((0, o.uint64)(0)), w = 0; w < I.length; w += s){
                for(var S = I.slice(w, w + s).concat(new Array(u).fill(0)), b = 0; b < c; b += 8)j[b / 8] = (0, o.uint64)(j[b / 8] ^ (0, o.uint64)("0x" + (0, o.byteArrToHex)(S.slice(b, b + 8).reverse())));
                h(j);
            }
            for(var k = [], b = 0; b < 4; b++)k.push.apply(k, t([], n((0, o.uint64ToBytesLE)(j[b])), !1));
            return k;
        }
        return Ko.sha3 = B, Ko;
    }
    var Id = {}, HI;
    function mIt() {
        return HI || (HI = 1, (function(n) {
            var t = Id && Id.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = Id && Id.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(e9(), n), e(i9(), n), e(c9(), n);
        })(Id)), Id;
    }
    var Mn = {}, fe = {}, KI;
    function v0() {
        if (KI) return fe;
        KI = 1;
        var n = fe && fe.__read || function(W, G) {
            var et = typeof Symbol == "function" && W[Symbol.iterator];
            if (!et) return W;
            var ct = et.call(W), ft, dt = [], st;
            try {
                for(; (G === void 0 || G-- > 0) && !(ft = ct.next()).done;)dt.push(ft.value);
            } catch (wt) {
                st = {
                    error: wt
                };
            } finally{
                try {
                    ft && !ft.done && (et = ct.return) && et.call(ct);
                } finally{
                    if (st) throw st.error;
                }
            }
            return dt;
        };
        Object.defineProperty(fe, "__esModule", {
            value: !0
        }), fe.negate_scalar = fe.pack_unpacked_scalar = fe.unpacked_scalar_from_bytes_wide = fe.unpack_scalar = fe.add_scalars = fe.mul_scalars = fe.scalar_from_bytes_mod_order_wide = fe.scalar_from_u64 = fe.ProjectivePoint = fe.CompletedPoint = fe.decompressCompressedEdwardsY = fe.LookupTableProjectiveNielsPoint = fe.ProjectiveNielsPoint = fe.ED25519_BASEPOINT_POINT = fe.EdwardsPoint = fe.MontgomeryPoint = fe.FieldElem51 = void 0;
        var t = ve();
        function e(W, G) {
            var et = W instanceof DataView ? W : new DataView(W.buffer, W.byteOffset, W.byteLength);
            return et.getBigUint64(G, !0);
        }
        var o = BigInt(0), _ = BigInt(1), a = BigInt(51), c = BigInt(52), s = BigInt(64), u = (_ << a) - _, l = (_ << c) - _, f = (_ << s) - _;
        function p(W, G, et) {
            return et ? G : W;
        }
        var g = (function() {
            function W(G) {
                this.bytes = G;
            }
            return W.zero = function() {
                return new W(new BigUint64Array([
                    o,
                    o,
                    o,
                    o,
                    o
                ]));
            }, W.one = function() {
                return new W(new BigUint64Array([
                    _,
                    o,
                    o,
                    o,
                    o
                ]));
            }, W.minus_one = function() {
                return new W(new BigUint64Array([
                    BigInt("2251799813685228"),
                    BigInt("2251799813685247"),
                    BigInt("2251799813685247"),
                    BigInt("2251799813685247"),
                    BigInt("2251799813685247")
                ]));
            }, Object.defineProperty(W, "EDWARDS_D", {
                get: function() {
                    return new W(new BigUint64Array([
                        BigInt("929955233495203"),
                        BigInt("466365720129213"),
                        BigInt("1662059464998953"),
                        BigInt("2033849074728123"),
                        BigInt("1442794654840575")
                    ]));
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(W, "EDWARDS_D2", {
                get: function() {
                    return new W(new BigUint64Array([
                        BigInt("1859910466990425"),
                        BigInt("932731440258426"),
                        BigInt("1072319116312658"),
                        BigInt("1815898335770999"),
                        BigInt("633789495995903")
                    ]));
                },
                enumerable: !1,
                configurable: !0
            }), W.fromBytes = function(G) {
                var et = new DataView(G.buffer, G.byteOffset, G.byteLength);
                return new W(new BigUint64Array([
                    e(et, 0) & u,
                    e(et, 6) >> BigInt(3) & u,
                    e(et, 12) >> BigInt(6) & u,
                    e(et, 19) >> BigInt(1) & u,
                    e(et, 24) >> BigInt(12) & u
                ]));
            }, W.elligator_encode = function(G) {
                var et = W.one(), ct = et.add(G.square2()), ft = W.MONTGOMERY_A_NEG.mul(ct.invert()), dt = W.MONTGOMERY_A, st = ft.square(), wt = dt.mul(ft), It = st.add(wt).add(et), Ot = ft.mul(It), St = n(W.sqrt_ratio_i(Ot, et), 2), Ft = St[0];
                St[1];
                var Ct = W.zero(), Ut = W.conditional_select(dt, Ct, Ft), Gt = ft.add(Ut);
                return Gt.conditional_negate(!Ft), new h(Gt.toBytes());
            }, W.elligator_encode_var_time = function(G) {
                var et = W.one(), ct = et.add(G.square2()), ft = W.MONTGOMERY_A_NEG.mul(ct.invert()), dt = W.MONTGOMERY_A, st = ft.square(), wt = dt.mul(ft), It = st.add(wt).add(et), Ot = ft.mul(It), St = n(W.sqrt_ratio_i(Ot, et), 2), Ft = St[0];
                St[1];
                var Ct = W.zero(), Ut = W.conditional_select(dt, Ct, Ft), Gt = ft.add(Ut);
                return Gt.conditional_negate(!Ft), new h(Gt.toBytes());
            }, W.conditional_select = function(G, et, ct) {
                var ft = ct ? f : o, dt = G.bytes, st = et.bytes;
                return new W(new BigUint64Array([
                    dt[0] ^ ft & (dt[0] ^ st[0]),
                    dt[1] ^ ft & (dt[1] ^ st[1]),
                    dt[2] ^ ft & (dt[2] ^ st[2]),
                    dt[3] ^ ft & (dt[3] ^ st[3]),
                    dt[4] ^ ft & (dt[4] ^ st[4])
                ]));
            }, Object.defineProperty(W, "MONTGOMERY_A_NEG", {
                get: function() {
                    return new W(new BigUint64Array([
                        BigInt("2251799813198567"),
                        BigInt("2251799813685247"),
                        BigInt("2251799813685247"),
                        BigInt("2251799813685247"),
                        BigInt("2251799813685247")
                    ]));
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(W, "MONTGOMERY_A", {
                get: function() {
                    return new W(new BigUint64Array([
                        BigInt("486662"),
                        o,
                        o,
                        o,
                        o
                    ]));
                },
                enumerable: !1,
                configurable: !0
            }), W.prototype.pow2k = function(G) {
                G = Math.abs(G);
                for(var et = this.bytes.slice();;){
                    var ct = BigInt(19) * et[3], ft = BigInt(19) * et[4], dt = et[0] * et[0] + BigInt(2) * (et[1] * ft + et[2] * ct), st = et[3] * ct + BigInt(2) * (et[0] * et[1] + et[2] * ft), wt = et[1] * et[1] + BigInt(2) * (et[0] * et[2] + et[4] * ct), It = et[4] * ft + BigInt(2) * (et[0] * et[3] + et[1] * et[2]), Ot = et[2] * et[2] + BigInt(2) * (et[0] * et[4] + et[1] * et[3]);
                    st += dt >> a, et[0] = dt & u, wt += st >> a, et[1] = st & u, It += wt >> a, et[2] = wt & u, Ot += It >> a, et[3] = It & u;
                    var St = Ot >> a;
                    if (et[4] = Ot & u, et[0] = et[0] + St * BigInt(19), et[1] += et[0] >> a, et[0] &= u, G = G - 1, G === 0) break;
                }
                return new W(et);
            }, W.prototype.square2 = function() {
                for(var G = this.pow2k(1), et = 0; et < 5; et++)G.bytes[et] *= BigInt(2);
                return G;
            }, W.prototype.add = function(G) {
                for(var et = this.bytes.slice(), ct = 0; ct < 5; ct++)et[ct] += G.bytes[ct];
                return new W(et);
            }, W.reduce = function(G) {
                var et = G[0] >> a, ct = G[1] >> a, ft = G[2] >> a, dt = G[3] >> a, st = G[4] >> a;
                return G[0] &= u, G[1] &= u, G[2] &= u, G[3] &= u, G[4] &= u, G[0] += st * BigInt(19), G[1] += et, G[2] += ct, G[3] += ft, G[4] += dt, new W(G);
            }, W.prototype.sub = function(G) {
                return W.reduce(new BigUint64Array([
                    this.bytes[0] + BigInt("36028797018963664") - G.bytes[0],
                    this.bytes[1] + BigInt("36028797018963952") - G.bytes[1],
                    this.bytes[2] + BigInt("36028797018963952") - G.bytes[2],
                    this.bytes[3] + BigInt("36028797018963952") - G.bytes[3],
                    this.bytes[4] + BigInt("36028797018963952") - G.bytes[4]
                ]));
            }, W.prototype.mul = function(G) {
                var et = this.bytes.slice(), ct = G.bytes.slice(), ft = ct[1] * BigInt(19), dt = ct[2] * BigInt(19), st = ct[3] * BigInt(19), wt = ct[4] * BigInt(19), It = et[0] * ct[0] + et[4] * ft + et[3] * dt + et[2] * st + et[1] * wt, Ot = et[1] * ct[0] + et[0] * ct[1] + et[4] * dt + et[3] * st + et[2] * wt, St = et[2] * ct[0] + et[1] * ct[1] + et[0] * ct[2] + et[4] * st + et[3] * wt, Ft = et[3] * ct[0] + et[2] * ct[1] + et[1] * ct[2] + et[0] * ct[3] + et[4] * wt, Ct = et[4] * ct[0] + et[3] * ct[1] + et[2] * ct[2] + et[1] * ct[3] + et[0] * ct[4], Ut = new BigUint64Array(5);
                Ot += It >> a, Ut[0] = It & u, St += Ot >> a, Ut[1] = Ot & u, Ft += St >> a, Ut[2] = St & u, Ct += Ft >> a, Ut[3] = Ft & u;
                var Gt = Ct >> a;
                return Ut[4] = Ct & u, Ut[0] = Ut[0] + Gt * BigInt(19), Ut[1] += Ut[0] >> a, Ut[0] &= u, new W(Ut);
            }, W.prototype.invert = function() {
                var G = n(this.pow22501(), 2), et = G[0], ct = G[1], ft = et.pow2k(5), dt = ft.mul(ct);
                return dt;
            }, W.prototype.pow22501 = function() {
                var G = this.square(), et = G.square().square(), ct = this.mul(et), ft = G.mul(ct), dt = ft.square(), st = ct.mul(dt), wt = st.pow2k(5), It = wt.mul(st), Ot = It.pow2k(10), St = Ot.mul(It), Ft = St.pow2k(20), Ct = Ft.mul(St), Ut = Ct.pow2k(10), Gt = Ut.mul(It), be = Gt.pow2k(50), xe = be.mul(Gt), De = xe.pow2k(100), _r = De.mul(xe), yr = _r.pow2k(50), M = yr.mul(Gt);
                return [
                    M,
                    ft
                ];
            }, W.prototype.square = function() {
                return this.pow2k(1);
            }, W.sqrt_ratio_i = function(G, et) {
                var ct = et.square().mul(et), ft = ct.square().mul(et), dt = G.mul(ct).mul(G.mul(ft).pow_p58()), st = et.mul(dt.square()), wt = W.SQRT_M1, It = st.ct_eq(G), Ot = st.ct_eq(G.neg()), St = st.ct_eq(G.neg().mul(wt)), Ft = wt.mul(dt);
                dt.conditional_assign(Ft, Ot || St), dt.conditional_negate(dt.is_negative());
                var Ct = It || Ot;
                return [
                    Ct,
                    dt
                ];
            }, W.prototype.is_negative = function() {
                return (this.toBytes()[0] & 1) === 1;
            }, W.prototype.conditional_negate = function(G) {
                var et = this.neg();
                return this.conditional_assign(et, G);
            }, W.prototype.conditional_assign = function(G, et) {
                this.bytes[0] = p(this.bytes[0], G.bytes[0], et), this.bytes[1] = p(this.bytes[1], G.bytes[1], et), this.bytes[2] = p(this.bytes[2], G.bytes[2], et), this.bytes[3] = p(this.bytes[3], G.bytes[3], et), this.bytes[4] = p(this.bytes[4], G.bytes[4], et);
            }, W.prototype.clone = function() {
                return new W(this.bytes.slice());
            }, W.prototype.neg = function() {
                var G = this.clone();
                return G.negate();
            }, W.prototype.negate = function() {
                return W.reduce(new BigUint64Array([
                    BigInt("36028797018963664") - this.bytes[0],
                    BigInt("36028797018963952") - this.bytes[1],
                    BigInt("36028797018963952") - this.bytes[2],
                    BigInt("36028797018963952") - this.bytes[3],
                    BigInt("36028797018963952") - this.bytes[4]
                ]));
            }, W.prototype.ct_eq = function(G) {
                return (0, t.uint8ArrayEq)(this.toBytes(), G.toBytes());
            }, Object.defineProperty(W, "SQRT_M1", {
                get: function() {
                    return new W(new BigUint64Array([
                        BigInt("1718705420411056"),
                        BigInt("234908883556509"),
                        BigInt("2233514472574048"),
                        BigInt("2117202627021982"),
                        BigInt("765476049583133")
                    ]));
                },
                enumerable: !1,
                configurable: !0
            }), W.prototype.pow_p58 = function() {
                var G = n(this.pow22501(), 2), et = G[0];
                G[1];
                var ct = et.pow2k(2), ft = this.mul(ct);
                return ft;
            }, W.prototype.toBytes = function() {
                var G = W.reduce(this.bytes).bytes.slice(), et = G[0] + BigInt(19) >> a;
                et = G[1] + et >> a, et = G[2] + et >> a, et = G[3] + et >> a, et = G[4] + et >> a, G[0] += BigInt(19) * et, G[1] += G[0] >> a, G[0] &= u, G[2] += G[1] >> a, G[1] &= u, G[3] += G[2] >> a, G[2] &= u, G[4] += G[3] >> a, G[3] &= u, G[4] &= u;
                var ct = new Uint8Array(32);
                return ct[0] = Number(G[0] & BigInt(255)), ct[1] = Number(G[0] >> BigInt(8) & BigInt(255)), ct[2] = Number(G[0] >> BigInt(16) & BigInt(255)), ct[3] = Number(G[0] >> BigInt(24) & BigInt(255)), ct[4] = Number(G[0] >> BigInt(32) & BigInt(255)), ct[5] = Number(G[0] >> BigInt(40) & BigInt(255)), ct[6] = Number(G[0] >> BigInt(48) | G[1] << BigInt(3) & BigInt(255)), ct[7] = Number(G[1] >> BigInt(5) & BigInt(255)), ct[8] = Number(G[1] >> BigInt(13) & BigInt(255)), ct[9] = Number(G[1] >> BigInt(21) & BigInt(255)), ct[10] = Number(G[1] >> BigInt(29) & BigInt(255)), ct[11] = Number(G[1] >> BigInt(37) & BigInt(255)), ct[12] = Number(G[1] >> BigInt(45) | G[2] << BigInt(6) & BigInt(255)), ct[13] = Number(G[2] >> BigInt(2) & BigInt(255)), ct[14] = Number(G[2] >> BigInt(10) & BigInt(255)), ct[15] = Number(G[2] >> BigInt(18) & BigInt(255)), ct[16] = Number(G[2] >> BigInt(26) & BigInt(255)), ct[17] = Number(G[2] >> BigInt(34) & BigInt(255)), ct[18] = Number(G[2] >> BigInt(42) & BigInt(255)), ct[19] = Number(G[2] >> BigInt(50) | G[3] << _ & BigInt(255)), ct[20] = Number(G[3] >> BigInt(7) & BigInt(255)), ct[21] = Number(G[3] >> BigInt(15) & BigInt(255)), ct[22] = Number(G[3] >> BigInt(23) & BigInt(255)), ct[23] = Number(G[3] >> BigInt(31) & BigInt(255)), ct[24] = Number(G[3] >> BigInt(39) & BigInt(255)), ct[25] = Number(G[3] >> BigInt(47) | G[4] << BigInt(4) & BigInt(255)), ct[26] = Number(G[4] >> BigInt(4) & BigInt(255)), ct[27] = Number(G[4] >> BigInt(12) & BigInt(255)), ct[28] = Number(G[4] >> BigInt(20) & BigInt(255)), ct[29] = Number(G[4] >> BigInt(28) & BigInt(255)), ct[30] = Number(G[4] >> BigInt(36) & BigInt(255)), ct[31] = Number(G[4] >> BigInt(44) & BigInt(255)), ct;
            }, W;
        })();
        fe.FieldElem51 = g;
        var h = (function() {
            function W(G) {
                this.bytes = G;
            }
            return W.prototype.to_edwards = function(G) {
                var et = g.fromBytes(this.bytes);
                if (!et.ct_eq(g.minus_one())) {
                    var ct = g.one(), ft = et.sub(ct).mul(et.add(ct).invert()), dt = ft.toBytes();
                    return dt[31] ^= G << 7, F(dt);
                }
            }, W;
        })();
        fe.MontgomeryPoint = h;
        function B(W, G) {
            for(var et = W.map(function(St) {
                return pt(St, 5);
            }), ct = G.map(function(St) {
                return j.fromEdwardsPoint(St);
            }), ft = K.IDENTITY, dt = 255; dt >= 0; dt--){
                for(var st = ft.double(), wt = 0; wt < et.length; wt++){
                    var It = et[wt], Ot = ct[wt];
                    It[dt] > 0 ? st = st.toExtended().addProjectiveNiels(Ot.select(It[dt])) : It[dt] < 0 && (st = st.toExtended().subProjectiveNiels(Ot.select(-It[dt]))), ft = st.toProjective();
                }
                ft = st.toProjective();
            }
            return ft.toExtended();
        }
        var I = (function() {
            function W(G, et, ct, ft) {
                this.X = G, this.Y = et, this.Z = ct, this.T = ft;
            }
            return W.prototype.mulByPow2 = function(G) {
                if (G <= 0) throw new Error("k must be > 0");
                for(var et, ct = this.toProjective(), ft = 0; ft < G - 1; ft++)et = ct.double(), ct = et.toProjective();
                return ct.double().toExtended();
            }, W.prototype.equals = function(G) {
                return this.X.ct_eq(G.X) && this.Y.ct_eq(G.Y) && this.Z.ct_eq(G.Z) && this.T.ct_eq(G.T);
            }, Object.defineProperty(W, "DOUBLE_BASE_COMPRESSED", {
                get: function() {
                    return new Uint8Array([
                        201,
                        163,
                        248,
                        106,
                        174,
                        70,
                        95,
                        14,
                        86,
                        81,
                        56,
                        100,
                        81,
                        15,
                        57,
                        151,
                        86,
                        31,
                        162,
                        201,
                        232,
                        94,
                        162,
                        29,
                        194,
                        41,
                        35,
                        9,
                        243,
                        205,
                        96,
                        34
                    ]);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(W, "BASEPOINT_ED25519_COMPRESSED", {
                get: function() {
                    return new Uint8Array([
                        88,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102,
                        102
                    ]);
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(W, "BASEPOINT_ED25519", {
                get: function() {
                    return new W(new g(new BigUint64Array([
                        BigInt("1738742601995546"),
                        BigInt("1146398526822698"),
                        BigInt("2070867633025821"),
                        BigInt("562264141797630"),
                        BigInt("587772402128613")
                    ])), new g(new BigUint64Array([
                        BigInt("1801439850948184"),
                        BigInt("1351079888211148"),
                        BigInt("450359962737049"),
                        BigInt("900719925474099"),
                        BigInt("1801439850948198")
                    ])), new g(new BigUint64Array([
                        BigInt("1"),
                        BigInt("0"),
                        BigInt("0"),
                        BigInt("0"),
                        BigInt("0")
                    ])), new g(new BigUint64Array([
                        BigInt("1841354044333475"),
                        BigInt("16398895984059"),
                        BigInt("755974180946558"),
                        BigInt("900171276175154"),
                        BigInt("1821297809914039")
                    ])));
                },
                enumerable: !1,
                configurable: !0
            }), W.prototype.is_valid = function() {
                var G = this.toProjective().is_valid(), et = this.X.mul(this.Y).ct_eq(this.Z.mul(this.T));
                return G && et;
            }, W.vartime_multiscalar_mul = function(G, et) {
                return B(G, et);
            }, W.prototype.double = function() {
                return this.toProjective().double().toExtended();
            }, W.vartime_double_scalar_mul_basepoint = function(G, et, ct) {
                for(var ft = pt(G, 5), dt = pt(ct, 8), st = 255, wt = 255; wt >= 0 && (st = wt, !(ft[st] !== 0 || dt[st] !== 0)); wt--);
                for(var It = j.fromEdwardsPoint(et), Ot = gt, St = K.IDENTITY;;){
                    var Ft = St.double();
                    if (ft[st] > 0 ? Ft = Ft.toExtended().addProjectiveNiels(It.select(ft[st])) : ft[st] < 0 && (Ft = Ft.toExtended().subProjectiveNiels(It.select(-ft[st]))), dt[st] > 0 ? Ft = Ft.toExtended().addAffineNielsPoint(Ot.select(dt[st])) : dt[st] < 0 && (Ft = Ft.toExtended().subAffineNielsPoint(Ot.select(-dt[st]))), St = Ft.toProjective(), st === 0) break;
                    st--;
                }
                return St.toExtended();
            }, W.prototype.ct_eq = function(G) {
                return (0, t.uint8ArrayEq)(this.compress(), G.compress());
            }, W.decompress = function(G) {
                return F(G);
            }, W.uncompress = function(G) {
                return F(G);
            }, W.prototype.is_small_order = function() {
                return this.mul_by_cofactor().is_identity();
            }, W.prototype.is_identity = function() {
                return this.ct_eq(W.IDENTITY);
            }, W.prototype.clone = function() {
                return new W(this.X.clone(), this.Y.clone(), this.Z.clone(), this.T.clone());
            }, Object.defineProperty(W, "IDENTITY", {
                get: function() {
                    return new W(g.zero(), g.one(), g.one(), g.zero());
                },
                enumerable: !1,
                configurable: !0
            }), W.prototype.add = function(G) {
                return this.addProjectiveNiels(G.toProjectiveNiels()).toExtended();
            }, W.prototype.addProjectiveNiels = function(G) {
                var et = this.Y.add(this.X), ct = this.Y.sub(this.X), ft = et.mul(G.Y_plus_X), dt = ct.mul(G.Y_minus_X), st = this.T.mul(G.T2d), wt = this.Z.mul(G.Z), It = wt.add(wt);
                return new Y(ft.sub(dt), ft.add(dt), It.add(st), It.sub(st));
            }, W.prototype.subProjectiveNiels = function(G) {
                var et = this.Y.add(this.X), ct = this.Y.sub(this.X), ft = et.mul(G.Y_minus_X), dt = ct.mul(G.Y_plus_X), st = this.T.mul(G.T2d), wt = this.Z.mul(G.Z), It = wt.add(wt);
                return new Y(ft.sub(dt), ft.add(dt), It.sub(st), It.add(st));
            }, W.prototype.addAffineNielsPoint = function(G) {
                var et = this.Y.add(this.X), ct = this.Y.sub(this.X), ft = et.mul(G.y_plus_x), dt = ct.mul(G.y_minus_x), st = this.T.mul(G.xy2d), wt = this.Z.add(this.Z);
                return new Y(ft.sub(dt), ft.add(dt), wt.add(st), wt.sub(st));
            }, W.prototype.subAffineNielsPoint = function(G) {
                var et = this.Y.add(this.X), ct = this.Y.sub(this.X), ft = et.mul(G.y_minus_x), dt = ct.mul(G.y_plus_x), st = this.T.mul(G.xy2d), wt = this.Z.add(this.Z);
                return new Y(ft.sub(dt), ft.add(dt), wt.sub(st), wt.add(st));
            }, W.prototype.toProjectiveNiels = function() {
                return new S(this.Y.add(this.X), this.Y.sub(this.X), this.Z, this.T.mul(g.EDWARDS_D2));
            }, W.prototype.mul_by_cofactor = function() {
                return this.mul_by_pow_2(3);
            }, W.prototype.compress = function() {
                var G = this.Z.invert(), et = this.X.mul(G), ct = this.Y.mul(G), ft = ct.toBytes(), dt = et.is_negative() ? 1 : 0;
                return ft[31] ^= dt << 7, ft;
            }, W.prototype.compressed_is_negative = function() {
                var G = this.Z.invert(), et = this.X.mul(G);
                return et.is_negative();
            }, W.prototype.mul_by_pow_2 = function(G) {
                if (G <= 0) throw new Error("mul_by_pow_2 :: k must be greater than 0");
                for(var et, ct = this.toProjective(), ft = 0; ft < G - 1; ft++)et = ct.double(), ct = et.toProjective();
                return ct.double().toExtended();
            }, W.prototype.toProjective = function() {
                return new K(this.X, this.Y, this.Z);
            }, W.prototype.scalarMul = function(G) {
                for(var et = S.tableFromEdwardPoint(this), ct = k(G), ft = K.IDENTITY, dt = W.IDENTITY, st = dt.addProjectiveNiels(et.select(ct[63])), wt = 62; wt >= 0; wt--)ft = st.toProjective(), st = ft.double(), ft = st.toProjective(), st = ft.double(), ft = st.toProjective(), st = ft.double(), ft = st.toProjective(), st = ft.double(), dt = st.toExtended(), st = dt.addProjectiveNiels(et.select(ct[wt]));
                return st.toExtended();
            }, W;
        })();
        fe.EdwardsPoint = I;
        var j = (function() {
            function W(G) {
                this.points = G;
            }
            return W.prototype.select = function(G) {
                return this.points[G / 2 >>> 0];
            }, W.fromEdwardsPoint = function(G) {
                for(var et = new Array(8).fill(0).map(function(dt) {
                    return G.toProjectiveNiels();
                }), ct = G.double(), ft = 0; ft < 7; ft++)et[ft + 1] = ct.addProjectiveNiels(et[ft]).toExtended().toProjectiveNiels();
                return new W(et);
            }, W;
        })(), w = (function() {
            function W(G, et, ct) {
                this.y_plus_x = G, this.y_minus_x = et, this.xy2d = ct;
            }
            return W;
        })();
        fe.ED25519_BASEPOINT_POINT = new I(new g(new BigUint64Array([
            BigInt("1738742601995546"),
            BigInt("1146398526822698"),
            BigInt("2070867633025821"),
            BigInt("562264141797630"),
            BigInt("587772402128613")
        ])), new g(new BigUint64Array([
            BigInt("1801439850948184"),
            BigInt("1351079888211148"),
            BigInt("450359962737049"),
            BigInt("900719925474099"),
            BigInt("1801439850948198")
        ])), new g(new BigUint64Array([
            BigInt("1"),
            BigInt("0"),
            BigInt("0"),
            BigInt("0"),
            BigInt("0")
        ])), new g(new BigUint64Array([
            BigInt("1841354044333475"),
            BigInt("16398895984059"),
            BigInt("755974180946558"),
            BigInt("900171276175154"),
            BigInt("1821297809914039")
        ])));
        var S = (function() {
            function W(G, et, ct, ft) {
                this.Y_plus_X = G, this.Y_minus_X = et, this.Z = ct, this.T2d = ft;
            }
            return W.prototype.clone = function() {
                return new W(this.Y_plus_X.clone(), this.Y_minus_X.clone(), this.Z.clone(), this.T2d.clone());
            }, W.prototype.compress = function() {
                return I.IDENTITY.addProjectiveNiels(this).toExtended().compress();
            }, W.prototype.compressed_is_negative = function() {
                return I.IDENTITY.addProjectiveNiels(this).toExtended().compressed_is_negative();
            }, W.identity = function() {
                return new W(g.one(), g.one(), g.one(), g.zero());
            }, W.prototype.conditional_negate = function(G) {
                if (G) {
                    var et = this.neg();
                    this.Y_plus_X = et.Y_plus_X, this.Y_minus_X = et.Y_minus_X, this.Z = et.Z, this.T2d = et.T2d;
                }
            }, W.prototype.neg = function() {
                return new W(this.Y_minus_X.clone(), this.Y_plus_X.clone(), this.Z.clone(), this.T2d.neg());
            }, W.prototype.conditional_assign = function(G, et) {
                this.Y_plus_X.conditional_assign(G.Y_plus_X, et), this.Y_minus_X.conditional_assign(G.Y_minus_X, et), this.Z.conditional_assign(G.Z, et), this.T2d.conditional_assign(G.T2d, et);
            }, W.tableFromEdwardPoint = function(G) {
                for(var et = new Array(b.SIZE).fill(0).map(function(ft) {
                    return G.toProjectiveNiels();
                }), ct = 0; ct < b.CONVERSION_RANGE_MAX; ct++)et[ct + 1] = G.addProjectiveNiels(et[ct]).toExtended().toProjectiveNiels();
                return new b(et);
            }, W;
        })();
        fe.ProjectiveNielsPoint = S;
        var b = (function() {
            function W(G) {
                this.points = G;
            }
            return W.prototype.select = function(G) {
                var et = new DataView(new ArrayBuffer(2));
                et.setUint16(0, G & 65535, !1);
                for(var ct = et.getInt16(0, !1), ft = ct >> 7, dt = ct + ft ^ ft, st = S.identity(), wt = W.SIZE_RANGE_MIN; wt <= W.SIZE_RANGE_MAX; wt++){
                    var It = dt === wt;
                    st.conditional_assign(this.points[wt - 1].clone(), It);
                }
                var Ot = ft & 1;
                return st.conditional_negate(Ot === 1), st;
            }, W.SIZE = 8, W.SIZE_NEG = -8, W.SIZE_RANGE = [
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8
            ], W.SIZE_RANGE_MIN = 1, W.SIZE_RANGE_MAX = 8, W.CONVERSION_RANGE = [
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7
            ], W.CONVERSION_RANGE_MAX = 7, W;
        })();
        fe.LookupTableProjectiveNielsPoint = b;
        function k(W) {
            for(var G = new Int8Array(64), et = new Uint8Array(G.buffer), ct = 0; ct < 32; ct++)et[2 * ct] = W[ct] >> 0 & 15, et[2 * ct + 1] = W[ct] >> 4 & 15;
            for(var ct = 0; ct < 63; ct++){
                var ft = G[ct] + 8 >> 4;
                et[ct] -= ft << 4 & 255, et[ct + 1] += ft & 255;
            }
            return G;
        }
        function F(W) {
            var G = g.fromBytes(W), et = g.one(), ct = G.square(), ft = ct.sub(et), dt = ct.mul(g.EDWARDS_D).add(et), st = n(g.sqrt_ratio_i(ft, dt), 2), wt = st[0], It = st[1];
            if (wt === !0) {
                var Ot = W[31] >> 7 & 1;
                return It.conditional_negate(Ot === 1), new I(It, G, et, It.mul(G));
            }
        }
        fe.decompressCompressedEdwardsY = F;
        var Y = (function() {
            function W(G, et, ct, ft) {
                this.X = G, this.Y = et, this.Z = ct, this.T = ft;
            }
            return W.prototype.clone = function() {
                return new W(this.X.clone(), this.Y.clone(), this.Z.clone(), this.T.clone());
            }, W.prototype.toProjective = function() {
                return new K(this.X.mul(this.T), this.Y.mul(this.Z), this.Z.mul(this.T));
            }, W.prototype.toExtended = function() {
                return new I(this.X.mul(this.T), this.Y.mul(this.Z), this.Z.mul(this.T), this.X.mul(this.Y));
            }, W;
        })();
        fe.CompletedPoint = Y;
        var K = (function() {
            function W(G, et, ct) {
                this.X = G, this.Y = et, this.Z = ct;
            }
            return W.prototype.is_valid = function() {
                var G = this.X.square(), et = this.Y.square(), ct = this.Z.square(), ft = ct.square(), dt = et.sub(G).mul(ct), st = ft.add(g.EDWARDS_D.mul(G.mul(et)));
                return dt.ct_eq(st);
            }, W.prototype.clone = function() {
                return new W(this.X.clone(), this.Y.clone(), this.Z.clone());
            }, W.prototype.toExtended = function() {
                return new I(this.X.mul(this.Z), this.Y.mul(this.Z), this.Z.square(), this.X.mul(this.Y));
            }, Object.defineProperty(W, "IDENTITY", {
                get: function() {
                    return new W(g.zero(), g.one(), g.one());
                },
                enumerable: !1,
                configurable: !0
            }), W.prototype.double = function() {
                var G = this.X.square(), et = this.Y.square(), ct = this.Z.square2(), ft = this.X.add(this.Y), dt = ft.square(), st = et.add(G), wt = et.sub(G);
                return new Y(dt.sub(st), st, wt, ct.sub(wt));
            }, W;
        })();
        fe.ProjectivePoint = K;
        function J(W) {
            W = BigInt(W);
            var G = new Uint8Array(32), et = new DataView(G.buffer);
            return et.setBigUint64(0, W, !0), G;
        }
        fe.scalar_from_u64 = J;
        function P(W) {
            return ut(m(W));
        }
        fe.scalar_from_bytes_mod_order_wide = P;
        function T(W, G) {
            return ut(O(y(W), y(G)));
        }
        fe.mul_scalars = T;
        function E(W, G) {
            var et = N(y(W), y(G)), ct = at(et, R), ft = C(ct);
            return ut(ft);
        }
        fe.add_scalars = E;
        function N(W, G) {
            for(var et = Z.slice(), ct = l, ft = o, dt = 0; dt < 5; dt++)ft = W[dt] + G[dt] + (ft >> c), et[dt] = ft & ct;
            return V(et, tt);
        }
        function y(W) {
            for(var G = new BigUint64Array(4), et = 0; et < 4; et++)for(var ct = 0; ct < 8; ct++)G[et] |= BigInt(W[et * 8 + ct]) << BigInt(ct * 8);
            var ft = l, dt = (_ << BigInt(48)) - _, st = Z.slice();
            return st[0] = G[0] & ft, st[1] = (G[0] >> c | G[1] << BigInt(12)) & ft, st[2] = (G[1] >> BigInt(40) | G[2] << BigInt(24)) & ft, st[3] = (G[2] >> BigInt(28) | G[3] << BigInt(36)) & ft, st[4] = G[3] >> BigInt(16) & dt, st;
        }
        fe.unpack_scalar = y;
        function O(W, G) {
            var et = C(at(W, G));
            return C(at(et, v));
        }
        function m(W) {
            for(var G = new BigUint64Array(8), et = 0; et < 8; et++)for(var ct = 0; ct < 8; ct++)G[et] |= BigInt(W[et * 8 + ct]) << BigInt(ct * 8);
            var ft = l, dt = new BigUint64Array(5), st = new BigUint64Array(5);
            return dt[0] = G[0] & ft, dt[1] = (G[0] >> c | G[1] << BigInt(12)) & ft, dt[2] = (G[1] >> BigInt(40) | G[2] << BigInt(24)) & ft, dt[3] = (G[2] >> BigInt(28) | G[3] << BigInt(36)) & ft, dt[4] = (G[3] >> BigInt(16) | G[4] << BigInt(48)) & ft, st[0] = G[4] >> BigInt(4) & ft, st[1] = (G[4] >> BigInt(56) | G[5] << BigInt(8)) & ft, st[2] = (G[5] >> BigInt(44) | G[6] << BigInt(20)) & ft, st[3] = (G[6] >> BigInt(32) | G[7] << BigInt(32)) & ft, st[4] = G[7] >> BigInt(20), dt = X(dt, R), st = X(st, v), A(st, dt);
        }
        fe.unpacked_scalar_from_bytes_wide = m;
        var R = new BigUint64Array([
            BigInt("0x000f48bd6721e6ed"),
            BigInt("0x0003bab5ac67e45a"),
            BigInt("0x000fffffeb35e51b"),
            BigInt("0x000fffffffffffff"),
            BigInt("0x00000fffffffffff")
        ]), v = new BigUint64Array([
            BigInt("0x0009d265e952d13b"),
            BigInt("0x000d63c715bea69f"),
            BigInt("0x0005be65cb687604"),
            BigInt("0x0003dceec73d217f"),
            BigInt("0x000009411b7c309a")
        ]);
        function A(W, G) {
            for(var et = Z.slice(), ct = l, ft = o, dt = 0; dt < 5; dt++)ft = W[dt] + G[dt] + (ft >> c), et[dt] = ft & ct;
            return V(et, tt);
        }
        function X(W, G) {
            return C(at(W, G));
        }
        function C(W) {
            var G, et, ct, ft, dt, st, wt, It, Ot, St = tt.slice(), Ft, Ct, Ut, Gt, be, xe, De, _r, yr, M, D;
            return G = n(H(W[0]), 2), Ft = G[0], Ct = G[1], et = n(H(Ft + W[1] + Ct * St[1]), 2), Ft = et[0], Ut = et[1], ct = n(H(Ft + W[2] + Ct * St[2] + Ut * St[1]), 2), Ft = ct[0], Gt = ct[1], ft = n(H(Ft + W[3] + Ut * St[2] + Gt * St[1]), 2), Ft = ft[0], be = ft[1], dt = n(H(Ft + W[4] + Ct * St[4] + Gt * St[2] + be * St[1]), 2), Ft = dt[0], xe = dt[1], st = n(U(Ft + W[5] + Ut * St[4] + be * St[2] + xe * St[1]), 2), Ft = st[0], De = st[1], wt = n(U(Ft + W[6] + Gt * St[4] + xe * St[2]), 2), Ft = wt[0], _r = wt[1], It = n(U(Ft + W[7] + be * St[4]), 2), Ft = It[0], yr = It[1], Ot = n(U(Ft + W[8] + xe * St[4]), 2), Ft = Ot[0], M = Ot[1], D = Ft & f, V(new BigUint64Array([
                De,
                _r,
                yr,
                M,
                D
            ]), St);
        }
        function H(W) {
            var G = q(W, rt) & l;
            return [
                W + G * tt[0] >> c,
                G
            ];
        }
        function U(W) {
            var G = W & l;
            return [
                W >> c,
                G
            ];
        }
        var L = _ << s;
        function q(W, G) {
            return W * G % L;
        }
        function V(W, G) {
            for(var et = Z.slice(), ct = l, ft = o, dt = 0; dt < 5; dt++)ft = Q(W[dt], G[dt] + (ft >> BigInt(63))), et[dt] = ft & ct;
            for(var st = Q(ft >> BigInt(63) ^ _, _), wt = o, dt = 0; dt < 5; dt++)wt = (wt >> c) + et[dt] + (tt[dt] & st), et[dt] = wt & ct;
            return et;
        }
        function Q(W, G) {
            var et = f, ct = BigInt(W) - BigInt(G);
            return ct < o ? ct += et + _ : ct > et && (ct %= et + _), ct;
        }
        var Z = new BigUint64Array(5).fill(o), tt = new BigUint64Array([
            BigInt("0x0002631a5cf5d3ed"),
            BigInt("0x000dea2f79cd6581"),
            BigInt("0x000000000014def9"),
            BigInt("0x0000000000000000"),
            BigInt("0x0000100000000000")
        ]), rt = BigInt("0x51da312547e1b");
        function at(W, G) {
            var et = new Array(9);
            return et[0] = W[0] * G[0], et[1] = W[0] * G[1] + W[1] * G[0], et[2] = W[0] * G[2] + W[1] * G[1] + W[2] * G[0], et[3] = W[0] * G[3] + W[1] * G[2] + W[2] * G[1] + W[3] * G[0], et[4] = W[0] * G[4] + W[1] * G[3] + W[2] * G[2] + W[3] * G[1] + W[4] * G[0], et[5] = W[1] * G[4] + W[2] * G[3] + W[3] * G[2] + W[4] * G[1], et[6] = W[2] * G[4] + W[3] * G[3] + W[4] * G[2], et[7] = W[3] * G[4] + W[4] * G[3], et[8] = W[4] * G[4], et;
        }
        function ut(W) {
            var G = new Uint8Array(32), et = BigInt(255);
            return G[0] = Number(W[0] >> o & et), G[1] = Number(W[0] >> BigInt(8) & et), G[2] = Number(W[0] >> BigInt(16) & et), G[3] = Number(W[0] >> BigInt(24) & et), G[4] = Number(W[0] >> BigInt(32) & et), G[5] = Number(W[0] >> BigInt(40) & et), G[6] = Number((W[0] >> BigInt(48) | W[1] << BigInt(4)) & et), G[7] = Number(W[1] >> BigInt(4) & et), G[8] = Number(W[1] >> BigInt(12) & et), G[9] = Number(W[1] >> BigInt(20) & et), G[10] = Number(W[1] >> BigInt(28) & et), G[11] = Number(W[1] >> BigInt(36) & et), G[12] = Number(W[1] >> BigInt(44) & et), G[13] = Number(W[2] >> o & et), G[14] = Number(W[2] >> BigInt(8) & et), G[15] = Number(W[2] >> BigInt(16) & et), G[16] = Number(W[2] >> BigInt(24) & et), G[17] = Number(W[2] >> BigInt(32) & et), G[18] = Number(W[2] >> BigInt(40) & et), G[19] = Number((W[2] >> BigInt(48) | W[3] << BigInt(4)) & et), G[20] = Number(W[3] >> BigInt(4) & et), G[21] = Number(W[3] >> BigInt(12) & et), G[22] = Number(W[3] >> BigInt(20) & et), G[23] = Number(W[3] >> BigInt(28) & et), G[24] = Number(W[3] >> BigInt(36) & et), G[25] = Number(W[3] >> BigInt(44) & et), G[26] = Number(W[4] >> o & et), G[27] = Number(W[4] >> BigInt(8) & et), G[28] = Number(W[4] >> BigInt(16) & et), G[29] = Number(W[4] >> BigInt(24) & et), G[30] = Number(W[4] >> BigInt(32) & et), G[31] = Number(W[4] >> BigInt(40) & et), G;
        }
        fe.pack_unpacked_scalar = ut;
        function bt(W) {
            var G = at(y(W), R), et = C(G);
            return ut(V(Z, et));
        }
        fe.negate_scalar = bt;
        function pt(W, G) {
            if (G < 2) throw new Error("w must be >= 2");
            if (G > 8) throw new Error("w must be <= 8");
            var et = new Int8Array(256), ct = new Uint8Array(et.buffer), ft = new BigUint64Array(5);
            ot(W, ft, 4);
            for(var dt = _ << BigInt(G), st = dt - _, wt = 0, It = o; wt < 256;){
                var Ot = wt / 64 >>> 0, St = wt % 64, Ft = void 0;
                St < 64 - G ? Ft = ft[Ot] >> BigInt(St) : Ft = ft[Ot] >> BigInt(St) | ft[1 + Ot] << BigInt(64 - St);
                var Ct = It + (Ft & st);
                if ((Ct & _) === o) {
                    wt += 1;
                    continue;
                }
                Ct < dt / BigInt(2) ? (It = o, ct[wt] = Number(Ct) & 255) : (It = _, ct[wt] = Number(Ct) - Number(dt) & 255), wt += G;
            }
            return et;
        }
        function ot(W, G, et) {
            if (W.length > G.length * 8) throw new Error("Source and destination size mismatch");
            for(var ct = new DataView(W.buffer, W.byteOffset, W.byteLength), ft = new DataView(G.buffer, G.byteOffset, G.byteLength), dt = 0; dt < et; dt++)ft.setBigUint64(dt * 8, ct.getBigUint64(dt * 8, !0), !0);
        }
        var gt = new j([
            new w(new g(new BigUint64Array([
                BigInt("3540182452943730"),
                BigInt("2497478415033846"),
                BigInt("2521227595762870"),
                BigInt("1462984067271729"),
                BigInt("2389212253076811")
            ])), new g(new BigUint64Array([
                BigInt("62697248952638"),
                BigInt("204681361388450"),
                BigInt("631292143396476"),
                BigInt("338455783676468"),
                BigInt("1213667448819585")
            ])), new g(new BigUint64Array([
                BigInt("301289933810280"),
                BigInt("1259582250014073"),
                BigInt("1422107436869536"),
                BigInt("796239922652654"),
                BigInt("1953934009299142")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1601611775252272"),
                BigInt("1720807796594148"),
                BigInt("1132070835939856"),
                BigInt("3512254832574799"),
                BigInt("2147779492816910")
            ])), new g(new BigUint64Array([
                BigInt("316559037616741"),
                BigInt("2177824224946892"),
                BigInt("1459442586438991"),
                BigInt("1461528397712656"),
                BigInt("751590696113597")
            ])), new g(new BigUint64Array([
                BigInt("1850748884277385"),
                BigInt("1200145853858453"),
                BigInt("1068094770532492"),
                BigInt("672251375690438"),
                BigInt("1586055907191707")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("769950342298400"),
                BigInt("2384754244604994"),
                BigInt("3095885746880802"),
                BigInt("3225892188161580"),
                BigInt("2977876099231263")
            ])), new g(new BigUint64Array([
                BigInt("425251763115706"),
                BigInt("608463272472562"),
                BigInt("442562545713235"),
                BigInt("837766094556764"),
                BigInt("374555092627893")
            ])), new g(new BigUint64Array([
                BigInt("1086255230780037"),
                BigInt("274979815921559"),
                BigInt("1960002765731872"),
                BigInt("929474102396301"),
                BigInt("1190409889297339")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2916800678241215"),
                BigInt("2065379846933858"),
                BigInt("2622030924071124"),
                BigInt("2602788184473875"),
                BigInt("1233371373142984")
            ])), new g(new BigUint64Array([
                BigInt("2019367628972465"),
                BigInt("676711900706637"),
                BigInt("110710997811333"),
                BigInt("1108646842542025"),
                BigInt("517791959672113")
            ])), new g(new BigUint64Array([
                BigInt("965130719900578"),
                BigInt("247011430587952"),
                BigInt("526356006571389"),
                BigInt("91986625355052"),
                BigInt("2157223321444601")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1802695059464988"),
                BigInt("1664899123557221"),
                BigInt("2845359304426105"),
                BigInt("2160434469266658"),
                BigInt("3179370264440279")
            ])), new g(new BigUint64Array([
                BigInt("1725674970513508"),
                BigInt("1933645953859181"),
                BigInt("1542344539275782"),
                BigInt("1767788773573747"),
                BigInt("1297447965928905")
            ])), new g(new BigUint64Array([
                BigInt("1381809363726107"),
                BigInt("1430341051343062"),
                BigInt("2061843536018959"),
                BigInt("1551778050872521"),
                BigInt("2036394857967624")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("4222693909998302"),
                BigInt("2779866139518454"),
                BigInt("1619374932191226"),
                BigInt("2207306624415883"),
                BigInt("1169170329061080")
            ])), new g(new BigUint64Array([
                BigInt("2070390218572616"),
                BigInt("1458919061857835"),
                BigInt("624171843017421"),
                BigInt("1055332792707765"),
                BigInt("433987520732508")
            ])), new g(new BigUint64Array([
                BigInt("893653801273833"),
                BigInt("1168026499324677"),
                BigInt("1242553501121234"),
                BigInt("1306366254304474"),
                BigInt("1086752658510815")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2465253816303469"),
                BigInt("3191571337672685"),
                BigInt("1159882208056013"),
                BigInt("2569188183312765"),
                BigInt("621213314200686")
            ])), new g(new BigUint64Array([
                BigInt("1971678598905747"),
                BigInt("338026507889165"),
                BigInt("762398079972271"),
                BigInt("655096486107477"),
                BigInt("42299032696322")
            ])), new g(new BigUint64Array([
                BigInt("177130678690680"),
                BigInt("1754759263300204"),
                BigInt("1864311296286618"),
                BigInt("1180675631479880"),
                BigInt("1292726903152791")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1913163449625248"),
                BigInt("2712579013977241"),
                BigInt("2193883288642313"),
                BigInt("1008900146920800"),
                BigInt("1721983679009502")
            ])), new g(new BigUint64Array([
                BigInt("1070401523076875"),
                BigInt("1272492007800961"),
                BigInt("1910153608563310"),
                BigInt("2075579521696771"),
                BigInt("1191169788841221")
            ])), new g(new BigUint64Array([
                BigInt("692896803108118"),
                BigInt("500174642072499"),
                BigInt("2068223309439677"),
                BigInt("1162190621851337"),
                BigInt("1426986007309901")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1819621230288238"),
                BigInt("2735700366193240"),
                BigInt("1755134670739586"),
                BigInt("3080648199451191"),
                BigInt("4172807995775876")
            ])), new g(new BigUint64Array([
                BigInt("992069868904071"),
                BigInt("799011518185730"),
                BigInt("1777586403832768"),
                BigInt("1134820506145684"),
                BigInt("1999461475558530")
            ])), new g(new BigUint64Array([
                BigInt("425204543703124"),
                BigInt("2040469794090382"),
                BigInt("1651690622153809"),
                BigInt("1500530168597569"),
                BigInt("1253908377065966")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2105824306960939"),
                BigInt("1387520302709358"),
                BigInt("3633176580451016"),
                BigInt("2211816663841753"),
                BigInt("1629085891776489")
            ])), new g(new BigUint64Array([
                BigInt("1485201376284999"),
                BigInt("1022406647424656"),
                BigInt("504181009209019"),
                BigInt("962621520820995"),
                BigInt("590876713147230")
            ])), new g(new BigUint64Array([
                BigInt("265873406365287"),
                BigInt("1192742653492898"),
                BigInt("88553098803050"),
                BigInt("525037770869640"),
                BigInt("1266933811251234")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3552316659826612"),
                BigInt("1254279525791875"),
                BigInt("1609927932077699"),
                BigInt("3578654071679972"),
                BigInt("3750681296069893")
            ])), new g(new BigUint64Array([
                BigInt("37186803519861"),
                BigInt("1404297334376301"),
                BigInt("578519728836650"),
                BigInt("1740727951192592"),
                BigInt("2095534282477028")
            ])), new g(new BigUint64Array([
                BigInt("833234263154399"),
                BigInt("2023862470013762"),
                BigInt("1854137933982069"),
                BigInt("853924318090959"),
                BigInt("1589812702805850")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3679150557957763"),
                BigInt("1319179453661745"),
                BigInt("497496853611112"),
                BigInt("2665464286942351"),
                BigInt("1208137952365560")
            ])), new g(new BigUint64Array([
                BigInt("1654513078530905"),
                BigInt("907489875842908"),
                BigInt("126098711296368"),
                BigInt("1726320004173677"),
                BigInt("28269495058173")
            ])), new g(new BigUint64Array([
                BigInt("114436686957443"),
                BigInt("532739313025996"),
                BigInt("115428841215897"),
                BigInt("2191499400074366"),
                BigInt("370280402676434")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1111146849833253"),
                BigInt("2016430049079759"),
                BigInt("1860522747477948"),
                BigInt("3537164738290194"),
                BigInt("4137142824844184")
            ])), new g(new BigUint64Array([
                BigInt("429069864577128"),
                BigInt("975327637149449"),
                BigInt("237881983565075"),
                BigInt("1654761232378630"),
                BigInt("2122527599091807")
            ])), new g(new BigUint64Array([
                BigInt("2093793463548278"),
                BigInt("754827233241879"),
                BigInt("1420389751719629"),
                BigInt("1829952782588138"),
                BigInt("2011865756773717")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("676293365438898"),
                BigInt("2850296017886344"),
                BigInt("1205350322490195"),
                BigInt("2763699392265669"),
                BigInt("2133931188538142")
            ])), new g(new BigUint64Array([
                BigInt("48340340349120"),
                BigInt("1299261101494832"),
                BigInt("1137329686775218"),
                BigInt("1534848106674340"),
                BigInt("1351662218216799")
            ])), new g(new BigUint64Array([
                BigInt("1904520614137939"),
                BigInt("1590301001714014"),
                BigInt("215781420985270"),
                BigInt("2043534301034629"),
                BigInt("1970888949300424")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2365217962409710"),
                BigInt("2061307169694064"),
                BigInt("1887478590157603"),
                BigInt("2169639621284316"),
                BigInt("2373810867477200")
            ])), new g(new BigUint64Array([
                BigInt("1020052624656948"),
                BigInt("1260412094216707"),
                BigInt("366721640607121"),
                BigInt("585331442306596"),
                BigInt("345876457758061")
            ])), new g(new BigUint64Array([
                BigInt("975390299880933"),
                BigInt("1066555195234642"),
                BigInt("12651997758352"),
                BigInt("1184252205433068"),
                BigInt("1058378155074223")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1431537716602643"),
                BigInt("2024827957433813"),
                BigInt("3746434518400495"),
                BigInt("1087794891033550"),
                BigInt("2156817571680455")
            ])), new g(new BigUint64Array([
                BigInt("929288033346881"),
                BigInt("255179964546973"),
                BigInt("711057989588035"),
                BigInt("208899572612840"),
                BigInt("185348357387383")
            ])), new g(new BigUint64Array([
                BigInt("823689746424808"),
                BigInt("47266130989546"),
                BigInt("209403309368097"),
                BigInt("1100966895202707"),
                BigInt("710792075292719")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2311213117823762"),
                BigInt("3296668540922318"),
                BigInt("2004276520649823"),
                BigInt("1861500579441125"),
                BigInt("3148029033359833")
            ])), new g(new BigUint64Array([
                BigInt("1563693677475261"),
                BigInt("1843782073741194"),
                BigInt("1950700654453170"),
                BigInt("911540858113949"),
                BigInt("2085151496302359")
            ])), new g(new BigUint64Array([
                BigInt("1427880892005482"),
                BigInt("106216431121745"),
                BigInt("42608394782284"),
                BigInt("1217295886989793"),
                BigInt("1514235272796882")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3544335535746750"),
                BigInt("2367994491347456"),
                BigInt("2567261456502612"),
                BigInt("1854058085060971"),
                BigInt("2263545563461076")
            ])), new g(new BigUint64Array([
                BigInt("787426011300053"),
                BigInt("2105981035769060"),
                BigInt("1130476291127206"),
                BigInt("1748659348100075"),
                BigInt("53470983013756")
            ])), new g(new BigUint64Array([
                BigInt("553548273865386"),
                BigInt("5927805718390"),
                BigInt("65184587381926"),
                BigInt("633576679686953"),
                BigInt("576048559439973")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("993787326657446"),
                BigInt("3868807161609258"),
                BigInt("1615796046728943"),
                BigInt("2514644292681953"),
                BigInt("2059021068660907")
            ])), new g(new BigUint64Array([
                BigInt("251010270518880"),
                BigInt("1681684095763484"),
                BigInt("1521949356387564"),
                BigInt("431593457045116"),
                BigInt("1855308922422910")
            ])), new g(new BigUint64Array([
                BigInt("618490909691959"),
                BigInt("1257497595618257"),
                BigInt("202952467594088"),
                BigInt("35577762721238"),
                BigInt("1494883566841973")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1673474571932262"),
                BigInt("2409784519770613"),
                BigInt("2636095316260487"),
                BigInt("2761112584601925"),
                BigInt("3333713288149876")
            ])), new g(new BigUint64Array([
                BigInt("1600640202645197"),
                BigInt("1019569075331823"),
                BigInt("1041916487915822"),
                BigInt("1680448171313267"),
                BigInt("2126903137527901")
            ])), new g(new BigUint64Array([
                BigInt("894964745143659"),
                BigInt("106116880092678"),
                BigInt("1009869382959477"),
                BigInt("317866368542032"),
                BigInt("1986983122763912")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1765281781276487"),
                BigInt("2863247187455184"),
                BigInt("2589075472439062"),
                BigInt("1386435905543054"),
                BigInt("2182338478845320")
            ])), new g(new BigUint64Array([
                BigInt("1144730936996693"),
                BigInt("2213315231278180"),
                BigInt("1489676672185125"),
                BigInt("665039429138074"),
                BigInt("1131283313040268")
            ])), new g(new BigUint64Array([
                BigInt("2004734176670602"),
                BigInt("1738311085075235"),
                BigInt("418866995976618"),
                BigInt("1050782508034394"),
                BigInt("577747313404652")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2185209688340293"),
                BigInt("1309276076461009"),
                BigInt("2514740038571278"),
                BigInt("3994889904012999"),
                BigInt("3018098826231021")
            ])), new g(new BigUint64Array([
                BigInt("1405936970888515"),
                BigInt("1754621155316654"),
                BigInt("1211862168554999"),
                BigInt("1813045702919083"),
                BigInt("997853418197172")
            ])), new g(new BigUint64Array([
                BigInt("82037622045021"),
                BigInt("1646398333621944"),
                BigInt("613095452763466"),
                BigInt("1312329542583705"),
                BigInt("81014679202721")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2389287991277873"),
                BigInt("403851022333257"),
                BigInt("1597473361477193"),
                BigInt("2953351602509212"),
                BigInt("2135174663049062")
            ])), new g(new BigUint64Array([
                BigInt("1826548187201150"),
                BigInt("302299893734126"),
                BigInt("1475477168615781"),
                BigInt("842617616347376"),
                BigInt("1438600873676130")
            ])), new g(new BigUint64Array([
                BigInt("663049852468609"),
                BigInt("1649295727846569"),
                BigInt("1048009692742781"),
                BigInt("628866177992421"),
                BigInt("1914360327429204")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1795645928096646"),
                BigInt("306878154408959"),
                BigInt("2924901319092394"),
                BigInt("2801261341654799"),
                BigInt("1653782432983523")
            ])), new g(new BigUint64Array([
                BigInt("2077597317438627"),
                BigInt("212642017882064"),
                BigInt("674844477518888"),
                BigInt("875487498687554"),
                BigInt("2060550250171182")
            ])), new g(new BigUint64Array([
                BigInt("1420448018683809"),
                BigInt("1032663994771382"),
                BigInt("1341927003385267"),
                BigInt("1340360916546159"),
                BigInt("1988547473895228")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1082660122598844"),
                BigInt("2545055705583789"),
                BigInt("3888919679589007"),
                BigInt("1670283344995811"),
                BigInt("3403239134794618")
            ])), new g(new BigUint64Array([
                BigInt("90430593339788"),
                BigInt("1838338032241275"),
                BigInt("571293238480915"),
                BigInt("1639938867416883"),
                BigInt("257378872001111")
            ])), new g(new BigUint64Array([
                BigInt("1528535658865034"),
                BigInt("1516636853043960"),
                BigInt("787000569996728"),
                BigInt("1464531394704506"),
                BigInt("1684822625133795")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("811329918113934"),
                BigInt("2783463529007378"),
                BigInt("1769095754634835"),
                BigInt("2970819621866866"),
                BigInt("881037178164325")
            ])), new g(new BigUint64Array([
                BigInt("1784566501964517"),
                BigInt("433890943689325"),
                BigInt("1186055625589419"),
                BigInt("1496077405487512"),
                BigInt("1731807117886548")
            ])), new g(new BigUint64Array([
                BigInt("424909811816304"),
                BigInt("1355993963741797"),
                BigInt("409606483251841"),
                BigInt("455665350637068"),
                BigInt("1617009023642808")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2478728492077816"),
                BigInt("2780289048655501"),
                BigInt("2328687177473769"),
                BigInt("4107341333582032"),
                BigInt("1316147724308250")
            ])), new g(new BigUint64Array([
                BigInt("1617420574301156"),
                BigInt("1741273341070467"),
                BigInt("667135503486508"),
                BigInt("2100436564640123"),
                BigInt("1032223920000865")
            ])), new g(new BigUint64Array([
                BigInt("1753947659404033"),
                BigInt("247279202390193"),
                BigInt("1819288880178945"),
                BigInt("737334285670249"),
                BigInt("1037873664856104")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1762568490530034"),
                BigInt("673742465299012"),
                BigInt("2054571050635888"),
                BigInt("2040165159255111"),
                BigInt("3040123733327257")
            ])), new g(new BigUint64Array([
                BigInt("1627187989987422"),
                BigInt("1686331580821752"),
                BigInt("1309895873498183"),
                BigInt("719718719104086"),
                BigInt("300063199808722")
            ])), new g(new BigUint64Array([
                BigInt("238176707016164"),
                BigInt("1440454788877048"),
                BigInt("203336037573144"),
                BigInt("1437789888677072"),
                BigInt("101522256664211")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1895216760098480"),
                BigInt("1934324337975022"),
                BigInt("3677350688973167"),
                BigInt("2536415965456176"),
                BigInt("714678003308640")
            ])), new g(new BigUint64Array([
                BigInt("508185358728815"),
                BigInt("1691320535341855"),
                BigInt("2168887448239256"),
                BigInt("1035124393070661"),
                BigInt("1936603999698584")
            ])), new g(new BigUint64Array([
                BigInt("390562831571647"),
                BigInt("1390223890708972"),
                BigInt("1383183990676371"),
                BigInt("435998174196410"),
                BigInt("1882086414390730")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3747620842612921"),
                BigInt("2081794785291195"),
                BigInt("3284594056262745"),
                BigInt("2090090346797895"),
                BigInt("2581692978935809")
            ])), new g(new BigUint64Array([
                BigInt("244144781251265"),
                BigInt("1290834426417077"),
                BigInt("1888701171101942"),
                BigInt("1233922456644870"),
                BigInt("241117402207491")
            ])), new g(new BigUint64Array([
                BigInt("1266169390045455"),
                BigInt("1148042013187970"),
                BigInt("878921907853942"),
                BigInt("1815738019658093"),
                BigInt("908920199341621")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2521768507305118"),
                BigInt("953557056811112"),
                BigInt("2015863732865770"),
                BigInt("1358382511861315"),
                BigInt("2835421647899992")
            ])), new g(new BigUint64Array([
                BigInt("2239837206240498"),
                BigInt("330928973149665"),
                BigInt("422268062913642"),
                BigInt("1481280019493032"),
                BigInt("619879520439841")
            ])), new g(new BigUint64Array([
                BigInt("1360166735366017"),
                BigInt("1770556573948510"),
                BigInt("1395061284191031"),
                BigInt("1814003148068126"),
                BigInt("522781147076884")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2611794802645686"),
                BigInt("707234844948070"),
                BigInt("1314059396506491"),
                BigInt("2919250341703934"),
                BigInt("2161831667832785")
            ])), new g(new BigUint64Array([
                BigInt("934831784182383"),
                BigInt("433734253968318"),
                BigInt("1660867106725771"),
                BigInt("1968393082772831"),
                BigInt("873946300968490")
            ])), new g(new BigUint64Array([
                BigInt("26306827827554"),
                BigInt("430884999378685"),
                BigInt("1504310424376419"),
                BigInt("1761358720837522"),
                BigInt("542195685418530")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1762131062631725"),
                BigInt("3123952634417535"),
                BigInt("3619918390837537"),
                BigInt("2909990877347294"),
                BigInt("1411594230004385")
            ])), new g(new BigUint64Array([
                BigInt("538272372224622"),
                BigInt("1425714779586199"),
                BigInt("588313661410172"),
                BigInt("1497062084392578"),
                BigInt("1602174047128512")
            ])), new g(new BigUint64Array([
                BigInt("907490361939255"),
                BigInt("1963620338391363"),
                BigInt("626927432296975"),
                BigInt("1250748516081414"),
                BigInt("959901171882527")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1335066153744413"),
                BigInt("2887804660779657"),
                BigInt("2653073855954038"),
                BigInt("2765226981667422"),
                BigInt("938831784476763")
            ])), new g(new BigUint64Array([
                BigInt("296699434737224"),
                BigInt("2047543711075683"),
                BigInt("2076451038937139"),
                BigInt("227783599906901"),
                BigInt("1602062110967627")
            ])), new g(new BigUint64Array([
                BigInt("1574834773194203"),
                BigInt("1384279952062839"),
                BigInt("393652417255803"),
                BigInt("2166968242848859"),
                BigInt("1552890441390820")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1619646774410947"),
                BigInt("1576090644023562"),
                BigInt("3035228391320965"),
                BigInt("1735328519940543"),
                BigInt("2355324535937066")
            ])), new g(new BigUint64Array([
                BigInt("1024074573633446"),
                BigInt("957088456885874"),
                BigInt("1690425531356997"),
                BigInt("2102187380180052"),
                BigInt("1082544623222033")
            ])), new g(new BigUint64Array([
                BigInt("1871906170635853"),
                BigInt("1719383891167200"),
                BigInt("1584032250247862"),
                BigInt("823764804192117"),
                BigInt("2244048510084261")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("642147846489775"),
                BigInt("3334304977145699"),
                BigInt("305205716788147"),
                BigInt("2589176626729533"),
                BigInt("2224680511484174")
            ])), new g(new BigUint64Array([
                BigInt("1734162377166545"),
                BigInt("260713621840346"),
                BigInt("157174591942595"),
                BigInt("952544272517991"),
                BigInt("222818702471733")
            ])), new g(new BigUint64Array([
                BigInt("1213115494182947"),
                BigInt("286778704335711"),
                BigInt("2130189536016490"),
                BigInt("308349182281342"),
                BigInt("1217623948685491")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3360052266973635"),
                BigInt("1843486583624091"),
                BigInt("1561693837124349"),
                BigInt("1084041964025479"),
                BigInt("1866270922024009")
            ])), new g(new BigUint64Array([
                BigInt("460705465481210"),
                BigInt("1968151453817859"),
                BigInt("497005926994844"),
                BigInt("625618055866751"),
                BigInt("2176893440866887")
            ])), new g(new BigUint64Array([
                BigInt("1655800250476757"),
                BigInt("2036588542300609"),
                BigInt("666447448675243"),
                BigInt("1615721995750683"),
                BigInt("1508669225186765")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2245948203759141"),
                BigInt("1058306669699396"),
                BigInt("1452898014240582"),
                BigInt("3961024141962768"),
                BigInt("1633235287338608")
            ])), new g(new BigUint64Array([
                BigInt("986647273684279"),
                BigInt("1507266907811370"),
                BigInt("1260572633649005"),
                BigInt("2071672342077446"),
                BigInt("695976026010857")
            ])), new g(new BigUint64Array([
                BigInt("1312356620823495"),
                BigInt("1635278548098567"),
                BigInt("901946076841033"),
                BigInt("585120475533168"),
                BigInt("1240667113237384")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2313723935779695"),
                BigInt("1506054666773895"),
                BigInt("996040223525031"),
                BigInt("636592914999692"),
                BigInt("1497801917020297")
            ])), new g(new BigUint64Array([
                BigInt("292042016419794"),
                BigInt("1158932298133044"),
                BigInt("2062611870323738"),
                BigInt("1946058478962569"),
                BigInt("1749165808126286")
            ])), new g(new BigUint64Array([
                BigInt("654683942212830"),
                BigInt("1526897351349087"),
                BigInt("2006818439922838"),
                BigInt("2194919327350361"),
                BigInt("1451960776874416")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3015041017808905"),
                BigInt("2951823141773809"),
                BigInt("2584865668253675"),
                BigInt("2508192032998563"),
                BigInt("2582137700042019")
            ])), new g(new BigUint64Array([
                BigInt("1628123495344283"),
                BigInt("2072923641214546"),
                BigInt("1647225812023982"),
                BigInt("855655925244679"),
                BigInt("1758126430071140")
            ])), new g(new BigUint64Array([
                BigInt("1615895096489599"),
                BigInt("275295258643784"),
                BigInt("937665541219916"),
                BigInt("1313496726746346"),
                BigInt("1186468946422626")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1603070202850694"),
                BigInt("2072127623773242"),
                BigInt("1692648737212158"),
                BigInt("2493373404187852"),
                BigInt("1248948672117105")
            ])), new g(new BigUint64Array([
                BigInt("11167836031898"),
                BigInt("596565174397990"),
                BigInt("2196351068723859"),
                BigInt("314744641791907"),
                BigInt("1102014997250781")
            ])), new g(new BigUint64Array([
                BigInt("1409047922401191"),
                BigInt("69960384467966"),
                BigInt("688103515547600"),
                BigInt("1309746102488044"),
                BigInt("150292892873778")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1986083055103168"),
                BigInt("691715819340300"),
                BigInt("1361811659746933"),
                BigInt("3459052030333434"),
                BigInt("1063594696046061")
            ])), new g(new BigUint64Array([
                BigInt("1201987338414749"),
                BigInt("2198784582460616"),
                BigInt("1203335513981498"),
                BigInt("489243077045066"),
                BigInt("2205278143582433")
            ])), new g(new BigUint64Array([
                BigInt("2034744376624534"),
                BigInt("2077387101466387"),
                BigInt("148448542974969"),
                BigInt("1502697574577258"),
                BigInt("473186584705655")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("472016956315960"),
                BigInt("720786972252993"),
                BigInt("2840633661190043"),
                BigInt("3150798753357827"),
                BigInt("2816563335499153")
            ])), new g(new BigUint64Array([
                BigInt("253464247569755"),
                BigInt("168314237403057"),
                BigInt("511780806170295"),
                BigInt("1058862316549135"),
                BigInt("1646858476817137")
            ])), new g(new BigUint64Array([
                BigInt("595092995922219"),
                BigInt("1491311840717691"),
                BigInt("291581784452778"),
                BigInt("1569186646367854"),
                BigInt("1031385061400544")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3483137021572755"),
                BigInt("1526955102024322"),
                BigInt("2778006642704458"),
                BigInt("457549634924205"),
                BigInt("1097420237736736")
            ])), new g(new BigUint64Array([
                BigInt("1246991699537710"),
                BigInt("81367319519439"),
                BigInt("530844036072196"),
                BigInt("163656863755855"),
                BigInt("1950742455979290")
            ])), new g(new BigUint64Array([
                BigInt("191532664076407"),
                BigInt("539378506082089"),
                BigInt("1021612562876554"),
                BigInt("1026603384732632"),
                BigInt("1773368780410653")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("4144620731387879"),
                BigInt("590179521333342"),
                BigInt("4034023318016108"),
                BigInt("2255745030335426"),
                BigInt("2699746851701250")
            ])), new g(new BigUint64Array([
                BigInt("2206599697359952"),
                BigInt("553895797384417"),
                BigInt("181689161933786"),
                BigInt("1153123447919104"),
                BigInt("778568064152659")
            ])), new g(new BigUint64Array([
                BigInt("1706307000059211"),
                BigInt("1885601289314487"),
                BigInt("889758608505788"),
                BigInt("550131729999853"),
                BigInt("1006862664714268")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3210197754285058"),
                BigInt("2048500453422630"),
                BigInt("3403309827888207"),
                BigInt("927154428508963"),
                BigInt("4199813798872019")
            ])), new g(new BigUint64Array([
                BigInt("992058915374933"),
                BigInt("476120535358775"),
                BigInt("1973648780784340"),
                BigInt("2025282643598818"),
                BigInt("2182318983793230")
            ])), new g(new BigUint64Array([
                BigInt("1343440812005821"),
                BigInt("1316045839091795"),
                BigInt("1884951299078063"),
                BigInt("1765919609219175"),
                BigInt("2197567554627988")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3129247779382818"),
                BigInt("4415026969054274"),
                BigInt("1900265885969643"),
                BigInt("1528796215447059"),
                BigInt("2172730393748688")
            ])), new g(new BigUint64Array([
                BigInt("1773355092297603"),
                BigInt("64654329538271"),
                BigInt("1332124041660957"),
                BigInt("748492100858001"),
                BigInt("895500006200535")
            ])), new g(new BigUint64Array([
                BigInt("2000840647851980"),
                BigInt("546565968824914"),
                BigInt("420633283457524"),
                BigInt("195470736374507"),
                BigInt("1958689297569520")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("743138980705446"),
                BigInt("3411117504637167"),
                BigInt("2591389959690621"),
                BigInt("2380042066577202"),
                BigInt("3022267940115114")
            ])), new g(new BigUint64Array([
                BigInt("165947002229363"),
                BigInt("115186103724967"),
                BigInt("1068573292121517"),
                BigInt("1842565776920938"),
                BigInt("1969395681111987")
            ])), new g(new BigUint64Array([
                BigInt("553322266190633"),
                BigInt("234265665613185"),
                BigInt("484544650202821"),
                BigInt("1238773526575826"),
                BigInt("2017991917953668")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2581954631514051"),
                BigInt("1245093644265357"),
                BigInt("3537016673825374"),
                BigInt("1834216551713857"),
                BigInt("923978372152807")
            ])), new g(new BigUint64Array([
                BigInt("1855378315339552"),
                BigInt("890045579230758"),
                BigInt("1764718173975590"),
                BigInt("197904186055854"),
                BigInt("1718129022310327")
            ])), new g(new BigUint64Array([
                BigInt("1278162928734862"),
                BigInt("1894118254109862"),
                BigInt("987503995465517"),
                BigInt("177406744098996"),
                BigInt("781538103127693")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1996603431230215"),
                BigInt("1191888797552937"),
                BigInt("1207440075928499"),
                BigInt("2765853449051137"),
                BigInt("2525314961343288")
            ])), new g(new BigUint64Array([
                BigInt("808903879370889"),
                BigInt("990820108751280"),
                BigInt("1084429472258867"),
                BigInt("1078562781312589"),
                BigInt("254514692695625")
            ])), new g(new BigUint64Array([
                BigInt("615855140068469"),
                BigInt("586046731175395"),
                BigInt("693470779212674"),
                BigInt("1964537100203868"),
                BigInt("1350330550265229")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3344544372023708"),
                BigInt("720386671449874"),
                BigInt("2480841360702110"),
                BigInt("2036034126860286"),
                BigInt("2015744690201389")
            ])), new g(new BigUint64Array([
                BigInt("1337446193390478"),
                BigInt("1984110761311871"),
                BigInt("746489405020285"),
                BigInt("407347127604128"),
                BigInt("1740475330360596")
            ])), new g(new BigUint64Array([
                BigInt("140840424783613"),
                BigInt("1063284623568331"),
                BigInt("1136446106453878"),
                BigInt("372042229029799"),
                BigInt("442607248430694")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2330781679120937"),
                BigInt("376801425148230"),
                BigInt("2032603686676107"),
                BigInt("1488926293635130"),
                BigInt("1317278311532959")
            ])), new g(new BigUint64Array([
                BigInt("1290116731380016"),
                BigInt("2166899563471713"),
                BigInt("831997001838078"),
                BigInt("870954980505220"),
                BigInt("2108537278055823")
            ])), new g(new BigUint64Array([
                BigInt("1912719171026343"),
                BigInt("846194720551034"),
                BigInt("2043988124740726"),
                BigInt("993234269653961"),
                BigInt("421229796383281")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2651184584992902"),
                BigInt("2775702557638963"),
                BigInt("2539786009779572"),
                BigInt("2575974880015305"),
                BigInt("2122619079836732")
            ])), new g(new BigUint64Array([
                BigInt("1154054290132562"),
                BigInt("931753998725577"),
                BigInt("1647742001778052"),
                BigInt("865765466488226"),
                BigInt("1083816107290025")
            ])), new g(new BigUint64Array([
                BigInt("986341121095108"),
                BigInt("1522330369638573"),
                BigInt("1990880546211047"),
                BigInt("501525962272123"),
                BigInt("198539304862139")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1496414019192687"),
                BigInt("3991034436173951"),
                BigInt("3380311659062196"),
                BigInt("2854747485359158"),
                BigInt("3346958036643152")
            ])), new g(new BigUint64Array([
                BigInt("805612068303425"),
                BigInt("1891790027761335"),
                BigInt("1587008567571549"),
                BigInt("722120737390201"),
                BigInt("378156757163816")
            ])), new g(new BigUint64Array([
                BigInt("1588994517921951"),
                BigInt("977362751042302"),
                BigInt("1329302387067714"),
                BigInt("2069348224564088"),
                BigInt("1586007159625211")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2490539421551682"),
                BigInt("1985699850375015"),
                BigInt("2331762317128172"),
                BigInt("4145097393776678"),
                BigInt("2521049460190674")
            ])), new g(new BigUint64Array([
                BigInt("615817553313996"),
                BigInt("2245962768078178"),
                BigInt("482564324326173"),
                BigInt("2101336843140780"),
                BigInt("1240914880829407")
            ])), new g(new BigUint64Array([
                BigInt("1438242482238189"),
                BigInt("874267817785463"),
                BigInt("1620810389770625"),
                BigInt("866155221338671"),
                BigInt("1040426546798301")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("2403083624110300"),
                BigInt("2548561409802975"),
                BigInt("2492699136535911"),
                BigInt("2358289519456539"),
                BigInt("3203964320363148")
            ])), new g(new BigUint64Array([
                BigInt("1913986535403097"),
                BigInt("1977163223054199"),
                BigInt("1972905914623196"),
                BigInt("1650122133472502"),
                BigInt("1905849310819035")
            ])), new g(new BigUint64Array([
                BigInt("858174816360838"),
                BigInt("614595356564037"),
                BigInt("1099584959044836"),
                BigInt("636998087084906"),
                BigInt("1070393269058348")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3666695924830668"),
                BigInt("3585640662737501"),
                BigInt("2372994528684236"),
                BigInt("2628565977288995"),
                BigInt("3482812783469694")
            ])), new g(new BigUint64Array([
                BigInt("1994161359147952"),
                BigInt("2198039369802658"),
                BigInt("62790022842537"),
                BigInt("1522306785848169"),
                BigInt("951223194802833")
            ])), new g(new BigUint64Array([
                BigInt("852296621440717"),
                BigInt("431889737774209"),
                BigInt("370755457746189"),
                BigInt("437604073958073"),
                BigInt("627857326892757")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1794955764684156"),
                BigInt("2586904290013612"),
                BigInt("1322647643615887"),
                BigInt("856117964085888"),
                BigInt("2652432778663153")
            ])), new g(new BigUint64Array([
                BigInt("933592377399646"),
                BigInt("78031722952813"),
                BigInt("926049890685253"),
                BigInt("1471649501316246"),
                BigInt("33789909190376")
            ])), new g(new BigUint64Array([
                BigInt("1479319468832059"),
                BigInt("203906207621608"),
                BigInt("659828362330083"),
                BigInt("44358398435755"),
                BigInt("1273573524210803")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1592342143350813"),
                BigInt("3227219208247713"),
                BigInt("2345240352078765"),
                BigInt("2577750109932929"),
                BigInt("2933512841197243")
            ])), new g(new BigUint64Array([
                BigInt("2184946892642995"),
                BigInt("1517382324576002"),
                BigInt("1557940277419806"),
                BigInt("2170635134813213"),
                BigInt("747314658627002")
            ])), new g(new BigUint64Array([
                BigInt("1823193620577742"),
                BigInt("1135817878516419"),
                BigInt("1731253819308581"),
                BigInt("1031652967267804"),
                BigInt("2123506616999453")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1346190246005805"),
                BigInt("2052692552023851"),
                BigInt("1718128041785940"),
                BigInt("2491557332978474"),
                BigInt("3474370880388305")
            ])), new g(new BigUint64Array([
                BigInt("424776012994573"),
                BigInt("281050757243423"),
                BigInt("626466040846420"),
                BigInt("990194703866532"),
                BigInt("38571969885982")
            ])), new g(new BigUint64Array([
                BigInt("192408346595466"),
                BigInt("1054889725292349"),
                BigInt("584097975693004"),
                BigInt("1447909807397749"),
                BigInt("2134645004369136")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3169895788615063"),
                BigInt("3503097743181446"),
                BigInt("601598510029975"),
                BigInt("1422812237223371"),
                BigInt("2121009661378329")
            ])), new g(new BigUint64Array([
                BigInt("1603348391996783"),
                BigInt("2066143816131699"),
                BigInt("1789627290363958"),
                BigInt("2145705961178118"),
                BigInt("1985578641438222")
            ])), new g(new BigUint64Array([
                BigInt("352633958653380"),
                BigInt("856927627345554"),
                BigInt("793925083122702"),
                BigInt("93551575767286"),
                BigInt("1222010153634215")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1756866499986349"),
                BigInt("911731956999969"),
                BigInt("2707505543214075"),
                BigInt("4006920335263786"),
                BigInt("822501008147910")
            ])), new g(new BigUint64Array([
                BigInt("1094036422864347"),
                BigInt("1897208881572508"),
                BigInt("1503607738246960"),
                BigInt("1901060196071406"),
                BigInt("294068411105729")
            ])), new g(new BigUint64Array([
                BigInt("587776484399576"),
                BigInt("1116861711228807"),
                BigInt("343398777436088"),
                BigInt("936544065763093"),
                BigInt("1643746750211060")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("3477749685790410"),
                BigInt("267997399528836"),
                BigInt("2953780922004404"),
                BigInt("3252368924080907"),
                BigInt("3787792887348381")
            ])), new g(new BigUint64Array([
                BigInt("2042368155872443"),
                BigInt("41662387210459"),
                BigInt("1676313264498480"),
                BigInt("1333968523426810"),
                BigInt("1765708383352310")
            ])), new g(new BigUint64Array([
                BigInt("1453394896690938"),
                BigInt("1585795827439909"),
                BigInt("1469309456804303"),
                BigInt("1294645324464404"),
                BigInt("2042954198665899")
            ]))),
            new w(new g(new BigUint64Array([
                BigInt("1810069207599881"),
                BigInt("1358344669503239"),
                BigInt("1989371257548167"),
                BigInt("2316270051121225"),
                BigInt("3019675451276507")
            ])), new g(new BigUint64Array([
                BigInt("1866114438287676"),
                BigInt("1663420339568364"),
                BigInt("1437691317033088"),
                BigInt("538298302628038"),
                BigInt("1212711449614363")
            ])), new g(new BigUint64Array([
                BigInt("1769235035677897"),
                BigInt("1562012115317882"),
                BigInt("31277513664750"),
                BigInt("536198657928416"),
                BigInt("1976134212537183")
            ])))
        ]);
        return fe;
    }
    var Ge = {}, VI;
    function IIt() {
        if (VI) return Ge;
        VI = 1;
        var n = Ge && Ge.__read || function(S, b) {
            var k = typeof Symbol == "function" && S[Symbol.iterator];
            if (!k) return S;
            var F = k.call(S), Y, K = [], J;
            try {
                for(; (b === void 0 || b-- > 0) && !(Y = F.next()).done;)K.push(Y.value);
            } catch (P) {
                J = {
                    error: P
                };
            } finally{
                try {
                    Y && !Y.done && (k = F.return) && k.call(F);
                } finally{
                    if (J) throw J.error;
                }
            }
            return K;
        };
        Object.defineProperty(Ge, "__esModule", {
            value: !0
        }), Ge.scalar_from_bits_inplace = Ge.vrf_ed25519_sha512_ell2_compute_challenge = Ge.vrf_ed25519_sha512_ell2_nonce_generation = Ge.scalar_hash_from_bytes = Ge.vrf_ed25519_sha512_ell2_hash_to_curve = Ge.edwards_hash_from_bytes = Ge.proof_to_hash = Ge.vrf_ed25519_sha512_ell2_verify_proof = Ge.vrf_ed25519_sha512_ell2_generate_proof = Ge.adjust_scalar_bits = Ge.extend_secret_key = void 0;
        var t = ve(), e = fp(), o = v0(), _ = 4, a = 1, c = 2;
        function s(S) {
            var b = (0, e.sha2_512_sync)(S), k = b.slice(0, 32), F = b.slice(32, 64);
            return k[0] &= 248, k[31] &= 127, k[31] |= 64, u(k), [
                k,
                F
            ];
        }
        Ge.extend_secret_key = s;
        function u(S) {
            S[31] &= 127;
        }
        Ge.adjust_scalar_bits = u;
        function l(S, b, k) {
            var F = n(s(S), 2), Y = F[0], K = F[1], J = h(b, k), P = J.compress(), T = J.scalarMul(Y), E = T.compress(), N = I(K, P), y = o.ED25519_BASEPOINT_POINT.scalarMul(N).compress(), O = J.scalarMul(N).compress(), m = j(P, E, y, O), R = (0, o.add_scalars)(N, (0, o.mul_scalars)(m, Y));
            return {
                gamma: T,
                challenge: m,
                response: R
            };
        }
        Ge.vrf_ed25519_sha512_ell2_generate_proof = l;
        function f(S, b, k) {
            var F = h(S, b), Y = F.compress(), K = (0, o.decompressCompressedEdwardsY)(S);
            if (!K || K.is_small_order()) return !1;
            var J = k.challenge, P = o.EdwardsPoint.vartime_double_scalar_mul_basepoint((0, o.negate_scalar)(J), K, k.response), T = k.gamma, E = o.EdwardsPoint.vartime_multiscalar_mul([
                k.response,
                (0, o.negate_scalar)(J)
            ], [
                F,
                T
            ]), N = j(Y, k.gamma.compress(), P.compress(), E.compress());
            return (0, t.uint8ArrayEq)(N.slice(0, 16), J.slice(0, 16));
        }
        Ge.vrf_ed25519_sha512_ell2_verify_proof = f;
        function p(S) {
            var b = S.gamma.mul_by_cofactor(), k = new Uint8Array(2 + b.compress().length);
            return k[0] = _, k[1] = 3, k.set(b.compress(), 2), (0, e.sha2_512_sync)(k);
        }
        Ge.proof_to_hash = p;
        function g(S) {
            var b = (0, e.sha2_512_sync)(S), k = b.slice(0, 32), F = 0, Y = o.FieldElem51.fromBytes(k), K = o.FieldElem51.elligator_encode(Y), J = K.to_edwards(F);
            if (!J) throw new Error("Montgomery conversion to Edwards point in Elligator failed");
            return J.mul_by_cofactor();
        }
        Ge.edwards_hash_from_bytes = g;
        function h(S, b) {
            var k = new Uint8Array(2 + S.length + b.length);
            return k[0] = _, k[1] = a, k.set(S, 2), k.set(b, 2 + S.length), g(k);
        }
        Ge.vrf_ed25519_sha512_ell2_hash_to_curve = h;
        function B(S) {
            return (0, o.scalar_from_bytes_mod_order_wide)((0, e.sha2_512_sync)(S));
        }
        Ge.scalar_hash_from_bytes = B;
        function I(S, b) {
            var k = new Uint8Array(64);
            return k.set(S, 0), k.set(b, 32), B(k);
        }
        Ge.vrf_ed25519_sha512_ell2_nonce_generation = I;
        function j(S, b, k, F) {
            var Y = new Uint8Array(32), K = new Uint8Array(2 + S.length + b.length + k.length + F.length);
            K[0] = _, K[1] = c, K.set(S, 2), K.set(b, 2 + S.length), K.set(k, 2 + S.length + b.length), K.set(F, 2 + S.length + b.length + k.length);
            var J = (0, e.sha2_512_sync)(K);
            return Y.set(J.slice(0, 16), 0), w(Y), Y;
        }
        Ge.vrf_ed25519_sha512_ell2_compute_challenge = j;
        function w(S) {
            S[31] &= 127;
        }
        return Ge.scalar_from_bits_inplace = w, Ge;
    }
    var He = {}, ZI;
    function d9() {
        if (ZI) return He;
        ZI = 1;
        var n = He && He.__read || function(S, b) {
            var k = typeof Symbol == "function" && S[Symbol.iterator];
            if (!k) return S;
            var F = k.call(S), Y, K = [], J;
            try {
                for(; (b === void 0 || b-- > 0) && !(Y = F.next()).done;)K.push(Y.value);
            } catch (P) {
                J = {
                    error: P
                };
            } finally{
                try {
                    Y && !Y.done && (k = F.return) && k.call(F);
                } finally{
                    if (J) throw J.error;
                }
            }
            return K;
        };
        Object.defineProperty(He, "__esModule", {
            value: !0
        }), He.scalar_from_bits_inplace = He.vrf10_ed25519_sha512_ell2_compute_challenge = He.vrf10_ed25519_sha512_ell2_nonce_generation = He.scalar_hash_from_bytes = He.vrf10_ed25519_sha512_ell2_hash_to_curve = He.edwards_hash_from_bytes = He.vrf10_proof_to_hash = He.vrf10_ed25519_sha512_ell2_verify_proof = He.vrf10_ed25519_sha512_ell2_generate_proof = He.adjust_scalar_bits = He.extend_secret_key = void 0;
        var t = ve(), e = fp(), o = v0(), _ = 3, a = 1, c = 2;
        function s(S) {
            var b = (0, e.sha2_512_sync)(S), k = b.slice(0, 32), F = b.slice(32, 64);
            return k[0] &= 248, k[31] &= 127, k[31] |= 64, u(k), [
                k,
                F
            ];
        }
        He.extend_secret_key = s;
        function u(S) {
            S[31] &= 127;
        }
        He.adjust_scalar_bits = u;
        function l(S, b, k) {
            var F = n(s(S), 2), Y = F[0], K = F[1], J = h(b, k), P = J.compress(), T = J.scalarMul(Y), E = T.compress(), N = I(K, P), y = o.ED25519_BASEPOINT_POINT.scalarMul(N).compress(), O = J.scalarMul(N).compress(), m = j(P, E, y, O), R = (0, o.add_scalars)(N, (0, o.mul_scalars)(m, Y));
            return {
                gamma: T,
                challenge: m,
                response: R
            };
        }
        He.vrf10_ed25519_sha512_ell2_generate_proof = l;
        function f(S, b, k) {
            var F = h(S, b), Y = F.compress(), K = (0, o.decompressCompressedEdwardsY)(S);
            if (!K || K.is_small_order()) return !1;
            var J = k.challenge, P = k.gamma, T = o.EdwardsPoint.vartime_double_scalar_mul_basepoint((0, o.negate_scalar)(J), K, k.response), E = o.EdwardsPoint.vartime_multiscalar_mul([
                k.response,
                (0, o.negate_scalar)(J)
            ], [
                F,
                P
            ]), N = j(Y, k.gamma.compress(), T.compress(), E.compress());
            return (0, t.uint8ArrayEq)(N.slice(0, 16), J.slice(0, 16));
        }
        He.vrf10_ed25519_sha512_ell2_verify_proof = f;
        function p(S) {
            var b = S.gamma.mul_by_cofactor().compress(), k = new Uint8Array(3 + b.length);
            return k[0] = _, k[1] = 3, k.set(b, 2), k[2 + b.length] = 0, (0, e.sha2_512_sync)(k);
        }
        He.vrf10_proof_to_hash = p;
        function g(S) {
            var b = (0, e.sha2_512_sync)(S), k = b.slice(0, 32), F = 0, Y = o.FieldElem51.fromBytes(k), K = o.FieldElem51.elligator_encode(Y), J = K.to_edwards(F);
            if (!J) throw new Error("Montgomery conversion to Edwards point in Elligator failed");
            return J.mul_by_cofactor();
        }
        He.edwards_hash_from_bytes = g;
        function h(S, b) {
            var k = 0, F = new Uint8Array(36 + b.length);
            for(F[0] = _, F[1] = a, F.set(S.slice(0, 32), 2), F.set(b, 34), F[34 + b.length] = k, F[35 + b.length] = 0; k < 64;){
                F[34 + b.length] = k;
                var Y = (0, o.decompressCompressedEdwardsY)((0, e.sha2_512_sync)(F).slice(0, 32));
                if (Y) return Y.mul_by_cofactor();
                ++k;
            }
            return g(F);
        }
        He.vrf10_ed25519_sha512_ell2_hash_to_curve = h;
        function B(S) {
            return (0, o.scalar_from_bytes_mod_order_wide)((0, e.sha2_512_sync)(S));
        }
        He.scalar_hash_from_bytes = B;
        function I(S, b) {
            var k = new Uint8Array(64);
            return k.set(S.slice(0, 32), 0), k.set(b.slice(0, 32), 32), B(k);
        }
        He.vrf10_ed25519_sha512_ell2_nonce_generation = I;
        function j(S, b, k, F) {
            var Y = new Uint8Array(32), K = new Uint8Array(3 + S.length + b.length + k.length + F.length);
            K[0] = _, K[1] = c;
            var J = 2;
            K.set(S, J), J += S.length, K.set(b, J), J += b.length, K.set(k, J), J += k.length, K.set(F, J), K[J + F.length] = 0;
            var P = (0, e.sha2_512_sync)(K);
            return Y.set(P.slice(0, 16), 0), w(Y), Y;
        }
        He.vrf10_ed25519_sha512_ell2_compute_challenge = j;
        function w(S) {
            S[31] &= 127;
        }
        return He.scalar_from_bits_inplace = w, He;
    }
    var ha = {}, YI;
    function kIt() {
        if (YI) return ha;
        YI = 1;
        var n = ha && ha.__read || function(f, p) {
            var g = typeof Symbol == "function" && f[Symbol.iterator];
            if (!g) return f;
            var h = g.call(f), B, I = [], j;
            try {
                for(; (p === void 0 || p-- > 0) && !(B = h.next()).done;)I.push(B.value);
            } catch (w) {
                j = {
                    error: w
                };
            } finally{
                try {
                    B && !B.done && (g = h.return) && g.call(h);
                } finally{
                    if (j) throw j.error;
                }
            }
            return I;
        };
        Object.defineProperty(ha, "__esModule", {
            value: !0
        }), ha.vrf10_batch_ed25519_sha512_ell2_verify_proof = ha.vrf10_batch_ed25519_sha512_ell2_generate_proof = ha.vrf10_batch_ed25519_sha512_ell2_proof_to_hash = void 0;
        var t = ve(), e = fp(), o = v0(), _ = d9(), a = 3, c = 3;
        function s(f) {
            var p = f.gamma.mul_by_cofactor().compress(), g = new Uint8Array(3 + p.length);
            return g[0] = a, g[1] = c, g.set(p, 2), g[2 + p.length] = 0, (0, e.sha2_512_sync)(g);
        }
        ha.vrf10_batch_ed25519_sha512_ell2_proof_to_hash = s;
        function u(f, p, g) {
            var h = n((0, _.extend_secret_key)(f), 2), B = h[0], I = h[1], j = (0, _.vrf10_ed25519_sha512_ell2_hash_to_curve)(p, g), w = j.compress(), S = j.scalarMul(B), b = S.compress(), k = (0, _.vrf10_ed25519_sha512_ell2_nonce_generation)(I, w), F = o.ED25519_BASEPOINT_POINT.scalarMul(k), Y = F.compress(), K = j.scalarMul(k), J = K.compress(), P = (0, _.vrf10_ed25519_sha512_ell2_compute_challenge)(w, b, Y, J), T = (0, o.add_scalars)(k, (0, o.mul_scalars)(P, B));
            return {
                gamma: S,
                u_point: F,
                v_point: K,
                response: T
            };
        }
        ha.vrf10_batch_ed25519_sha512_ell2_generate_proof = u;
        function l(f, p, g) {
            var h = (0, _.vrf10_ed25519_sha512_ell2_hash_to_curve)(f, p), B = h.compress(), I = (0, o.decompressCompressedEdwardsY)(f);
            if (!I || I.is_small_order()) return !1;
            var j = g.gamma, w = j.compress(), S = g.u_point.compress(), b = g.v_point.compress(), k = (0, _.vrf10_ed25519_sha512_ell2_compute_challenge)(B, w, S, b), F = o.EdwardsPoint.vartime_double_scalar_mul_basepoint((0, o.negate_scalar)(k), I, g.response), Y = o.EdwardsPoint.vartime_multiscalar_mul([
                g.response,
                (0, o.negate_scalar)(k)
            ], [
                h,
                j
            ]);
            return (0, t.uint8ArrayEq)(F.compress(), S) && (0, t.uint8ArrayEq)(Y.compress(), b);
        }
        return ha.vrf10_batch_ed25519_sha512_ell2_verify_proof = l, ha;
    }
    var Cf = {}, WI;
    function BIt() {
        if (WI) return Cf;
        WI = 1, Object.defineProperty(Cf, "__esModule", {
            value: !0
        }), Cf.getRandomValues = void 0;
        var n = h0();
        function t(e) {
            for(var o = 0; o < e.length; o++)e[o] = Math.random() * 256 >>> 0;
            return e;
        }
        return Cf.getRandomValues = n.hasGlobalWebCrypto ? globalThis.crypto.getRandomValues.bind(globalThis.crypto) : t, Cf;
    }
    var JI;
    function xIt() {
        if (JI) return Mn;
        JI = 1;
        var n = Mn && Mn.__read || function(h, B) {
            var I = typeof Symbol == "function" && h[Symbol.iterator];
            if (!I) return h;
            var j = I.call(h), w, S = [], b;
            try {
                for(; (B === void 0 || B-- > 0) && !(w = j.next()).done;)S.push(w.value);
            } catch (k) {
                b = {
                    error: k
                };
            } finally{
                try {
                    w && !w.done && (I = j.return) && I.call(j);
                } finally{
                    if (b) throw b.error;
                }
            }
            return S;
        };
        Object.defineProperty(Mn, "__esModule", {
            value: !0
        }), Mn.VrfBatchVerifier = Mn.VrfBatchProof10 = Mn.VrfProof10 = Mn.derive_vrf10_public_key = Mn.VrfProof03 = void 0, ve();
        var t = v0(), e = IIt(), o = d9(), _ = kIt(), a = BIt(), c = (function() {
            function h(B) {
                var I = B.gamma, j = B.challenge, w = B.response;
                this.gamma = I, this.challenge = j, this.response = w;
            }
            return h.prototype.toHash = function() {
                return (0, e.proof_to_hash)(this);
            }, h.generate = function(B, I, j) {
                return new h((0, e.vrf_ed25519_sha512_ell2_generate_proof)(B, I, j));
            }, h.verify = function(B, I, j) {
                return (0, e.vrf_ed25519_sha512_ell2_verify_proof)(B, I, j);
            }, h.prototype.verify = function(B, I) {
                return (0, e.vrf_ed25519_sha512_ell2_verify_proof)(B, I, this);
            }, h.prototype.toBytes = function() {
                var B = new Uint8Array(80);
                return B.set(this.gamma.compress(), 0), B.set(this.challenge.slice(0, 16), 32), B.set(this.response, 48), B;
            }, h.fromBytes = function(B) {
                var I = t.EdwardsPoint.decompress(Uint8Array.prototype.slice.call(B, 0, 32));
                if (!I) throw new Error("Invalid gamma point");
                var j = new Uint8Array(32);
                j.set(Uint8Array.prototype.slice.call(B, 32, 48), 0);
                var w = Uint8Array.prototype.slice.call(B, 48, 80);
                return new h({
                    gamma: I,
                    challenge: j,
                    response: w
                });
            }, h;
        })();
        Mn.VrfProof03 = c;
        function s(h) {
            return t.EdwardsPoint.BASEPOINT_ED25519.scalarMul((0, o.extend_secret_key)(h)[0]).compress();
        }
        Mn.derive_vrf10_public_key = s;
        var u = (function() {
            function h(B) {
                var I = B.gamma, j = B.challenge, w = B.response;
                this.gamma = I, this.challenge = j, this.response = w;
            }
            return h.prototype.toHash = function() {
                return (0, o.vrf10_proof_to_hash)(this);
            }, h.generate = function(B, I, j) {
                return new h((0, o.vrf10_ed25519_sha512_ell2_generate_proof)(B, I, j));
            }, h.verify = function(B, I, j) {
                return (0, o.vrf10_ed25519_sha512_ell2_verify_proof)(B, I, j);
            }, h.prototype.verify = function(B, I) {
                return (0, o.vrf10_ed25519_sha512_ell2_verify_proof)(B, I, this);
            }, h.prototype.toBytes = function() {
                var B = new Uint8Array(80);
                return B.set(this.gamma.compress(), 0), B.set(this.challenge.slice(0, 16), 32), B.set(this.response, 48), B;
            }, h.fromBytes = function(B) {
                var I = t.EdwardsPoint.decompress(Uint8Array.prototype.slice.call(B, 0, 32));
                if (!I) throw new Error("Invalid gamma point");
                var j = new Uint8Array(32);
                j.set(Uint8Array.prototype.slice.call(B, 32, 48), 0);
                var w = Uint8Array.prototype.slice.call(B, 48, 80);
                return new h({
                    gamma: I,
                    challenge: j,
                    response: w
                });
            }, h;
        })();
        Mn.VrfProof10 = u;
        var l = (function() {
            function h(B) {
                var I = B.gamma, j = B.u_point, w = B.v_point, S = B.response;
                this.gamma = I, this.u_point = j, this.v_point = w, this.response = S;
            }
            return h.prototype.toHash = function() {
                return (0, _.vrf10_batch_ed25519_sha512_ell2_proof_to_hash)(this);
            }, h.generate = function(B, I, j) {
                return new h((0, _.vrf10_batch_ed25519_sha512_ell2_generate_proof)(B, I, j));
            }, h.verify = function(B, I, j) {
                return (0, _.vrf10_batch_ed25519_sha512_ell2_verify_proof)(B, I, j);
            }, h.prototype.verify = function(B, I) {
                return (0, _.vrf10_batch_ed25519_sha512_ell2_verify_proof)(B, I, this);
            }, h.prototype.toBytes = function() {
                var B = new Uint8Array(128);
                return B.set(this.gamma.compress(), 0), B.set(this.u_point.compress(), 32), B.set(this.v_point.compress(), 64), B.set(this.response, 96), B;
            }, h.fromBytes = function(B) {
                var I = t.EdwardsPoint.decompress(Uint8Array.prototype.slice.call(B, 0, 32));
                if (!I) throw new Error("Invalid gamma point");
                var j = t.EdwardsPoint.decompress(Uint8Array.prototype.slice.call(B, 32, 64));
                if (!j) throw new Error("Invalid u_point point");
                var w = t.EdwardsPoint.decompress(Uint8Array.prototype.slice.call(B, 64, 96));
                if (!w) throw new Error("Invalid v_point point");
                var S = Uint8Array.prototype.slice.call(B, 96, 128);
                return new h({
                    gamma: I,
                    u_point: j,
                    v_point: w,
                    response: S
                });
            }, h;
        })();
        Mn.VrfBatchProof10 = l;
        function f() {
            var h = new Uint8Array(16);
            return (0, a.getRandomValues)(h), h;
        }
        var p = (function() {
            function h(B) {
                this.size = B, this._currLen = 0, this.proof_scalars = new Array(B), this.pks = new Array(B), this.us = new Array(B), this.hs = new Array(B), this.gammas = new Array(B), this.vs = new Array(B), this._currLen = 0;
            }
            return h.prototype.insert = function(B) {
                if (this._currLen >= this.size) throw new Error("BatchVerifier is full");
                B.proof.toHash();
                var I = t.EdwardsPoint.decompress(B.public_key);
                if (!I || I.is_small_order()) throw new Error("Invalid public key");
                var j = (0, o.vrf10_ed25519_sha512_ell2_hash_to_curve)(B.public_key, B.alpha), w = j.compress(), S = B.proof.gamma, b = S.compress(), k = B.proof.u_point, F = k.compress(), Y = B.proof.v_point, K = Y.compress();
                this.proof_scalars[this._currLen] = [
                    (0, o.vrf10_ed25519_sha512_ell2_compute_challenge)(w, b, F, K),
                    B.proof.response
                ], this.pks[this._currLen] = I, this.us[this._currLen] = k, this.hs[this._currLen] = j, this.gammas[this._currLen] = S, this.vs[this._currLen] = Y, this._currLen++;
            }, h.prototype.verify = function() {
                for(var B = this._currLen, I = g(), j = new Array(B), w = new Array(B), S = new Array(B), b = new Array(B), k = new Array(B), F = 0; F < B; F++){
                    var Y = n(this.proof_scalars[F], 2), K = Y[0], J = Y[1], P = new Uint8Array(32);
                    P.set(f(), 0);
                    var T = new Uint8Array(32);
                    T.set(f(), 0), I = (0, t.add_scalars)(I, (0, t.mul_scalars)(P, J)), j[F] = (0, t.mul_scalars)(P, K), S[F] = P, k[F] = (0, t.mul_scalars)(T, (0, t.negate_scalar)(J)), w[F] = (0, t.mul_scalars)(T, K), b[F] = T;
                }
                var E = t.EdwardsPoint.vartime_multiscalar_mul([
                    (0, t.negate_scalar)(I)
                ].concat(j).concat(S).concat(k).concat(w).concat(b), [
                    t.EdwardsPoint.BASEPOINT_ED25519
                ].concat(this.pks).concat(this.us).concat(this.hs).concat(this.gammas).concat(this.vs));
                return E.is_identity();
            }, h;
        })();
        Mn.VrfBatchVerifier = p;
        function g() {
            return new Uint8Array(32);
        }
        return Mn;
    }
    var Nf = {}, Vo = {}, XI;
    function jIt() {
        if (XI) return Vo;
        XI = 1;
        var n = Vo && Vo.__extends || (function() {
            var K = function(J, P) {
                return K = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(T, E) {
                    T.__proto__ = E;
                } || function(T, E) {
                    for(var N in E)Object.prototype.hasOwnProperty.call(E, N) && (T[N] = E[N]);
                }, K(J, P);
            };
            return function(J, P) {
                if (typeof P != "function" && P !== null) throw new TypeError("Class extends value " + String(P) + " is not a constructor or null");
                K(J, P);
                function T() {
                    this.constructor = J;
                }
                J.prototype = P === null ? Object.create(P) : (T.prototype = P.prototype, new T);
            };
        })(), t = Vo && Vo.__values || function(K) {
            var J = typeof Symbol == "function" && Symbol.iterator, P = J && K[J], T = 0;
            if (P) return P.call(K);
            if (K && typeof K.length == "number") return {
                next: function() {
                    return K && T >= K.length && (K = void 0), {
                        value: K && K[T++],
                        done: !K
                    };
                }
            };
            throw new TypeError(J ? "Object is not iterable." : "Symbol.iterator is not defined.");
        }, e, o;
        Object.defineProperty(Vo, "__esModule", {
            value: !0
        }), Vo.RIPEMD160 = void 0;
        for(var _ = wh(), a = $i(), c = new Uint8Array([
            7,
            4,
            13,
            1,
            10,
            6,
            15,
            3,
            12,
            0,
            9,
            5,
            2,
            14,
            11,
            8
        ]), s = new Uint8Array(new Array(16).fill(0).map(function(K, J) {
            return J;
        })), u = s.map(function(K) {
            return (9 * K + 5) % 16;
        }), l = [
            s
        ], f = [
            u
        ], p = 0; p < 4; p++)try {
            for(var g = (e = void 0, t([
                l,
                f
            ])), h = g.next(); !h.done; h = g.next()){
                var B = h.value;
                B.push(B[p].map(function(K) {
                    return c[K];
                }));
            }
        } catch (K) {
            e = {
                error: K
            };
        } finally{
            try {
                h && !h.done && (o = g.return) && o.call(g);
            } finally{
                if (e) throw e.error;
            }
        }
        var I = [
            [
                11,
                14,
                15,
                12,
                5,
                8,
                7,
                9,
                11,
                13,
                14,
                15,
                6,
                7,
                9,
                8
            ],
            [
                12,
                13,
                11,
                15,
                6,
                9,
                9,
                7,
                12,
                15,
                11,
                13,
                7,
                8,
                7,
                7
            ],
            [
                13,
                15,
                14,
                11,
                7,
                7,
                6,
                8,
                13,
                14,
                13,
                12,
                5,
                5,
                6,
                9
            ],
            [
                14,
                11,
                12,
                14,
                8,
                6,
                5,
                5,
                15,
                12,
                15,
                14,
                9,
                9,
                8,
                6
            ],
            [
                15,
                12,
                13,
                13,
                9,
                5,
                8,
                6,
                14,
                11,
                12,
                11,
                8,
                6,
                5,
                5
            ]
        ].map(function(K) {
            return new Uint8Array(K);
        }), j = l.map(function(K, J) {
            return K.map(function(P) {
                return I[J][P];
            });
        }), w = f.map(function(K, J) {
            return K.map(function(P) {
                return I[J][P];
            });
        }), S = new Uint32Array([
            0,
            1518500249,
            1859775393,
            2400959708,
            2840853838
        ]), b = new Uint32Array([
            1352829926,
            1548603684,
            1836072691,
            2053994217,
            0
        ]);
        function k(K, J, P, T) {
            return K === 0 ? J ^ P ^ T : K === 1 ? J & P | ~J & T : K === 2 ? (J | ~P) ^ T : K === 3 ? J & T | P & ~T : J ^ (P | ~T);
        }
        var F = new Uint32Array(16), Y = (function(K) {
            n(J, K);
            function J() {
                var P = K.call(this, 64, 20, 8, !0) || this;
                return P.h0 = 1732584193, P.h1 = -271733879, P.h2 = -1732584194, P.h3 = 271733878, P.h4 = -1009589776, P;
            }
            return J.prototype.get = function() {
                var P = this, T = P.h0, E = P.h1, N = P.h2, y = P.h3, O = P.h4;
                return [
                    T,
                    E,
                    N,
                    y,
                    O
                ];
            }, J.prototype.set = function(P, T, E, N, y) {
                this.h0 = P | 0, this.h1 = T | 0, this.h2 = E | 0, this.h3 = N | 0, this.h4 = y | 0;
            }, J.prototype.process = function(P, T) {
                for(var E = 0; E < 16; E++, T += 4)F[E] = P.getUint32(T, !0);
                for(var N = this.h0 | 0, y = N, O = this.h1 | 0, m = O, R = this.h2 | 0, v = R, A = this.h3 | 0, X = A, C = this.h4 | 0, H = C, U = 0; U < 5; U++){
                    for(var L = 4 - U, q = S[U], V = b[U], Q = l[U], Z = f[U], tt = j[U], rt = w[U], E = 0; E < 16; E++){
                        var at = (0, a.rotl)(N + k(U, O, R, A) + F[Q[E]] + q, tt[E]) + C | 0;
                        N = C, C = A, A = (0, a.rotl)(R, 10) | 0, R = O, O = at;
                    }
                    for(var E = 0; E < 16; E++){
                        var ut = (0, a.rotl)(y + k(L, m, v, X) + F[Z[E]] + V, rt[E]) + H | 0;
                        y = H, H = X, X = (0, a.rotl)(v, 10) | 0, v = m, m = ut;
                    }
                }
                this.set(this.h1 + R + X | 0, this.h2 + A + H | 0, this.h3 + C + y | 0, this.h4 + N + m | 0, this.h0 + O + v | 0);
            }, J.prototype.roundClean = function() {
                F.fill(0);
            }, J.prototype.destroy = function() {
                this.destroyed = !0, this.buffer.fill(0), this.set(0, 0, 0, 0, 0);
            }, J;
        })(_.HashMD);
        return Vo.RIPEMD160 = Y, Vo;
    }
    var QI;
    function SIt() {
        if (QI) return Nf;
        QI = 1, Object.defineProperty(Nf, "__esModule", {
            value: !0
        }), Nf.ripemd160 = void 0;
        var n = ve(), t = jIt();
        function e(_) {
            return typeof _ == "string" && (_.startsWith("0x") ? _ = (0, n.fromHex)(_.toLowerCase().slice(2)) : o(_) ? _ = (0, n.fromHex)(_.toLowerCase()) : _ = (0, n.fromUtf8)(_)), _ instanceof Uint8Array || (_ = new Uint8Array(_)), new t.RIPEMD160().update(_).digest();
        }
        Nf.ripemd160 = e;
        function o(_) {
            return /^[0-9A-Fa-f]*$/.test(_);
        }
        return Nf;
    }
    var $I;
    function m0() {
        return $I || ($I = 1, (function(n) {
            var t = wd && wd.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = wd && wd.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(rIt(), n), e(nIt(), n), e(uIt(), n), e(fIt(), n), e(gIt(), n), e(pIt(), n), e(yIt(), n), e(hIt(), n), e(fp(), n), e(vIt(), n), e(gl(), n), e(mIt(), n), e(xIt(), n), e(SIt(), n);
        })(wd)), wd;
    }
    var t8;
    function I0() {
        if (t8) return sn;
        t8 = 1, Object.defineProperty(sn, "__esModule", {
            value: !0
        }), sn.isConstValueList = sn.canConstValueBeOfConstType = sn.inferConstTypeFromConstValueOrDefault = sn.inferConstTypeFromConstValue = sn.eqConstValue = sn.isConstValue = sn.isConstValueInt = void 0;
        var n = vc(), t = Ll(), e = Kl(), o = zl(), _ = ve(), a = Xi(), c = m0();
        function s(B) {
            return typeof B == "bigint" || typeof B == "number" && Number.isSafeInteger(B);
        }
        sn.isConstValueInt = s;
        function u(B) {
            return B === void 0 || s(B) || B instanceof n.ByteString && n.ByteString.isStrictInstance(B) || typeof B == "string" || typeof B == "boolean" || h(B) || t.Pair.isStrictInstance(B) && u(B.fst) && u(B.snd) || (0, e.isData)(B) || (0, c.isBlsG1)(B) || (0, c.isBlsG2)(B) || (0, c.isBlsResult)(B);
        }
        sn.isConstValue = u;
        function l(B, I) {
            return B === void 0 ? I === void 0 : u(B) || u(I) ? typeof B == "number" || typeof B == "bigint" ? (typeof I == "number" || typeof I == "bigint") && BigInt(B) === BigInt(I) : B instanceof n.ByteString ? I instanceof n.ByteString && (0, _.uint8ArrayEq)(B.toBuffer(), I.toBuffer()) : typeof B == "string" ? typeof I == "string" && B === I : typeof B == "boolean" ? typeof I == "boolean" && B === I : (0, c.isBlsG1)(B) ? (0, c.isBlsG1)(I) && (0, c.bls12_381_G1_equal)(B, I) : (0, c.isBlsG2)(B) ? (0, c.isBlsG2)(I) && (0, c.bls12_381_G2_equal)(B, I) : (0, c.isBlsResult)(B) ? (0, c.isBlsResult)(I) && (0, c.bls12_381_eqMlResult)(B, I) : (0, e.isData)(B) ? (0, e.isData)(I) && (0, e.eqData)(B, I) : B instanceof t.Pair ? I instanceof t.Pair && l(B.fst, I.fst) && l(B.snd, I.snd) : Array.isArray(B) ? Array.isArray(I) && B.length === I.length && B.every(function(j, w) {
                return l(j, I[w]);
            }) : !1 : !1;
        }
        sn.eqConstValue = l;
        function f(B) {
            if ((0, a.assert)(u(B), "'inferConstTypeFromConstValue' expects a valid 'ConstValue' type, input was: " + B), B === void 0) return o.constT.unit;
            if (s(B)) return o.constT.int;
            if (B instanceof n.ByteString && n.ByteString.isStrictInstance(B)) return o.constT.byteStr;
            if (typeof B == "string") return o.constT.str;
            if (typeof B == "boolean") return o.constT.bool;
            if ((0, c.isBlsG1)(B)) return o.constT.bls12_381_G1_element;
            if ((0, c.isBlsG2)(B)) return o.constT.bls12_381_G2_element;
            if ((0, c.isBlsResult)(B)) return o.constT.bls12_381_MlResult;
            if (Array.isArray(B)) {
                if (B.length === 0) return;
                for(var I = void 0, j = 0; j < B.length && I === void 0; j++)I = f(B[j]);
                return I === void 0 ? void 0 : ((0, a.assert)(B.every(function(b) {
                    return g(b, I);
                }), "'inferConstTypeFromConstValue': incongruent elements of constant list"), o.constT.listOf(I));
            }
            if (B instanceof t.Pair && t.Pair.isStrictInstance(B)) {
                var w = f(B.fst);
                if (w === void 0) return;
                var S = f(B.snd);
                return S === void 0 ? void 0 : o.constT.pairOf(w, S);
            }
            if ((0, e.isData)(B)) return o.constT.data;
            throw new Error("'inferConstTypeFromConstValue' did not match any possible value");
        }
        sn.inferConstTypeFromConstValue = f;
        function p(B, I) {
            var j, w = f(B);
            return w !== void 0 ? w : ((0, a.assert)((0, o.isWellFormedConstType)(I), "the provided 'defaultTy' is not a well formed constant type; try using the exported 'constT' object to be sure it is well formed"), (0, a.assert)(g(B, I), "the provided default ConstType is not adeguate for the provided ConstValue, given inputs: [ " + ((j = B?.toString()) !== null && j !== void 0 ? j : "undefined") + " , " + (0, o.constTypeToStirng)(I) + " ]"), I);
        }
        sn.inferConstTypeFromConstValueOrDefault = p;
        function g(B, I) {
            if (!(0, o.isWellFormedConstType)(I)) return !1;
            if ((0, o.constTypeEq)(I, o.constT.unit)) return B === void 0;
            if ((0, o.constTypeEq)(I, o.constT.bool)) return typeof B == "boolean";
            if ((0, o.constTypeEq)(I, o.constT.byteStr)) return B instanceof n.ByteString && n.ByteString.isStrictInstance(B);
            if ((0, o.constTypeEq)(I, o.constT.data)) return B === void 0 ? !1 : (0, e.isData)(B);
            if ((0, o.constTypeEq)(I, o.constT.int)) return s(B);
            if ((0, o.constTypeEq)(I, o.constT.str)) return typeof B == "string";
            if ((0, o.constTypeEq)(I, o.constT.bls12_381_G1_element)) return (0, c.isBlsG1)(B);
            if ((0, o.constTypeEq)(I, o.constT.bls12_381_G2_element)) return (0, c.isBlsG2)(B);
            if ((0, o.constTypeEq)(I, o.constT.bls12_381_MlResult)) return (0, c.isBlsResult)(B);
            if (I[0] === o.ConstTyTag.list) return Array.isArray(B) && B.every(function(j) {
                return g(j, o.constListTypeUtils.getTypeArgument(I));
            });
            if (I[0] === o.ConstTyTag.pair) return B instanceof t.Pair && t.Pair.isStrictInstance(B) && g(B.fst, o.constPairTypeUtils.getFirstTypeArgument(I)) && g(B.snd, o.constPairTypeUtils.getSecondTypeArgument(I));
            throw new Error("'canConstValueBeOfConstType' did not match any type tag");
        }
        sn.canConstValueBeOfConstType = g;
        function h(B) {
            if (!Array.isArray(B)) return !1;
            if (B.length === 0) return !0;
            for(var I = void 0, j = 0; j < B.length && I === void 0; j++)I = f(B[j]);
            function w(S) {
                return Array.isArray(S) ? S.every(function(b) {
                    return Array.isArray(b) && b.length === 0 || w(b);
                }) : !1;
            }
            return I === void 0 ? w(B) : B.every(function(S) {
                return g(S, I);
            });
        }
        return sn.isConstValueList = h, sn;
    }
    var e8;
    function gp() {
        if (e8) return uf;
        e8 = 1, Object.defineProperty(uf, "__esModule", {
            value: !0
        }), uf.UPLCConst = void 0;
        var n = f_(), t = Ll(), e = zl(), o = I0(), _ = Xi(), a = (function() {
            function c(s, u) {
                (0, _.assert)((0, e.isWellFormedConstType)(s), "trying to construct an UPLC constant with an invalid type; input type: " + (0, e.constTypeToStirng)(s)), (0, _.assert)((0, o.canConstValueBeOfConstType)(u, s), 'trying to construct an UPLC constant with an invalid value for type "'.concat((0, e.constTypeToStirng)(s), `";
             input value was: `).concat(u)), (0, e.constTypeEq)(s, e.constT.int) && (u = BigInt(u)), (0, e.constTypeEq)(s, e.constT.listOf(e.constT.int)) && (u = u.map(function(l) {
                    return BigInt(l);
                })), s[0] === e.ConstTyTag.pair && ((0, e.constTypeEq)(e.constPairTypeUtils.getFirstTypeArgument(s), e.constT.int) && (u.fst = BigInt(u.fst)), (0, e.constTypeEq)(e.constPairTypeUtils.getSecondTypeArgument(s), e.constT.int) && (u.snd = BigInt(u.snd))), this._type = s, this._value = u;
            }
            return Object.defineProperty(c, "UPLCTag", {
                get: function() {
                    return n.BitStream.fromBinStr("0100");
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(c.prototype, "type", {
                get: function() {
                    return this._type.map(function(s) {
                        return s;
                    });
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(c.prototype, "value", {
                get: function() {
                    return this._value;
                },
                enumerable: !1,
                configurable: !0
            }), c.prototype.clone = function() {
                return new c(this.type, this.value);
            }, c.int = function(s) {
                return s = BigInt(s), new c(e.constT.int, s);
            }, c.byteString = function(s) {
                return new c(e.constT.byteStr, s);
            }, c.str = function(s) {
                return new c(e.constT.str, s);
            }, Object.defineProperty(c, "unit", {
                get: function() {
                    return new c(e.constT.unit, void 0);
                },
                enumerable: !1,
                configurable: !0
            }), c.bool = function(s) {
                return new c(e.constT.bool, s);
            }, c.listOf = function(s) {
                return function(u) {
                    return new c(e.constT.listOf(s), u);
                };
            }, c.pairOf = function(s, u) {
                return function(l, f) {
                    return new c(e.constT.pairOf(s, u), new t.Pair(l, f));
                };
            }, c.data = function(s) {
                return new c(e.constT.data, s);
            }, c.bls12_381_G1_element = function(s) {
                return new c(e.constT.bls12_381_G1_element, s);
            }, c.bls12_381_G2_element = function(s) {
                return new c(e.constT.bls12_381_G2_element, s);
            }, c.bls12_381_MlResult = function(s) {
                return new c(e.constT.bls12_381_MlResult, s);
            }, c;
        })();
        return uf.UPLCConst = a, uf;
    }
    var Mf = {}, r8;
    function pp() {
        if (r8) return Mf;
        r8 = 1, Object.defineProperty(Mf, "__esModule", {
            value: !0
        }), Mf.ErrorUPLC = void 0;
        var n = f_(), t = (function() {
            function e(o, _) {
                this.msg = o, this.addInfos = _;
            }
            return Object.defineProperty(e, "UPLCTag", {
                get: function() {
                    return n.BitStream.fromBinStr("0110");
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.clone = function() {
                return new e(this.msg, this.addInfos);
            }, e;
        })();
        return Mf.ErrorUPLC = t, Mf;
    }
    var n8;
    function bp() {
        if (n8) return jo;
        n8 = 1, Object.defineProperty(jo, "__esModule", {
            value: !0
        }), jo.isUPLCForce = jo.Force = jo.isForceableTerm = void 0;
        var n = x0(), t = ep(), e = Cl(), o = Nl(), _ = wp(), a = gp(), c = pp(), s = Ml(), u = f_();
        function l(g) {
            return (0, n.isUPLCTerm)(g) ? g instanceof e.UPLCVar || g instanceof t.Delay ? !0 : g instanceof o.Lambda ? !1 : g instanceof _.Application ? !0 : g instanceof a.UPLCConst ? !1 : g instanceof f ? !0 : (g instanceof c.ErrorUPLC || g instanceof s.Builtin, !1) : !1;
        }
        jo.isForceableTerm = l;
        var f = (function() {
            function g(h) {
                this.termToForce = h;
            }
            return Object.defineProperty(g, "UPLCTag", {
                get: function() {
                    return u.BitStream.fromBinStr("0101");
                },
                enumerable: !1,
                configurable: !0
            }), g.prototype.clone = function() {
                return new g(this.termToForce.clone());
            }, g;
        })();
        jo.Force = f;
        function p(g) {
            return Object.getPrototypeOf(g) === f.prototype;
        }
        return jo.isUPLCForce = p, jo;
    }
    var _8;
    function wp() {
        if (_8) return Rc;
        _8 = 1, Object.defineProperty(Rc, "__esModule", {
            value: !0
        }), Rc.Application = Rc.isUPLCApplicationBody = void 0;
        var n = Cl(), t = Nl(), e = Ml(), o = bp(), _ = f_();
        function a(s) {
            var u = Object.getPrototypeOf(s);
            return u === n.UPLCVar.prototype || u === t.Lambda.prototype || u === c.prototype || u === o.Force.prototype || u === e.Builtin.prototype;
        }
        Rc.isUPLCApplicationBody = a;
        var c = (function() {
            function s(u, l) {
                this.funcTerm = u, this.argTerm = l;
            }
            return Object.defineProperty(s, "UPLCTag", {
                get: function() {
                    return _.BitStream.fromBinStr("0011");
                },
                enumerable: !1,
                configurable: !0
            }), s.prototype.clone = function() {
                return new s(this.funcTerm.clone(), this.argTerm.clone());
            }, s;
        })();
        return Rc.Application = c, Rc;
    }
    var Lf = {}, a8;
    function k0() {
        if (a8) return Lf;
        a8 = 1, Object.defineProperty(Lf, "__esModule", {
            value: !0
        }), Lf.Constr = void 0;
        var n = f_(), t = (function() {
            function e(o, _) {
                this.index = BigInt(o), this.terms = _;
            }
            return Object.defineProperty(e, "UPLCTag", {
                get: function() {
                    return n.BitStream.fromBinStr("1000");
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.clone = function() {
                return new e(this.index, this.terms.map(function(o) {
                    return o.clone();
                }));
            }, e;
        })();
        return Lf.Constr = t, Lf;
    }
    var zf = {}, o8;
    function B0() {
        if (o8) return zf;
        o8 = 1, Object.defineProperty(zf, "__esModule", {
            value: !0
        }), zf.Case = void 0;
        var n = f_(), t = (function() {
            function e(o, _) {
                this.constrTerm = o, this.continuations = _;
            }
            return Object.defineProperty(e, "UPLCTag", {
                get: function() {
                    return n.BitStream.fromBinStr("1001");
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.clone = function() {
                return new e(this.constrTerm.clone(), this.continuations.map(function(o) {
                    return o.clone();
                }));
            }, e;
        })();
        return zf.Case = t, zf;
    }
    var i8;
    function x0() {
        if (i8) return We;
        i8 = 1, Object.defineProperty(We, "__esModule", {
            value: !0
        }), We.eqUPLCTerm = We.getUPLCVarRefsInTerm = We.hasMultipleRefsInTerm = We.hasAnyRefsInTerm = We.prettyUPLC = We.showUPLC = We.showConstType = We.showUPLCConstValue = We.isClosedTerm = We.isPureUPLCTerm = We.isUPLCTerm = void 0;
        var n = Cl(), t = ep(), e = Nl(), o = wp(), _ = gp(), a = bp(), c = pp(), s = Ml(), u = zl(), l = rp(), f = I0(), p = vc(), g = Ll(), h = Kl(), B = Xi(), I = k0(), j = B0(), w = m0(), S = ve();
        function b(C) {
            return C instanceof n.UPLCVar || C instanceof t.Delay || C instanceof e.Lambda || C instanceof o.Application || C instanceof _.UPLCConst || C instanceof a.Force || C instanceof c.ErrorUPLC || C instanceof s.Builtin || C instanceof I.Constr || C instanceof j.Case;
        }
        We.isUPLCTerm = b;
        function k(C) {
            return b(C) ? C instanceof n.UPLCVar ? !0 : C instanceof t.Delay ? k(C.delayedTerm) : C instanceof e.Lambda ? k(C.body) : C instanceof o.Application ? k(C.argTerm) && k(C.funcTerm) : C instanceof _.UPLCConst ? !0 : C instanceof a.Force ? k(C.termToForce) : C instanceof c.ErrorUPLC || C instanceof s.Builtin ? !0 : C instanceof I.Constr ? C.terms.every(k) : C instanceof j.Case ? k(C.constrTerm) && C.continuations.every(k) : !1 : !1;
        }
        We.isPureUPLCTerm = k;
        function F(C, H) {
            if ((0, B.assert)(b(H), "'isClosedTerm' functions only works on **raw** UPLCTerms"), H instanceof n.UPLCVar) return C > H.deBruijn;
            if (H instanceof t.Delay) return F(C, H.delayedTerm);
            if (H instanceof e.Lambda) return F(C + BigInt(1), H.body);
            if (H instanceof o.Application) return F(C, H.funcTerm) && F(C, H.argTerm);
            if (H instanceof _.UPLCConst) return !0;
            if (H instanceof a.Force) return F(C, H.termToForce);
            if (H instanceof c.ErrorUPLC) return !0;
            if (H instanceof s.Builtin) return !0;
            if (H instanceof I.Constr) return H.terms.every(function(U) {
                return F(C, U);
            });
            if (H instanceof j.Case) return F(C, H.constrTerm) && H.continuations.every(function(U) {
                return F(C, U);
            });
            throw new Error("unexpected execution flow in 'isClodeTerm'; all possibilieties should have already been handled; input term is: " + H.toString());
        }
        function Y(C) {
            return F(BigInt(0), C);
        }
        We.isClosedTerm = Y;
        function K(C) {
            if (C === void 0) return "()";
            if ((0, f.isConstValueInt)(C)) return C.toString();
            if (typeof C == "string") return '"'.concat(C, '"');
            if (typeof C == "boolean") return C ? "True" : "False";
            if (C instanceof p.ByteString) return "#" + C.toString();
            if ((0, h.isData)(C)) return C.toString();
            if ((0, w.isBlsG1)(C)) return "0x".concat((0, S.toHex)((0, w.bls12_381_G1_compress)(C)));
            if ((0, w.isBlsG2)(C)) return "0x".concat((0, S.toHex)((0, w.bls12_381_G2_compress)(C)));
            if ((0, w.isBlsResult)(C)) return JSON.stringify(C, function(H, U) {
                return typeof U == "bigint" ? U.toString() : U;
            });
            if (Array.isArray(C)) return "[" + C.map(K).join(",") + "]";
            if (C instanceof g.Pair) return "(".concat(K(C.fst), ",").concat(K(C.snd), ")");
            throw new Error("'showUPLCConstValue' did not matched any possible constant value");
        }
        We.showUPLCConstValue = K;
        function J(C) {
            return C[0] === u.ConstTyTag.list ? "(list ".concat(J(u.constListTypeUtils.getTypeArgument(C)), ")") : C[0] === u.ConstTyTag.pair ? "(pair ".concat(J(u.constPairTypeUtils.getFirstTypeArgument(C)), " ").concat(J(u.constPairTypeUtils.getSecondTypeArgument(C)), ")") : (0, u.constTypeToStirng)(C);
        }
        We.showConstType = J;
        var P = "abcdefghilmopqrstuvzwxyjkABCDEFGHILJMNOPQRSTUVZWXYJK".split("");
        function T(C) {
            return C < 0 ? "(".concat(C, ")") : C < P.length ? P[C] : P[Math.floor(C / P.length)] + T(C - P.length);
        }
        function E(C, H) {
            if (C instanceof n.UPLCVar) return T(H - 1 - Number(C.deBruijn));
            if (C instanceof t.Delay) return "(delay ".concat(E(C.delayedTerm, H), ")");
            if (C instanceof e.Lambda) return "(lam ".concat(T(H), " ").concat(E(C.body, H + 1), ")");
            if (C instanceof o.Application) return "[".concat(E(C.funcTerm, H), " ").concat(E(C.argTerm, H), "]");
            if (C instanceof _.UPLCConst) return "(con ".concat(J(C.type), " ").concat(K(C.value), ")");
            if (C instanceof a.Force) return "(force ".concat(E(C.termToForce, H), ")");
            if (C instanceof c.ErrorUPLC) return "(error)";
            if (C instanceof s.Builtin) {
                var U = (0, l.getNRequiredForces)(C.tag);
                return "(force ".repeat(U) + "(builtin ".concat((0, l.builtinTagToString)(C.tag), ")") + ")".repeat(U);
            }
            return C instanceof I.Constr ? "(constr " + C.index.toString() + " " + C.terms.map(function(L) {
                return E(L, H);
            }).join(" ") + ")" : C instanceof j.Case ? "(case " + E(C.constrTerm, H) + " " + C.continuations.map(function(L) {
                return E(L, H);
            }).join(" ") + ")" : "";
        }
        function N(C) {
            return E(C, 0);
        }
        We.showUPLC = N;
        function y(C, H) {
            if (H === void 0 && (H = 2), !Number.isSafeInteger(H) || H < 1) return N(C);
            var U = " ".repeat(H);
            function L(V) {
                return V < 0 ? "(".concat(V, ")") : V < P.length ? P[V] : P[Math.floor(V / P.length)] + L(V - P.length);
            }
            function q(V, Q, Z) {
                var tt = `
`.concat(U.repeat(Z));
                if (V instanceof n.UPLCVar) return tt + L(Q - 1 - Number(V.deBruijn));
                if (V instanceof t.Delay) return "".concat(tt, "(delay ").concat(q(V.delayedTerm, Q, Z + 1)).concat(tt, ")");
                if (V instanceof e.Lambda) return "".concat(tt, "(lam ").concat(L(Q), " ").concat(q(V.body, Q + 1, Z + 1)).concat(tt, ")");
                if (V instanceof o.Application) return "".concat(tt, "[").concat(q(V.funcTerm, Q, Z + 1), " ").concat(q(V.argTerm, Q, Z + 1)).concat(tt, "]");
                if (V instanceof _.UPLCConst) return "".concat(tt, "(con ").concat(J(V.type), " ").concat(K(V.value), ")");
                if (V instanceof a.Force) return "".concat(tt, "(force ").concat(q(V.termToForce, Q, Z + 1)).concat(tt, ")");
                if (V instanceof c.ErrorUPLC) return "(error)";
                if (V instanceof s.Builtin) {
                    var rt = (0, l.getNRequiredForces)(V.tag);
                    return tt + "(force ".repeat(rt) + "(builtin ".concat((0, l.builtinTagToString)(V.tag), ")") + ")".repeat(rt);
                }
                if (V instanceof I.Constr) {
                    if (V.terms.length === 0) return tt + "(constr " + V.index.toString() + ")";
                    var at = tt + U;
                    return tt + "(constr " + V.index.toString() + at + "[" + V.terms.map(function(ut) {
                        return q(ut, Q, Z + 2);
                    }).join(`,
`) + at + "]" + tt + ")";
                }
                if (V instanceof j.Case) {
                    var at = tt + U;
                    return tt + "(case" + q(V.constrTerm, Q, Z + 1) + at + "[" + V.continuations.map(function(bt) {
                        return q(bt, Q, Z + 2);
                    }).join(`,
`) + at + `]
` + tt + ")";
                }
                return "";
            }
            return q(C, 0, 0);
        }
        We.prettyUPLC = y;
        function O(C, H) {
            (0, B.assert)(b(H), "'getUPLCVarRefsInTerm' expects an UPLCTerms");
            var U = BigInt(C);
            if (H instanceof n.UPLCVar) return H.deBruijn === U;
            if (H instanceof t.Delay) return O(U, H.delayedTerm);
            if (H instanceof e.Lambda) return O(U + BigInt(1), H.body);
            if (H instanceof o.Application) return O(U, H.funcTerm) || O(U, H.argTerm);
            if (H instanceof _.UPLCConst) return !1;
            if (H instanceof a.Force) return O(U, H.termToForce);
            if (H instanceof c.ErrorUPLC || H instanceof s.Builtin) return !1;
            if (H instanceof I.Constr) return H.terms.some(function(L) {
                return O(U, L);
            });
            if (H instanceof j.Case) return O(U, H.constrTerm) || H.continuations.some(function(L) {
                return O(U, L);
            });
            throw new Error("'hasAnyRefsInTerm' did not matched any possible 'UPLCTerm' constructor");
        }
        We.hasAnyRefsInTerm = O;
        function m(C, H) {
            (0, B.assert)(b(H), "'getUPLCVarRefsInTerm' expects an UPLCTerms");
            var U = BigInt(C);
            if (H instanceof n.UPLCVar) return !1;
            if (H instanceof t.Delay) return m(U, H.delayedTerm);
            if (H instanceof e.Lambda) return m(U + BigInt(1), H.body);
            if (H instanceof o.Application) return O(U, H.funcTerm) && O(U, H.argTerm) || m(U, H.funcTerm) || m(U, H.argTerm);
            if (H instanceof _.UPLCConst) return !1;
            if (H instanceof a.Force) return m(U, H.termToForce);
            if (H instanceof c.ErrorUPLC || H instanceof s.Builtin) return !1;
            if (H instanceof I.Constr) return R(U, H.terms);
            if (H instanceof j.Case) return O(U, H.constrTerm) && H.continuations.some(function(L) {
                return O(U, L);
            }) || m(U, H.constrTerm) || R(U, H.continuations);
            throw new Error("getUPLCVarRefsInTerm did not matched any possible 'UPLCTerm' constructor");
        }
        We.hasMultipleRefsInTerm = m;
        function R(C, H) {
            var U = H.findIndex(function(L) {
                return O(C, L);
            });
            return U < 0 ? !1 : H.slice(U + 1).some(function(L) {
                return O(C, L);
            }) || H.some(function(L) {
                return m(C, L);
            });
        }
        function v(C, H) {
            return H === void 0 && (H = 0), A(BigInt(H), C, 0);
        }
        We.getUPLCVarRefsInTerm = v;
        function A(C, H, U) {
            if ((0, B.assert)(b(H), "'getUPLCVarRefsInTerm' expects an UPLCTerms"), H instanceof n.UPLCVar) return U + (H.deBruijn === C ? 1 : 0);
            if (H instanceof t.Delay) return A(C, H.delayedTerm, U);
            if (H instanceof e.Lambda) return A(C + BigInt(1), H.body, U);
            if (H instanceof o.Application) return A(C, H.funcTerm, U) + A(C, H.argTerm, U);
            if (H instanceof _.UPLCConst) return U;
            if (H instanceof a.Force) return A(C, H.termToForce, U);
            if (H instanceof c.ErrorUPLC || H instanceof s.Builtin) return U;
            if (H instanceof I.Constr) return H.terms.reduce(function(L, q) {
                return A(C, q, L);
            }, U);
            if (H instanceof j.Case) return H.continuations.reduce(function(L, q) {
                return A(C, q, L);
            }, A(C, H.constrTerm, U));
            throw new Error("getUPLCVarRefsInTerm did not matched any possible 'UPLCTerm' constructor");
        }
        function X(C, H) {
            return C instanceof c.ErrorUPLC ? H instanceof c.ErrorUPLC : C instanceof n.UPLCVar && H instanceof n.UPLCVar ? C.deBruijn === H.deBruijn : C instanceof t.Delay && H instanceof t.Delay ? X(C.delayedTerm, H.delayedTerm) : C instanceof e.Lambda && H instanceof e.Lambda ? X(C.body, H.body) : C instanceof o.Application && H instanceof o.Application ? X(C.argTerm, H.argTerm) && X(C.funcTerm, H.funcTerm) : C instanceof _.UPLCConst && H instanceof _.UPLCConst ? (0, u.constTypeEq)(C.type, H.type) && (0, f.canConstValueBeOfConstType)(C.value, C.type) && (0, f.canConstValueBeOfConstType)(H.value, H.type) && (function() {
                try {
                    return (0, f.eqConstValue)(C.value, H.value);
                } catch (U) {
                    if (U instanceof RangeError) return !1;
                    throw U;
                }
            })() : C instanceof a.Force && H instanceof a.Force ? X(C.termToForce, H.termToForce) : C instanceof s.Builtin && H instanceof s.Builtin ? C.tag === H.tag : C instanceof I.Constr && H instanceof I.Constr ? C.index === H.index && C.terms.length === H.terms.length && C.terms.every(function(U, L) {
                return X(U, H.terms[L]);
            }) : C instanceof j.Case && H instanceof j.Case ? X(C.constrTerm, H.constrTerm) && C.continuations.length === H.continuations.length && C.continuations.every(function(U, L) {
                return X(U, H.continuations[L]);
            }) : !1;
        }
        return We.eqUPLCTerm = X, We;
    }
    var Ya = {}, Tp = {}, s8;
    function EIt() {
        if (s8) return Tp;
        s8 = 1, Object.defineProperty(Tp, "__esModule", {
            value: !0
        });
        var n = (function() {
            function t() {}
            return t.getFirstByte = function(e) {
                return Number("0x".concat(e.toString(16).slice(0, 2)));
            }, t.andMaskOfLengthInt = function(e) {
                return e = Math.round(Math.abs(e)), e >= 30 ? t.andMaskOfLength(BigInt(e)) : BigInt((1 << e) - 1);
            }, t.andMaskOfLength = function(e) {
                return BigInt((BigInt(1) << e) - BigInt(1));
            }, t.getNLastBits = function(e, o) {
                return e & t.andMaskOfLength(o);
            }, t.getNOfUsedBits = function(e) {
                return e === BigInt(0) ? 0 : e.toString(2).length;
            }, t.minBytesRequired = function(e) {
                if (e < BigInt(0)) throw new Error("BitUtils.minBytesRequired works for positives integers only");
                for(var o = BigInt(255), _ = o, a = 1; e !== (e & _);)_ = _ << BigInt(8) | o, a++;
                return a;
            }, t;
        })();
        return Tp.default = n, Tp;
    }
    var c8;
    function u9() {
        if (c8) return Ya;
        c8 = 1;
        var n = Ya && Ya.__assign || function() {
            return n = Object.assign || function(s) {
                for(var u, l = 1, f = arguments.length; l < f; l++){
                    u = arguments[l];
                    for(var p in u)Object.prototype.hasOwnProperty.call(u, p) && (s[p] = u[p]);
                }
                return s;
            }, n.apply(this, arguments);
        }, t = Ya && Ya.__importDefault || function(s) {
            return s && s.__esModule ? s : {
                default: s
            };
        };
        Object.defineProperty(Ya, "__esModule", {
            value: !0
        }), Ya.isInByteOffset = void 0;
        var e = f_(), o = t(EIt()), _ = Xi();
        function a(s) {
            return s === 0 || s === 1 || s === 2 || s === 3 || s === 4 || s === 5 || s === 6 || s === 7;
        }
        Ya.isInByteOffset = a;
        var c = (function() {
            function s() {}
            return s.zigzagBigint = function(u) {
                return u >> BigInt(o.default.getNOfUsedBits(u)) ^ u << BigInt(1);
            }, s.unzigzagBigint = function(u) {
                return u >> BigInt(1) ^ -(u & BigInt(1));
            }, s.encodeBigIntAsVariableLengthBitStream = function(u) {
                if ((0, _.assert)(typeof u == "bigint", "expected a bigint as input; got instance of type: " + typeof u), u === BigInt(0)) return e.BitStream.fromBinStr("00000000");
                (0, _.assert)(u > BigInt(0), "'UPLCFlatUtils.encodeBigIntAsVariableLengthBitStream' can only encode non-negative integers; the given input was: " + u.toString());
                for(var l = [], f = BigInt(127), p = o.default.getNOfUsedBits(u), g = 0; g < p; g += 7)l.push(((u & f) >> BigInt(g)).toString(2).padStart(7, "0")), f = f << BigInt(7);
                for(var h = 0; h < l.length; h++)l[h] = (h === l.length - 1 ? "0" : "1") + l[h];
                return e.BitStream.fromBinStr(l.join(""));
            }, s.getPadBitStream = function(u) {
                return (0, _.assert)(a(u), "addPadTo only works for pads from 0 inclusive to 7 inclusive"), u === 0 ? e.BitStream.fromBinStr("1".padStart(8, "0")) : e.BitStream.fromBinStr("1".padStart(u, "0"));
            }, s.addPadTo = function(u, l) {
                (0, _.assert)(e.BitStream.isStrictInstance(u), "BitStream strict instance expected as first argument in 'UPLCFlatUtils.addPadTo'"), u.append(s.getPadBitStream(l));
            }, Object.defineProperty(s, "padToByteDefaultOptions", {
                get: function() {
                    return Object.freeze({
                        onByteAllignedAddNewByte: !0,
                        withOneAsEndPadding: !0
                    });
                },
                enumerable: !1,
                configurable: !0
            }), s.padToByte = function(u, l) {
                var f = n(n({}, s.padToByteDefaultOptions), l === void 0 ? {} : l), p = u.getNBitsMissingToByte();
                if (p === 0) {
                    f.onByteAllignedAddNewByte && u.append(e.BitStream.fromBinStr((f.withOneAsEndPadding ? "1" : "0").padStart(8, "0")));
                    return;
                }
                u.append(e.BitStream.fromBinStr((f.withOneAsEndPadding ? "1" : "0").padStart(p, "0")));
            }, s;
        })();
        return Ya.default = c, Ya;
    }
    var Tr = {}, Zo = {}, d8;
    function OIt() {
        if (d8) return Zo;
        d8 = 1;
        var n = Zo && Zo.__read || function(o, _) {
            var a = typeof Symbol == "function" && o[Symbol.iterator];
            if (!a) return o;
            var c = a.call(o), s, u = [], l;
            try {
                for(; (_ === void 0 || _-- > 0) && !(s = c.next()).done;)u.push(s.value);
            } catch (f) {
                l = {
                    error: f
                };
            } finally{
                try {
                    s && !s.done && (a = c.return) && a.call(c);
                } finally{
                    if (l) throw l.error;
                }
            }
            return u;
        }, t = Zo && Zo.__spreadArray || function(o, _, a) {
            if (a || arguments.length === 2) for(var c = 0, s = _.length, u; c < s; c++)(u || !(c in _)) && (u || (u = Array.prototype.slice.call(_, 0, c)), u[c] = _[c]);
            return o.concat(u || Array.prototype.slice.call(_));
        };
        Object.defineProperty(Zo, "__esModule", {
            value: !0
        }), Zo.assert = void 0;
        function e(o, _, a) {
            for(var c = [], s = 3; s < arguments.length; s++)c[s - 3] = arguments[s];
            if (!o) throw c.length > 0 && console.error.apply(console, t([], n(c), !1)), a && console.error(a), _ instanceof Error ? _ : new Error(_);
        }
        return Zo.assert = e, Zo;
    }
    var u8;
    function FIt() {
        if (u8) return Tr;
        u8 = 1, Object.defineProperty(Tr, "__esModule", {
            value: !0
        }), Tr.bigintToBuffer = Tr.bigintFromBuffer = Tr.bigintFromBufferLE = Tr.log2 = Tr.min = Tr.max = Tr.random = Tr.abs = void 0;
        var n = ve(), t = OIt();
        function e(f) {
            return f < BigInt(0) ? -f : f;
        }
        Tr.abs = e;
        function o() {
            return BigInt(Math.round(Math.random() * Number.MAX_SAFE_INTEGER));
        }
        Tr.random = o;
        function _() {
            for(var f = [], p = 0; p < arguments.length; p++)f[p] = arguments[p];
            return f.reduce(function(g, h) {
                return g > h ? g : h;
            });
        }
        Tr.max = _;
        function a() {
            for(var f = [], p = 0; p < arguments.length; p++)f[p] = arguments[p];
            return f.reduce(function(g, h) {
                return g < h ? g : h;
            });
        }
        Tr.min = a;
        function c(f) {
            if (f === BigInt(0)) return BigInt(0);
            if (f < BigInt(0)) return -c(e(f));
            for(var p = BigInt(f), g = BigInt(0); p >>= BigInt(1);)g++;
            return g;
        }
        Tr.log2 = c;
        function s(f) {
            return u(Uint8Array.from(f).reverse());
        }
        Tr.bigintFromBufferLE = s;
        function u(f) {
            (0, t.assert)((0, n.isUint8Array)(f), "expected buffer as input, while constructing a bigint instance using bigintFromBufferBE");
            var p = (0, n.toHex)(f);
            return p.length === 0 ? BigInt(0) : BigInt("0x".concat(p));
        }
        Tr.bigintFromBuffer = u;
        function l(f, p) {
            if (p === void 0 && (p = void 0), (0, t.assert)(f >= BigInt(0), "cannot convert negative bigint to buffer"), f == BigInt(0)) return p === void 0 ? Uint8Array.from([]) : new Uint8Array(p);
            var g = f.toString(16);
            return g = g.length % 2 === 0 ? g : "0" + g, p !== void 0 && ((0, t.assert)(Math.round(Math.abs(p)) === p, "cannot construct a buffer of length " + p + ", while using bigintToBufferOfNBytesBE"), g = g.padStart(p * 2, "00"), g.length > p * 2 && (console.warn("required buffer size is smaller than the one used effectively by the given bigint, truncating the initial bytes as overflow"), g = g.slice(g.length - p * 2))), (0, n.fromHex)(g);
        }
        return Tr.bigintToBuffer = l, Tr;
    }
    var cw = {}, l8;
    function AIt() {
        return l8 || (l8 = 1, (function(n) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.UPLCTermTag = void 0;
            var t;
            (function(e) {
                e[e.Var = 0] = "Var", e[e.Delay = 1] = "Delay", e[e.Lambda = 2] = "Lambda", e[e.Application = 3] = "Application", e[e.Const = 4] = "Const", e[e.Force = 5] = "Force", e[e.Error = 6] = "Error", e[e.Builtin = 7] = "Builtin", e[e.Constr = 8] = "Constr", e[e.Case = 9] = "Case";
            })(t = n.UPLCTermTag || (n.UPLCTermTag = {})), Object.freeze(t);
        })(cw)), cw;
    }
    var f8;
    function TIt() {
        if (f8) return vo;
        f8 = 1;
        var n = vo && vo.__importDefault || function(E) {
            return E && E.__esModule ? E : {
                default: E
            };
        };
        Object.defineProperty(vo, "__esModule", {
            value: !0
        }), vo.parseUPLC = vo.UPLCDecoder = void 0;
        var t = Mx(), e = s0(), o = x0(), _ = wp(), a = Ml(), c = rp(), s = ep(), u = pp(), l = bp(), f = Nl(), p = Cl(), g = gp(), h = zl(), B = ve(), I = vc(), j = g0(), w = n(u9()), S = FIt(), b = Kl(), k = Ll(), F = AIt(), Y = k0(), K = B0();
        function J(E) {
            return typeof E == "string" && (E === "flat" || E === "cbor");
        }
        var P = (function() {
            function E() {}
            return E.parse = function(N, y, O) {
                if (y === void 0 && (y = "cbor"), O === void 0 && (O = !1), !J(y)) throw new Error("unknown format: " + y.toString());
                if (y === "cbor") {
                    for(var m = !0, R = void 0; m;){
                        try {
                            R = j.Cbor.parse(N);
                        } catch  {
                            m = !1;
                        }
                        R instanceof j.CborBytes ? N = R.buffer : m = !1;
                    }
                    y = "flat";
                }
                var v = 0, A = N.length, X = "0000000" + (0, S.bigintFromBuffer)(N).toString(2), C = new e.UPLCVersion(pt(), pt(), pt()), H = C.isV3Friendly(), U = 0;
                function L(ft) {
                    v += ft;
                }
                function q(ft) {
                    ft === void 0 && (ft = !1), (ft || O) && "" + JSON.stringify({
                        currPtr: v,
                        bits: "..." + X.slice(v - 16, v + 16) + "...",
                        "ptr ": " ".repeat(19) + "^",
                        currentByteIndex: Z(),
                        partialUPLC: Q
                    }, void 0, 2);
                }
                var V = "abcdefghilmopqrstuvzwxyjkABCDEFGHILJMNOPQRSTUVZWXYJK".split(""), Q = "";
                function Z() {
                    var ft = Math.floor(v / 8);
                    if (ft >= A) throw new Error("pointer out of bound; ptr: " + v + "; n bits: " + A * 8);
                    return ft;
                }
                function tt() {
                    var ft = N.at(Z());
                    if (ft === void 0) throw new Error("pointer out of bound; ptr: " + v + "; n bits: " + A * 8);
                    return ft;
                }
                function rt(ft) {
                    for(var dt = 0, st = Math.round(Math.abs(ft)); st > 0; st--)dt = (dt << 1) + 1;
                    return dt;
                }
                function at(ft, dt) {
                    switch(ft){
                        case 0:
                            return (dt & 128) >> 7;
                        case 1:
                            return (dt & 64) >> 6;
                        case 2:
                            return (dt & 32) >> 5;
                        case 3:
                            return (dt & 16) >> 4;
                        case 4:
                            return (dt & 8) >> 3;
                        case 5:
                            return (dt & 4) >> 2;
                        case 6:
                            return (dt & 2) >> 1;
                        case 7:
                            return dt & 1;
                        default:
                            throw new Error("can't access bit n: " + ft);
                    }
                }
                function ut(ft) {
                    if (ft <= 0) return BigInt(0);
                    var dt = tt(), st = v % 8;
                    if (ft === 1) return L(1), BigInt(at(st, dt));
                    var wt = 8 - st, It = wt - ft;
                    if (ft <= wt) return L(ft), BigInt((dt & rt(ft) << It) >> It);
                    L(wt);
                    for(var Ot = BigInt(dt & rt(wt)), St = ft - wt, Ft = 0; (Ft + 1) * 8 < St; Ft++)Ot = Ot << BigInt(8) & BigInt(tt()), L(8);
                    return St = St - Ft * 8, St === 0 ? Ot : Ot << BigInt(St) | ut(St);
                }
                function bt() {
                    for(; Number(ut(1)) !== 1;);
                    if (v % 8 !== 0) throw new Error("padding was not alligned to byte; currPtr was: " + v + "; currPtr % 8: " + v % 8);
                }
                function pt() {
                    var ft = BigInt(0), dt = !0, st = 0;
                    do {
                        var wt = ut(8);
                        dt = (wt & BigInt(128)) === BigInt(0), ft = ft | (wt & BigInt(127)) << BigInt(st * 7), st++;
                    }while (!dt);
                    return ft;
                }
                function ot() {
                    return w.default.unzigzagBigint(pt());
                }
                function gt() {
                    var ft;
                    q();
                    var dt = Number(ut(4));
                    switch(dt){
                        case F.UPLCTermTag.Var:
                            var st = pt(), wt = Number(st), It = U - (wt - 1);
                            return Q += (ft = V[It]) !== null && ft !== void 0 ? ft : "(".concat(It.toString(), ")"), new p.UPLCVar(st - BigInt(1));
                        case F.UPLCTermTag.Delay:
                            Q += "(delay ";
                            var Ot = gt();
                            return Q += ")", new s.Delay(Ot);
                        case F.UPLCTermTag.Lambda:
                            Q += "(lam " + V[U] + " ", U++;
                            var St = gt();
                            return U--, Q += ")", new f.Lambda(St);
                        case F.UPLCTermTag.Application:
                            Q += "[";
                            var Ft = gt();
                            Q += " ";
                            var Ct = gt();
                            return Q += "]", new _.Application(Ft, Ct);
                        case F.UPLCTermTag.Const:
                            return G();
                        case F.UPLCTermTag.Force:
                            Q += "(force ";
                            var Ut = gt();
                            return Q += ")", Ut instanceof a.Builtin ? Ut : Ut instanceof l.Force && Ut.termToForce instanceof a.Builtin ? Ut.termToForce : new l.Force(Ut);
                        case F.UPLCTermTag.Error:
                            return Q += "(error)", new u.ErrorUPLC;
                        case F.UPLCTermTag.Builtin:
                            var Gt = Number(ut(7));
                            return Q += "(builtin ".concat((0, c.builtinTagToString)(Gt), ")"), new a.Builtin(Gt);
                        case F.UPLCTermTag.Constr:
                            {
                                if (!H) throw new Error("found 'constr' node in uplc version " + C.toString() + "; lowest supported version is 1.1.0");
                                return new Y.Constr(pt(), W());
                            }
                        case F.UPLCTermTag.Case:
                            {
                                if (!H) throw new Error("found 'case' node in uplc version " + C.toString() + "; lowest supported version is 1.1.0");
                                return new K.Case(gt(), W());
                            }
                        default:
                            throw new Error("unknown tag: " + dt + "; partialUPLC == " + Q);
                    }
                }
                function W() {
                    for(var ft = [], dt = Number(ut(1)); dt !== 0; dt = Number(ut(1)))ft.push(gt());
                    return ft;
                }
                function G() {
                    q();
                    var ft = et();
                    if ((0, h.constTypeEq)(ft, h.constT.bls12_381_G1_element) || (0, h.constTypeEq)(ft, h.constT.bls12_381_G2_element) || (0, h.constTypeEq)(ft, h.constT.bls12_381_MlResult)) throw new Error("bls constants are not supported in serialized UPLC");
                    var dt = ct(ft);
                    return Q += "( con ".concat((0, o.showConstType)(ft), " ").concat((0, o.showUPLCConstValue)(dt), " )"), new g.UPLCConst(ft, dt);
                }
                function et() {
                    var ft = Number(ut(1));
                    if (ft === 0) throw new Error("empty const type");
                    var dt, st = [];
                    do dt = Number(ut(4)), ft = Number(ut(1)), dt !== 7 && st.push(dt);
                    while (ft !== 0);
                    if (!(st.length > 0 && (0, h.isWellFormedConstType)(st))) throw new Error("invalid constant type");
                    return st;
                }
                function ct(ft) {
                    if ((0, h.constTypeEq)(ft, h.constT.int)) return ot();
                    if ((0, h.constTypeEq)(ft, h.constT.byteStr)) {
                        bt();
                        for(var dt = [], st = 1; st !== 0;){
                            st = Number(ut(8));
                            for(var wt = 0; wt < st; wt++)dt.push(ut(8).toString(16).padStart(2, "0"));
                        }
                        return new I.ByteString((0, B.fromHex)(dt.join("")));
                    }
                    if ((0, h.constTypeEq)(ft, h.constT.str)) return (0, B.toUtf8)(ct(h.constT.byteStr).toBuffer());
                    if ((0, h.constTypeEq)(ft, h.constT.data)) {
                        var It = ct(h.constT.byteStr).toBuffer();
                        return (0, b.dataFromCbor)(It);
                    }
                    if ((0, h.constTypeEq)(ft, h.constT.bool)) return Number(ut(1)) === 1;
                    if (!(0, h.constTypeEq)(ft, h.constT.unit)) {
                        if (ft[0] === h.ConstTyTag.list) {
                            for(var Ot = h.constListTypeUtils.getTypeArgument(ft), St = [], Ft = Number(ut(1)); Ft !== 0; Ft = Number(ut(1)))St.push(ct(Ot));
                            return St;
                        }
                        if (ft[0] === h.ConstTyTag.pair) return new k.Pair(ct(h.constPairTypeUtils.getFirstTypeArgument(ft)), ct(h.constPairTypeUtils.getSecondTypeArgument(ft)));
                        throw new Error("'readConstValueOfType': no constant type matched");
                    }
                }
                return new t.UPLCProgram(C, gt());
            }, E;
        })();
        vo.UPLCDecoder = P;
        function T(E, N, y) {
            return N === void 0 && (N = "cbor"), y === void 0 && (y = !1), P.parse(E, N, y);
        }
        return vo.parseUPLC = T, vo;
    }
    var kd = {}, Bd = {}, g8;
    function PIt() {
        if (g8) return Bd;
        g8 = 1;
        var n = Bd && Bd.__assign || function() {
            return n = Object.assign || function(_) {
                for(var a, c = 1, s = arguments.length; c < s; c++){
                    a = arguments[c];
                    for(var u in a)Object.prototype.hasOwnProperty.call(a, u) && (_[u] = a[u]);
                }
                return _;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(Bd, "__esModule", {
            value: !0
        }), Bd.UPLCSerializationContex = void 0;
        var t = s0();
        function e(_) {
            return _.version.major === BigInt(1) ? _.version.minor >= 1 : _.version.major > 1;
        }
        var o = (function() {
            function _(a) {
                this._rawCtx = n({
                    currLength: 0,
                    version: {
                        major: BigInt(1),
                        minor: BigInt(1),
                        patch: BigInt(0)
                    }
                }, a), this._is_v3_friendly = e(this._rawCtx);
            }
            return Object.defineProperty(_.prototype, "is_v3_friendly", {
                get: function() {
                    return this._is_v3_friendly;
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_.prototype, "currLength", {
                get: function() {
                    return this._rawCtx.currLength;
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(_.prototype, "version", {
                get: function() {
                    return new t.UPLCVersion(this._rawCtx.version.major, this._rawCtx.version.minor, this._rawCtx.version.patch);
                },
                enumerable: !1,
                configurable: !0
            }), _.prototype.updateVersion = function(a) {
                this._rawCtx.version = {
                    major: a.major,
                    minor: a.minor,
                    patch: a.patch
                }, this._is_v3_friendly = e(this._rawCtx);
            }, _.prototype.incrementLengthBy = function(a) {
                this._rawCtx.currLength = this._rawCtx.currLength + a;
            }, _;
        })();
        return Bd.UPLCSerializationContex = o, Bd;
    }
    var p8;
    function RIt() {
        return p8 || (p8 = 1, (function(n) {
            var t = kd && kd.__assign || function() {
                return t = Object.assign || function(X) {
                    for(var C, H = 1, U = arguments.length; H < U; H++){
                        C = arguments[H];
                        for(var L in C)Object.prototype.hasOwnProperty.call(C, L) && (X[L] = C[L]);
                    }
                    return X;
                }, t.apply(this, arguments);
            }, e = kd && kd.__importDefault || function(X) {
                return X && X.__esModule ? X : {
                    default: X
                };
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.encodeUPLC = n.compileUPLC = n.UPLCEncoder = n.defaultUPLCEncoderOptions = n.serializeBuiltin = void 0;
            var o = zl(), _ = I0(), a = rp(), c = x0(), s = wp(), u = Ml(), l = gp(), f = ep(), p = pp(), g = bp(), h = Nl(), B = Cl(), I = PIt(), j = ve(), w = f_(), S = vc(), b = g0(), k = Ll(), F = Kl(), Y = e(u9()), K = Xi(), J = k0(), P = B0(), T = m0();
            function E(X) {
                return Y.default.encodeBigIntAsVariableLengthBitStream(BigInt(X));
            }
            function N(X) {
                return (0, K.assert)(typeof X == "number" || typeof X == "bigint", "'serializeInt' only works for Signed Integer; try using int.toSigned() if you are using a derived class; inpout was: " + X), X = typeof X == "number" ? BigInt(X) : X, E(Y.default.zigzagBigint(X));
            }
            function y(X) {
                var C = E(X.major);
                return C.append(E(X.minor)), C.append(E(X.patch)), C;
            }
            function O(X) {
                var C = B.UPLCVar.UPLCTag;
                return C.append(E(X.deBruijn + BigInt(1))), C;
            }
            function m(X) {
                (0, K.assert)((0, o.isWellFormedConstType)(X), "cannot serialize an UPLC constant type if it is not well formed");
                function C(H) {
                    if (H === o.ConstTyTag.list) return "1011110101";
                    if (H === o.ConstTyTag.pair) return "101111011110110";
                    if (H === o.ConstTyTag.bls12_381_G1_element || H === o.ConstTyTag.bls12_381_G2_element || H === o.ConstTyTag.bls12_381_MlResult) throw new Error("bls constants are not allowed in serialized UPLC");
                    return "1" + H.toString(2).padStart(4, "0");
                }
                return w.BitStream.fromBinStr(X.map(C).join("") + "0");
            }
            function R(X) {
                (0, K.assert)((0, a.isUPLCBuiltinTag)(X.tag), "while serializing a Builtin 'bn.tag' is not a valid builtin tag: bn.tag: " + X.tag);
                var C = (0, a.getNRequiredForces)(X.tag), H = C === 0 ? new w.BitStream(void 0) : w.BitStream.fromBinStr("0101".repeat(C));
                return H.append(u.Builtin.UPLCTag), H.append(w.BitStream.fromBinStr(X.tag.toString(2).padStart(7, "0"))), H;
            }
            n.serializeBuiltin = R, n.defaultUPLCEncoderOptions = Object.freeze({
                trivialOptimization: !1
            });
            var v = (function() {
                function X(C) {
                    C === void 0 && (C = n.defaultUPLCEncoderOptions), this._ctx = new I.UPLCSerializationContex({
                        currLength: 0
                    }), this._options = C;
                }
                return X.prototype.compile = function(C, H) {
                    H === void 0 && (H = n.defaultUPLCEncoderOptions), this._options = t(t(t({}, this._options), n.defaultUPLCEncoderOptions), H);
                    var U = C.version;
                    this._ctx.updateVersion(U);
                    var L = C.body;
                    if (!(0, c.isPureUPLCTerm)(L)) throw new Error("'replaceHoisteTerm' did not return an 'UPLCTerm'");
                    var q = this.encodeTerm(L), V = this.encodeVersion(this._ctx.version);
                    return V.append(q), Y.default.padToByte(V), V;
                }, X.compile = function(C, H) {
                    return H === void 0 && (H = n.defaultUPLCEncoderOptions), new X(H).compile(C, H);
                }, X.prototype.encodeVersion = function(C) {
                    var H = y(C);
                    return this._ctx.incrementLengthBy(H.length), H;
                }, X.prototype.encodeTerm = function(C) {
                    if (C instanceof B.UPLCVar) return this.encodeUPLCVar(C);
                    if (C instanceof f.Delay) return this.encodeDelayTerm(C);
                    if (C instanceof h.Lambda) return this.encodeLambdaTerm(C);
                    if (C instanceof s.Application) return this.encodeApplicationTerm(C);
                    if (C instanceof l.UPLCConst) return this.encodeConstTerm(C);
                    if (C instanceof g.Force) return this.encodeForceTerm(C);
                    if (C instanceof p.ErrorUPLC) return this.encodeUPLCError(C);
                    if (C instanceof u.Builtin) return this.encodeBuiltin(C);
                    if (C instanceof J.Constr) return this.encodeConstr(C);
                    if (C instanceof P.Case) return this.encodeCase(C);
                    throw new Error("'UPLCEncoder.encodeTerm' did not match any 'PureUPLCTerm'");
                }, X.prototype.encodeUPLCVar = function(C) {
                    var H = O(C);
                    return this._ctx.incrementLengthBy(H.length), H;
                }, X.prototype.encodeDelayTerm = function(C) {
                    var H = f.Delay.UPLCTag;
                    return this._ctx.incrementLengthBy(H.length), H.append(this.encodeTerm(C.delayedTerm)), H;
                }, X.prototype.encodeLambdaTerm = function(C) {
                    var H = h.Lambda.UPLCTag;
                    return this._ctx.incrementLengthBy(H.length), H.append(this.encodeTerm(C.body)), H;
                }, X.prototype.encodeApplicationTerm = function(C) {
                    if (this._options.trivialOptimization === !0 && this._ctx.is_v3_friendly) {
                        for(var H = [], U = C; U instanceof s.Application;)H.unshift(U.argTerm), U = U.funcTerm;
                        if (H.length > 2) return this.encodeCase(new P.Case(new J.Constr(BigInt(0), H), [
                            U
                        ]));
                    }
                    var L = s.Application.UPLCTag;
                    return this._ctx.incrementLengthBy(L.length), L.append(this.encodeTerm(C.funcTerm)), L.append(this.encodeTerm(C.argTerm)), L;
                }, X.prototype.encodeConstTerm = function(C) {
                    var H = l.UPLCConst.UPLCTag;
                    return H.append(m(C.type)), this._ctx.incrementLengthBy(H.length), H.append(this.encodeConstValue(C.value)), H;
                }, X.prototype.encodeConstValue = function(C) {
                    if ((0, K.assert)((0, _.isConstValue)(C), "a 'ConstValue' instance was expected; got" + C), (0, T.isBlsG1)(C) || (0, T.isBlsG2)(C) || (0, T.isBlsResult)(C)) throw new Error("bls constants are not allowed in serialized UPLC");
                    if (C === void 0) return new w.BitStream;
                    if ((0, _.isConstValueInt)(C)) {
                        var H = N(C);
                        return this._ctx.incrementLengthBy(H.length), H;
                    }
                    if (C instanceof S.ByteString && S.ByteString.isStrictInstance(C)) return this.encodeConstValueByteString(C);
                    if (typeof C == "string") return this.encodeConstValue(new S.ByteString((0, j.fromUtf8)(C)));
                    if (typeof C == "boolean") {
                        var U = w.BitStream.fromBinStr(C === !0 ? "1" : "0");
                        return this._ctx.incrementLengthBy(U.length), U;
                    }
                    if ((0, _.isConstValueList)(C)) {
                        for(var L = new w.BitStream, q = void 0, V = 0; V < C.length; V++)q = w.BitStream.fromBinStr("1"), this._ctx.incrementLengthBy(1), q.append(this.encodeConstValue(C[V])), L.append(q);
                        return L.append(w.BitStream.fromBinStr("0")), this._ctx.incrementLengthBy(1), L;
                    }
                    if (C instanceof k.Pair) {
                        var L = this.encodeConstValue(C.fst);
                        return L.append(this.encodeConstValue(C.snd)), L;
                    }
                    if (C instanceof b.CborString && (C = (0, F.dataFromCbor)(C)), (0, F.isData)(C)) return this.encodeConstValueData(C);
                    throw new Error("'this.encodeConstValue' did not matched any 'ConstValue' possible type; input was: " + C);
                }, X.prototype.encodeConstValueData = function(C) {
                    var H = (0, F.dataToCbor)(C).toBuffer();
                    return this.encodeConstValueByteString(new S.ByteString(H));
                }, X.prototype.encodeConstValueByteString = function(C) {
                    for(var H = C.toString(), U = []; H.length / 2 > 255;)U.push("ff" + H.slice(0, 510)), H = H.slice(510);
                    H.length !== 0 && U.push((H.length / 2).toString(16).padStart(2, "0") + H), U.push("00");
                    var L = 8 - this._ctx.currLength % 8, q = w.BitStream.fromBinStr("1".padStart(L, "0"));
                    return q.append(new w.BitStream((0, j.fromHex)(U.join("")), 0)), this._ctx.incrementLengthBy(q.length), q;
                }, X.prototype.encodeForceTerm = function(C) {
                    if (this._options.trivialOptimization === !0 && C.termToForce instanceof f.Delay) return this.encodeTerm(C.termToForce.delayedTerm);
                    var H = g.Force.UPLCTag;
                    return this._ctx.incrementLengthBy(H.length), H.append(this.encodeTerm(C.termToForce)), H;
                }, X.prototype.encodeUPLCError = function(C) {
                    var H = p.ErrorUPLC.UPLCTag;
                    return this._ctx.incrementLengthBy(H.length), H.clone();
                }, X.prototype.encodeBuiltin = function(C) {
                    var H = R(C);
                    return this._ctx.incrementLengthBy(H.length), H;
                }, X.prototype.encodeConstr = function(C) {
                    if (!this._ctx.is_v3_friendly) throw new Error("'Constr' term found using UPLC version " + this._ctx.version.toString() + "; maybe you wanted to use version 1.1.0 or higher?");
                    var H = J.Constr.UPLCTag;
                    return H.append(E(C.index)), this._ctx.incrementLengthBy(H.length), H.append(this.encodeTermList(C.terms)), H;
                }, X.prototype.encodeCase = function(C) {
                    if (!this._ctx.is_v3_friendly) throw new Error("'Case' term found using UPLC version " + this._ctx.version.toString() + "; maybe you wanted to use version 1.1.0 or higher?");
                    var H = P.Case.UPLCTag;
                    return this._ctx.incrementLengthBy(H.length), H.append(this.encodeTerm(C.constrTerm)), H.append(this.encodeTermList(C.continuations)), H;
                }, X.prototype.encodeTermList = function(C) {
                    var H = this;
                    if (C.length === 0) return this._ctx.incrementLengthBy(1), w.BitStream.fromBinStr("0");
                    var U = this._ctx, L = C.reduce(function(q, V) {
                        var Q = w.BitStream.fromBinStr("1");
                        return U.incrementLengthBy(1), Q.append(H.encodeTerm(V)), q.append(Q), q;
                    }, new w.BitStream(void 0));
                    return U.incrementLengthBy(1), L.append(w.BitStream.fromBinStr("0")), L;
                }, X;
            })();
            n.UPLCEncoder = v;
            function A(X, C) {
                return C === void 0 && (C = n.defaultUPLCEncoderOptions), new v(C).compile(X, C);
            }
            n.compileUPLC = A, n.encodeUPLC = A;
        })(kd)), kd;
    }
    var xd = {}, b8;
    function l9() {
        return b8 || (b8 = 1, (function(n) {
            var t = xd && xd.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = xd && xd.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(Mx(), n), e(s0(), n);
        })(xd)), xd;
    }
    var jd = {}, Ln = {}, Sd = {}, Ed = {}, w8;
    function UIt() {
        return w8 || (w8 = 1, (function(n) {
            var t = Ed && Ed.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = Ed && Ed.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(Ml(), n), e(rp(), n);
        })(Ed)), Ed;
    }
    var Od = {}, y8;
    function CIt() {
        return y8 || (y8 = 1, (function(n) {
            var t = Od && Od.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = Od && Od.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(gp(), n), e(zl(), n), e(I0(), n);
        })(Od)), Od;
    }
    var h8;
    function f9() {
        return h8 || (h8 = 1, (function(n) {
            var t = Sd && Sd.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = Sd && Sd.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(wp(), n), e(UIt(), n), e(ep(), n), e(pp(), n), e(bp(), n), e(Nl(), n), e(CIt(), n), e(Cl(), n), e(k0(), n), e(B0(), n);
        })(Sd)), Sd;
    }
    var qf = {}, v8;
    function NIt() {
        if (v8) return qf;
        v8 = 1, Object.defineProperty(qf, "__esModule", {
            value: !0
        }), qf.indexOfNextCommaOutsideParentesis = void 0;
        function n(t) {
            for(var e = 0, o = "", _ = 0, a = 0; e < t.length; e++)if (o = t[e], o === "(") _++;
            else if (o === ")") _--;
            else if (o === "[") a++;
            else if (o === "]") a--;
            else if (o === "," && _ <= 0 && a <= 0) return e;
            return -1;
        }
        return qf.indexOfNextCommaOutsideParentesis = n, qf;
    }
    var Df = {}, m8;
    function MIt() {
        if (m8) return Df;
        m8 = 1, Object.defineProperty(Df, "__esModule", {
            value: !0
        }), Df.indexOfNextUnmatchedParentesis = void 0;
        function n(t) {
            for(var e = 0, o = "", _ = 0; e < t.length; e++)if (o = t[e], o === "(" ? _++ : o === ")" && _--, _ < 0) return e;
            return -1;
        }
        return Df.indexOfNextUnmatchedParentesis = n, Df;
    }
    var Gf = {}, I8;
    function LIt() {
        if (I8) return Gf;
        I8 = 1, Object.defineProperty(Gf, "__esModule", {
            value: !0
        }), Gf.getTextBetweenMatchingQuotes = void 0;
        function n(t) {
            for(var e = 0, o = "", _ = -1; e < t.length; e++)if (o = t[e], o === '"') if (_ < 0) _ = e;
            else return t.slice(_ + 1, e);
            else o === "\\" && e++;
        }
        return Gf.getTextBetweenMatchingQuotes = n, Gf;
    }
    var Yo = {}, k8;
    function zIt() {
        if (k8) return Yo;
        k8 = 1;
        var n = Yo && Yo.__read || function(o, _) {
            var a = typeof Symbol == "function" && o[Symbol.iterator];
            if (!a) return o;
            var c = a.call(o), s, u = [], l;
            try {
                for(; (_ === void 0 || _-- > 0) && !(s = c.next()).done;)u.push(s.value);
            } catch (f) {
                l = {
                    error: f
                };
            } finally{
                try {
                    s && !s.done && (a = c.return) && a.call(c);
                } finally{
                    if (l) throw l.error;
                }
            }
            return u;
        }, t = Yo && Yo.__spreadArray || function(o, _, a) {
            if (a || arguments.length === 2) for(var c = 0, s = _.length, u; c < s; c++)(u || !(c in _)) && (u || (u = Array.prototype.slice.call(_, 0, c)), u[c] = _[c]);
            return o.concat(u || Array.prototype.slice.call(_));
        };
        Object.defineProperty(Yo, "__esModule", {
            value: !0
        }), Yo.indexOfMany = void 0;
        function e(o) {
            for(var _ = [], a = 1; a < arguments.length; a++)_[a - 1] = arguments[a];
            var c = _.map(function(s) {
                return o.indexOf(s);
            }).filter(function(s) {
                return s >= 0;
            });
            return c.length === 0 ? -1 : Math.min.apply(Math, t([], n(c), !1));
        }
        return Yo.indexOfMany = e, Yo;
    }
    var B8;
    function qIt() {
        if (B8) return Ln;
        B8 = 1;
        var n = Ln && Ln.__assign || function() {
            return n = Object.assign || function(k) {
                for(var F, Y = 1, K = arguments.length; Y < K; Y++){
                    F = arguments[Y];
                    for(var J in F)Object.prototype.hasOwnProperty.call(F, J) && (k[J] = F[J]);
                }
                return k;
            }, n.apply(this, arguments);
        };
        Object.defineProperty(Ln, "__esModule", {
            value: !0
        }), Ln.getOffsetToNextClosingBracket = Ln.parseUPLCText = Ln.parseConstType = Ln.parseConstValueOfType = Ln._parseUPLCText = void 0;
        var t = vc(), e = f9(), o = Kl(), _ = Ll(), a = m0(), c = ve(), s = NIt(), u = MIt(), l = LIt(), f = zIt(), p = l9();
        function g(k, F, Y, K) {
            F = n({}, F);
            var J = 0, P = function(at) {
                at === void 0 && (at = 0);
                var ut = k.length;
                k = k.slice(at).trimStart(), J += ut - k.length;
            }, T = function(at) {
                at === void 0 && (at = k);
                var ut = at.search(/\s/);
                ut < 0 && (ut = k.length - 1);
                for(var bt = at.slice(0, ut).trim(); bt.endsWith(")") || bt.endsWith("]") || bt.endsWith(" ") || bt.endsWith(`
`);)bt = bt.slice(0, bt.length - 1);
                return bt;
            };
            P(0);
            var E = k[0];
            if (E === "[") {
                P(1), J += b(k, "[", "]");
                var N = g(k, F, Y, K);
                k = k.slice(N.offset + 1);
                var y = g(k, F, Y, K);
                return {
                    term: new e.Application(N.term, y.term),
                    offset: J
                };
            }
            if (E === "(") {
                if (P(1), k.startsWith("error")) return J += b(k, "(", ")"), {
                    term: new e.ErrorUPLC,
                    offset: J
                };
                if (k.startsWith("delay")) return J += b(k, "(", ")"), {
                    term: new e.Delay(g(k.slice(5), F, Y, K).term),
                    offset: J
                };
                if (k.startsWith("force")) {
                    J += b(k, "(", ")");
                    var O = g(k.slice(5), F, Y, K).term;
                    return O instanceof e.Builtin && (0, e.getNRequiredForces)(O.tag) === 1 ? {
                        term: O,
                        offset: J
                    } : O instanceof e.Force && O.termToForce instanceof e.Builtin && (0, e.getNRequiredForces)(O.termToForce.tag) === 2 ? {
                        term: O.termToForce,
                        offset: J
                    } : {
                        term: new e.Force(O),
                        offset: J
                    };
                }
                if (k.startsWith("builtin")) return J += b(k, "(", ")"), k = k.slice(7).trimStart(), {
                    term: new e.Builtin((0, e.builtinTagFromString)(T())),
                    offset: J
                };
                if (k.startsWith("lam")) {
                    J += b(k, "(", ")"), k = k.slice(3).trimStart();
                    var m = T();
                    return k = k.slice(m.length).trimStart(), F[m] = Y, {
                        term: new e.Lambda(g(k, F, Y + 1, K).term),
                        offset: J
                    };
                }
                if (k.startsWith("case")) {
                    if (!K.isV3Friendly()) throw new Error("case uplc node found on program version: " + K.toString());
                    P(4);
                    var R = (0, u.indexOfNextUnmatchedParentesis)(k);
                    k = k.slice(0, R).trim();
                    for(var v = []; k.length > 0;){
                        var A = g(k, F, Y, K), X = A.term, C = A.offset;
                        v.push(X), k = k.slice(C).trim();
                    }
                    if (v.length < 1) throw new Error("ill formed uplc, missing constr term on case");
                    return {
                        term: new e.Case(v.shift(), v),
                        offset: J + R + 1
                    };
                }
                if (k.startsWith("constr")) {
                    if (!K.isV3Friendly()) throw new Error("case uplc node found on program version: " + K.toString());
                    P(6);
                    var R = (0, u.indexOfNextUnmatchedParentesis)(k);
                    k = k.slice(0, R);
                    var H = j(k, e.constT.int), U = H.value, L = H.offset;
                    if (k = k.slice(L), typeof U != "bigint") throw new Error("ill formed uplc; constr expects u64 index");
                    var v = [];
                    for(k = k.trim(); k.length > 0;){
                        var q = g(k, F, Y, K), X = q.term, V = q.offset;
                        v.push(X), k = k.slice(V).trim();
                    }
                    return {
                        term: new e.Constr(U, v),
                        offset: J + R + 1
                    };
                }
                if (k.startsWith("con")) {
                    J += b(k, "(", ")"), k = k.slice(3).trimStart();
                    var Q = w(k);
                    k = k.slice(Q.offset).trimStart();
                    var Z = j(k, Q.type);
                    return k = k.slice(Z.offset).trimStart(), {
                        term: new e.UPLCConst(Q.type, Z.value),
                        offset: J
                    };
                }
            }
            J--;
            var tt = T();
            if (J += tt.length, tt.startsWith("-")) return {
                term: new e.UPLCVar(Y + parseInt(tt.slice(1)) - 1),
                offset: J
            };
            var rt = F[tt];
            if (rt === void 0) throw new Error("unbound variable found");
            return {
                term: new e.UPLCVar(Y - 1 - rt),
                offset: J
            };
        }
        Ln._parseUPLCText = g;
        var h = Array.from("0123456789abcdef");
        function B(k) {
            return h.includes(k[0].toLowerCase());
        }
        function I(k, F) {
            return k >= 0 && (F < 0 || k < F);
        }
        function j(k, F) {
            var Y = 0, K = function(at) {
                at === void 0 && (at = 0);
                var ut = k.length;
                k = k.slice(at).trimStart(), Y += ut - k.length;
            };
            if (K(0), (0, e.constTypeEq)(F, e.constT.unit)) return K(k.indexOf("()") + 2), {
                value: void 0,
                offset: Y
            };
            if ((0, e.constTypeEq)(F, e.constT.int)) {
                var J = k.indexOf(")"), P = k.slice(0, J < 0 ? void 0 : J).match(/\+?\-?(?<!\.)(?<!(#|x)\d*)\d+(?!(\.|x))/);
                if (P === null) throw new Error("could not find integer for constant uplc");
                var T = P[0], E = BigInt(T);
                return K(k.indexOf(T) + T.length), {
                    value: E,
                    offset: Y
                };
            }
            if ((0, e.constTypeEq)(F, e.constT.str)) {
                var N = k.indexOf('"');
                if (!/^\s*$/.test(k.slice(0, N))) throw new Error("ill formed uplc");
                K(N);
                var E = (0, l.getTextBetweenMatchingQuotes)(k);
                if (typeof E != "string") throw new Error("missing constant string value");
                return K(E.length + 2), {
                    value: E,
                    offset: Y
                };
            }
            if ((0, e.constTypeEq)(F, e.constT.bool)) {
                var y = k.indexOf("True"), O = k.indexOf("False");
                if (y < 0 && O < 0) throw new Error("expected boolean value; found none");
                var m = I(y, O);
                return m ? (K(y + 4), {
                    value: !0,
                    offset: Y
                }) : (K(O + 5), {
                    value: !1,
                    offset: Y
                });
            }
            if ((0, e.constTypeEq)(F, e.constT.byteStr)) {
                K(k.indexOf("#") + 1);
                for(var R = 0; R < k.length && B(k[R++]););
                !B(k[R - 1]) && R--;
                var v = k.slice(0, R);
                if (v.length % 2 === 1) throw new Error("invalid bytestring value: received: " + v);
                return K(R), {
                    value: new t.ByteString(v),
                    offset: Y
                };
            }
            if ((0, e.constTypeEq)(F, e.constT.data)) {
                K(0);
                var A = (0, o.dataFromStringWithOffset)(k), X = A.data, C = A.offset;
                return Y += C, {
                    value: X,
                    offset: Y
                };
            }
            if ((0, e.constTypeEq)(F, e.constT.bls12_381_G1_element)) {
                var H = k;
                k = k.slice(0, k.indexOf(")") + 1).trimStart(), Y += H.length - H.indexOf(k) + 2 + 96;
                var U = k.match(/^0x[0-9a-fA-F]{96}(?![0-9a-fA-F]+)/);
                if (!U) throw new Error("missing bls g1 compressed elem");
                var E = (0, a.bls12_381_G1_uncompress)((0, c.fromHex)(U[0].slice(2)));
                return {
                    value: E,
                    offset: Y
                };
            }
            if ((0, e.constTypeEq)(F, e.constT.bls12_381_G2_element)) {
                var H = k;
                k = k.slice(0, k.indexOf(")") + 1).trimStart(), Y += H.length - H.indexOf(k) + 2 + 192;
                var U = k.match(/^0x[0-9a-fA-F]{192}(?![0-9a-fA-F]+)/);
                if (!U) throw new Error("missing bls g2 compressed elem");
                var E = (0, a.bls12_381_G2_uncompress)((0, c.fromHex)(U[0].slice(2)));
                return {
                    value: E,
                    offset: Y
                };
            }
            if ((0, e.constTypeEq)(F, e.constT.bls12_381_MlResult)) throw new Error("bls12_381_MlResult const type not supported");
            if (F[0] === e.ConstTyTag.pair) {
                K(k.indexOf("(") + 1);
                var L = (0, s.indexOfNextCommaOutsideParentesis)(k), q = j(k.slice(0, L), e.constPairTypeUtils.getFirstTypeArgument(F));
                K(L + 1);
                var V = (0, u.indexOfNextUnmatchedParentesis)(k), Q = j(k.slice(0, V), e.constPairTypeUtils.getSecondTypeArgument(F));
                return K(V + 1), {
                    value: new _.Pair(q.value, Q.value),
                    offset: Y
                };
            }
            if (F[0] === e.ConstTyTag.list) {
                K(k.indexOf("[") + 1);
                for(var Z = e.constListTypeUtils.getTypeArgument(F), tt = []; !k.startsWith("]");){
                    var rt = j(k, Z);
                    K(rt.offset), K(k.indexOf(",") + 1), tt.push(rt.value);
                }
                return {
                    value: tt,
                    offset: Y
                };
            }
            throw new Error("unknown const type");
        }
        Ln.parseConstValueOfType = j;
        function w(k) {
            var F = 0, Y = function(O) {
                O === void 0 && (O = 0);
                var m = k.length;
                k = k.slice(O).trimStart(), F += m - k.length;
            };
            if (Y(0), k.startsWith("integer")) return Y(7), {
                type: e.constT.int,
                offset: F
            };
            if (k.startsWith("bytestring")) return Y(10), {
                type: e.constT.byteStr,
                offset: F
            };
            if (k.startsWith("string")) return Y(6), {
                type: e.constT.str,
                offset: F
            };
            if (k.startsWith("unit")) return Y(4), {
                type: e.constT.unit,
                offset: F
            };
            if (k.startsWith("bool")) return k.startsWith("boolean") ? Y(7) : Y(4), {
                type: e.constT.bool,
                offset: F
            };
            if (k.startsWith("data")) return Y(4), {
                type: e.constT.data,
                offset: F
            };
            if (k.startsWith("bls12_381_G1_element")) return Y(20), {
                type: e.constT.bls12_381_G1_element,
                offset: F
            };
            if (k.startsWith("bls12_381_G2_element")) return Y(20), {
                type: e.constT.bls12_381_G2_element,
                offset: F
            };
            if (k.startsWith("bls12_381_MlResult")) throw new Error("bls12_381_MlResult const not supported in textual UPLC");
            if (k.startsWith("(")) {
                Y(1);
                var K = k.indexOf("list"), J = k.indexOf("pair");
                if (K < 0 && J < 0) throw new Error("invalid constant type; expected list or pair");
                var P = I(K, J), T = I(J, K);
                if (P) {
                    Y(K + 4);
                    var E = w(k);
                    for(Y(E.offset); !k.startsWith(")");)Y(1);
                    return Y(1), {
                        type: e.constT.listOf(E.type),
                        offset: F
                    };
                } else if (T) {
                    Y(J + 4);
                    var N = w(k);
                    for(Y(N.offset); k.startsWith(" ") || k.startsWith(`
`);)Y(1);
                    var y = w(k);
                    for(Y(y.offset); !k.startsWith(")");)Y(1);
                    return Y(1), {
                        type: e.constT.pairOf(N.type, y.type),
                        offset: F
                    };
                } else throw new Error("invalid constant type; missing list or pair");
            }
            throw new Error("unknown UPLC const type; src: " + k);
        }
        Ln.parseConstType = w;
        function S(k, F) {
            if (F === void 0 && (F = p.defaultUplcVersion), k = k.trim(), k.startsWith("(program")) {
                k = k.slice(8, k.lastIndexOf(")")).trim();
                var Y = k.match(/^\d+\.\d+\.\d+(?!\.)/);
                if (!Y) throw new Error("uplc program without version");
                F = p.UPLCVersion.fromString(Y[0]), k = k.slice((0, f.indexOfMany)(k, "(", "["));
            }
            return F = F instanceof p.UPLCVersion ? F : p.defaultUplcVersion, g(k, {}, 0, F).term;
        }
        Ln.parseUPLCText = S;
        function b(k, F, Y) {
            F === void 0 && (F = "("), Y === void 0 && (Y = ")");
            for(var K = 1, J = 0, P = ""; K > 0;){
                if (P = k[J++], P === F) {
                    K++;
                    continue;
                }
                if (P === Y) {
                    K--;
                    continue;
                }
            }
            return J;
        }
        return Ln.getOffsetToNextClosingBracket = b, Ln;
    }
    var x8;
    function DIt() {
        return x8 || (x8 = 1, (function(n) {
            var t = jd && jd.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = jd && jd.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(x0(), n), e(qIt(), n);
        })(jd)), jd;
    }
    var j8;
    function GIt() {
        return j8 || (j8 = 1, (function(n) {
            var t = xc && xc.__createBinding || (Object.create ? (function(o, _, a, c) {
                c === void 0 && (c = a);
                var s = Object.getOwnPropertyDescriptor(_, a);
                (!s || ("get" in s ? !_.__esModule : s.writable || s.configurable)) && (s = {
                    enumerable: !0,
                    get: function() {
                        return _[a];
                    }
                }), Object.defineProperty(o, c, s);
            }) : (function(o, _, a, c) {
                c === void 0 && (c = a), o[c] = _[a];
            })), e = xc && xc.__exportStar || function(o, _) {
                for(var a in o)a !== "default" && !Object.prototype.hasOwnProperty.call(_, a) && t(_, o, a);
            };
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), e(a4t(), n), e(TIt(), n), e(RIt(), n), e(l9(), n), e(DIt(), n), e(f9(), n);
        })(xc)), xc;
    }
    GIt();
    Kl();
    var qw = [
        0,
        7,
        14,
        9,
        28,
        27,
        18,
        21,
        56,
        63,
        54,
        49,
        36,
        35,
        42,
        45,
        112,
        119,
        126,
        121,
        108,
        107,
        98,
        101,
        72,
        79,
        70,
        65,
        84,
        83,
        90,
        93,
        224,
        231,
        238,
        233,
        252,
        251,
        242,
        245,
        216,
        223,
        214,
        209,
        196,
        195,
        202,
        205,
        144,
        151,
        158,
        153,
        140,
        139,
        130,
        133,
        168,
        175,
        166,
        161,
        180,
        179,
        186,
        189,
        199,
        192,
        201,
        206,
        219,
        220,
        213,
        210,
        255,
        248,
        241,
        246,
        227,
        228,
        237,
        234,
        183,
        176,
        185,
        190,
        171,
        172,
        165,
        162,
        143,
        136,
        129,
        134,
        147,
        148,
        157,
        154,
        39,
        32,
        41,
        46,
        59,
        60,
        53,
        50,
        31,
        24,
        17,
        22,
        3,
        4,
        13,
        10,
        87,
        80,
        89,
        94,
        75,
        76,
        69,
        66,
        111,
        104,
        97,
        102,
        115,
        116,
        125,
        122,
        137,
        142,
        135,
        128,
        149,
        146,
        155,
        156,
        177,
        182,
        191,
        184,
        173,
        170,
        163,
        164,
        249,
        254,
        247,
        240,
        229,
        226,
        235,
        236,
        193,
        198,
        207,
        200,
        221,
        218,
        211,
        212,
        105,
        110,
        103,
        96,
        117,
        114,
        123,
        124,
        81,
        86,
        95,
        88,
        77,
        74,
        67,
        68,
        25,
        30,
        23,
        16,
        5,
        2,
        11,
        12,
        33,
        38,
        47,
        40,
        61,
        58,
        51,
        52,
        78,
        73,
        64,
        71,
        82,
        85,
        92,
        91,
        118,
        113,
        120,
        127,
        106,
        109,
        100,
        99,
        62,
        57,
        48,
        55,
        34,
        37,
        44,
        43,
        6,
        1,
        8,
        15,
        26,
        29,
        20,
        19,
        174,
        169,
        160,
        167,
        178,
        181,
        188,
        187,
        150,
        145,
        152,
        159,
        138,
        141,
        132,
        131,
        222,
        217,
        208,
        215,
        194,
        197,
        204,
        203,
        230,
        225,
        232,
        239,
        250,
        253,
        244,
        243
    ];
    typeof Int32Array < "u" && (qw = new Int32Array(qw));
    function HIt(n, t = 0) {
        let e = ~~t;
        for(let o = 0; o < n.length; o++)e = qw[(e ^ n[o]) & 255] & 255;
        return e;
    }
    var qp = (n)=>{
        switch(n.type){
            case "sig":
                return he.new_script_pubkey(Kt.from_hex(n.keyHash));
            case "before":
                return he.new_script_invalid_hereafter(BigInt(n.slot));
            case "after":
                return he.new_script_invalid_before(BigInt(n.slot));
            case "all":
                {
                    const t = Qe.new();
                    return n.scripts.map((e)=>t.add(qp(e))), he.new_script_all(t);
                }
            case "any":
                {
                    const t = Qe.new();
                    return n.scripts.map((e)=>t.add(qp(e))), he.new_script_any(t);
                }
            case "atLeast":
                {
                    const t = Qe.new();
                    return n.scripts.map((e)=>t.add(qp(e))), he.new_script_n_of_k(BigInt(n.required), t);
                }
        }
    }, KIt = (n)=>({
            type: "Native",
            script: qp(n).to_cbor_hex()
        }), Dp = c2t(Qn({
        ScriptPubkey: Qn({
            ed25519_key_hash: i2t
        })
    }), Qn({
        ScriptInvalidBefore: Qn({
            before: V0
        })
    }), Qn({
        ScriptInvalidHereafter: Qn({
            after: V0
        })
    }), Qn({
        ScriptAll: Qn({
            native_scripts: Z0(Y0(()=>Dp))
        })
    }), Qn({
        ScriptAny: Qn({
            native_scripts: Z0(Y0(()=>Dp))
        })
    }), Qn({
        ScriptNOfK: Qn({
            n: V0,
            native_scripts: Z0(Y0(()=>Dp))
        })
    }));
    Jvt(Dp);
    function hh(n) {
        switch(n){
            case "Preview":
                return 0;
            case "Preprod":
                return 0;
            case "Custom":
                return 0;
            case "Mainnet":
                return 1;
            default:
                throw new Error("Network not found");
        }
    }
    var Kn = (n)=>{
        try {
            return Cd(Cd(Jr(n))), n;
        } catch  {
            try {
                return Cd(Jr(n)), L_(Uint8Array.from(zp(Jr(n).buffer)));
            } catch  {
                return L_(Uint8Array.from(zp(zp(Jr(n).buffer))));
            }
        }
    }, dw = (n)=>{
        try {
            return Cd(Cd(Jr(n))), L_(Cd(Jr(n)));
        } catch  {
            try {
                return Cd(Jr(n)), n;
            } catch  {
                return L_(Uint8Array.from(zp(Jr(n).buffer)));
            }
        }
    };
    function VIt(n, t, e) {
        const o = g9(t);
        return Ti.new(hh(n), Pt.new_script(Zt.from_hex(o))).to_address().to_bech32(void 0);
    }
    function g9(n) {
        switch(n.type){
            case "Native":
                return he.from_cbor_hex(n.script).hash().to_hex();
            case "PlutusV1":
                return N_.from_v1(zr.from_cbor_hex(Kn(n.script))).hash().to_hex();
            case "PlutusV2":
                return N_.from_v2(qr.from_cbor_hex(Kn(n.script))).hash().to_hex();
            case "PlutusV3":
                return N_.from_v3(Dr.from_cbor_hex(Kn(n.script))).hash().to_hex();
            default:
                throw new Error("No variant matched");
        }
    }
    function p9(n) {
        switch(n.type){
            case "Native":
                return vr.new_native(he.from_cbor_hex(n.script));
            case "PlutusV1":
                return vr.new_plutus_v1(zr.from_cbor_hex(Kn(n.script)));
            case "PlutusV2":
                return vr.new_plutus_v2(qr.from_cbor_hex(Kn(n.script)));
            case "PlutusV3":
                return vr.new_plutus_v3(Dr.from_cbor_hex(Kn(n.script)));
            default:
                throw new Error("No variant matched.");
        }
    }
    function ZIt(n) {
        switch(n.kind()){
            case 0:
                return {
                    type: "Native",
                    script: n.as_native().to_cbor_hex()
                };
            case 1:
                return {
                    type: "PlutusV1",
                    script: n.as_plutus_v1().to_cbor_hex()
                };
            case 2:
                return {
                    type: "PlutusV2",
                    script: n.as_plutus_v2().to_cbor_hex()
                };
            case 3:
                return {
                    type: "PlutusV3",
                    script: n.as_plutus_v3().to_cbor_hex()
                };
            default:
                throw new Error("No variant matched.");
        }
    }
    function YIt(n) {
        return g9(n);
    }
    function Pp(n) {
        try {
            return ce.from_hex(n);
        } catch  {
            try {
                return ce.from_bech32(n);
            } catch  {
                throw new Error("Could not deserialize address.");
            }
        }
    }
    function WIt(n, t) {
        return wr.new(hh(n), t.type === "Key" ? Pt.new_pub_key(Kt.from_hex(t.hash)) : Pt.new_script(Zt.from_hex(t.hash))).to_address().to_bech32(void 0);
    }
    function uo(n) {
        try {
            const t = qd.from_address(Pp(n)), e = t.payment().kind() === 0 ? {
                type: "Key",
                hash: t.payment().as_pub_key().to_hex()
            } : {
                type: "Script",
                hash: t.payment().as_script().to_hex()
            }, o = t.stake().kind() === 0 ? {
                type: "Key",
                hash: t.stake().as_pub_key().to_hex()
            } : {
                type: "Script",
                hash: t.stake().as_script().to_hex()
            };
            return {
                type: "Base",
                networkId: t.to_address().network_id(),
                address: {
                    bech32: t.to_address().to_bech32(void 0),
                    hex: t.to_address().to_hex()
                },
                paymentCredential: e,
                stakeCredential: o
            };
        } catch  {}
        try {
            const t = Ti.from_address(Pp(n)), e = t.payment().kind() === 0 ? {
                type: "Key",
                hash: t.payment().as_pub_key().to_hex()
            } : {
                type: "Script",
                hash: t.payment().as_script().to_hex()
            };
            return {
                type: "Enterprise",
                networkId: t.to_address().network_id(),
                address: {
                    bech32: t.to_address().to_bech32(void 0),
                    hex: t.to_address().to_hex()
                },
                paymentCredential: e
            };
        } catch  {}
        try {
            const t = Ru.from_address(Pp(n)), e = t?.payment().kind() === 0 ? {
                type: "Key",
                hash: t.payment().as_pub_key().to_hex()
            } : {
                type: "Script",
                hash: t.payment().as_script().to_hex()
            };
            return {
                type: "Pointer",
                networkId: t.to_address().network_id(),
                address: {
                    bech32: t.to_address().to_bech32(void 0),
                    hex: t.to_address().to_hex()
                },
                paymentCredential: e
            };
        } catch  {}
        try {
            const t = wr.from_address(Pp(n)), e = t.payment().kind() === 0 ? {
                type: "Key",
                hash: t.payment().as_pub_key().to_hex()
            } : {
                type: "Script",
                hash: t.payment().as_script().to_hex()
            };
            return {
                type: "Reward",
                networkId: t.to_address().network_id(),
                address: {
                    bech32: t.to_address().to_bech32(void 0),
                    hex: t.to_address().to_hex()
                },
                stakeCredential: e
            };
        } catch  {}
        try {
            const t = ((e)=>{
                try {
                    return Lr.from_cbor_hex(e);
                } catch  {
                    try {
                        return Lr.from_base58(e);
                    } catch  {
                        throw new Error("Could not deserialize address.");
                    }
                }
            })(n);
            return {
                type: "Byron",
                networkId: t.content().network_id(),
                address: {
                    bech32: "",
                    hex: t.to_address().to_hex()
                }
            };
        } catch  {}
        throw new Error("No address type matched for: " + n);
    }
    function S8(n) {
        const t = {
            0: [],
            1: [],
            2: []
        };
        for (const e of Object.values(n.PlutusV1))t[0]?.push(e);
        for (const e of Object.values(n.PlutusV2))t[1]?.push(e);
        for (const e of Object.values(n.PlutusV3))t[2]?.push(e);
        return C_.from_json(JSON.stringify(t));
    }
    function JIt(n) {
        const { paymentCredential: t } = uo(n);
        if (!t) throw new Error("The specified address does not contain a payment credential.");
        return t;
    }
    function XIt(n) {
        const t = n.toString(16).padStart(4, "0");
        return "0" + t + b9(t) + "0";
    }
    function QIt(n) {
        if (n.length !== 8 || !(n[0] === "0" && n[7] === "0")) return null;
        const t = n.slice(1, 5), e = parseInt(t, 16);
        return n.slice(5, 7) === b9(t) ? e : null;
    }
    function b9(n) {
        return HIt(Jr(n)).toString(16).padStart(2, "0");
    }
    function sb(n, t) {
        return Cx(t, i0[n]);
    }
    function vh(n) {
        const t = {};
        if (t.lovelace = n.coin(), n.has_multiassets()) {
            const e = n.multi_asset(), o = e.keys();
            for(let _ = 0; _ < o.len(); _++){
                const a = o.get(_), c = e.get_assets(a), s = c.keys();
                for(let u = 0; u < s.len(); u++){
                    const l = s.get(u), f = c.get(l), p = a.to_hex() + l.to_js_value();
                    t[p] = f;
                }
            }
        }
        return t;
    }
    function yp(n) {
        const t = wn.new(), e = n.lovelace ? BigInt(n.lovelace) : 0n, o = Object.keys(n), _ = Array.from(new Set(o.filter((a)=>a !== "lovelace").map((a)=>a.slice(0, 56))));
        for (const a of _){
            const c = o.filter((u)=>u.slice(0, 56) === a), s = tc.new();
            for (const u of c)s.insert(Ye.from_hex(u.slice(56)), BigInt(n[u]));
            t.insert_assets(Zt.from_hex(a), s);
        }
        return Ue.new(e, t);
    }
    function $It(n) {
        const t = n.slice(0, 56), e = n.slice(56) || null, o = QIt(n.slice(56, 64)), _ = (Number.isInteger(o) ? n.slice(64) : n.slice(56)) || null;
        return {
            policyId: t,
            assetName: e,
            name: _,
            label: o
        };
    }
    function t8t(n, t, e) {
        const o = Number.isInteger(e) ? XIt(e) : "", _ = t || "";
        if ((_ + o).length > 64) throw new Error("Asset name size exceeds 32 bytes.");
        if (n.length !== 56) throw new Error(`Policy id invalid: ${n}.`);
        return n + o + _;
    }
    function mh(...n) {
        return n.reduce((t, e)=>{
            for(const o in e)if (Object.hasOwn(e, o)) {
                const _ = (t[o] || 0n) + e[o];
                _ === 0n ? delete t[o] : t[o] = _;
            }
            return t;
        }, {});
    }
    var w9 = (n)=>o8t(n).with_value(yp(n.assets)).build().output(), y9 = (n)=>U_.new(Vn.from_hex(n.txHash), BigInt(n.outputIndex)), mc = (n)=>{
        const t = w9(n);
        return Fa.new(y9(n), t);
    };
    function e8t(n) {
        return {
            ...r8t(n.input()),
            ...j0(n.output())
        };
    }
    function r8t(n) {
        return {
            txHash: n.transaction_id().to_hex(),
            outputIndex: parseInt(n.index().toString())
        };
    }
    function j0(n) {
        return {
            assets: vh(n.amount()),
            address: n.address().to_bech32(void 0),
            datumHash: n.datum()?.as_hash()?.to_hex(),
            datum: n.datum()?.as_datum()?.to_cbor_hex(),
            scriptRef: n.script_ref() && ZIt(n.script_ref())
        };
    }
    var E8 = (n, t, e = !1)=>{
        const o = [];
        let _ = !1;
        const a = new Map(Object.entries(t));
        for (const c of n)if (!(!e && c.scriptRef)) {
            _ = !1;
            for (const [s, u] of a)if (Object.hasOwn(c.assets, s)) {
                const l = c.assets[s];
                l >= u ? a.delete(s) : a.set(s, u - l), _ = !0;
            }
            if (_ && o.push(c), a.size == 0) break;
        }
        return a.size > 0 ? [] : o;
    }, Ih = (n, t = "LargestFirst")=>{
        switch(t){
            case "LargestFirst":
                return [
                    ...n
                ].sort(n8t);
            case "SmallestFirst":
                return [
                    ...n
                ].sort(_8t);
            case "Canonical":
                return [
                    ...n
                ].sort(a8t);
        }
    }, n8t = (n, t)=>{
        const e = Number(n.assets.lovelace), o = Number(t.assets.lovelace);
        return e === o ? Object.keys(n.assets).length - Object.keys(t.assets).length : -1 * (e - o);
    }, _8t = (n, t)=>{
        const e = Number(n.assets.lovelace), o = Number(t.assets.lovelace);
        return e == o ? Object.keys(n.assets).length - Object.keys(t.assets).length : e - o;
    }, a8t = (n, t)=>n.txHash < t.txHash ? -1 : n.txHash > t.txHash ? 1 : n.outputIndex - t.outputIndex, kh = (n, t)=>n.txHash === t.txHash && n.outputIndex === t.outputIndex, o8t = (n)=>{
        const t = F_.new().with_address(ce.from_bech32(n.address));
        return n.scriptRef ? O8(n, t).with_reference_script(p9(n.scriptRef)).next() : O8(n, t).next();
    }, O8 = (n, t)=>n.datumHash && n.datum ? t.with_communication_data(Vt.from_cbor_hex(n.datum)) : n.datum ? t.with_data(jn.new_datum(Vt.from_cbor_hex(n.datum))) : t, mg = (n)=>JSON.stringify(n, (t, e)=>typeof e == "bigint" ? e.toString() + "n" : e, 2), i8t = (n)=>{
        switch(n){
            case "spend":
                return Td.Spend;
            case "mint":
                return Td.Mint;
            case "publish":
                return Td.Cert;
            case "withdraw":
                return Td.Reward;
            case "vote":
                return Td.Voting;
            case "propose":
                return Td.Proposing;
            default:
                throw new Error(`Exhaustive check failed: Unhandled case ${n}`);
        }
    };
    const h9 = (n, t)=>{
        switch(t._tag){
            case "StringKeyword":
            case "TemplateLiteral":
                return Object.keys(n);
            case "SymbolKeyword":
                return Object.getOwnPropertySymbols(n);
            case "Refinement":
                return h9(n, t.from);
        }
    }, ng = (n)=>Object.keys(n).concat(Object.getOwnPropertySymbols(n)), v9 = (n)=>{
        let t = !1, e;
        return ()=>(t || (e = n(), t = !0), e);
    }, zi = (n)=>{
        if (c_(n)) return JSON.stringify(n);
        if (nu(n) || n == null || pl(n) || zu(n) || $8(n)) return String(n);
        if (bl(n)) return String(n) + "n";
        if (!Array.isArray(n) && wl(n, "toString") && t5(n.toString) && n.toString !== Object.prototype.toString) return n.toString();
        try {
            return JSON.stringify(n), Array.isArray(n) ? `[${n.map(zi).join(",")}]` : `{${ng(n).map((t)=>`${c_(t) ? JSON.stringify(t) : String(t)}:${zi(n[t])}`).join(",")}}`;
        } catch  {
            return String(n);
        }
    }, s8t = (n)=>`Duplicate property signature ${zi(n)}`, F8 = (n)=>`Duplicate index signature for type \`${n}\``, c8t = "An index signature parameter type must be `string`, `symbol`, a template literal type or a refinement of the previous types", d8t = "A required element cannot follow an optional element. ts(1257)", A8 = (n)=>`Duplicate property signature transformation ${zi(n)}`, T8 = (n, t)=>`${n}: ${t}`, P8 = Symbol.for("@effect/schema/annotation/Type"), m9 = Symbol.for("@effect/schema/annotation/Message"), S0 = Symbol.for("@effect/schema/annotation/Identifier"), La = Symbol.for("@effect/schema/annotation/Title"), Zl = Symbol.for("@effect/schema/annotation/Description"), u8t = Symbol.for("@effect/schema/annotation/Examples"), l8t = Symbol.for("@effect/schema/annotation/Default"), f8t = Symbol.for("@effect/schema/annotation/JSONSchema"), g8t = Symbol.for("@effect/schema/annotation/Documentation"), I9 = Symbol.for("@effect/schema/annotation/Concurrency"), k9 = Symbol.for("@effect/schema/annotation/Batching"), p8t = Symbol.for("@effect/schema/annotation/Surrogate"), B9 = Symbol.for("@effect/schema/annotation/ParseIssueTitle"), ts = lo(2, (n, t)=>Object.prototype.hasOwnProperty.call(n.annotations, t) ? Ui(n.annotations[t]) : qi()), b8t = ts(m9), R8 = ts(La), Dw = ts(S0), U8 = ts(Zl), w8t = ts(I9), y8t = ts(k9), h8t = ts(B9), v8t = ts(p8t), x9 = Symbol.for("@effect/schema/annotation/JSONIdentifier"), m8t = ts(x9);
    let E0 = class {
        typeParameters;
        decodeUnknown;
        encodeUnknown;
        annotations;
        _tag = "Declaration";
        constructor(t, e, o, _ = {}){
            this.typeParameters = t, this.decodeUnknown = e, this.encodeUnknown = o, this.annotations = _;
        }
        toString(t = !1) {
            return sr(za(this, t), ()=>"<declaration schema>");
        }
        toJSON() {
            return {
                _tag: this._tag,
                typeParameters: this.typeParameters.map((t)=>t.toJSON()),
                annotations: Pn(this.annotations)
            };
        }
    };
    const hp = (n)=>(t)=>t._tag === n;
    class C8 {
        literal;
        annotations;
        _tag = "Literal";
        constructor(t, e = {}){
            this.literal = t, this.annotations = e;
        }
        toString(t = !1) {
            return sr(za(this, t), ()=>zi(this.literal));
        }
        toJSON() {
            return {
                _tag: this._tag,
                literal: bl(this.literal) ? String(this.literal) : this.literal,
                annotations: Pn(this.annotations)
            };
        }
    }
    const I8t = hp("Literal");
    class k8t {
        symbol;
        annotations;
        _tag = "UniqueSymbol";
        constructor(t, e = {}){
            this.symbol = t, this.annotations = e;
        }
        toString(t = !1) {
            return sr(za(this, t), ()=>zi(this.symbol));
        }
        toJSON() {
            return {
                _tag: this._tag,
                symbol: String(this.symbol),
                annotations: Pn(this.annotations)
            };
        }
    }
    class B8t {
        annotations;
        _tag = "NeverKeyword";
        constructor(t = {}){
            this.annotations = t;
        }
        toString(t = !1) {
            return Yl(this, t);
        }
        toJSON() {
            return {
                _tag: this._tag,
                annotations: Pn(this.annotations)
            };
        }
    }
    const Ig = new B8t({
        [La]: "never"
    });
    class x8t {
        annotations;
        _tag = "UnknownKeyword";
        constructor(t = {}){
            this.annotations = t;
        }
        toString(t = !1) {
            return Yl(this, t);
        }
        toJSON() {
            return {
                _tag: this._tag,
                annotations: Pn(this.annotations)
            };
        }
    }
    const j9 = new x8t({
        [La]: "unknown"
    });
    class j8t {
        annotations;
        _tag = "AnyKeyword";
        constructor(t = {}){
            this.annotations = t;
        }
        toString(t = !1) {
            return Yl(this, t);
        }
        toJSON() {
            return {
                _tag: this._tag,
                annotations: Pn(this.annotations)
            };
        }
    }
    const S8t = new j8t({
        [La]: "any"
    });
    class E8t {
        annotations;
        _tag = "StringKeyword";
        constructor(t = {}){
            this.annotations = t;
        }
        toString(t = !1) {
            return Yl(this, t);
        }
        toJSON() {
            return {
                _tag: this._tag,
                annotations: Pn(this.annotations)
            };
        }
    }
    const O8t = new E8t({
        [La]: "string",
        [Zl]: "a string"
    }), S9 = hp("StringKeyword");
    class F8t {
        annotations;
        _tag = "NumberKeyword";
        constructor(t = {}){
            this.annotations = t;
        }
        toString(t = !1) {
            return Yl(this, t);
        }
        toJSON() {
            return {
                _tag: this._tag,
                annotations: Pn(this.annotations)
            };
        }
    }
    const A8t = new F8t({
        [La]: "number",
        [Zl]: "a number"
    }), T8t = hp("NumberKeyword"), P8t = hp("SymbolKeyword");
    class R8t {
        annotations;
        _tag = "ObjectKeyword";
        constructor(t = {}){
            this.annotations = t;
        }
        toString(t = !1) {
            return Yl(this, t);
        }
        toJSON() {
            return {
                _tag: this._tag,
                annotations: Pn(this.annotations)
            };
        }
    }
    const U8t = new R8t({
        [S0]: "object",
        [La]: "object",
        [Zl]: "an object in the TypeScript meaning, i.e. the `object` type"
    });
    class cb {
        type;
        isOptional;
        constructor(t, e){
            this.type = t, this.isOptional = e;
        }
        toJSON() {
            return {
                type: this.type.toJSON(),
                isOptional: this.isOptional
            };
        }
        toString() {
            return String(this.type) + (this.isOptional ? "?" : "");
        }
    }
    let Bh = class {
        elements;
        rest;
        isReadonly;
        annotations;
        _tag = "TupleType";
        constructor(t, e, o, _ = {}){
            this.elements = t, this.rest = e, this.isReadonly = o, this.annotations = _;
            let a = !1, c = !1;
            for (const s of t)if (s.isOptional) a = !0;
            else if (a) {
                c = !0;
                break;
            }
            if (c || a && e.length > 1) throw new Error(d8t);
        }
        toString(t = !1) {
            return sr(za(this, t), ()=>C8t(this));
        }
        toJSON() {
            return {
                _tag: this._tag,
                elements: this.elements.map((t)=>t.toJSON()),
                rest: this.rest.map((t)=>t.toJSON()),
                isReadonly: this.isReadonly,
                annotations: Pn(this.annotations)
            };
        }
    };
    const C8t = (n)=>{
        const t = n.elements.map(String).join(", ");
        return _5(n.rest, {
            onEmpty: ()=>`readonly [${t}]`,
            onNonEmpty: (e, o)=>{
                const _ = String(e), a = _.includes(" | ") ? `(${_})` : _;
                if (o.length > 0) {
                    const c = o.map(String).join(", ");
                    return n.elements.length > 0 ? `readonly [${t}, ...${a}[], ${c}]` : `readonly [...${a}[], ${c}]`;
                } else return n.elements.length > 0 ? `readonly [${t}, ...${a}[]]` : `ReadonlyArray<${_}>`;
            }
        });
    };
    class Dn {
        name;
        type;
        isOptional;
        isReadonly;
        annotations;
        constructor(t, e, o, _, a = {}){
            this.name = t, this.type = e, this.isOptional = o, this.isReadonly = _, this.annotations = a;
        }
        toJSON() {
            return {
                name: String(this.name),
                type: this.type.toJSON(),
                isOptional: this.isOptional,
                isReadonly: this.isReadonly,
                annotations: Pn(this.annotations)
            };
        }
    }
    const E9 = (n)=>{
        switch(n._tag){
            case "StringKeyword":
            case "SymbolKeyword":
            case "TemplateLiteral":
                return !0;
            case "Refinement":
                return E9(n.from);
        }
        return !1;
    };
    class O0 {
        type;
        isReadonly;
        parameter;
        constructor(t, e, o){
            if (this.type = e, this.isReadonly = o, E9(t)) this.parameter = t;
            else throw new Error(c8t);
        }
        toJSON() {
            return {
                parameter: this.parameter.toJSON(),
                type: this.type.toJSON(),
                isReadonly: this.isReadonly
            };
        }
    }
    let Kd = class {
        annotations;
        _tag = "TypeLiteral";
        propertySignatures;
        indexSignatures;
        constructor(t, e, o = {}){
            this.annotations = o;
            const _ = {};
            for(let c = 0; c < t.length; c++){
                const s = t[c].name;
                if (Object.prototype.hasOwnProperty.call(_, s)) throw new Error(s8t(s));
                _[s] = null;
            }
            const a = {
                string: !1,
                symbol: !1
            };
            for(let c = 0; c < e.length; c++){
                const s = F0(e[c].parameter);
                if (S9(s)) {
                    if (a.string) throw new Error(F8("string"));
                    a.string = !0;
                } else if (P8t(s)) {
                    if (a.symbol) throw new Error(F8("symbol"));
                    a.symbol = !0;
                }
            }
            this.propertySignatures = $8t(t), this.indexSignatures = t5t(e);
        }
        toString(t = !1) {
            return sr(za(this, t), ()=>N8t(this));
        }
        toJSON() {
            return {
                _tag: this._tag,
                propertySignatures: this.propertySignatures.map((t)=>t.toJSON()),
                indexSignatures: this.indexSignatures.map((t)=>t.toJSON()),
                annotations: Pn(this.annotations)
            };
        }
    };
    const N8t = (n)=>{
        const t = n.propertySignatures.map((e)=>String(e.name) + (e.isOptional ? "?" : "") + ": " + e.type).join("; ");
        if (n.indexSignatures.length > 0) {
            const e = n.indexSignatures.map((o)=>`[x: ${F0(o.parameter)}]: ${o.type}`).join("; ");
            return n.propertySignatures.length > 0 ? `{ ${t}; ${e} }` : `{ ${e} }`;
        } else return n.propertySignatures.length > 0 ? `{ ${t} }` : "{}";
    }, M8t = (n)=>n.filter((t)=>t !== Ig), L8t = yl(hl(vl, (n)=>{
        switch(n._tag){
            case "AnyKeyword":
                return 0;
            case "UnknownKeyword":
                return 1;
            case "ObjectKeyword":
                return 2;
            case "StringKeyword":
            case "NumberKeyword":
            case "BooleanKeyword":
            case "BigIntKeyword":
            case "SymbolKeyword":
                return 3;
        }
        return 4;
    })), z8t = {
        string: "StringKeyword",
        number: "NumberKeyword",
        boolean: "BooleanKeyword",
        bigint: "BigIntKeyword"
    }, O9 = (n)=>e5(n, (t)=>D8t(t) ? O9(t.types) : [
                t
            ]), q8t = (n)=>{
        const t = L8t(n), e = [], o = {}, _ = [];
        for (const a of t)switch(a._tag){
            case "NeverKeyword":
                break;
            case "AnyKeyword":
                return [
                    S8t
                ];
            case "UnknownKeyword":
                return [
                    j9
                ];
            case "ObjectKeyword":
            case "UndefinedKeyword":
            case "VoidKeyword":
            case "StringKeyword":
            case "NumberKeyword":
            case "BooleanKeyword":
            case "BigIntKeyword":
            case "SymbolKeyword":
                {
                    o[a._tag] || (o[a._tag] = a, e.push(a));
                    break;
                }
            case "Literal":
                {
                    const c = typeof a.literal;
                    switch(c){
                        case "string":
                        case "number":
                        case "bigint":
                        case "boolean":
                            {
                                const s = z8t[c];
                                !o[s] && !_.includes(a.literal) && (_.push(a.literal), e.push(a));
                                break;
                            }
                        case "object":
                            {
                                _.includes(a.literal) || (_.push(a.literal), e.push(a));
                                break;
                            }
                    }
                    break;
                }
            case "UniqueSymbol":
                {
                    !o.SymbolKeyword && !_.includes(a.symbol) && (_.push(a.symbol), e.push(a));
                    break;
                }
            case "TupleType":
                {
                    o.ObjectKeyword || e.push(a);
                    break;
                }
            case "TypeLiteral":
                {
                    a.propertySignatures.length === 0 && a.indexSignatures.length === 0 ? o["{}"] || (o["{}"] = a, e.push(a)) : o.ObjectKeyword || e.push(a);
                    break;
                }
            default:
                e.push(a);
        }
        return e;
    };
    let Nd = class Xf {
        types;
        annotations;
        static make = (t, e)=>{
            const o = [], _ = new Set;
            for(let a = 0; a < t.length; a++){
                const c = t[a];
                c === Ig || _.has(c) || (_.add(c), o.push(c));
            }
            return Xf.union(o, e);
        };
        static members = (t, e)=>Xf.union(M8t(t), e);
        static unify = (t, e)=>Xf.union(q8t(O9(t)), e);
        static union = (t, e)=>F9(t) ? new Xf(t, e) : t.length === 1 ? t[0] : Ig;
        _tag = "Union";
        constructor(t, e = {}){
            this.types = t, this.annotations = e;
        }
        toString(t = !1) {
            return sr(za(this, t), ()=>this.types.map(String).join(" | "));
        }
        toJSON() {
            return {
                _tag: this._tag,
                types: this.types.map((t)=>t.toJSON()),
                annotations: Pn(this.annotations)
            };
        }
    };
    const F9 = (n)=>n.length > 1, D8t = hp("Union"), uw = wb(Symbol.for("@effect/schema/AST/toJSONMemoMap"), ()=>new WeakMap);
    class xh {
        f;
        annotations;
        _tag = "Suspend";
        constructor(t, e = {}){
            this.f = t, this.annotations = e, this.f = v9(t);
        }
        toString(t = !1) {
            return za(this, t).pipe(Ai(()=>bb(r5(this.f)(), (e)=>za(e, t))), sr(()=>"<suspended schema>"));
        }
        toJSON() {
            const t = this.f();
            let e = uw.get(t);
            return e || (uw.set(t, {
                _tag: this._tag
            }), e = {
                _tag: this._tag,
                ast: t.toJSON(),
                annotations: Pn(this.annotations)
            }, uw.set(t, e), e);
        }
    }
    let A9 = class {
        from;
        filter;
        annotations;
        _tag = "Refinement";
        constructor(t, e, o = {}){
            this.from = t, this.filter = e, this.annotations = o;
        }
        toString(t = !1) {
            return sr(za(this, t), ()=>"<refinement schema>");
        }
        toJSON() {
            return {
                _tag: this._tag,
                from: this.from.toJSON(),
                annotations: Pn(this.annotations)
            };
        }
    };
    const lw = {};
    let jh = class {
        from;
        to;
        transformation;
        annotations;
        _tag = "Transformation";
        constructor(t, e, o, _ = {}){
            this.from = t, this.to = e, this.transformation = o, this.annotations = _;
        }
        toString(t = !1) {
            return sr(za(this, t), ()=>`(${String(this.from)} <-> ${String(this.to)})`);
        }
        toJSON() {
            return {
                _tag: this._tag,
                from: this.from.toJSON(),
                to: this.to.toJSON(),
                annotations: Pn(this.annotations)
            };
        }
    };
    class G8t {
        decode;
        encode;
        _tag = "FinalTransformation";
        constructor(t, e){
            this.decode = t, this.encode = e;
        }
    }
    class H8t {
        _tag = "ComposeTransformation";
    }
    const K8t = new H8t;
    class V8t {
        from;
        to;
        decode;
        encode;
        constructor(t, e, o, _){
            this.from = t, this.to = e, this.decode = o, this.encode = _;
        }
    }
    class Z8t {
        propertySignatureTransformations;
        _tag = "TypeLiteralTransformation";
        constructor(t){
            this.propertySignatureTransformations = t;
            const e = {}, o = {};
            for (const _ of t){
                const a = _.from;
                if (e[a]) throw new Error(A8(a));
                e[a] = !0;
                const c = _.to;
                if (o[c]) throw new Error(A8(c));
                o[c] = !0;
            }
        }
    }
    const Ic = (n, t)=>{
        const e = Object.getOwnPropertyDescriptors(n);
        return e.annotations.value = {
            ...n.annotations,
            ...t
        }, Object.create(Object.getPrototypeOf(n), e);
    }, Y8t = ".*", W8t = "[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?", J8t = (n)=>{
        let t = `^${Kp(n.head)}`;
        for (const e of n.spans)S9(e.type) ? t += Y8t : T8t(e.type) && (t += W8t), t += Kp(e.literal);
        return t += "$", new RegExp(t);
    }, N8 = (n, t)=>{
        const e = [], o = [], _ = (a)=>{
            switch(a._tag){
                case "NeverKeyword":
                    break;
                case "StringKeyword":
                case "SymbolKeyword":
                case "TemplateLiteral":
                case "Refinement":
                    o.push(new O0(a, t, !0));
                    break;
                case "Literal":
                    if (c_(a.literal) || nu(a.literal)) e.push(new Dn(a.literal, t, !1, !0));
                    else throw new Error(T8("Record", `unsupported literal (${zi(a.literal)})`));
                    break;
                case "UniqueSymbol":
                    e.push(new Dn(a.symbol, t, !1, !0));
                    break;
                case "Union":
                    a.types.forEach(_);
                    break;
                default:
                    throw new Error(T8("Record", `unsupported key schema (${a})`));
            }
        };
        return _(n), {
            propertySignatures: e,
            indexSignatures: o
        };
    }, Gn = (n)=>{
        switch(n._tag){
            case "Declaration":
                {
                    const t = W_(n.typeParameters, Gn);
                    return t === n.typeParameters ? n : new E0(t, n.decodeUnknown, n.encodeUnknown, n.annotations);
                }
            case "TupleType":
                {
                    const t = W_(n.elements, (o)=>{
                        const _ = Gn(o.type);
                        return _ === o.type ? o : new cb(_, o.isOptional);
                    }), e = W_(n.rest, Gn);
                    return t === n.elements && e === n.rest ? n : new Bh(t, e, n.isReadonly, n.annotations);
                }
            case "TypeLiteral":
                {
                    const t = W_(n.propertySignatures, (o)=>{
                        const _ = Gn(o.type);
                        return _ === o.type ? o : new Dn(o.name, _, o.isOptional, o.isReadonly);
                    }), e = W_(n.indexSignatures, (o)=>{
                        const _ = Gn(o.type);
                        return _ === o.type ? o : new O0(o.parameter, _, o.isReadonly);
                    });
                    return t === n.propertySignatures && e === n.indexSignatures ? n : new Kd(t, e, n.annotations);
                }
            case "Union":
                {
                    const t = W_(n.types, Gn);
                    return t === n.types ? n : Nd.make(t, n.annotations);
                }
            case "Suspend":
                return new xh(()=>Gn(n.f()), n.annotations);
            case "Refinement":
                {
                    const t = Gn(n.from);
                    return t === n.from ? n : new A9(t, n.filter, n.annotations);
                }
            case "Transformation":
                return Gn(n.to);
        }
        return n;
    }, X8t = (n)=>Ai(m8t(n), ()=>Dw(n)), Rp = (n)=>qu(X8t(n), {
            onNone: ()=>{},
            onSome: (t)=>({
                    [x9]: t
                })
        });
    function W_(n, t) {
        let e = !1;
        const o = n5(n.length);
        for(let _ = 0; _ < n.length; _++){
            const a = n[_], c = t(a);
            c !== a && (e = !0), o[_] = c;
        }
        return e ? o : n;
    }
    const $o = (n)=>{
        switch(n._tag){
            case "Declaration":
                {
                    const t = W_(n.typeParameters, $o);
                    return t === n.typeParameters ? n : new E0(t, n.decodeUnknown, n.encodeUnknown, n.annotations);
                }
            case "TupleType":
                {
                    const t = W_(n.elements, (o)=>{
                        const _ = $o(o.type);
                        return _ === o.type ? o : new cb(_, o.isOptional);
                    }), e = W_(n.rest, $o);
                    return t === n.elements && e === n.rest ? n : new Bh(t, e, n.isReadonly, Rp(n));
                }
            case "TypeLiteral":
                {
                    const t = W_(n.propertySignatures, (o)=>{
                        const _ = $o(o.type);
                        return _ === o.type ? o : new Dn(o.name, _, o.isOptional, o.isReadonly);
                    }), e = W_(n.indexSignatures, (o)=>{
                        const _ = $o(o.type);
                        return _ === o.type ? o : new O0(o.parameter, _, o.isReadonly);
                    });
                    return t === n.propertySignatures && e === n.indexSignatures ? n : new Kd(t, e, Rp(n));
                }
            case "Union":
                {
                    const t = W_(n.types, $o);
                    return t === n.types ? n : Nd.make(t, Rp(n));
                }
            case "Suspend":
                return new xh(()=>$o(n.f()), Rp(n));
            case "Refinement":
            case "Transformation":
                return $o(n.from);
        }
        return n;
    }, Pn = (n)=>{
        const t = {};
        for (const e of Object.getOwnPropertySymbols(n))t[String(e)] = n[e];
        return t;
    }, Q8t = (n)=>{
        switch(n._tag){
            case "NeverKeyword":
                return 0;
            case "Literal":
            case "UndefinedKeyword":
            case "VoidKeyword":
            case "UniqueSymbol":
                return 1;
            case "BooleanKeyword":
                return 2;
            case "StringKeyword":
            case "NumberKeyword":
            case "BigIntKeyword":
            case "SymbolKeyword":
                return 3;
            case "ObjectKeyword":
                return 5;
            case "UnknownKeyword":
            case "AnyKeyword":
                return 6;
            default:
                return 4;
        }
    }, $8t = yl(hl(vl, (n)=>Q8t(n.type))), t5t = yl(hl(vl, (n)=>{
        switch(F0(n.parameter)._tag){
            case "StringKeyword":
                return 2;
            case "SymbolKeyword":
                return 3;
            case "TemplateLiteral":
                return 1;
        }
    })), F0 = (n)=>{
        switch(n._tag){
            case "StringKeyword":
            case "SymbolKeyword":
            case "TemplateLiteral":
                return n;
            case "Refinement":
                return F0(n.from);
        }
    }, e5t = (n, t)=>new jh(n, t, K8t), Yl = (n, t = !1)=>sr(za(n, t), ()=>n._tag), za = (n, t)=>{
        if (t) {
            const e = U8(n).pipe(Ai(()=>R8(n)));
            return qu(Dw(n), {
                onNone: ()=>e,
                onSome: (o)=>qu(e, {
                        onNone: ()=>Ui(o),
                        onSome: (_)=>Ui(`${o} (${_})`)
                    })
            });
        } else return Dw(n).pipe(Ai(()=>R8(n)), Ai(()=>U8(n)));
    }, r5t = Symbol.for("@effect/schema/TypeId/MaxLength"), n5t = Symbol.for("@effect/schema/ArbitraryHookId"), bn = (n, t = [])=>({
            value: n,
            forest: t
        }), _5t = (n)=>je(ti(n), (t)=>a5t(t)), Sh = (n)=>G_(_5t(n)), a5t = (n)=>n.value + T9(`
`, n.forest), T9 = (n, t)=>{
        let e = "";
        const o = t.length;
        let _;
        for(let a = 0; a < o; a++){
            _ = t[a];
            const c = a === o - 1;
            e += n + (c ? "└" : "├") + "─ " + _.value, e += T9(n + (o > 1 && !c ? "│  " : "   "), _.forest);
        }
        return e;
    }, o5t = (n)=>{
        switch(n){
            case "Encoded":
                return "Encoded side transformation failure";
            case "Transformation":
                return "Transformation process failure";
            case "Type":
                return "Type side transformation failure";
        }
    }, i5t = (n)=>{
        switch(n){
            case "From":
                return "From side refinement failure";
            case "Predicate":
                return "Predicate refinement failure";
        }
    }, s5t = (n)=>{
        switch(n._tag){
            case "Refinement":
                {
                    if (n.kind === "From") return db(n.error);
                    break;
                }
            case "Transformation":
                return db(n.error);
        }
        return qi();
    }, c5t = (n)=>b8t(n.ast).pipe(Ae((t)=>{
            const e = t(n);
            return c_(e) ? Ir(e) : e;
        })), db = (n)=>Sg(s5t(n), ()=>c5t(n)), P9 = (n)=>o5(h8t(n.ast), (t)=>yb(t(n))), d5t = (n)=>db(n).pipe(kw(()=>P9(n)), kw(()=>n.message), Sg(()=>Ir(`Expected ${n.ast.toString(!0)}, actual ${zi(n.actual)}`))), Fd = (n)=>sr(P9(n), ()=>String(n.ast)), u5t = (n)=>sr(n.message, ()=>"is forbidden"), mu = (n, t)=>a5(db(n), {
            onFailure: t,
            onSuccess: (e)=>Ir(bn(e))
        }), ti = (n)=>{
        switch(n._tag){
            case "Type":
                return je(d5t(n), bn);
            case "Forbidden":
                return Ir(bn(Fd(n), [
                    bn(u5t(n))
                ]));
            case "Unexpected":
                return Ir(bn(`is unexpected, expected ${n.ast.toString(!0)}`));
            case "Missing":
                return Ir(bn("is missing"));
            case "Union":
                return mu(n, ()=>je(Ta(n.errors, (t)=>{
                        switch(t._tag){
                            case "Member":
                                return je(ti(t.error), (e)=>bn("Union member", [
                                        e
                                    ]));
                            default:
                                return ti(t);
                        }
                    }), (t)=>bn(Fd(n), t)));
            case "TupleType":
                return mu(n, ()=>je(Ta(n.errors, (t)=>je(ti(t.error), (e)=>bn(`[${t.index}]`, [
                                e
                            ]))), (t)=>bn(Fd(n), t)));
            case "TypeLiteral":
                return mu(n, ()=>je(Ta(n.errors, (t)=>je(ti(t.error), (e)=>bn(`[${zi(t.key)}]`, [
                                e
                            ]))), (t)=>bn(Fd(n), t)));
            case "Transformation":
                return mu(n, ()=>je(ti(n.error), (t)=>bn(Fd(n), [
                            bn(o5t(n.kind), [
                                t
                            ])
                        ])));
            case "Refinement":
                return mu(n, ()=>je(ti(n.error), (t)=>bn(Fd(n), [
                            bn(i5t(n.kind), [
                                t
                            ])
                        ])));
            case "Declaration":
                return mu(n, ()=>{
                    const t = n.error;
                    return t._tag === "Type" && t.ast === n.ast ? ti(t) : je(ti(t), (o)=>bn(Fd(n), [
                            o
                        ]));
                });
        }
    };
    class l5t {
        ast;
        actual;
        error;
        _tag = "Declaration";
        constructor(t, e, o){
            this.ast = t, this.actual = e, this.error = o;
        }
    }
    class M8 {
        ast;
        actual;
        kind;
        error;
        _tag = "Refinement";
        constructor(t, e, o, _){
            this.ast = t, this.actual = e, this.kind = o, this.error = _;
        }
    }
    class Wo {
        ast;
        actual;
        errors;
        output;
        _tag = "TupleType";
        constructor(t, e, o, _ = []){
            this.ast = t, this.actual = e, this.errors = o, this.output = _;
        }
    }
    class rs {
        index;
        error;
        _tag = "Index";
        constructor(t, e){
            this.index = t, this.error = e;
        }
    }
    class Jo {
        ast;
        actual;
        errors;
        output;
        _tag = "TypeLiteral";
        constructor(t, e, o, _ = {}){
            this.ast = t, this.actual = e, this.errors = o, this.output = _;
        }
    }
    class ns {
        key;
        error;
        _tag = "Key";
        constructor(t, e){
            this.key = t, this.error = e;
        }
    }
    class L8 {
        ast;
        _tag = "Unexpected";
        constructor(t){
            this.ast = t;
        }
    }
    class fw {
        ast;
        actual;
        kind;
        error;
        _tag = "Transformation";
        constructor(t, e, o, _){
            this.ast = t, this.actual = e, this.kind = o, this.error = _;
        }
    }
    class oo {
        ast;
        actual;
        _tag = "Type";
        message;
        constructor(t, e, o){
            this.ast = t, this.actual = e, this.message = yb(o);
        }
    }
    class f5t {
        ast;
        actual;
        _tag = "Forbidden";
        message;
        constructor(t, e, o){
            this.ast = t, this.actual = e, this.message = yb(o);
        }
    }
    class g5t {
        _tag = "Missing";
    }
    const Hf = new g5t;
    class z8 {
        ast;
        error;
        _tag = "Member";
        constructor(t, e){
            this.ast = t, this.error = e;
        }
    }
    let p5t = class {
        ast;
        actual;
        errors;
        _tag = "Union";
        constructor(t, e, o){
            this.ast = t, this.actual = e, this.errors = o;
        }
    };
    class Oxt extends fo("ParseError") {
        get message() {
            return this.toString();
        }
        toString() {
            return Sh(this.error);
        }
        toJSON() {
            return {
                _id: "ParseError",
                message: this.toString()
            };
        }
        [s5]() {
            return this.toJSON();
        }
    }
    const b5t = cr, w5t = Xt, q8 = d7, gw = lo(2, (n, t)=>{
        const e = n;
        return e._tag === "Left" ? e : e._tag === "Right" ? t(e.right) : Ae(n, t);
    }), y5t = lo(2, (n, t)=>{
        const e = n;
        return e._tag === "Left" ? e : e._tag === "Right" ? cr(t(e.right)) : je(n, t);
    }), Kf = lo(2, (n, t)=>{
        const e = n;
        return e._tag === "Left" ? Xt(t(e.left)) : e._tag === "Right" ? e : c5(n, t);
    }), ei = (n)=>{
        const t = n;
        if (t._tag === "Left" || t._tag === "Right") return t;
    }, Eh = (n, t)=>{
        if (n === void 0) return t;
        if (t === void 0) return n;
        const e = {};
        return e.errors = t.errors ?? n.errors, e.onExcessProperty = t.onExcessProperty ?? n.onExcessProperty, e;
    }, h5t = (n, t, e)=>{
        const o = $n(n);
        return (_, a)=>o(_, Eh(e, a));
    }, v5t = (n, t, e)=>{
        const o = h5t(n, t, e);
        return (_, a)=>i5(o(_, a), (c)=>new Error(Sh(c)));
    }, R9 = (n, t)=>v5t(n.ast, !0, t), m5t = (n, t)=>{
        const e = $n(Gn(n.ast));
        return (o, _)=>Md(e(o, {
                ...Eh(t, _),
                isExact: !0
            }));
    }, I5t = (n, t)=>{
        const e = $n(Gn(n.ast));
        return (o, _)=>{
            const a = e(o, {
                ...Eh(t, _),
                isExact: !0
            });
            if (ir(a)) throw new Error(Sh(a.left));
        };
    }, k5t = wb(Symbol.for("@effect/schema/Parser/decodeMemoMap"), ()=>new WeakMap), $n = (n, t)=>{
        const e = k5t, o = e.get(n);
        if (o) return o;
        const _ = B5t(n);
        return e.set(n, _), _;
    }, pw = (n)=>Du(w8t(n)), bw = (n)=>Du(y8t(n)), B5t = (n, t)=>{
        switch(n._tag){
            case "Refinement":
                {
                    const e = $n(n.from);
                    return (o, _)=>ww(gw(Kf(e(o, _), (a)=>new M8(n, o, "From", a)), (a)=>qu(n.filter(a, _ ?? lw, n), {
                                onNone: ()=>cr(a),
                                onSome: (c)=>Xt(new M8(n, o, "Predicate", c))
                            })), n, o, _);
                }
            case "Transformation":
                {
                    const e = j5t(n.transformation), o = $n(n.from), _ = $n(n.to);
                    return (a, c)=>ww(gw(Kf(o(a, c), (s)=>new fw(n, a, "Encoded", s)), (s)=>gw(Kf(e(s, c ?? lw, n), (u)=>new fw(n, a, "Transformation", u)), (u)=>Kf(_(u, c), (l)=>new fw(n, a, "Type", l)))), n, a, c);
                }
            case "Declaration":
                {
                    const e = n.decodeUnknown(...n.typeParameters);
                    return (o, _)=>ww(Kf(e(o, _ ?? lw, n), (a)=>new l5t(n, o, a)), n, o, _);
                }
            case "Literal":
                return Xn(n, (e)=>e === n.literal);
            case "UniqueSymbol":
                return Xn(n, (e)=>e === n.symbol);
            case "UndefinedKeyword":
                return Xn(n, Zp);
            case "VoidKeyword":
                return Xn(n, Zp);
            case "NeverKeyword":
                return Xn(n, u5);
            case "UnknownKeyword":
            case "AnyKeyword":
                return cr;
            case "StringKeyword":
                return Xn(n, c_);
            case "NumberKeyword":
                return Xn(n, nu);
            case "BooleanKeyword":
                return Xn(n, pl);
            case "BigIntKeyword":
                return Xn(n, bl);
            case "SymbolKeyword":
                return Xn(n, zu);
            case "ObjectKeyword":
                return Xn(n, hb);
            case "Enums":
                return Xn(n, (e)=>n.enums.some(([o, _])=>_ === e));
            case "TemplateLiteral":
                {
                    const e = J8t(n);
                    return Xn(n, (o)=>c_(o) && e.test(o));
                }
            case "TupleType":
                {
                    const e = n.elements.map((u)=>$n(u.type)), o = n.rest.map((u)=>$n(u));
                    let _ = n.elements.filter((u)=>!u.isOptional).length;
                    n.rest.length > 0 && (_ += n.rest.length - 1);
                    const a = Nd.make(n.elements.map((u, l)=>new C8(l))), c = pw(n), s = bw(n);
                    return (u, l)=>{
                        if (!Hp(u)) return Xt(new oo(n, u));
                        const f = l?.errors === "all", p = [];
                        let g = 0;
                        const h = u.length;
                        for(let S = h; S <= _ - 1; S++){
                            const b = new rs(S, Hf);
                            if (f) {
                                p.push([
                                    g++,
                                    b
                                ]);
                                continue;
                            } else return Xt(new Wo(n, u, [
                                b
                            ]));
                        }
                        if (n.rest.length === 0) for(let S = n.elements.length; S <= h - 1; S++){
                            const b = new rs(S, new L8(a));
                            if (f) {
                                p.push([
                                    g++,
                                    b
                                ]);
                                continue;
                            } else return Xt(new Wo(n, u, [
                                b
                            ]));
                        }
                        const B = [];
                        let I = 0, j;
                        for(; I < e.length; I++)if (h < I + 1) {
                            if (n.elements[I].isOptional) continue;
                        } else {
                            const S = e[I], b = S(u[I], l), k = ei(b);
                            if (k) {
                                if (ir(k)) {
                                    const F = new rs(I, k.left);
                                    if (f) {
                                        p.push([
                                            g++,
                                            F
                                        ]);
                                        continue;
                                    } else return Xt(new Wo(n, u, [
                                        F
                                    ], va(B)));
                                }
                                B.push([
                                    g++,
                                    k.right
                                ]);
                            } else {
                                const F = g++, Y = I;
                                j || (j = []), j.push(({ es: K, output: J })=>Ae(Hn(b), (P)=>{
                                        if (ir(P)) {
                                            const T = new rs(Y, P.left);
                                            return f ? (K.push([
                                                F,
                                                T
                                            ]), $e) : Xt(new Wo(n, u, [
                                                T
                                            ], va(J)));
                                        }
                                        return J.push([
                                            F,
                                            P.right
                                        ]), $e;
                                    }));
                            }
                        }
                        if (ml(o)) {
                            const [S, ...b] = o;
                            for(; I < h - b.length; I++){
                                const k = S(u[I], l), F = ei(k);
                                if (F) if (ir(F)) {
                                    const Y = new rs(I, F.left);
                                    if (f) {
                                        p.push([
                                            g++,
                                            Y
                                        ]);
                                        continue;
                                    } else return Xt(new Wo(n, u, [
                                        Y
                                    ], va(B)));
                                } else B.push([
                                    g++,
                                    F.right
                                ]);
                                else {
                                    const Y = g++, K = I;
                                    j || (j = []), j.push(({ es: J, output: P })=>Ae(Hn(k), (T)=>{
                                            if (ir(T)) {
                                                const E = new rs(K, T.left);
                                                return f ? (J.push([
                                                    Y,
                                                    E
                                                ]), $e) : Xt(new Wo(n, u, [
                                                    E
                                                ], va(P)));
                                            } else return P.push([
                                                Y,
                                                T.right
                                            ]), $e;
                                        }));
                                }
                            }
                            for(let k = 0; k < b.length; k++)if (I += k, !(h < I + 1)) {
                                const F = b[k](u[I], l), Y = ei(F);
                                if (Y) {
                                    if (ir(Y)) {
                                        const K = new rs(I, Y.left);
                                        if (f) {
                                            p.push([
                                                g++,
                                                K
                                            ]);
                                            continue;
                                        } else return Xt(new Wo(n, u, [
                                            K
                                        ], va(B)));
                                    }
                                    B.push([
                                        g++,
                                        Y.right
                                    ]);
                                } else {
                                    const K = g++, J = I;
                                    j || (j = []), j.push(({ es: P, output: T })=>Ae(Hn(F), (E)=>{
                                            if (ir(E)) {
                                                const N = new rs(J, E.left);
                                                return f ? (P.push([
                                                    K,
                                                    N
                                                ]), $e) : Xt(new Wo(n, u, [
                                                    N
                                                ], va(T)));
                                            }
                                            return T.push([
                                                K,
                                                E.right
                                            ]), $e;
                                        }));
                                }
                            }
                        }
                        const w = ({ es: S, output: b })=>Ld(S) ? Xt(new Wo(n, u, va(S), va(b))) : cr(va(b));
                        if (j && j.length > 0) {
                            const S = j;
                            return zs(()=>{
                                const b = {
                                    es: qs(p),
                                    output: qs(B)
                                };
                                return Ae(Ta(S, (k)=>k(b), {
                                    concurrency: c,
                                    batching: s,
                                    discard: !0
                                }), ()=>w(b));
                            });
                        }
                        return w({
                            output: B,
                            es: p
                        });
                    };
                }
            case "TypeLiteral":
                {
                    if (n.propertySignatures.length === 0 && n.indexSignatures.length === 0) return Xn(n, d5);
                    const e = [], o = {};
                    for (const l of n.propertySignatures)e.push([
                        $n(l.type),
                        l
                    ]), o[l.name] = null;
                    const _ = n.indexSignatures.map((l)=>[
                            $n(l.parameter),
                            $n(l.type),
                            l.parameter
                        ]), a = Nd.make(n.indexSignatures.map((l)=>l.parameter).concat(ng(o).map((l)=>zu(l) ? new k8t(l) : new C8(l)))), c = $n(a), s = pw(n), u = bw(n);
                    return (l, f)=>{
                        if (!Vp(l)) return Xt(new oo(n, l));
                        const p = f?.errors === "all", g = [];
                        let h = 0;
                        const B = f?.onExcessProperty === "error", I = f?.onExcessProperty === "preserve", j = {};
                        if (B || I) for (const k of ng(l)){
                            const F = ei(c(k, f));
                            if (ir(F)) if (B) {
                                const Y = new ns(k, new L8(a));
                                if (p) {
                                    g.push([
                                        h++,
                                        Y
                                    ]);
                                    continue;
                                } else return Xt(new Jo(n, l, [
                                    Y
                                ], j));
                            } else j[k] = l[k];
                        }
                        let w;
                        const S = f?.isExact === !0;
                        for(let k = 0; k < e.length; k++){
                            const F = e[k][1], Y = F.name, K = Object.prototype.hasOwnProperty.call(l, Y);
                            if (!K) {
                                if (F.isOptional) continue;
                                if (S) {
                                    const E = new ns(Y, Hf);
                                    if (p) {
                                        g.push([
                                            h++,
                                            E
                                        ]);
                                        continue;
                                    } else return Xt(new Jo(n, l, [
                                        E
                                    ], j));
                                }
                            }
                            const J = e[k][0], P = J(l[Y], f), T = ei(P);
                            if (T) {
                                if (ir(T)) {
                                    const E = new ns(Y, K ? T.left : Hf);
                                    if (p) {
                                        g.push([
                                            h++,
                                            E
                                        ]);
                                        continue;
                                    } else return Xt(new Jo(n, l, [
                                        E
                                    ], j));
                                }
                                j[Y] = T.right;
                            } else {
                                const E = h++, N = Y;
                                w || (w = []), w.push(({ es: y, output: O })=>Ae(Hn(P), (m)=>{
                                        if (ir(m)) {
                                            const R = new ns(N, K ? m.left : Hf);
                                            return p ? (y.push([
                                                E,
                                                R
                                            ]), $e) : Xt(new Jo(n, l, [
                                                R
                                            ], O));
                                        }
                                        return O[N] = m.right, $e;
                                    }));
                            }
                        }
                        for(let k = 0; k < _.length; k++){
                            const F = _[k], Y = F[0], K = F[1], J = h9(l, F[2]);
                            for (const P of J){
                                const T = ei(Y(P, f));
                                if (T && Md(T)) {
                                    const E = K(l[P], f), N = ei(E);
                                    if (N) if (ir(N)) {
                                        const y = new ns(P, N.left);
                                        if (p) {
                                            g.push([
                                                h++,
                                                y
                                            ]);
                                            continue;
                                        } else return Xt(new Jo(n, l, [
                                            y
                                        ], j));
                                    } else Object.prototype.hasOwnProperty.call(o, P) || (j[P] = N.right);
                                    else {
                                        const y = h++, O = P;
                                        w || (w = []), w.push(({ es: m, output: R })=>Ae(Hn(E), (v)=>{
                                                if (ir(v)) {
                                                    const A = new ns(O, v.left);
                                                    return p ? (m.push([
                                                        y,
                                                        A
                                                    ]), $e) : Xt(new Jo(n, l, [
                                                        A
                                                    ], R));
                                                } else return Object.prototype.hasOwnProperty.call(o, P) || (R[P] = v.right), $e;
                                            }));
                                    }
                                }
                            }
                        }
                        const b = ({ es: k, output: F })=>Ld(k) ? Xt(new Jo(n, l, va(k), F)) : cr(F);
                        if (w && w.length > 0) {
                            const k = w;
                            return zs(()=>{
                                const F = {
                                    es: qs(g),
                                    output: Object.assign({}, j)
                                };
                                return Ae(Ta(k, (Y)=>Y(F), {
                                    concurrency: s,
                                    batching: u,
                                    discard: !0
                                }), ()=>b(F));
                            });
                        }
                        return b({
                            es: g,
                            output: j
                        });
                    };
                }
            case "Union":
                {
                    const e = x5t(n.types), o = ng(e.keys), _ = o.length, a = new Map;
                    for(let u = 0; u < n.types.length; u++)a.set(n.types[u], $n(n.types[u]));
                    const c = pw(n) ?? 1, s = bw(n);
                    return (u, l)=>{
                        const f = [];
                        let p = 0, g = [];
                        if (_ > 0) if (Vp(u)) for(let I = 0; I < _; I++){
                            const j = o[I], w = e.keys[j].buckets;
                            if (Object.prototype.hasOwnProperty.call(u, j)) {
                                const S = String(u[j]);
                                if (Object.prototype.hasOwnProperty.call(w, S)) g = g.concat(w[S]);
                                else {
                                    const b = Nd.make(e.keys[j].literals);
                                    f.push([
                                        p++,
                                        new Jo(new Kd([
                                            new Dn(j, b, !1, !0)
                                        ], []), u, [
                                            new ns(j, new oo(b, u[j]))
                                        ])
                                    ]);
                                }
                            } else {
                                const S = Nd.make(e.keys[j].literals);
                                f.push([
                                    p++,
                                    new Jo(new Kd([
                                        new Dn(j, S, !1, !0)
                                    ], []), u, [
                                        new ns(j, Hf)
                                    ])
                                ]);
                            }
                        }
                        else f.push([
                            p++,
                            new oo(n, u)
                        ]);
                        e.otherwise.length > 0 && (g = g.concat(e.otherwise));
                        let h;
                        for(let I = 0; I < g.length; I++){
                            const j = g[I], w = a.get(j)(u, l), S = !h || h.length === 0 ? ei(w) : void 0;
                            if (S) {
                                if (Md(S)) return cr(S.right);
                                f.push([
                                    p++,
                                    new z8(j, S.left)
                                ]);
                            } else {
                                const b = p++;
                                h || (h = []), h.push((k)=>zs(()=>"finalResult" in k ? $e : Ae(Hn(w), (F)=>(Md(F) ? k.finalResult = cr(F.right) : k.es.push([
                                                b,
                                                new z8(j, F.left)
                                            ]), $e))));
                            }
                        }
                        const B = (I)=>Ld(I) ? I.length === 1 && I[0][1]._tag === "Type" ? Xt(I[0][1]) : Xt(new p5t(n, u, va(I))) : Xt(new oo(Ig, u));
                        if (h && h.length > 0) {
                            const I = h;
                            return zs(()=>{
                                const j = {
                                    es: qs(f)
                                };
                                return Ae(Ta(I, (w)=>w(j), {
                                    concurrency: c,
                                    batching: s,
                                    discard: !0
                                }), ()=>"finalResult" in j ? j.finalResult : B(j.es));
                            });
                        }
                        return B(f);
                    };
                }
            case "Suspend":
                {
                    const e = v9(()=>$n(Ic(n.f(), n.annotations)));
                    return (o, _)=>e()(o, _);
                }
        }
    }, Xn = (n, t)=>(e)=>t(e) ? cr(e) : Xt(new oo(n, e)), Qf = (n, t)=>{
        switch(n._tag){
            case "Declaration":
                {
                    const e = v8t(n);
                    if (Eg(e)) return Qf(e.value);
                    break;
                }
            case "TypeLiteral":
                {
                    const e = [];
                    for(let o = 0; o < n.propertySignatures.length; o++){
                        const _ = n.propertySignatures[o], a = $o(_.type);
                        I8t(a) && !_.isOptional && e.push([
                            _.name,
                            a
                        ]);
                    }
                    return e;
                }
            case "Refinement":
                return Qf(n.from);
            case "Suspend":
                return Qf(n.f());
            case "Transformation":
                return Qf(n.from);
        }
        return [];
    }, x5t = (n, t)=>{
        const e = {}, o = [];
        for(let _ = 0; _ < n.length; _++){
            const a = n[_], c = Qf(a);
            if (c.length > 0) for(let s = 0; s < c.length; s++){
                const [u, l] = c[s], f = String(l.literal);
                e[u] = e[u] || {
                    buckets: {},
                    literals: []
                };
                const p = e[u].buckets;
                if (Object.prototype.hasOwnProperty.call(p, f)) {
                    if (s < c.length - 1) continue;
                    p[f].push(a), e[u].literals.push(l);
                } else {
                    p[f] = [
                        a
                    ], e[u].literals.push(l);
                    break;
                }
            }
            else o.push(a);
        }
        return {
            keys: e,
            otherwise: o
        };
    }, ww = (n, t, e, o)=>{
        const _ = ei(n);
        if (_) return _;
        if (o?.isEffectAllowed === !0) return n;
        try {
            return G_(Hn(n));
        } catch  {
            return Xt(new f5t(t, e, "cannot be be resolved synchronously, this is caused by using runSync on an effect that performs async work"));
        }
    };
    function va(n) {
        return n.sort(([t], [e])=>t > e ? 1 : t < e ? -1 : 0).map(([t, e])=>e);
    }
    const j5t = (n, t)=>{
        switch(n._tag){
            case "FinalTransformation":
                return n.decode;
            case "ComposeTransformation":
                return cr;
            case "TypeLiteralTransformation":
                return (e)=>{
                    let o = cr(e);
                    for (const _ of n.propertySignatureTransformations){
                        const [a, c] = [
                            _.from,
                            _.to
                        ], s = _.decode;
                        o = y5t(o, (l)=>{
                            const f = s(Object.prototype.hasOwnProperty.call(l, a) ? Ui(l[a]) : qi());
                            return delete l[a], Eg(f) && (l[c] = f.value), l;
                        });
                    }
                    return o;
                };
        }
    }, S5t = Symbol.for("@effect/schema/EquivalenceHookId"), E5t = Symbol.for("@effect/schema/PrettyHookId"), Gw = Symbol.for("@effect/schema/Schema"), O5t = {
        _A: (n)=>n,
        _I: (n)=>n,
        _R: (n)=>n
    }, po = (n)=>{
        if (!n) return {};
        const t = {}, e = Object.getOwnPropertySymbols(n);
        for (const _ of e)t[_] = n[_];
        if (n.typeId !== void 0) {
            const _ = n.typeId;
            typeof _ == "object" ? (t[P8] = _.id, t[_.id] = _.annotation) : t[P8] = _;
        }
        const o = (_, a)=>{
            n[_] !== void 0 && (t[a] = n[_]);
        };
        return o("message", m9), o("identifier", S0), o("title", La), o("description", Zl), o("examples", u8t), o("default", l8t), o("documentation", g8t), o("jsonSchema", f8t), o("arbitrary", n5t), o("pretty", E5t), o("equivalence", S5t), o("concurrency", I9), o("batching", k9), o("parseIssueTitle", B9), t;
    };
    class pu {
        ast;
        [Gw] = O5t;
        constructor(t){
            this.ast = t;
        }
        pipe() {
            return l5(this, arguments);
        }
        annotations(t) {
            return new pu(Ic(this.ast, po(t)));
        }
        toString() {
            return String(this.ast);
        }
    }
    const kg = (n)=>wl(n, Gw) && hb(n[Gw]), ea = (n)=>new pu(n), F5t = (n, t, e)=>ea(new E0(n.map((o)=>o.ast), (...o)=>t.decode(...o.map(ea)), (...o)=>t.encode(...o.map(ea)), po(e))), A5t = (n, t)=>{
        const e = ()=>(_, a, c)=>n(_) ? b5t(_) : w5t(new oo(c, _)), o = e;
        return ea(new E0([], e, o, po(t)));
    }, T5t = function() {
        if (Array.isArray(arguments[0])) {
            const e = arguments[0], o = arguments[1], _ = arguments[2];
            return F5t(e, o, _);
        }
        const n = arguments[0], t = arguments[1];
        return A5t(n, t);
    }, P5t = ea(Ig), R5t = ea(j9), Oh = ea(O8t), U5t = ea(A8t), U9 = ea(U8t);
    class ub extends pu {
        static ast = (t)=>Nd.members(t.map((e)=>e.ast));
        members;
        constructor(t, e = ub.ast(t)){
            super(e), this.members = [
                ...t
            ];
        }
        annotations(t) {
            return new ub(this.members, Ic(this.ast, po(t)));
        }
    }
    function C5t(...n) {
        return F9(n) ? new ub(n) : ml(n) ? n[0] : P5t;
    }
    class lb extends pu {
        elements;
        rest;
        static ast = (t, e)=>new Bh(t.map((o)=>kg(o) ? new cb(o.ast, !1) : new cb(o.optionalElement.ast, !0)), e.map((o)=>o.ast), !0);
        constructor(t, e, o = lb.ast(t, e)){
            super(o), this.elements = t, this.rest = e;
        }
        annotations(t) {
            return new lb(this.elements, this.rest, Ic(this.ast, po(t)));
        }
    }
    class Fh extends lb {
        value;
        constructor(t, e){
            super([], [
                t
            ], e), this.value = t;
        }
        annotations(t) {
            return new Fh(this.value, Ic(this.ast, po(t)));
        }
    }
    const N5t = (n)=>new Fh(n), M5t = Symbol.for("@effect/schema/PropertySignature"), L5t = (n)=>wl(n, M5t);
    class fb extends pu {
        static ast = (t, e)=>{
            const o = ng(t), _ = [];
            if (o.length > 0) {
                const c = [], s = [], u = [];
                for(let l = 0; l < o.length; l++){
                    const f = o[l], p = t[f];
                    if (L5t(p)) {
                        const g = p.ast;
                        switch(g._tag){
                            case "PropertySignatureDeclaration":
                                {
                                    const h = g.type, B = g.isOptional, I = g.annotations;
                                    c.push(new Dn(f, h, B, !0)), s.push(new Dn(f, Gn(h), B, !0, I)), _.push(new Dn(f, h, B, !0, I));
                                    break;
                                }
                            case "PropertySignatureTransformation":
                                {
                                    const h = g.from.fromKey ?? f;
                                    c.push(new Dn(h, g.from.type, g.from.isOptional, !0, g.from.annotations)), s.push(new Dn(f, g.to.type, g.to.isOptional, !0, g.to.annotations)), u.push(new V8t(h, f, g.decode, g.encode));
                                    break;
                                }
                        }
                    } else c.push(new Dn(f, p.ast, !1, !0)), s.push(new Dn(f, Gn(p.ast), !1, !0)), _.push(new Dn(f, p.ast, !1, !0));
                }
                if (ml(u)) {
                    const l = [], f = [];
                    for (const p of e){
                        const { indexSignatures: g, propertySignatures: h } = N8(p.key.ast, p.value.ast);
                        h.forEach((B)=>{
                            c.push(B), s.push(new Dn(B.name, Gn(B.type), B.isOptional, B.isReadonly, B.annotations));
                        }), g.forEach((B)=>{
                            l.push(B), f.push(new O0(B.parameter, Gn(B.type), B.isReadonly));
                        });
                    }
                    return new jh(new Kd(c, l, {
                        [La]: "Struct (Encoded side)"
                    }), new Kd(s, f, {
                        [La]: "Struct (Type side)"
                    }), new Z8t(u));
                }
            }
            const a = [];
            for (const c of e){
                const { indexSignatures: s, propertySignatures: u } = N8(c.key.ast, c.value.ast);
                u.forEach((l)=>_.push(l)), s.forEach((l)=>a.push(l));
            }
            return new Kd(_, a);
        };
        fields;
        records;
        constructor(t, e, o = fb.ast(t, e)){
            super(o), this.fields = {
                ...t
            }, this.records = [
                ...e
            ];
        }
        annotations(t) {
            return new fb(this.fields, this.records, Ic(this.ast, po(t)));
        }
    }
    class Ah extends fb {
        key;
        value;
        constructor(t, e, o){
            super({}, [
                {
                    key: t,
                    value: e
                }
            ], o), this.key = t, this.value = e;
        }
        annotations(t) {
            return new Ah(this.key, this.value, Ic(this.ast, po(t)));
        }
    }
    const z5t = (n, t)=>new Ah(n, t), q5t = lo((n)=>kg(n[1]), (n, t)=>ea(e5t(n.ast, t.ast))), D8 = (n)=>ea(new xh(()=>n().ast));
    function D5t(n, t) {
        return (e)=>ea(new A9(e.ast, (o, _, a)=>{
                const c = n(o, _, a);
                return pl(c) ? c ? qi() : Ui(new oo(a, o)) : c;
            }, po(t)));
    }
    class Th extends pu {
        from;
        to;
        constructor(t, e, o){
            super(o), this.from = t, this.to = e;
        }
        annotations(t) {
            return new Th(this.from, this.to, Ic(this.ast, po(t)));
        }
    }
    const G5t = lo((n)=>kg(n[0]) && kg(n[1]), (n, t, e)=>new Th(n, t, new jh(n.ast, t.ast, new G8t(e.decode, e.encode)))), H5t = r5t, K5t = (n, t)=>(e)=>e.pipe(D5t((o)=>o.length <= n, {
                typeId: H5t,
                description: `a string at most ${n} character(s) long`,
                jsonSchema: {
                    maxLength: n
                },
                ...t
            })), V5t = Oh.annotations({
        [S0]: "JsonString",
        [La]: "JsonString",
        [Zl]: "a JSON string"
    }), Ph = (n, t)=>{
        if (kg(n)) return q5t(Ph(t), n);
        const e = n;
        return G5t(V5t, R5t, {
            decode: (o, _, a)=>q8({
                    try: ()=>JSON.parse(o, e?.reviver),
                    catch: (c)=>new oo(a, o, c.message)
                }),
            encode: (o, _, a)=>q8({
                    try: ()=>JSON.stringify(o, e?.replacer, e?.space),
                    catch: (c)=>new oo(a, o, c.message)
                })
        });
    }, Z5t = T5t(u7, {
        identifier: "Uint8ArrayFromSelf",
        pretty: ()=>(n)=>`new Uint8Array(${JSON.stringify(Array.from(n))})`,
        arbitrary: ()=>(n)=>n.uint8Array(),
        equivalence: ()=>l7(f7)
    }), Y5t = "/assets/uplc_tx_bg-V58Gzn9n.wasm";
    let Hr;
    function W5t(n) {
        Hr = n;
    }
    const J5t = typeof TextDecoder > "u" ? (0, module.require)("util").TextDecoder : TextDecoder;
    let C9 = new J5t("utf-8", {
        ignoreBOM: !0,
        fatal: !0
    });
    C9.decode();
    let Up = null;
    function N9() {
        return (Up === null || Up.byteLength === 0) && (Up = new Uint8Array(Hr.memory.buffer)), Up;
    }
    function M9(n, t) {
        return n = n >>> 0, C9.decode(N9().subarray(n, n + t));
    }
    let Tu = 0;
    function G8(n, t) {
        const e = t(n.length * 1, 1) >>> 0;
        return N9().set(n, e / 1), Tu = n.length, e;
    }
    let Iu = null;
    function L9() {
        return (Iu === null || Iu.buffer.detached === !0 || Iu.buffer.detached === void 0 && Iu.buffer !== Hr.memory.buffer) && (Iu = new DataView(Hr.memory.buffer)), Iu;
    }
    function X5t(n) {
        const t = Hr.__externref_table_alloc();
        return Hr.__wbindgen_export_0.set(t, n), t;
    }
    function H8(n, t) {
        const e = t(n.length * 4, 4) >>> 0;
        for(let o = 0; o < n.length; o++){
            const _ = X5t(n[o]);
            L9().setUint32(e + 4 * o, _, !0);
        }
        return Tu = n.length, e;
    }
    function Q5t(n) {
        const t = Hr.__wbindgen_export_0.get(n);
        return Hr.__externref_table_dealloc(n), t;
    }
    function $5t(n, t) {
        n = n >>> 0;
        const e = L9(), o = [];
        for(let _ = n; _ < n + 4 * t; _ += 4)o.push(Hr.__wbindgen_export_0.get(e.getUint32(_, !0)));
        return Hr.__externref_drop_slice(n, t), o;
    }
    function tkt(n, t, e, o, _, a, c, s, u) {
        const l = G8(n, Hr.__wbindgen_malloc), f = Tu, p = H8(t, Hr.__wbindgen_malloc), g = Tu, h = H8(e, Hr.__wbindgen_malloc), B = Tu, I = G8(o, Hr.__wbindgen_malloc), j = Tu, w = Hr.eval_phase_two_raw(l, f, p, g, h, B, I, j, _, a, c, s, u);
        if (w[3]) throw Q5t(w[2]);
        var S = $5t(w[0], w[1]).slice();
        return Hr.__wbindgen_free(w[0], w[1] * 4, 4), S;
    }
    function ekt(n) {
        return n.buffer;
    }
    function rkt(n) {
        return n.length;
    }
    function nkt(n) {
        return new Uint8Array(n);
    }
    function _kt(n, t, e) {
        return new Uint8Array(n, t >>> 0, e >>> 0);
    }
    function akt(n, t, e) {
        n.set(t, e >>> 0);
    }
    function okt() {
        const n = Hr.__wbindgen_export_0, t = n.grow(4);
        n.set(0, void 0), n.set(t + 0, void 0), n.set(t + 1, null), n.set(t + 2, !0), n.set(t + 3, !1);
    }
    function ikt() {
        return Hr.memory;
    }
    function skt(n, t) {
        return M9(n, t);
    }
    function ckt(n, t) {
        throw new Error(M9(n, t));
    }
    URL = globalThis.URL;
    const bo = await Q8({
        "./uplc_tx_bg.js": {
            __wbindgen_string_new: skt,
            __wbindgen_memory: ikt,
            __wbg_buffer_609cc3eee51ed158: ekt,
            __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a: _kt,
            __wbg_new_a12002a7f91c75be: nkt,
            __wbg_length_a446193dc22c12f8: rkt,
            __wbg_set_65595bdd868b3009: akt,
            __wbindgen_throw: ckt,
            __wbindgen_init_externref_table: okt
        }
    }, Y5t), dkt = bo.memory, ukt = bo.eval_phase_two_raw, lkt = bo.apply_params_to_script, fkt = bo.__wbindgen_export_0, gkt = bo.__wbindgen_malloc, pkt = bo.__externref_table_alloc, bkt = bo.__externref_table_dealloc, wkt = bo.__externref_drop_slice, ykt = bo.__wbindgen_free, z9 = bo.__wbindgen_start, hkt = Object.freeze(Object.defineProperty({
        __proto__: null,
        __externref_drop_slice: wkt,
        __externref_table_alloc: pkt,
        __externref_table_dealloc: bkt,
        __wbindgen_export_0: fkt,
        __wbindgen_free: ykt,
        __wbindgen_malloc: gkt,
        __wbindgen_start: z9,
        apply_params_to_script: lkt,
        eval_phase_two_raw: ukt,
        memory: dkt
    }, Symbol.toStringTag, {
        value: "Module"
    }));
    W5t(hkt);
    z9();
    function q9(n, t, e) {
        const o = Dh.new();
        o.set_algorithm_id(wu.from_algorithm_id(Gh.EdDSA)), o.set_header(wu.new_text("address"), C0.new_bytes(Jr(n)));
        const _ = O7.new(o), a = Dh.new(), c = F7.new(_, a), s = A7.new(c, Jr(t), !1), u = s.make_data_to_sign().to_bytes(), l = Sn.from_bech32(e), f = l.sign(u).to_raw_bytes(), p = s.build(f), g = T7.new(wu.from_key_type(P7.OKP));
        return g.set_algorithm_id(wu.from_algorithm_id(Gh.EdDSA)), g.set_header(wu.new_int(N0.new_negative(Hh.from_str("1"))), C0.new_int(N0.new_i32(6))), g.set_header(wu.new_int(N0.new_negative(Hh.from_str("2"))), C0.new_bytes(l.to_public().to_raw_bytes())), {
            signature: L_(p.to_bytes()),
            key: L_(g.to_bytes())
        };
    }
    function vkt(n, t = {}) {
        const { addressType: e = "Base", accountIndex: o = 0, network: _ = "Mainnet" } = t;
        function a(j) {
            if (typeof j != "number") throw new Error("Type number required here!");
            return 2147483648 + j;
        }
        const c = E7.mnemonicToEntropy(n), s = ka.from_bip39_entropy(Jr(c), t?.password ? new TextEncoder().encode(t.password) : new Uint8Array), u = s.derive(a(1852)).derive(a(1815)).derive(a(o));
        s.free();
        const l = u.derive(0).derive(0).to_raw_key(), f = u.derive(2).derive(0).to_raw_key(), p = l.to_public().hash(), g = f.to_public().hash(), h = _ === "Mainnet" ? 1 : 0, B = e === "Base" ? qd.new(h, Pt.new_pub_key(p), Pt.new_pub_key(g)).to_address().to_bech32(void 0) : Ti.new(h, Pt.new_pub_key(p)).to_address().to_bech32(void 0), I = e === "Base" ? wr.new(h, Pt.new_pub_key(g)).to_address().to_bech32(void 0) : null;
        return {
            address: B,
            rewardAddress: I,
            paymentKey: l.to_bech32(),
            stakeKey: e === "Base" ? f.to_bech32() : null
        };
    }
    function mkt(n, t, e) {
        const o = [], _ = n.body().inputs();
        for(let h = 0; h < _.len(); h++){
            const B = _.get(h), I = B.transaction_id().to_hex(), j = Number(B.index()), w = e.find((S)=>S.txHash === I && S.outputIndex === j);
            if (w) {
                const { paymentCredential: S } = uo(w.address);
                o.push(S?.hash);
            }
        }
        const a = n.body();
        function c(h) {
            const B = h.certs();
            if (B) for(let I = 0; I < B.len(); I++){
                const j = B.get(I);
                switch(j.kind()){
                    case 0:
                        break;
                    case 1:
                        {
                            const w = j.as_stake_deregistration()?.stake_credential();
                            switch(w?.kind()){
                                case 0:
                                    o.push(w.as_pub_key()?.to_hex());
                                    break;
                                case 1:
                                    o.push(w.as_script()?.to_hex());
                                    break;
                            }
                            break;
                        }
                    case 2:
                        {
                            const w = j.as_stake_delegation()?.stake_credential();
                            if (w?.kind() === 0) {
                                const S = w.as_pub_key()?.to_hex();
                                o.push(S);
                            }
                            break;
                        }
                    case 3:
                        {
                            const w = j.as_pool_registration()?.pool_params(), S = w?.pool_owners();
                            if (!S) break;
                            for(let k = 0; k < S.len(); k++){
                                const F = S.get(k).to_hex();
                                o.push(F);
                            }
                            const b = w.operator().to_hex();
                            o.push(b);
                            break;
                        }
                    case 4:
                        {
                            const w = j.as_pool_retirement()?.pool().to_hex();
                            o.push(w);
                            break;
                        }
                    case 6:
                        {
                            const w = j.as_unreg_cert()?.stake_credential();
                            w && o.push(w.as_pub_key()?.to_hex());
                            break;
                        }
                    case 7:
                        {
                            const w = j.as_vote_deleg_cert()?.stake_credential();
                            w && o.push(w.as_pub_key()?.to_hex());
                            break;
                        }
                    case 8:
                        {
                            const w = j.as_stake_vote_deleg_cert()?.stake_credential();
                            w && o.push(w.as_pub_key()?.to_hex());
                            break;
                        }
                    case 9:
                        {
                            const w = j.as_stake_reg_deleg_cert()?.stake_credential();
                            w && o.push(w.as_pub_key()?.to_hex());
                            break;
                        }
                    case 10:
                        {
                            const w = j.as_vote_reg_deleg_cert()?.stake_credential();
                            w && o.push(w.as_pub_key()?.to_hex());
                            break;
                        }
                    case 11:
                        {
                            const w = j.as_stake_vote_reg_deleg_cert()?.stake_credential();
                            w && o.push(w.as_pub_key()?.to_hex());
                            break;
                        }
                    case 12:
                        {
                            const w = j.as_auth_committee_hot_cert()?.committee_cold_credential();
                            w && o.push(w.as_pub_key()?.to_hex());
                            break;
                        }
                    case 13:
                        {
                            const w = j.as_resign_committee_cold_cert()?.committee_cold_credential();
                            w && o.push(w.as_pub_key()?.to_hex());
                            break;
                        }
                    case 14:
                        {
                            const w = j.as_reg_drep_cert()?.drep_credential();
                            w && o.push(w.as_pub_key()?.to_hex());
                            break;
                        }
                    case 15:
                        {
                            const w = j.as_unreg_drep_cert()?.drep_credential();
                            w && o.push(w.as_pub_key()?.to_hex());
                            break;
                        }
                    case 16:
                        {
                            const w = j.as_update_drep_cert()?.drep_credential();
                            w && o.push(w.as_pub_key()?.to_hex());
                            break;
                        }
                }
            }
        }
        a.certs() && c(a);
        const s = a.withdrawals();
        function u(h) {
            const B = h.keys();
            for(let I = 0; I < B.len(); I++){
                const j = B.get(I).payment();
                switch(j.kind()){
                    case 0:
                        o.push(j.as_pub_key()?.to_hex());
                        break;
                    case 1:
                        o.push(j.as_script()?.to_hex());
                        break;
                }
            }
        }
        s && u(s);
        const l = n.witness_set().native_scripts();
        function f(h) {
            for(let B = 0; B < h.len(); B++){
                const I = h.get(B);
                if (I.kind() === 0) {
                    const j = I.as_script_pubkey()?.ed25519_key_hash().to_hex();
                    o.push(j);
                }
                if (I.kind() === 1) {
                    f(I.as_script_all().native_scripts());
                    return;
                }
                if (I.kind() === 2) {
                    f(I.as_script_any().native_scripts());
                    return;
                }
                if (I.kind() === 3) {
                    f(I.as_script_n_of_k().native_scripts());
                    return;
                }
            }
        }
        l && f(l);
        const p = a.required_signers();
        if (p) for(let h = 0; h < p.len(); h++)o.push(p.get(h).to_hex());
        const g = a.collateral_inputs();
        if (g) for(let h = 0; h < g.len(); h++){
            const B = g.get(h), I = B.transaction_id().to_hex(), j = Number(B.index()), w = e.find((S)=>S.txHash === I && S.outputIndex === j);
            if (w) {
                const { paymentCredential: S } = uo(w.address);
                o.push(S?.hash);
            }
        }
        return o.filter((h)=>t.includes(h));
    }
    var Ikt = (n, t, e, o)=>{
        const _ = {
            overriddenUTxOs: []
        }, { address: a, rewardAddress: c, paymentKey: s, stakeKey: u } = vkt(e, {
            addressType: o?.addressType || "Base",
            accountIndex: o?.accountIndex || 0,
            password: o?.password,
            network: t
        }), l = Sn.from_bech32(s).to_public().hash().to_hex(), f = u ? Sn.from_bech32(u).to_public().hash().to_hex() : "", p = {
            [l]: s,
            [f]: u
        };
        return {
            overrideUTxOs: (g)=>_.overriddenUTxOs = g,
            address: async ()=>a,
            rewardAddress: async ()=>c || null,
            getUtxos: async ()=>_.overriddenUTxOs.length > 0 ? _.overriddenUTxOs : n.getUtxos(a),
            getUtxosCore: async ()=>{
                const g = _.overriddenUTxOs.length > 0 ? _.overriddenUTxOs : await n.getUtxos(a), h = [];
                for (const B of g)h.push(mc(B));
                return h;
            },
            getDelegation: async ()=>c ? await n.getDelegation(c) : {
                    poolId: null,
                    rewards: 0n
                },
            signTx: async (g)=>{
                const h = _.overriddenUTxOs.length > 0 ? _.overriddenUTxOs : await n.getUtxos(a), I = mkt(g, [
                    l,
                    f
                ], h), j = Ra.new();
                for (const w of I){
                    const S = Sn.from_bech32(p[w]), b = Ib(_u(g.body()), S);
                    j.add_vkey(b);
                }
                return j.build();
            },
            signMessage: async (g, h)=>{
                const { paymentCredential: B, stakeCredential: I, address: { hex: j } } = uo(g), w = B?.hash || I?.hash, S = p[w];
                if (!S) throw new Error(`Cannot sign message for address: ${g}.`);
                return q9(j, h, S);
            },
            submitTx: async (g)=>n.submitTx(g)
        };
    }, kkt = (n, t, e)=>{
        const o = Sn.from_bech32(e), _ = o.to_public().hash(), a = Ti.new(t === "Mainnet" ? 1 : 0, Pt.new_pub_key(_)).to_address().to_bech32(void 0), c = {
            overriddenUTxOs: []
        };
        return {
            overrideUTxOs: (s)=>c.overriddenUTxOs = s,
            address: async ()=>a,
            rewardAddress: async ()=>null,
            getUtxos: async ()=>c.overriddenUTxOs.length > 0 ? c.overriddenUTxOs : n.getUtxos(a),
            getUtxosCore: async ()=>{
                const s = c.overriddenUTxOs.length > 0 ? c.overriddenUTxOs : await n.getUtxos(a), u = [];
                for (const l of s)u.push(mc(l));
                return u;
            },
            getDelegation: async ()=>({
                    poolId: null,
                    rewards: 0n
                }),
            signTx: async (s)=>{
                const u = Ib(_u(s.body()), o), l = Ra.new();
                return l.add_vkey(u), l.build();
            },
            signMessage: async (s, u)=>{
                const { paymentCredential: l, address: { hex: f } } = uo(s), p = l?.hash, g = _.to_hex();
                if (!p || p !== g) throw new Error(`Cannot sign message for address: ${s}.`);
                return q9(f, u, e);
            },
            submitTx: async (s)=>await n.submitTx(s)
        };
    }, Bkt = (n, t)=>{
        const e = {
            overriddenUTxOs: []
        }, o = async ()=>{
            const [a] = await t.getUsedAddresses();
            if (a) return a;
            const [c] = await t.getUnusedAddresses();
            return c;
        }, _ = async ()=>{
            const [a] = await t.getRewardAddresses();
            return a ? wr.from_address(ce.from_hex(a)).to_address().to_bech32(void 0) : null;
        };
        return {
            overrideUTxOs: (a)=>e.overriddenUTxOs = a,
            address: async ()=>ce.from_hex(await o()).to_bech32(void 0),
            rewardAddress: async ()=>_(),
            getUtxos: async ()=>e.overriddenUTxOs.length > 0 ? e.overriddenUTxOs : (await t.getUtxos() || []).map((c)=>e8t(Fa.from_cbor_bytes(Jr(c)))),
            getUtxosCore: async ()=>e.overriddenUTxOs.length > 0 ? e.overriddenUTxOs.map(mc) : (await t.getUtxos() || []).map((c)=>Fa.from_cbor_hex(c)),
            getDelegation: async ()=>{
                const a = await _();
                return a ? await n.getDelegation(a) : {
                    poolId: null,
                    rewards: 0n
                };
            },
            signTx: async (a)=>{
                const c = await t.signTx(L_(a.to_cbor_bytes()), !0);
                return Gr.from_cbor_hex(c);
            },
            signMessage: async (a, c)=>{
                const s = L_(ce.from_bech32(a).to_raw_bytes());
                return await t.signData(s, c);
            },
            submitTx: async (a)=>t.submitTx(a)
        };
    }, xkt = (n, t, e, o)=>{
        const { stakeCredential: _ } = uo(e), a = _ ? WIt(t, _) : null, c = {
            overriddenUTxOs: o
        };
        return {
            overrideUTxOs: (s)=>c.overriddenUTxOs = s,
            address: async ()=>e,
            rewardAddress: async ()=>a,
            getUtxos: async ()=>c.overriddenUTxOs.length > 0 ? c.overriddenUTxOs : n.getUtxos(e),
            getUtxosCore: async ()=>{
                const s = c.overriddenUTxOs.length > 0 ? c.overriddenUTxOs : await n.getUtxos(e), u = [];
                for (const l of s)u.push(mc(l));
                return u;
            },
            getDelegation: async ()=>a ? n.getDelegation(a) : {
                    poolId: null,
                    rewards: 0n
                },
            signTx: async (s)=>{
                throw new Error("Not implemented");
            },
            signMessage: async (s, u)=>{
                throw new Error("Not implemented");
            },
            submitTx: async (s)=>n.submitTx(s)
        };
    }, jkt = {
        version: "0.1.90"
    }, Skt = (n)=>(n || []).map((t)=>[
                {
                    txId: t.txHash,
                    index: t.outputIndex
                },
                {
                    address: t.address,
                    value: {
                        coins: Number(t.assets.lovelace),
                        assets: Okt(t.assets)
                    },
                    datumHash: t.datumHash,
                    datum: t.datum,
                    script: Ekt(t.scriptRef)
                }
            ]), Ekt = (n)=>{
        if (n) switch(n.type){
            case "PlutusV1":
                return {
                    "plutus:v1": dw(n.script)
                };
            case "PlutusV2":
                return {
                    "plutus:v2": dw(n.script)
                };
            case "PlutusV3":
                return {
                    "plutus:v3": dw(n.script)
                };
            default:
                return;
        }
    }, Okt = (n)=>Mt(p7(n, "lovelace"), g7((t, e)=>[
                e.length === 56 ? e.slice(0, 56) : e.slice(0, 56) + "." + e.slice(56),
                Number(t)
            ]), (t)=>f5(t) ? void 0 : t), Fkt = (n)=>{
        switch(n){
            case "certificate":
                return "publish";
            case "withdrawal":
                return "withdraw";
            default:
                return n;
        }
    }, Akt = class {
        url;
        projectId;
        constructor(n, t){
            this.url = n, this.projectId = t || "";
        }
        async getProtocolParameters() {
            const n = await fetch(`${this.url}/epochs/latest/parameters`, {
                headers: {
                    project_id: this.projectId,
                    lucid: j_
                }
            }).then((t)=>t.json());
            return {
                minFeeA: parseInt(n.min_fee_a),
                minFeeB: parseInt(n.min_fee_b),
                maxTxSize: parseInt(n.max_tx_size),
                maxValSize: parseInt(n.max_val_size),
                keyDeposit: BigInt(n.key_deposit),
                poolDeposit: BigInt(n.pool_deposit),
                drepDeposit: BigInt(n.drep_deposit),
                govActionDeposit: BigInt(n.gov_action_deposit),
                priceMem: parseFloat(n.price_mem),
                priceStep: parseFloat(n.price_step),
                maxTxExMem: BigInt(n.max_tx_ex_mem),
                maxTxExSteps: BigInt(n.max_tx_ex_steps),
                coinsPerUtxoByte: BigInt(n.coins_per_utxo_size),
                collateralPercentage: parseInt(n.collateral_percent),
                maxCollateralInputs: parseInt(n.max_collateral_inputs),
                minFeeRefScriptCostPerByte: parseInt(n.min_fee_ref_script_cost_per_byte),
                costModels: n.cost_models
            };
        }
        async getUtxos(n) {
            const t = typeof n == "string" ? n : n.type === "Key" ? Kt.from_hex(n.hash).to_bech32("addr_vkh") : Zt.from_hex(n.hash).to_bech32("addr_vkh");
            let e = [], o = 1;
            for(;;){
                const _ = await fetch(`${this.url}/addresses/${t}/utxos?page=${o}`, {
                    headers: {
                        project_id: this.projectId,
                        lucid: j_
                    }
                }).then((a)=>a.json());
                if (_.error) {
                    if (_.status_code === 404) return [];
                    throw new Error("Could not fetch UTxOs from Blockfrost. Try again.");
                }
                if (e = e.concat(_), _.length <= 0) break;
                o++;
            }
            return this.blockfrostUtxosToUtxos(e);
        }
        async getUtxosWithUnit(n, t) {
            const e = typeof n == "string" ? n : n.type === "Key" ? Kt.from_hex(n.hash).to_bech32("addr_vkh") : Zt.from_hex(n.hash).to_bech32("addr_vkh");
            let o = [], _ = 1;
            for(;;){
                const a = await fetch(`${this.url}/addresses/${e}/utxos/${t}?page=${_}`, {
                    headers: {
                        project_id: this.projectId,
                        lucid: j_
                    }
                }).then((c)=>c.json());
                if (a.error) {
                    if (a.status_code === 404) return [];
                    throw new Error("Could not fetch UTxOs from Blockfrost. Try again.");
                }
                if (o = o.concat(a), a.length <= 0) break;
                _++;
            }
            return this.blockfrostUtxosToUtxos(o);
        }
        async getUtxoByUnit(n) {
            const t = await fetch(`${this.url}/assets/${n}/addresses?count=2`, {
                headers: {
                    project_id: this.projectId,
                    lucid: j_
                }
            }).then((_)=>_.json());
            if (!t || t.error) throw new Error("Unit not found.");
            if (t.length > 1) throw new Error("Unit needs to be an NFT or only held by one address.");
            const e = t[0].address, o = await this.getUtxosWithUnit(e, n);
            if (o.length > 1) throw new Error("Unit needs to be an NFT or only held by one address.");
            return o[0];
        }
        async getUtxosByOutRef(n) {
            const t = [
                ...new Set(n.map((o)=>o.txHash))
            ];
            return (await Promise.all(t.map(async (o)=>{
                const _ = await fetch(`${this.url}/txs/${o}/utxos`, {
                    headers: {
                        project_id: this.projectId,
                        lucid: j_
                    }
                }).then((c)=>c.json());
                if (!_ || _.error) return [];
                const a = _.outputs.filter((c)=>!c.consumed_by_tx).map((c)=>({
                        ...c,
                        tx_hash: o
                    }));
                return this.blockfrostUtxosToUtxos(a);
            }))).reduce((o, _)=>o.concat(_), []).filter((o)=>n.some((_)=>o.txHash === _.txHash && o.outputIndex === _.outputIndex));
        }
        async getDelegation(n) {
            const t = await fetch(`${this.url}/accounts/${n}`, {
                headers: {
                    project_id: this.projectId,
                    lucid: j_
                }
            }).then((e)=>e.json());
            return !t || t.error ? {
                poolId: null,
                rewards: 0n
            } : {
                poolId: t.pool_id || null,
                rewards: BigInt(t.withdrawable_amount)
            };
        }
        async getDatum(n) {
            const t = await fetch(`${this.url}/scripts/datum/${n}/cbor`, {
                headers: {
                    project_id: this.projectId,
                    lucid: j_
                }
            }).then((e)=>e.json()).then((e)=>e.cbor);
            if (!t || t.error) throw new Error(`No datum found for datum hash: ${n}`);
            return t;
        }
        awaitTx(n, t = 3e3) {
            return new Promise((e)=>{
                const o = setInterval(async ()=>{
                    const _ = await fetch(`${this.url}/txs/${n}/cbor`, {
                        headers: {
                            project_id: this.projectId,
                            lucid: j_
                        }
                    }).then((a)=>a.json());
                    if (_ && !_.error) return clearInterval(o), await new Promise((a)=>setTimeout(()=>a(1), 1e3)), e(!0);
                }, t);
            });
        }
        async submitTx(n) {
            const t = await fetch(`${this.url}/tx/submit`, {
                method: "POST",
                headers: {
                    "Content-Type": "application/cbor",
                    project_id: this.projectId,
                    lucid: j_
                },
                body: Jr(n)
            }).then((e)=>e.json());
            if (!t || t.error) throw t?.status_code === 400 ? new Error(t.message) : new Error("Could not submit transaction.");
            return t;
        }
        async blockfrostUtxosToUtxos(n) {
            const t = [];
            let o = 0;
            for(let _ = 0; _ < n.length; _ += 10){
                const a = n.slice(_, _ + 10);
                o += 10, await Tkt(o);
                const c = await Promise.all(a.map(async (s)=>({
                        txHash: s.tx_hash,
                        outputIndex: s.output_index,
                        assets: Object.fromEntries(s.amount.map(({ unit: u, quantity: l })=>[
                                u,
                                BigInt(l)
                            ])),
                        address: s.address,
                        datumHash: !s.inline_datum && s.data_hash || void 0,
                        datum: s.inline_datum || void 0,
                        scriptRef: s.reference_script_hash ? await (async ()=>{
                            const { type: u } = await fetch(`${this.url}/scripts/${s.reference_script_hash}`, {
                                headers: {
                                    project_id: this.projectId,
                                    lucid: j_
                                }
                            }).then((f)=>f.json()), { cbor: l } = await fetch(`${this.url}/scripts/${s.reference_script_hash}/cbor`, {
                                headers: {
                                    project_id: this.projectId,
                                    lucid: j_
                                }
                            }).then((f)=>f.json());
                            switch(u){
                                case "timelock":
                                    const { json: f } = await fetch(`${this.url}/scripts/${s.reference_script_hash}/json`, {
                                        headers: {
                                            project_id: this.projectId,
                                            lucid: j_
                                        }
                                    }).then((p)=>p.json());
                                    return KIt(f);
                                case "plutusV1":
                                    return {
                                        type: "PlutusV1",
                                        script: Kn(l)
                                    };
                                case "plutusV2":
                                    return {
                                        type: "PlutusV2",
                                        script: Kn(l)
                                    };
                                case "plutusV3":
                                    return {
                                        type: "PlutusV3",
                                        script: Kn(l)
                                    };
                            }
                        })() : void 0
                    })));
                t.push(...c);
            }
            return t;
        }
        async evaluateTx(n, t) {
            const e = {
                cbor: n,
                additionalUtxoSet: Skt(t)
            }, o = await fetch(`${this.url}/utils/txs/evaluate/utxos`, {
                method: "POST",
                headers: {
                    "Content-Type": "application/json",
                    project_id: this.projectId,
                    lucid: j_
                },
                body: JSON.stringify(e)
            }).then((c)=>c.json());
            if (!o || o.fault) {
                const c = o?.status_code === 400 ? o.message : `Could not evaluate the transaction: ${JSON.stringify(o)}. Transaction: ${n}`;
                throw new Error(c);
            }
            const _ = o;
            if (!("EvaluationResult" in _.result)) throw new Error(`EvaluateTransaction fails: ${JSON.stringify(_.result)}`);
            const a = [];
            return Object.entries(_.result.EvaluationResult).forEach(([c, s])=>{
                const [u, l] = c.split(":");
                a.push({
                    redeemer_tag: Fkt(u),
                    redeemer_index: Number(l),
                    ex_units: {
                        mem: Number(s.memory),
                        steps: Number(s.steps)
                    }
                });
            }), a;
        }
    }, Tkt = async (n)=>{
        n % 100 === 0 ? await m3(5e3) : n % 10 === 0 && await m3(500);
    }, j_ = jkt.version, Ad = Nt({
        lovelace: Tt
    }), hr = b7(w7("/"), pr(Yp));
    Nt({
        minFeeCoefficient: Tt,
        minFeeReferenceScripts: Nt({
            base: Tt,
            range: Tt,
            multiplier: Tt
        }),
        maxReferenceScriptsSize: Nt({
            bytes: Tt
        }),
        stakePoolVotingThresholds: Nt({
            noConfidence: hr,
            constitutionalCommittee: Nt({
                default: hr,
                stateOfNoConfidence: hr
            }),
            hardForkInitiation: hr,
            protocolParametersUpdate: Nt({
                security: hr
            })
        }),
        delegateRepresentativeVotingThresholds: Nt({
            noConfidence: hr,
            constitutionalCommittee: Nt({
                default: hr,
                stateOfNoConfidence: hr
            }),
            constitution: hr,
            hardForkInitiation: hr,
            protocolParametersUpdate: Nt({
                network: hr,
                economic: hr,
                technical: hr,
                governance: hr
            }),
            treasuryWithdrawals: hr
        }),
        constitutionalCommitteeMinSize: g5(Tt),
        constitutionalCommitteeMaxTermLength: Tt,
        governanceActionLifetime: Tt,
        governanceActionDeposit: Nt({
            ada: Ad
        }),
        delegateRepresentativeDeposit: Nt({
            ada: Ad
        }),
        delegateRepresentativeMaxIdleTime: Tt,
        minFeeConstant: Nt({
            ada: Ad
        }),
        maxBlockBodySize: Nt({
            bytes: Tt
        }),
        maxBlockHeaderSize: Nt({
            bytes: Tt
        }),
        maxTransactionSize: Nt({
            bytes: Tt
        }),
        stakeCredentialDeposit: Nt({
            ada: Ad
        }),
        stakePoolDeposit: Nt({
            ada: Ad
        }),
        stakePoolRetirementEpochBound: Tt,
        desiredNumberOfStakePools: Tt,
        stakePoolPledgeInfluence: hr,
        monetaryExpansion: hr,
        treasuryExpansion: hr,
        minStakePoolCost: Nt({
            ada: Ad
        }),
        minUtxoDepositConstant: Nt({
            ada: Ad
        }),
        minUtxoDepositCoefficient: Tt,
        plutusCostModels: Nt({
            "plutus:v1": pr(Tt),
            "plutus:v2": pr(Tt),
            "plutus:v3": pr(Tt)
        }),
        scriptExecutionPrices: Nt({
            memory: hr,
            cpu: hr
        }),
        maxExecutionUnitsPerTransaction: Nt({
            memory: Tt,
            cpu: Tt
        }),
        maxExecutionUnitsPerBlock: Nt({
            memory: Tt,
            cpu: Tt
        }),
        maxValueSize: Nt({
            bytes: Tt
        }),
        collateralPercentage: Tt,
        maxCollateralInputs: Tt,
        version: Nt({
            major: Tt,
            minor: Tt
        })
    }).annotations({
        identifier: "ProtocolParametersSchema"
    });
    _e(Kw({
        key: zt,
        value: Nt({
            delegate: Nt({
                id: zt
            }),
            rewards: Nt({
                ada: Nt({
                    lovelace: Tt
                })
            }),
            deposit: Nt({
                ada: Nt({
                    lovelace: Tt
                })
            })
        })
    }));
    Nt({
        validator: Nt({
            purpose: vb("spend", "mint", "publish", "withdraw", "vote", "propose"),
            index: R0
        }),
        budget: Nt({
            memory: R0,
            cpu: R0
        })
    }).annotations({
        identifier: "RedeemerSchema"
    });
    var Pkt = Nt({
        coins: Tt,
        assets: Kw({
            key: zt,
            value: Tt
        })
    });
    Nt({
        transaction_index: Tt,
        transaction_id: zt,
        output_index: Tt,
        address: zt,
        value: Pkt,
        datum_hash: _e(zt),
        datum_type: g5(vb("hash", "inline")),
        script_hash: _e(zt),
        created_at: Nt({
            slot_no: Tt,
            header_hash: zt
        }),
        spent_at: _e(Nt({
            slot_no: Tt,
            header_hash: zt
        }))
    });
    _e(Nt({
        language: vb("native", "plutus:v1", "plutus:v2", "plutus:v3"),
        script: zt
    }));
    _e(Nt({
        datum: zt
    }));
    _e(Kw({
        key: zt,
        value: Nt({
            delegate: Nt({
                id: zt
            }),
            rewards: Nt({
                ada: Nt({
                    lovelace: Tt
                })
            }),
            deposit: Nt({
                ada: Nt({
                    lovelace: Tt
                })
            })
        })
    }));
    (class extends fo("KupmiosError") {
        get message() {
            return `${this.cause}`;
        }
    });
    Nt({
        pvt_motion_no_confidence: Tt,
        pvt_committee_normal: Tt,
        pvt_committee_no_confidence: Tt,
        pvt_hard_fork_initiation: Tt,
        pvtpp_security_group: Tt,
        dvt_motion_no_confidence: Tt,
        dvt_committee_normal: Tt,
        dvt_committee_no_confidence: Tt,
        dvt_update_to_constitution: Tt,
        dvt_hard_fork_initiation: Tt,
        dvt_p_p_network_group: Tt,
        dvt_p_p_economic_group: Tt,
        dvt_p_p_technical_group: Tt,
        dvt_p_p_gov_group: Tt,
        dvt_treasury_withdrawal: Tt,
        committee_min_size: Tt,
        committee_max_term_length: Tt,
        gov_action_lifetime: Tt,
        gov_action_deposit: Yp,
        drep_deposit: Yp,
        drep_activity: Tt,
        min_fee_ref_script_cost_per_byte: Tt,
        epoch_no: Tt,
        min_fee_a: Tt,
        min_fee_b: Tt,
        max_block_size: Tt,
        max_tx_size: Tt,
        max_bh_size: Tt,
        key_deposit: U0,
        pool_deposit: U0,
        max_epoch: Tt,
        optimal_pool_count: Tt,
        influence: Tt,
        monetary_expand_rate: Tt,
        treasury_growth_rate: Tt,
        decentralisation: Tt,
        extra_entropy: _e(zt),
        protocol_major: Tt,
        protocol_minor: Tt,
        min_utxo_value: zt,
        min_pool_cost: zt,
        nonce: zt,
        block_hash: _e(zt),
        cost_models: Nt({
            PlutusV1: pr(Tt),
            PlutusV2: pr(Tt),
            PlutusV3: pr(Tt)
        }),
        price_mem: Tt,
        price_step: Tt,
        max_tx_ex_mem: Lh,
        max_tx_ex_steps: Lh,
        max_block_ex_mem: Tt,
        max_block_ex_steps: Tt,
        max_val_size: Tt,
        collateral_percent: Tt,
        max_collateral_inputs: Tt,
        coins_per_utxo_size: U0
    });
    var Rh = Nt({
        policy_id: zt,
        asset_name: _e(zt),
        fingerprint: zt,
        decimals: Tt,
        quantity: zt
    }), D9 = Nt({
        hash: _e(zt),
        size: _e(Tt),
        type: _e(zt),
        bytes: _e(zt),
        value: _e(Ja)
    }), Rkt = Nt({
        tx_hash: zt,
        tx_index: Tt,
        block_time: Tt,
        block_height: _e(Tt),
        value: zt,
        datum_hash: _e(zt),
        inline_datum: _e(Nt({
            bytes: zt,
            value: Ja
        })),
        reference_script: _e(D9),
        asset_list: _e(pr(Rh))
    });
    pr(y7(Nt({
        address: zt,
        balance: zt,
        stake_address: _e(zt),
        script_address: p5,
        utxo_set: pr(Rkt)
    })));
    var Vf = Nt({
        payment_addr: Nt({
            bech32: zt,
            cred: zt
        }),
        stake_addr: _e(zt),
        tx_hash: zt,
        tx_index: Tt,
        value: zt,
        datum_hash: _e(zt),
        inline_datum: _e(Nt({
            bytes: zt,
            value: Ja
        })),
        reference_script: _e(D9),
        asset_list: pr(Rh)
    });
    Nt({
        tx_hash: zt,
        block_hash: zt,
        block_height: Tt,
        epoch_no: Tt,
        epoch_slot: Tt,
        absolute_slot: Tt,
        tx_timestamp: Tt,
        tx_block_index: Tt,
        tx_size: Tt,
        total_output: zt,
        fee: zt,
        treasury_donation: zt,
        deposit: zt,
        invalid_before: _e(zt),
        invalid_after: _e(zt),
        collateral_inputs: _e(pr(Vf)),
        collateral_output: _e(Vf),
        reference_inputs: _e(pr(Vf)),
        inputs: pr(Vf),
        outputs: pr(Vf),
        withdrawals: _e(pr(Nt({
            amount: zt,
            stake_addr: zt
        }))),
        assets_minted: _e(pr(Rh)),
        metadata: _e(Ja),
        certificates: _e(pr(Nt({
            index: Tt,
            type: zt,
            info: _e(Ja)
        }))),
        native_scripts: _e(pr(Nt({
            script_hash: zt,
            script_json: Ja
        }))),
        plutus_contracts: _e(pr(Nt({
            address: zt,
            spends_input: _e(Nt({
                tx_hash: zt,
                tx_index: Tt
            })),
            script_hash: zt,
            bytecode: zt,
            size: Tt,
            valid_contract: p5,
            input: Nt({
                redeemer: Nt({
                    purpose: vb("spend", "mint", "cert", "reward"),
                    fee: zt,
                    unit: Nt({
                        steps: zt,
                        mem: zt
                    }),
                    datum: Nt({
                        hash: _e(zt),
                        value: _e(Ja)
                    })
                }),
                datum: Nt({
                    hash: _e(zt),
                    value: _e(Ja)
                })
            })
        }))),
        voting_procedures: pr(Ja),
        proposal_procedures: Ja
    });
    Nt({
        payment_address: zt,
        stake_address: _e(zt),
        quantity: zt
    });
    Nt({
        delegated_pool: _e(zt),
        rewards_available: Yp
    });
    Nt({
        bytes: zt
    });
    (class extends fo("KoiosError") {
        get message() {
            return `${this.cause}`;
        }
    });
    var J_ = (n)=>({
            unsafeRun: ()=>Ia(n),
            safeRun: ()=>Ia(Hn(n)),
            program: ()=>n
        }), Uh = async (n, t, e)=>{
        if (!t.datum) {
            if (!t.datumHash) throw new Error("This UTxO does not have a datum hash.");
            t.datum = await n.getDatum(t.datumHash);
        }
        return co.from(t.datum, e);
    }, Ukt = async (n, t)=>{
        const { policyId: e, name: o, label: _ } = $It(t);
        switch(_){
            case 222:
            case 333:
            case 444:
                {
                    const a = await n.getUtxoByUnit(t8t(e, o, 100)), c = await Uh(n, a);
                    return co.toJson(c.fields[0]);
                }
            default:
                throw new Error("No variant matched.");
        }
    }, ge = {
        MULTIPLE_POLICIES: "MULTIPLE_POLICIES: Only one policy id allowed. You can chain multiple mintAssets functions together if you need to mint assets with different policy ids. ",
        EMPTY_UTXO: "EMPTY_UTXO: UTxO array is empty. If a Tx has been recently submitted, consider waiting for chain sync",
        MISSING_WALLET: "MISSING_WALLET: please ensure that your wallet has been properly configured and initialized",
        MISSING_REDEEMER: "MISSING_REDEEMER: redeemer can not be undefined",
        DATUM_NOT_SET: "DATUM_NOT_SET: Script inputs becomes unspendable without datum.",
        EMPTY_ASSETS: "EMPTY_ASSETS: Attempting to pay to an address with an empty assets object",
        MISSING_REWARD_TYPE: "MISSING_REWARD_TYPE: Address type must be Reward type.",
        MISSING_STAKE_CREDENTIAL: "MISSING_STAKE_CREDENTIAL: Address does not contain stake credential",
        MISSING_PAYMENT_CREDENTIAL: "MISSING_PAYMENT_CREDENTIAL: Address does not contain payment credential",
        INVALID_METADATA: "INVALID_METADATA: metadata is invalid",
        SCRIPT_CREDENTIAL_NOT_ALLOWED: "SCRIPT_CREDENTIAL_NOT_ALLOWED: Only verification key credential is allowed",
        INVALID_SCRIPT: "INVALID_SCRIPT: Script is invalid",
        EXPECTED_KEY_HASH: "EXPECTED_KEY_HASH",
        INVALID_NETWORK: (n, t, e)=>`Invalid address: ${n}, Expected address with network id ${t}, current network ${e}`,
        MISSING_SCRIPT: (n)=>`MISSING_SCRIPT: Script not found when building transaction, consider using attach modules. script_hash: ${n}`,
        MISSING_POLICY: (n)=>`MISSING_POLICY: No policy found, policy_id: ${n}`
    }, Ckt = class extends fo("NullableError") {
    };
    (class extends fo("UnauthorizedNetwork") {
    });
    var qa = class extends fo("TxBuilderError") {
        get message() {
            return `${this.cause}`;
        }
    }, Nkt = class extends fo("TxSignerError") {
        get message() {
            return `${this.cause}`;
        }
    }, Mkt = class extends fo("TxSubmitError") {
        get message() {
            return `${this.cause}`;
        }
    }, Ch = class extends fo("RunTimeError") {
        get message() {
            return `${this.cause}`;
        }
    }, Bg = (n)=>new qa({
            cause: `{ TxBuilderError : ${n} }`
        }), Lkt = (n, t)=>Qt(function*(e) {
            const { type: o } = yield* bu(n, t);
            return o === "Byron" ? Lr.from_base58(n).to_address() : ce.from_bech32(n);
        }), Wl = (n)=>N_.from_v1(zr.from_cbor_hex(n)), Jl = (n)=>N_.from_v2(qr.from_cbor_hex(n)), Xl = (n)=>N_.from_v3(Dr.from_cbor_hex(n)), Fn = (n, t)=>d_.new(ec.new_script(n), Vt.from_cbor_hex(t)), K8 = (n, t, e)=>{
        if (typeof e == "object") n.partialPrograms.set(e, t);
        else {
            const o = t(e);
            n.programs.push(o);
        }
    }, bu = (n, t)=>Qt(function*(e) {
            const o = yield* e(Il({
                try: ()=>uo(n),
                catch: (a)=>new qa({
                        cause: a
                    })
            })), _ = hh(t.network);
            return o.networkId !== _ && (yield* new qa({
                cause: ge.INVALID_NETWORK(n, _, t.network)
            })), o;
        }), wo = (n, t, e, o)=>Qt(function*() {
            switch(n.type){
                case "Key":
                    {
                        const _ = Pt.new_pub_key(Kt.from_hex(n.hash)), a = e(_);
                        t.txBuilder.add_cert(a.payment_key());
                        break;
                    }
                case "Script":
                    {
                        const _ = Pt.new_script(Zt.from_hex(n.hash)), a = e(_), c = yield* Mt(Pe(t.scripts.get(n.hash)), Me(()=>Bg(ge.MISSING_SCRIPT(n.hash)))), s = (u)=>Qt(function*() {
                                const l = yield* Mt(Pe(o), Me(()=>Bg(ge.MISSING_REDEEMER)));
                                t.txBuilder.add_cert(a.plutus_script(Fn(u, l), pe.new()));
                            });
                        switch(c.type){
                            case "PlutusV1":
                                yield* s(Wl(c.script));
                                break;
                            case "PlutusV2":
                                yield* s(Jl(c.script));
                                break;
                            case "PlutusV3":
                                yield* s(Xl(c.script));
                                break;
                            case "Native":
                                t.txBuilder.add_cert(a.native_script(he.from_cbor_hex(c.script), Wr.assume_signature_count()));
                                break;
                        }
                        break;
                    }
            }
        }), Da = (n, t)=>Qt(function*() {
            const e = yield* Mt(bu(n, t.lucidConfig), Gu((_)=>_.type !== "Reward" ? Bg(ge.MISSING_REWARD_TYPE) : Ir(_)));
            return yield* Mt(Pe(e.stakeCredential), Me(()=>Bg(ge.MISSING_STAKE_CREDENTIAL)));
        }), G9 = (n, t, e)=>Qt(function*() {
            return !n || t ? t : yield* Og({
                try: ()=>e.getDatum(n),
                catch: Bg
            });
        }), qe = class extends v7("TxConfig")() {
    }, is = (n)=>new qa({
            cause: `{ Collect: ${n} }`
        }), Nh = (n, t = !0)=>(e)=>Qt(function*() {
                const { config: o } = yield* qe;
                n.length === 0 && (yield* is(ge.EMPTY_UTXO));
                for (const _ of n){
                    const a = yield* G9(_.datumHash, _.datum, o.lucidConfig.provider);
                    _.datum = a, t && o.collectedInputs.push(_);
                    const c = nc.from_transaction_unspent_output(mc({
                        ..._,
                        datum: a
                    })), s = JIt(_.address);
                    if (s.type == "Script") {
                        const u = yield* Mt(Pe(o.scripts.get(s.hash)), Me(()=>is(is(ge.MISSING_SCRIPT(s.hash)))));
                        switch(u.type){
                            case "Native":
                                o.txBuilder.add_input(c.native_script(he.from_cbor_hex(u.script), Wr.assume_signature_count()));
                                break;
                            case "PlutusV1":
                                {
                                    const l = yield* Mt(Pe(e), Me(()=>is(ge.MISSING_REDEEMER)));
                                    o.txBuilder.add_input(c.plutus_script(Fn(Wl(u.script), l), pe.new(), Vt.from_cbor_hex(_.datum)));
                                    break;
                                }
                            case "PlutusV2":
                                {
                                    const l = Jl(u.script), f = yield* Mt(Pe(e), Me(()=>is(ge.MISSING_REDEEMER))), p = Fn(l, f);
                                    o.txBuilder.add_input(_.datum && _.datumHash ? c.plutus_script(p, pe.new(), Vt.from_cbor_hex(_.datum)) : c.plutus_script_inline_datum(p, pe.new()));
                                    break;
                                }
                            case "PlutusV3":
                                {
                                    const l = Xl(u.script), f = yield* Mt(Pe(e), Me(()=>is(ge.MISSING_REDEEMER))), p = Fn(l, f);
                                    o.txBuilder.add_input(_.datum && _.datumHash ? c.plutus_script(p, pe.new(), Vt.from_cbor_hex(_.datum)) : c.plutus_script_inline_datum(p, pe.new()));
                                    break;
                                }
                        }
                    } else o.txBuilder.add_input(c.payment_key());
                }
            }), zkt = (n, t)=>Qt(function*() {
            const { config: e } = yield* qe;
            n.length === 0 && (yield* is(ge.EMPTY_UTXO)), t.kind === "self" && (t.inputs = n);
            for (const _ of n){
                if (_.datumHash && !_.datum) {
                    const a = yield* Og({
                        try: ()=>Uh(e.lucidConfig.provider, _),
                        catch: (c)=>is({
                                cause: c
                            })
                    });
                    _.datum = co.to(a);
                }
                e.collectedInputs.push(_);
            }
            const o = Nh(n, !1);
            e.partialPrograms.set(t, o);
        }), qkt = (n)=>new qa({
            cause: `{ Read : ${n} }`
        }), Dkt = (n)=>Qt(function*() {
            const { config: t } = yield* qe;
            n.length === 0 && (yield* qkt(ge.EMPTY_UTXO));
            for (const e of n){
                const o = yield* G9(e.datumHash, e.datum, t.lucidConfig.provider), _ = mc({
                    ...e,
                    datum: o
                });
                t.readInputs.some((c)=>c.txHash === e.txHash && c.outputIndex === e.outputIndex) || (t.txBuilder.add_reference_input(_), t.readInputs.push(e));
            }
        }), lc = ({ type: n, script: t })=>{
        switch(n){
            case "Native":
                return {
                    key: he.from_cbor_hex(t).hash().to_hex(),
                    value: {
                        type: n,
                        script: t
                    }
                };
            case "PlutusV1":
                return {
                    key: zr.from_cbor_hex(Kn(t)).hash().to_hex(),
                    value: {
                        type: n,
                        script: Kn(t)
                    }
                };
            case "PlutusV2":
                return {
                    key: qr.from_cbor_hex(Kn(t)).hash().to_hex(),
                    value: {
                        type: n,
                        script: Kn(t)
                    }
                };
            case "PlutusV3":
                return {
                    key: Dr.from_cbor_hex(Kn(t)).hash().to_hex(),
                    value: {
                        type: n,
                        script: Kn(t)
                    }
                };
            default:
                throw new Error(`Exhaustive check failed: Unhandled case ${n}`);
        }
    }, Gkt = (n)=>lc(n), Hkt = (n)=>lc(n), Kkt = (n)=>lc(n), Vkt = (n)=>lc(n), Zkt = (n)=>lc(n), Ykt = (n)=>lc(n), Wkt = (n)=>new qa({
            cause: `{ Pay: ${n} }`
        }), Jkt = (n, t)=>Qt(function*() {
            const { config: e } = yield* qe, o = F_.new().with_address(yield* Lkt(n, e.lucidConfig)).next();
            Object.keys(t).length == 0 && (yield* Wkt(ge.EMPTY_ASSETS));
            const _ = yp(t);
            let a = o.with_asset_and_min_required_coin(_.multi_asset(), e.lucidConfig.protocolParameters.coinsPerUtxoByte).build();
            const c = t.lovelace;
            if (c) {
                const s = a.output().amount().coin();
                c > s && (a = o.with_value(_).build());
            }
            e.totalOutputAssets = mh(e.totalOutputAssets, vh(a.output().amount())), e.payToOutputs = [
                ...e.payToOutputs,
                j0(a.output())
            ], e.txBuilder.add_output(a);
        }), H9 = (n, t, e, o)=>Qt(function*() {
            const { config: _ } = yield* qe, a = Qkt(n, t, o);
            e ??= {};
            const c = yp(e);
            let s = a.with_asset_and_min_required_coin(c.multi_asset(), _.lucidConfig.protocolParameters.coinsPerUtxoByte).build();
            const u = e.lovelace;
            if (u) {
                const l = s.output().amount().coin();
                u > l && (s = a.with_value(c).build());
            }
            _.totalOutputAssets = mh(_.totalOutputAssets, vh(s.output().amount())), _.payToOutputs = [
                ..._.payToOutputs,
                j0(s.output())
            ], _.txBuilder.add_output(s);
        }), Xkt = (n, t, e, o)=>H9(n, t, e, o), Qkt = (n, t, e)=>{
        let o;
        const _ = F_.new().with_address(ce.from_bech32(n));
        if (t) {
            if (t.value.trim() === "") throw new Error("datum value is missing. Please provide a non-empty cbor hex data.");
            switch(t.kind){
                case "hash":
                    {
                        const a = jn.new_hash(o_.from_hex(t.value));
                        o = _.with_data(a);
                        break;
                    }
                case "asHash":
                    {
                        const a = Vt.from_cbor_hex(t.value);
                        o = _.with_communication_data(a);
                        break;
                    }
                case "inline":
                    {
                        const a = Vt.from_cbor_hex(t.value), c = jn.new_datum(a);
                        o = _.with_data(c);
                        break;
                    }
                default:
                    throw new Error(`Unknown outputDatum: ${t}`);
            }
        } else o = _;
        return e ? o.with_reference_script(p9(e)).next() : o.next();
    }, Zf = (n)=>new qa({
            cause: `{ Mint: ${n} }`
        }), $kt = (n)=>(t)=>Qt(function*() {
                const { config: e } = yield* qe, o = Object.keys(n), _ = o[0].slice(0, 56), a = Ri.new();
                for (const u of o)u.slice(0, 56) !== _ && (yield* Zf(ge.MULTIPLE_POLICIES)), a.insert(Ye.from_hex(u.slice(56)), n[u]);
                const c = Cu.new(a), s = yield* Mt(Pe(e.scripts.get(_)), Me(()=>Zf(ge.MISSING_POLICY(_))));
                switch(s.type){
                    case "Native":
                        e.txBuilder.add_mint(c.native_script(he.from_cbor_hex(s.script), Wr.assume_signature_count()));
                        break;
                    case "PlutusV1":
                        {
                            const u = yield* Mt(Pe(t), Me(()=>Zf(ge.MISSING_REDEEMER)));
                            e.txBuilder.add_mint(c.plutus_script(Fn(Wl(s.script), u), pe.new()));
                            break;
                        }
                    case "PlutusV2":
                        {
                            const u = yield* Mt(Pe(t), Me(()=>Zf(ge.MISSING_REDEEMER)));
                            e.txBuilder.add_mint(c.plutus_script(Fn(Jl(s.script), u), pe.new()));
                            break;
                        }
                    case "PlutusV3":
                        {
                            const u = yield* Mt(Pe(t), Me(()=>Zf(ge.MISSING_REDEEMER)));
                            e.txBuilder.add_mint(c.plutus_script(Fn(Xl(s.script), u), pe.new()));
                            break;
                        }
                }
            }), tBt = (n)=>Qt(function*() {
            const { config: t } = yield* qe, e = sb(t.lucidConfig.network, n);
            t.txBuilder.set_validity_start_interval(BigInt(e));
        }), eBt = (n)=>Qt(function*() {
            const { config: t } = yield* qe, e = sb(t.lucidConfig.network, n);
            t.txBuilder.set_ttl(BigInt(e));
        }), yw = (n)=>new qa({
            cause: `{ Signer: ${n} }`
        }), rBt = (n)=>Qt(function*() {
            const { config: t } = yield* qe, e = yield* bu(n, t.lucidConfig), o = e.type === "Reward" ? yield* Mt(Pe(e.stakeCredential), Me(()=>yw(ge.MISSING_STAKE_CREDENTIAL))) : yield* Mt(Pe(e.paymentCredential), Me(()=>yw(ge.MISSING_PAYMENT_CREDENTIAL)));
            return o.type === "Script" && (yield* yw(ge.SCRIPT_CREDENTIAL_NOT_ALLOWED)), o.hash;
        }).pipe(Ae((t)=>K9(t))), K9 = (n)=>Qt(function*() {
            const { config: t } = yield* qe;
            t.txBuilder.add_required_signer(Kt.from_hex(n));
        }), Sa = (n)=>new qa({
            cause: `{ Stake: ${n} }`
        }), V8 = (n)=>Qt(function*() {
            const { config: t } = yield* qe, e = yield* Mt(bu(n, t.lucidConfig), Gu((c)=>c.type !== "Reward" ? Sa(ge.MISSING_REWARD_TYPE) : Ir(c))), o = yield* Mt(Pe(e.stakeCredential), Me(()=>Sa(ge.MISSING_STAKE_CREDENTIAL))), _ = o.type === "Key" ? Pt.new_pub_key(Kt.from_hex(o.hash)) : Pt.new_script(Zt.from_hex(o.hash)), a = Qr.new(de.new_stake_registration(_));
            t.txBuilder.add_cert(a.skip_witness());
        }), Z8 = (n, t)=>Qt(function*() {
            const { config: e } = yield* qe, o = yield* Mt(bu(n, e.lucidConfig), Gu((c)=>c.type !== "Reward" ? Sa(ge.MISSING_REWARD_TYPE) : Ir(c))), _ = yield* Mt(Pe(o.stakeCredential), Me(()=>Sa(ge.MISSING_STAKE_CREDENTIAL))), a = (c, s)=>Qr.new(de.new_unreg_cert(c, s.lucidConfig.protocolParameters.keyDeposit));
            switch(_.type){
                case "Key":
                    {
                        const c = Pt.new_pub_key(Kt.from_hex(_.hash)), s = a(c, e);
                        e.txBuilder.add_cert(s.payment_key());
                        break;
                    }
                case "Script":
                    {
                        const c = Pt.new_script(Zt.from_hex(_.hash)), s = a(c, e), u = yield* Mt(Pe(e.scripts.get(_.hash)), Me(()=>Sa(ge.MISSING_SCRIPT(_.hash)))), l = ()=>Mt(Pe(t), Me(()=>Sa(ge.MISSING_REDEEMER)));
                        switch(u.type){
                            case "PlutusV1":
                                {
                                    const f = yield* l();
                                    e.txBuilder.add_cert(s.plutus_script(Fn(Wl(u.script), f), pe.new()));
                                    break;
                                }
                            case "PlutusV2":
                                {
                                    const f = yield* l();
                                    e.txBuilder.add_cert(s.plutus_script(Fn(Jl(u.script), f), pe.new()));
                                    break;
                                }
                            case "PlutusV3":
                                {
                                    const f = yield* l();
                                    e.txBuilder.add_cert(s.plutus_script(Fn(Xl(u.script), f), pe.new()));
                                    break;
                                }
                            case "Native":
                                {
                                    e.txBuilder.add_cert(s.native_script(he.from_cbor_hex(u.script), Wr.assume_signature_count()));
                                    break;
                                }
                        }
                    }
            }
        }), nBt = (n, t)=>(e)=>Qt(function*() {
                const { config: o } = yield* qe, _ = yield* Mt(bu(n, o.lucidConfig), Gu((u)=>u.type !== "Reward" ? Sa(ge.MISSING_REWARD_TYPE) : Ir(u))), a = yield* Mt(Pe(wr.from_address(ce.from_bech32(n))), Me(()=>Sa(ge.MISSING_STAKE_CREDENTIAL)), Gu((u)=>dg.new(u, t))), c = yield* Mt(Pe(_.stakeCredential), Me(()=>Sa(ge.MISSING_STAKE_CREDENTIAL))), s = ()=>Mt(Pe(e), Me(()=>Sa(ge.MISSING_REDEEMER)));
                switch(c.type){
                    case "Key":
                        {
                            o.txBuilder.add_withdrawal(a.payment_key());
                            break;
                        }
                    case "Script":
                        {
                            const u = yield* Mt(Pe(o.scripts.get(c.hash)), Me(()=>Sa(ge.MISSING_SCRIPT(c.hash))));
                            switch(u.type){
                                case "PlutusV1":
                                    {
                                        const l = yield* s();
                                        o.txBuilder.add_withdrawal(a.plutus_script(Fn(Wl(u.script), l), pe.new()));
                                        break;
                                    }
                                case "PlutusV2":
                                    {
                                        const l = yield* s();
                                        o.txBuilder.add_withdrawal(a.plutus_script(Fn(Jl(u.script), l), pe.new()));
                                        break;
                                    }
                                case "PlutusV3":
                                    {
                                        const l = yield* s();
                                        o.txBuilder.add_withdrawal(a.plutus_script(Fn(Xl(u.script), l), pe.new()));
                                        break;
                                    }
                                case "Native":
                                    {
                                        o.txBuilder.add_withdrawal(a.native_script(he.from_cbor_hex(u.script), Wr.assume_signature_count()));
                                        break;
                                    }
                            }
                        }
                }
            }), Cp = (n)=>new qa({
            cause: `{ Pool : ${n} }`
        }), Y8 = (n, t, e)=>Qt(function*() {
            const { config: o } = yield* qe, _ = yield* Mt(bu(n, o.lucidConfig), Gu((c)=>c.type !== "Reward" ? Cp(ge.MISSING_REWARD_TYPE) : Ir(c))), a = yield* Mt(Pe(_.stakeCredential), Me(()=>Cp(ge.MISSING_STAKE_CREDENTIAL)));
            switch(a.type){
                case "Key":
                    {
                        const c = Pt.new_pub_key(Kt.from_hex(a.hash)), s = Qr.new(de.new_stake_delegation(c, Kt.from_bech32(t)));
                        o.txBuilder.add_cert(s.payment_key());
                        break;
                    }
                case "Script":
                    {
                        const c = Pt.new_script(Zt.from_hex(a.hash)), s = Qr.new(de.new_stake_delegation(c, Kt.from_bech32(t))), u = yield* Mt(Pe(o.scripts.get(a.hash)), Me(()=>Cp(ge.MISSING_SCRIPT(a.hash)))), l = ()=>Mt(Pe(e), Me(()=>Cp(ge.MISSING_REDEEMER)));
                        switch(u.type){
                            case "PlutusV1":
                                {
                                    const f = yield* l();
                                    o.txBuilder.add_cert(s.plutus_script(Fn(Wl(u.script), f), pe.new()));
                                    break;
                                }
                            case "PlutusV2":
                                {
                                    const f = yield* l();
                                    o.txBuilder.add_cert(s.plutus_script(Fn(Jl(u.script), f), pe.new()));
                                    break;
                                }
                            case "PlutusV3":
                                {
                                    const f = yield* l();
                                    o.txBuilder.add_cert(s.plutus_script(Fn(Xl(u.script), f), pe.new()));
                                    break;
                                }
                            case "Native":
                                {
                                    o.txBuilder.add_cert(s.native_script(he.from_cbor_hex(u.script), Wr.assume_signature_count()));
                                    break;
                                }
                        }
                    }
            }
        }), Mh = (n)=>!("__typename" in n), _Bt = (n)=>!Mh(n) && n.__typename === "AlwaysAbstain", aBt = (n)=>!Mh(n) && n.__typename === "AlwaysNoConfidence", A0 = (n)=>{
        if (_Bt(n)) return Ze.new_always_abstain();
        if (aBt(n)) return Ze.new_always_no_confidence();
        if (Mh(n)) switch(n.type){
            case "Key":
                return Ze.new_key(Kt.from_hex(n.hash));
            case "Script":
                return Ze.new_script(Zt.from_hex(n.hash));
            default:
                throw new Error(`Unsupported DRep type: ${n.type}`);
        }
        throw new Error(`Unexpected DRep type: ${n}`);
    }, oBt = (n, t, e)=>Qt(function*() {
            const { config: o } = yield* qe, _ = yield* Da(n, o), a = A0(t);
            yield* wo(_, o, (s)=>Qr.new(de.new_vote_deleg_cert(s, a)), e);
        }), iBt = (n, t, e, o)=>Qt(function*() {
            const { config: _ } = yield* qe, a = yield* Da(n, _), c = A0(e);
            yield* wo(a, _, (u)=>Qr.new(de.new_stake_vote_deleg_cert(u, Kt.from_bech32(t), c)), o);
        }), sBt = (n, t, e)=>Qt(function*() {
            const { config: o } = yield* qe, _ = yield* Da(n, o);
            yield* wo(_, o, (c)=>Qr.new(de.new_stake_reg_deleg_cert(c, Kt.from_bech32(t), o.lucidConfig.protocolParameters.keyDeposit)), e);
        }), cBt = (n, t, e)=>Qt(function*() {
            const { config: o } = yield* qe, _ = yield* Da(n, o), a = A0(t);
            yield* wo(_, o, (s)=>Qr.new(de.new_vote_reg_deleg_cert(s, a, o.lucidConfig.protocolParameters.keyDeposit)), e);
        }), dBt = (n, t, e, o)=>Qt(function*() {
            const { config: _ } = yield* qe, a = yield* Da(n, _), c = A0(e);
            yield* wo(a, _, (u)=>Qr.new(de.new_stake_vote_reg_deleg_cert(u, Kt.from_bech32(t), c, _.lucidConfig.protocolParameters.keyDeposit)), o);
        }), uBt = (n, t, e)=>Qt(function*() {
            const { config: o } = yield* qe, _ = yield* Da(n, o), a = t ? Xe.new(M_.from_json(t.url), Ea.from_hex(t.dataHash)) : void 0;
            yield* wo(_, o, (s)=>Qr.new(de.new_reg_drep_cert(s, o.lucidConfig.protocolParameters.drepDeposit, a)), e);
        }), lBt = (n, t)=>Qt(function*() {
            const { config: e } = yield* qe, o = yield* Da(n, e);
            yield* wo(o, e, (a)=>Qr.new(de.new_unreg_drep_cert(a, e.lucidConfig.protocolParameters.drepDeposit)), t);
        }), fBt = (n, t, e)=>Qt(function*() {
            const { config: o } = yield* qe, _ = yield* Da(n, o), a = t ? Xe.new(M_.from_json(t.url), Ea.from_hex(t.dataHash)) : void 0;
            yield* wo(_, o, (s)=>Qr.new(de.new_update_drep_cert(s, a)), e);
        }), gBt = (n, t, e)=>Qt(function*() {
            const { config: o } = yield* qe, _ = yield* Da(n, o), a = yield* Da(t, o), c = a.type === "Key" ? Pt.new_pub_key(Kt.from_hex(a.hash)) : Pt.new_script(Zt.from_hex(a.hash));
            yield* wo(_, o, (u)=>Qr.new(de.new_auth_committee_hot_cert(u, c)), e);
        }), pBt = (n, t, e)=>Qt(function*() {
            const { config: o } = yield* qe, _ = yield* Da(n, o), a = t ? Xe.new(M_.from_json(t.url), Ea.from_hex(t.dataHash)) : void 0;
            yield* wo(_, o, (s)=>Qr.new(de.new_resign_committee_cold_cert(s, a)), e);
        }), bBt = (n, t, e)=>Qt(function*() {
            const o = tr.new(), _ = On.new();
            _.set(BigInt(t), Te.from_json(JSON.stringify(Gp(e)))), o.add_metadata(_), n.txBuilder.add_auxiliary_data(o), o.free(), _.free();
        }), V9 = Oh.pipe(K5t(64)), Hw = C5t(V9, U5t, Z5t, N5t(D8(()=>Hw)), z5t(Oh, D8(()=>Hw))), Gp = (n)=>{
        if (I5t(Hw)(n), m5t(V9)(n)) return {
            string: n
        };
        if (typeof n == "number") return {
            int: n
        };
        if (n instanceof Uint8Array) return {
            bytes: L_(n)
        };
        if (Array.isArray(n)) return {
            list: n.map((t)=>Gp(t))
        };
        if (typeof n == "object" && n !== null) return {
            map: Object.entries(n).map(([e, o])=>({
                    k: Gp(e),
                    v: Gp(o)
                }))
        };
        throw new Error("Unsupported type");
    }, wBt = (n, t)=>{
        const e = (o)=>Og({
                try: ()=>n.submitTx(o.canonical ? t.to_canonical_cbor_hex() : t.to_cbor_hex()),
                catch: (_)=>new Mkt({
                        cause: _
                    })
            });
        return {
            submit: (o = {
                canonical: !1
            })=>J_(e(o)).unsafeRun(),
            submitProgram: (o = {
                canonical: !1
            })=>e(o),
            submitSafe: (o = {
                canonical: !1
            })=>J_(e(o)).safeRun(),
            toCBOR: (o = {
                canonical: !1
            })=>o.canonical ? t.to_canonical_cbor_hex() : t.to_cbor_hex(),
            toTransaction: ()=>t,
            toJSON: ()=>R9(Ph(U9))(t.to_json()),
            toHash: ()=>_u(t.body()).to_hex()
        };
    }, xg = (n)=>new Nkt({
            cause: n
        }), Z9 = (n, t)=>Mt(Pe(n), Sg(()=>xg(ge.MISSING_WALLET)), I7({
            try: (e)=>e.signTx(t),
            catch: (e)=>xg(e)
        })), yBt = (n)=>Mt(Z9(n.wallet, n.txComplete), je((t)=>n.witnessSetBuilder.add_existing(t))), hw = (n)=>Mt(Z9(n.wallet, n.txComplete), je((t)=>t.to_cbor_hex())), Y9 = (n, t)=>Mt(Il({
            try: ()=>Sn.from_bech32(n),
            catch: xg
        }), je((e)=>Ib(_u(t.body()), e))), hBt = (n, t)=>Mt(Y9(t, n.txComplete), je((e)=>n.witnessSetBuilder.add_vkey(e))), vw = (n, t)=>Mt(Y9(t, n.txComplete), je((e)=>{
            const o = Ra.new();
            return o.add_vkey(e), o.build().to_cbor_hex();
        })), vBt = (n, t)=>Ta(t, (e)=>Mt(Il({
                try: ()=>Gr.from_cbor_hex(e),
                catch: xg
            }), je((o)=>n.witnessSetBuilder.add_existing(o)))), mw = (n)=>Qt(function*() {
            yield* mb(n.programs, {
                concurrency: "unbounded"
            });
            const t = n.txComplete.witness_set().plutus_datums();
            if (n.witnessSetBuilder.add_existing(n.txComplete.witness_set()), t) for(let a = 0; a < t.len(); a++)n.witnessSetBuilder.add_plutus_datum(t.get(a));
            const e = n.witnessSetBuilder.build(), o = Vr.new(n.txComplete.body(), e, !0, n.txComplete.auxiliary_data()), _ = yield* Mt(Pe(n.wallet), Me(()=>xg(ge.MISSING_WALLET)));
            return wBt(_, o);
        }).pipe(Vw((t)=>new Ch({
                cause: t
            }))), W9 = (n, t)=>{
        const e = t.witness_set().redeemers(), o = {
            cpu: 0,
            mem: 0
        };
        if (e) {
            const c = e?.as_arr_legacy_redeemer();
            if (c) for(let u = 0; u < c.len(); u++){
                const l = c.get(u);
                o.cpu += parseInt(l.ex_units().steps().toString()), o.mem += parseInt(l.ex_units().mem().toString());
            }
            const s = e?.as_map_redeemer_key_to_redeemer_val();
            if (s) {
                const u = s.keys();
                for(let l = 0; l < (u.len() || 0); l++){
                    const f = u.get(l), p = s.get(f);
                    o.cpu += parseInt(p.ex_units().steps().toString()), o.mem += parseInt(p.ex_units().mem().toString());
                }
            }
        }
        const _ = {
            txComplete: t,
            witnessSetBuilder: Ra.new(),
            programs: [],
            wallet: n,
            fee: parseInt(t.body().fee().toString())
        }, a = {
            sign: {
                withWallet: ()=>{
                    const c = yBt(_);
                    return _.programs.push(c), a;
                },
                withPrivateKey: (c)=>{
                    const s = hBt(_, c);
                    return _.programs.push(s), a;
                }
            },
            partialSign: {
                withWallet: ()=>J_(hw(_)).unsafeRun(),
                withWalletEffect: ()=>hw(_),
                withWalletSafe: ()=>J_(hw(_)).safeRun(),
                withPrivateKey: (c)=>J_(vw(_, c)).unsafeRun(),
                withPrivateKeyEffect: (c)=>vw(_, c),
                withPrivateKeySafe: (c)=>J_(vw(_, c)).safeRun()
            },
            assemble: (c)=>{
                const s = vBt(_, c);
                return _.programs.push(s), a;
            },
            toCBOR: (c = {
                canonical: !1
            })=>c.canonical ? _.txComplete.to_canonical_cbor_hex() : _.txComplete.to_cbor_hex(),
            toTransaction: ()=>_.txComplete,
            toJSON: ()=>R9(Ph(U9))(_.txComplete.to_json()),
            toHash: ()=>_u(_.txComplete.body()).to_hex(),
            complete: ()=>J_(mw(_)).unsafeRun(),
            completeProgram: ()=>mw(_),
            completeSafe: ()=>J_(mw(_)).safeRun()
        };
        return a;
    }, Yn = (n)=>new qa({
            cause: `{ Complete: ${n} }`
        }), ku = (n = {})=>Qt(function*() {
            const { config: t } = yield* qe, e = yield* Mt(Pe(t.lucidConfig.wallet), Me(()=>Yn(ge.MISSING_WALLET))), o = yield* Xo(()=>e.address()), { coinSelection: _ = !0, changeAddress: a = o, localUPLCEval: c = !0, setCollateral: s = 5000000n, canonical: u = !1, includeLeftoverLovelaceAsFee: l = !1, presetWalletInputs: f = [] } = n, p = f.length === 0 ? yield* Og({
                try: ()=>e.getUtxos(),
                catch: (w)=>Yn(w)
            }) : f;
            yield* mb(t.programs);
            const g = Array.from(t.scripts.values()).some((w)=>w.type !== "Native");
            if (yield* W8(p, a, _, c, l, !1), g) {
                const w = t.txBuilder.min_fee(!0), S = yield* Q9(t);
                let b = w + S;
                const k = BigInt(Math.ceil(Math.max(t.lucidConfig.protocolParameters.collateralPercentage * Number(b) / 100, Number(s)))), F = yield* xBt(t.lucidConfig.protocolParameters.coinsPerUtxoByte, k, p);
                yield* BBt(k, F, a), yield* W8(p, a, _, c, l, !0);
            }
            t.txBuilder.add_change_if_needed(ce.from_bech32(a), !0);
            const h = yield* Il({
                try: ()=>t.txBuilder.build(B5.Default, ce.from_bech32(a)).build_unchecked(),
                catch: (w)=>Yn(w)
            }), B = FBt(h), I = B.filter((w)=>w.address === o), j = Mt(Zw(kh)(p, t.consumedInputs), (w)=>[
                    ...I,
                    ...w
                ]);
            return m7(j, B, W9(t.lucidConfig.wallet, u ? Vr.from_cbor_bytes(h.to_canonical_cbor_bytes()) : h));
        }).pipe(Vw((t)=>new Ch({
                cause: t
            }))), W8 = (n, t, e, o, _, a)=>Qt(function*() {
            const { config: c } = yield* qe, s = c.readInputs.filter((h)=>h.scriptRef), u = Zw(kh)(n, [
                ...c.collectedInputs,
                ...s
            ]), { selected: l, burnable: f } = e !== !1 ? yield* jBt(c, u, a, _) : {
                selected: [],
                burnable: {
                    lovelace: 0n
                }
            };
            let p = 0n;
            if (ag(l)) {
                if (a) return;
                p += f.lovelace;
            }
            if (Ld(l)) {
                for (const h of l){
                    const B = nc.from_transaction_unspent_output(mc(h)).payment_key();
                    c.txBuilder.add_input(B);
                }
                c.collectedInputs = [
                    ...c.collectedInputs,
                    ...l
                ], p = yield* X9(c, a);
            }
            c.consumedInputs = [
                ...c.collectedInputs
            ], c.partialPrograms.size > 0 && (a ? yield* Yn(`RedeemerBuilder: Coin selection had to be updated after building redeemers, possibly leading to incorrect indices. Try setting a minimum fee of ${p} lovelaces.`) : yield* mBt());
            const g = yield* Il({
                try: ()=>c.txBuilder.build_for_evaluation(0, ce.from_bech32(t)),
                catch: (h)=>Yn(h)
            });
            g.draft_tx().witness_set().redeemers() && (o !== !1 ? IBt(yield* EBt(c, g, n), c.txBuilder) : kBt(yield* SBt(c, g), c.txBuilder));
        }).pipe(Vw((c)=>new Ch({
                cause: c
            }))), mBt = ()=>Qt(function*() {
            const { config: n } = yield* qe, t = Ih(n.collectedInputs, "Canonical"), e = new Map;
            t.forEach((_, a)=>{
                e.set(_.txHash + _.outputIndex, BigInt(a));
            });
            const o = [];
            for (const [_, a] of n.partialPrograms.entries())if (_.kind === "selected") {
                const c = _.inputs.flatMap((l)=>{
                    const f = e.get(l.txHash + l.outputIndex);
                    return f !== void 0 ? f : [];
                });
                (ag(c) || c.length !== _.inputs.length) && (yield* Yn(`RedeemerBuilder: Missing indices for inputs: ${mg(_.inputs)}`));
                const s = _.makeRedeemer(c), u = a(s);
                o.push(u);
            } else {
                const c = yield* Mt(Pe(_.inputs), Me(()=>Yn(`RedeemerBuilder: Inputs for redeemer builder not founds: ${mg(_)}`)));
                for (const s of c){
                    const u = yield* Mt(Pe(e.get(s.txHash + s.outputIndex)), Me(()=>Yn(`Index not found for input: ${s}`))), l = _.makeRedeemer(u), f = Nh([
                        s
                    ], !1)(l);
                    o.push(f);
                }
            }
            yield* mb(o);
        }), IBt = (n, t)=>{
        for (const e of n){
            const o = P_.from_cbor_bytes(e), _ = Je.new(o.ex_units().mem(), o.ex_units().steps());
            t.set_exunits(Pa.new(o.tag(), o.index()), _);
        }
    }, kBt = (n, t)=>{
        for (const e of n){
            const o = Je.new(BigInt(e.ex_units.mem), BigInt(e.ex_units.steps));
            t.set_exunits(Pa.new(i8t(e.redeemer_tag), BigInt(e.redeemer_index)), o);
        }
    }, J9 = (n)=>{
        const t = n.witness_set().redeemers();
        if (!t) return n;
        const e = t.as_arr_legacy_redeemer();
        if (e) {
            const _ = Pi.new();
            for(let c = 0; c < e.len(); c++){
                const s = e.get(c), u = P_.new(s.tag(), s.index(), s.data(), Je.new(0n, 0n));
                _.add(u);
            }
            const a = n.witness_set();
            return a.set_redeemers(hn.new_arr_legacy_redeemer(_)), Vr.new(n.body(), a, !0, n.auxiliary_data());
        }
        const o = t.as_map_redeemer_key_to_redeemer_val();
        if (o) {
            const _ = n.witness_set();
            return _.set_redeemers(hn.new_map_redeemer_key_to_redeemer_val(o)), Vr.new(n.body(), _, !0, n.auxiliary_data());
        }
        return n;
    }, BBt = (n, t, e)=>Qt(function*() {
            const { config: o } = yield* qe;
            for (const c of t){
                const s = nc.from_transaction_unspent_output(mc(c)).payment_key();
                o.txBuilder.add_collateral(s);
            }
            const _ = Mt(gb(t), $s({
                lovelace: -n
            }, zd)), a = F_.new().with_address(ce.from_bech32(e));
            o.txBuilder.set_collateral_return(a.next().with_value(yp(_)).build().output());
        }), xBt = (n, t, e)=>Qt(function*() {
            const o = {
                lovelace: t
            }, _ = Yn(`Your wallet does not have enough funds to cover the required ${t} Lovelace collateral. Or it contains UTxOs with reference scripts; which
      are excluded from collateral selection.`), { selected: a } = yield* $9(Ih(e), o, n, void 0, !1, _);
            return a.length > 3 && (yield* Yn(`Selected ${a.length} inputs as collateral, but max collateral inputs is 3 to cover the ${t} Lovelace collateral ${mg(a)}`)), a;
        }), jBt = (n, t, e, o)=>Qt(function*() {
            const _ = {
                lovelace: yield* X9(n, e)
            }, a = Iw(n.mintedAssets), c = Iw(gb(n.collectedInputs)), s = Mt(n.totalOutputAssets, $s(_, zd), $s(c, zd), $s(a, zd));
            let u = Mt(s, zh((f)=>f > 0n));
            const l = Mt(s, zh((f)=>f < 0n), Iw);
            return yield* $9(Ih(t), u, n.lucidConfig.protocolParameters.coinsPerUtxoByte, l, o);
        }), X9 = (n, t)=>Qt(function*() {
            const e = n.txBuilder.min_fee(t), o = yield* Q9(n);
            let _ = e + o;
            const a = n.minFee;
            return (a !== void 0 && a > e || o > 0n) && (_ = a && a > _ ? a : _, n.txBuilder.set_fee(_)), _;
        }), SBt = (n, t, e)=>Qt(function*() {
            const o = J9(t.draft_tx()), _ = [
                ...n.collectedInputs,
                ...n.readInputs
            ].map(({ datumHash: c, datum: s, ...u })=>({
                    ...u,
                    datumHash: c,
                    datum: c ? void 0 : s
                }));
            return yield* Og({
                try: ()=>n.lucidConfig.provider.evaluateTx(o.to_cbor_hex(), _),
                catch: (c)=>Yn(c)
            });
        }), EBt = (n, t, e)=>Qt(function*() {
            const o = J9(t.draft_tx()), _ = [
                ...e,
                ...n.collectedInputs,
                ...n.readInputs
            ].map(({ datumHash: l, datum: f, ...p })=>({
                    ...p,
                    datumHash: l,
                    datum: l ? void 0 : f
                })), a = _.map((l)=>y9(l)), c = _.map((l)=>w9(l)), s = i0[n.lucidConfig.network];
            return yield* Il({
                try: ()=>tkt(o.to_cbor_bytes(), a.map((l)=>l.to_cbor_bytes()), c.map((l)=>l.to_cbor_bytes()), n.lucidConfig.costModels.to_cbor_bytes(), n.lucidConfig.protocolParameters.maxTxExSteps, n.lucidConfig.protocolParameters.maxTxExMem, BigInt(s.zeroTime), BigInt(s.zeroSlot), s.slotLength),
                catch: (l)=>Yn(`${k7(l) ? l : JSON.stringify(l).replace(/\\n\s*/g, " ").trim()}`)
            });
        }), OBt = (n, t, e)=>F_.new().with_address(ce.from_bech32("addr_test1qrngfyc452vy4twdrepdjc50d4kvqutgt0hs9w6j2qhcdjfx0gpv7rsrjtxv97rplyz3ymyaqdwqa635zrcdena94ljs0xy950")).next().with_asset_and_min_required_coin(t ? yp(t).multi_asset() : wn.new(), n).build().output().amount().coin(), Q9 = (n)=>Qt(function*() {
            let t = 0n, e = 0;
            for (const a of n.readInputs)a.scriptRef && (e = e + a.scriptRef.script.length / 2);
            for (const a of n.collectedInputs)a.scriptRef && (e = e + a.scriptRef.script.length / 2);
            if (e === 0) return t;
            const o = [
                15,
                18,
                21.6,
                25.92,
                31.1,
                37.32,
                44.79,
                53.75
            ];
            let _ = 0;
            for(; e > 0;)_ > o.length - 1 && (yield* Yn("Total reference script size in a transaction cannot exceed 200,000 bytes.")), e > 25e3 ? t = t + BigInt(Math.ceil(25e3 * o[_])) : t = t + BigInt(Math.ceil(e * o[_])), e = e - 25e3, _++;
            return t;
        }), FBt = (n)=>{
        const t = n.body().outputs(), e = _u(n.body()).to_hex(), o = [];
        for(let _ = 0; _ < t.len(); _++){
            const a = t.get(_), c = {
                txHash: e,
                outputIndex: _,
                ...j0(a)
            };
            o.push(c);
        }
        return o;
    }, Iw = (n)=>B7(n, (t)=>-t), gb = (n)=>ag(n) ? {} : n.map((t)=>t.assets).reduce((t, e)=>$s(t, e, zd)), J8 = (n, t)=>Mt(n, (e)=>{
            const o = OBt(t, e), _ = e.lovelace || 0n;
            return _ >= o ? qi() : Ui({
                lovelace: o - _
            });
        }), $9 = (n, t, e, o = {}, _, a)=>Qt(function*() {
            let c = [];
            a ??= Yn(`Your wallet does not have enough funds to cover the required assets: ${mg(t)}
      Or it contains UTxOs with reference scripts; which are excluded from coin selection.`), f5(t) || (c = E8(n, t, !0), ag(c) && (yield* a));
            const s = gb(c);
            let u = Mt(s, $s(t, (p, g)=>p - g), $s(o, zd)), l = Mt(J8(u, e), Du), f = n;
            for(; l;){
                f = Zw(kh)(f, c);
                const p = E8(f, l, !0);
                if (ag(p)) {
                    if (_) return {
                        selected: [
                            ...c
                        ],
                        burnable: l
                    };
                    yield* Yn(`Your wallet does not have enough funds to cover required minimum ADA for change output: ${mg(l)}
          Or it contains UTxOs with reference scripts; which are excluded from coin selection.`);
                }
                const g = gb(p);
                c = [
                    ...c,
                    ...p
                ], u = $s(u, g, zd), l = Mt(J8(u, e), Du);
            }
            return {
                selected: c,
                burnable: {
                    lovelace: 0n
                }
            };
        });
    function ABt(n) {
        const t = {
            lucidConfig: n,
            txBuilder: lg.new(n.txbuilderconfig),
            walletInputs: [],
            collectedInputs: [],
            readInputs: [],
            consumedInputs: [],
            totalOutputAssets: {},
            payToOutputs: [],
            mintedAssets: {},
            scripts: new Map,
            programs: [],
            partialPrograms: new Map,
            minFee: void 0
        }, e = h7(qe, {
            config: t
        }), o = {
            readFrom: (_)=>{
                _.map((c)=>{
                    if (c.scriptRef) {
                        const s = lc(c.scriptRef);
                        t.scripts.set(s.key, s.value);
                    }
                });
                const a = Dkt(_);
                return t.programs.push(a), o;
            },
            collectFrom: (_, a)=>{
                const c = typeof a == "object" ? zkt(_, a) : Nh(_)(a);
                return t.programs.push(c), o;
            },
            pay: {
                ToAddress: (_, a)=>{
                    const c = Jkt(_, a);
                    return t.programs.push(c), o;
                },
                ToAddressWithData: (_, a, c, s)=>{
                    const u = H9(_, a, c, s);
                    return t.programs.push(u), o;
                },
                ToContract: (_, a, c, s)=>{
                    const u = Xkt(_, a, c, s);
                    return t.programs.push(u), o;
                }
            },
            addSigner: (_)=>{
                const a = rBt(_);
                return t.programs.push(a), o;
            },
            addSignerKey: (_)=>{
                const a = K9(_);
                return t.programs.push(a), o;
            },
            registerStake: (_)=>{
                const a = V8(_);
                return t.programs.push(a), o;
            },
            register: {
                Stake: (_)=>{
                    const a = V8(_);
                    return t.programs.push(a), o;
                },
                DRep: (_, a, c)=>{
                    const s = uBt(_, a, c);
                    return t.programs.push(s), o;
                }
            },
            deRegisterStake: (_, a)=>{
                const c = Z8(_, a);
                return t.programs.push(c), o;
            },
            deregister: {
                Stake: (_, a)=>{
                    const c = Z8(_, a);
                    return t.programs.push(c), o;
                },
                DRep: (_, a)=>{
                    const c = lBt(_, a);
                    return t.programs.push(c), o;
                }
            },
            withdraw: (_, a, c)=>{
                const s = nBt(_, a);
                return K8(t, s, c), o;
            },
            mintAssets: (_, a)=>{
                t.mintedAssets = mh(t.mintedAssets, _);
                const c = $kt(_);
                return K8(t, c, a), o;
            },
            validFrom: (_)=>{
                const a = tBt(_);
                return t.programs.push(a), o;
            },
            validTo: (_)=>{
                const a = eBt(_);
                return t.programs.push(a), o;
            },
            delegateTo: (_, a, c)=>{
                const s = Y8(_, a, c);
                return t.programs.push(s), o;
            },
            delegate: {
                ToPool: (_, a, c)=>{
                    const s = Y8(_, a, c);
                    return t.programs.push(s), o;
                },
                VoteToDRep: (_, a, c)=>{
                    const s = oBt(_, a, c);
                    return t.programs.push(s), o;
                },
                VoteToPoolAndDRep: (_, a, c, s)=>{
                    const u = iBt(_, a, c, s);
                    return t.programs.push(u), o;
                }
            },
            registerAndDelegate: {
                ToPool: (_, a, c)=>{
                    const s = sBt(_, a, c);
                    return t.programs.push(s), o;
                },
                ToDRep: (_, a, c)=>{
                    const s = cBt(_, a, c);
                    return t.programs.push(s), o;
                },
                ToPoolAndDRep: (_, a, c, s)=>{
                    const u = dBt(_, a, c, s);
                    return t.programs.push(u), o;
                }
            },
            updateDRep: (_, a, c)=>{
                const s = fBt(_, a, c);
                return t.programs.push(s), o;
            },
            authCommitteeHot: (_, a, c)=>{
                const s = gBt(_, a, c);
                return t.programs.push(s), o;
            },
            resignCommitteeHot: (_, a, c)=>{
                const s = pBt(_, a, c);
                return t.programs.push(s), o;
            },
            attachMetadata: (_, a)=>{
                const c = bBt(t, _, a);
                return t.programs.push(c), o;
            },
            attach: {
                Script: (_)=>{
                    const a = lc(_);
                    return t.scripts.set(a.key, a.value), o;
                },
                SpendingValidator: (_)=>{
                    const a = Gkt(_);
                    return t.scripts.set(a.key, a.value), o;
                },
                MintingPolicy: (_)=>{
                    const a = Hkt(_);
                    return t.scripts.set(a.key, a.value), o;
                },
                CertificateValidator: (_)=>{
                    const a = Kkt(_);
                    return t.scripts.set(a.key, a.value), o;
                },
                WithdrawalValidator: (_)=>{
                    const a = Vkt(_);
                    return t.scripts.set(a.key, a.value), o;
                },
                VoteValidator: (_)=>{
                    const a = Zkt(_);
                    return t.scripts.set(a.key, a.value), o;
                },
                ProposeValidator: (_)=>{
                    const a = Ykt(_);
                    return t.scripts.set(a.key, a.value), o;
                }
            },
            compose: (_)=>{
                if (_) {
                    const a = _.rawConfig();
                    t.programs = [
                        ...t.programs,
                        ..._.getPrograms()
                    ], t.scripts = new Map([
                        ...t.scripts,
                        ...a.scripts
                    ]), t.mintedAssets = Object.entries({
                        ...t.mintedAssets,
                        ...a.mintedAssets
                    }).reduce((c, [s, u])=>(c[s] = (t.mintedAssets[s] || 0n) + BigInt(u), c), {});
                }
                return o;
            },
            setMinFee: (_)=>(t.minFee = _, o),
            complete: (_)=>J_(Mt(ku(_), Bc(e), je((a)=>a[2]))).unsafeRun(),
            completeProgram: (_)=>Mt(ku(_), Bc(e), je((a)=>a[2])),
            completeSafe: (_)=>J_(Mt(ku(_), Bc(e), je((a)=>a[2]))).safeRun(),
            chainProgram: (_)=>Mt(ku(_), Bc(e)),
            chain: (_)=>J_(Mt(ku(_), Bc(e))).unsafeRun(),
            chainSafe: (_)=>J_(Mt(ku(_), Bc(e))).safeRun(),
            rawConfig: ()=>t,
            config: ()=>Mt(Qt(function*() {
                    return yield* mb(t.programs), t;
                }), Bc(e), Ia),
            lucidConfig: ()=>t.lucidConfig,
            getPrograms: ()=>t.programs
        };
        return o;
    }
    var X8 = (n, t)=>{
        const e = T_.new(Kr.new(BigInt(n.priceMem * 1e8), 100000000n), Kr.new(BigInt(n.priceStep * 1e8), 100000000n));
        return Bn.new().fee_algo(oc.new(BigInt(n.minFeeA), BigInt(n.minFeeB), BigInt(n.minFeeRefScriptCostPerByte))).coins_per_utxo_byte(n.coinsPerUtxoByte).pool_deposit(n.poolDeposit).key_deposit(n.keyDeposit).max_value_size(n.maxValSize).max_tx_size(n.maxTxSize).ex_unit_prices(e).collateral_percentage(n.collateralPercentage).max_collateral_inputs(n.maxCollateralInputs).cost_models(t).collateral_percentage(n.collateralPercentage).max_collateral_inputs(n.maxCollateralInputs).build();
    }, TBt = async (n, t, e = {})=>{
        const o = e.presetProtocolParameters || await n?.getProtocolParameters(), _ = o ? S8(o.costModels) : void 0, a = {
            provider: n,
            network: t,
            wallet: void 0,
            costModels: _,
            txbuilderconfig: o && _ ? X8(o, _) : void 0,
            protocolParameters: o
        };
        if (a.provider && "slot" in a.provider) {
            const c = a.provider;
            Qt(function*() {
                const s = yield* Mt(Bu(t));
                i0[s] = {
                    zeroTime: c.now(),
                    zeroSlot: 0,
                    slotLength: 1e3
                };
            }).pipe(G_);
        }
        return {
            config: ()=>a,
            wallet: ()=>a.wallet,
            overrideUTxOs: (c)=>a.wallet?.overrideUTxOs(c),
            switchProvider: async (c)=>{
                const s = await c.getProtocolParameters(), u = S8(s.costModels);
                a.provider = c, a.costModels = u, a.txbuilderconfig = X8(s, u), a.protocolParameters = s;
            },
            newTx: ()=>Qt(function*() {
                    const c = yield* Pe(a.provider), s = yield* Pe(a.network), u = yield* _g(a.costModels, "CostModels are not set in Lucid instance"), l = yield* _g(a.txbuilderconfig, "txbuilderconfig is not set in Lucid instance"), f = yield* _g(a.protocolParameters, "protocolParameters are not set in Lucid instance");
                    return ABt({
                        provider: c,
                        network: s,
                        wallet: a.wallet,
                        costModels: u,
                        txbuilderconfig: l,
                        protocolParameters: f
                    });
                }).pipe(G_),
            fromTx: (c)=>W9(a.wallet, Vr.from_cbor_hex(c)),
            selectWallet: {
                fromSeed: (c, s)=>Qt(function*() {
                        a.wallet = Ikt(yield* z_(a.provider), yield* Bu(t), c, s);
                    }).pipe(G_),
                fromPrivateKey: (c)=>Qt(function*() {
                        a.wallet = kkt(yield* z_(a.provider), yield* Bu(t), c);
                    }).pipe(G_),
                fromAPI: (c)=>Qt(function*() {
                        a.wallet = Bkt(yield* z_(a.provider), c);
                    }).pipe(G_),
                fromAddress: (c, s)=>Qt(function*() {
                        a.wallet = xkt(yield* z_(a.provider), yield* Bu(t), c, s);
                    }).pipe(G_)
            },
            currentSlot: ()=>Mt(Bu(a.network), je((c)=>sb(c, Date.now())), G_),
            unixTimeToSlot: (c)=>Mt(Bu(a.network), je((s)=>sb(s, c)), G_),
            utxosAt: (c)=>Mt(z_(a.provider), Ae((s)=>Xo(()=>s.getUtxos(c))), Ia),
            utxosAtWithUnit: (c, s)=>Mt(z_(a.provider), Ae((u)=>Xo(()=>u.getUtxosWithUnit(c, s))), Ia),
            utxoByUnit: (c)=>Mt(z_(a.provider), Ae((s)=>Xo(()=>s.getUtxoByUnit(c))), Ia),
            utxosByOutRef: (c)=>Mt(z_(a.provider), Ae((s)=>Xo(()=>s.getUtxosByOutRef(c))), Ia),
            delegationAt: (c)=>Mt(z_(a.provider), Ae((s)=>Xo(()=>s.getDelegation(c))), Ia),
            awaitTx: (c, s)=>Mt(z_(a.provider), Ae((u)=>Xo(()=>u.awaitTx(c, s))), Ia),
            datumOf: (c, s)=>Mt(z_(a.provider), Ae((u)=>Xo(()=>Uh(u, c, s))), Ia),
            metadataOf: (c)=>Mt(z_(a.provider), Ae((s)=>Xo(()=>Ukt(s, c))), Ia)
        };
    }, _g = (n, t)=>Mt(Pe(n), Me(()=>new Ckt({
                message: t
            }))), Bu = (n)=>_g(n, "Network is not set in Lucid instance"), z_ = (n)=>_g(n, "Provider is not set in Lucid instance");
    let t7, e7, PBt, T0, jg, pb;
    t7 = "Mainnet";
    e7 = 1586080n;
    PBt = " ";
    T0 = {
        type: "PlutusV3",
        script: PBt
    };
    jg = YIt(T0);
    pb = VIt(t7, T0);
    Fxt = jg;
    async function r7(n) {
        const t = Uint8Array.from(n.match(/.{1,2}/g)?.map((a)=>Number.parseInt(a, 16)) ?? []), e = new Uint8Array(t).buffer, o = await fetch(`${Yw}/tx/submit`, {
            method: "POST",
            headers: {
                "Content-Type": "application/cbor"
            },
            signal: AbortSignal.timeout(3e4),
            body: e
        });
        if (!o.ok) {
            const a = await o.text().catch(()=>"");
            throw new Error(`Cardano proxy tx submit failed: ${o.status} ${a}`);
        }
        const _ = await o.text();
        try {
            const a = JSON.parse(_);
            return typeof a == "string" ? a : String(a);
        } catch  {
            const a = _.trim();
            if (!a) throw new Error("Cardano proxy tx submit succeeded but returned an empty body");
            return a;
        }
    }
    RBt = function(n) {
        try {
            const t = co.from(n);
            if (!(t instanceof er) || t.index !== 0 || t.fields.length !== 2) return null;
            const [e, o] = t.fields;
            return !(e instanceof er) || e.index !== 0 || e.fields.length !== 1 || typeof e.fields[0] != "string" || typeof o != "string" ? null : {
                stakeKeyHash: e.fields[0],
                dustPublicKey: o
            };
        } catch  {
            return null;
        }
    };
    async function UBt(n) {
        const t = await o7(()=>Promise.resolve().then(()=>Aht), void 0), e = t.Transaction.from_cbor_hex(n);
        return t.Transaction.new(e.body(), e.witness_set(), e.is_valid(), e.auxiliary_data()).to_cbor_hex();
    }
    async function n7(n) {
        const t = await n.unsignedTx.sign.withWallet().complete();
        return {
            signedTx: t,
            normalizedTxCborHex: await UBt(t.toCBOR())
        };
    }
    async function _7(n) {
        const t = await TBt(new Akt(Yw, ""), t7);
        return t.selectWallet.fromSeed(n), t;
    }
    a7 = async function(n) {
        const { cardanoAddress: t, currentDustPublicKey: e, signal: o } = n, _ = uo(t).stakeCredential?.hash;
        if (!_) return null;
        const a = await fetch(`${Yw}/addresses/${encodeURIComponent(pb)}/utxos/${jg}?order=desc`, {
            signal: o ?? AbortSignal.timeout(15e3)
        });
        if (a.status === 404) return null;
        if (!a.ok) throw new Error(`Cardano registration lookup failed: ${a.status} ${a.statusText}`);
        const c = await a.json();
        for (const s of c){
            if (!s.inline_datum) continue;
            const u = RBt(s.inline_datum);
            if (!(!u || u.stakeKeyHash !== _)) return {
                txHash: s.tx_hash,
                outputIndex: s.output_index,
                stakeKeyHash: u.stakeKeyHash,
                dustPublicKey: u.dustPublicKey,
                matchesCurrentDustPublicKey: e ? u.dustPublicKey === e : !1,
                ...e && u.dustPublicKey !== e ? (console.warn("[1AM] Dust key mismatch:", {
                    onChain: u.dustPublicKey,
                    current: e
                }), {}) : {}
            };
        }
        return null;
    };
    Axt = async function(n) {
        const { mnemonic: t, dustAddress: e } = n, o = b5(e, "mainnet");
        if (!o) throw new Error("Midnight DUST address not ready yet. Wait for wallet to finish syncing.");
        const _ = await _7(t), a = await _.wallet().address(), c = await _.wallet().rewardAddress(), s = uo(a).stakeCredential?.hash;
        if (!c || !s) throw new Error("Cardano stake credential not found for this wallet");
        const u = await j7(a);
        if (u) throw new Error(x7(u));
        if (!await w5(a)) throw new Error("A DUST registration for this Cardano wallet is already in progress.");
        try {
            const f = await a7({
                cardanoAddress: a,
                currentDustPublicKey: o
            });
            if (f?.matchesCurrentDustPublicKey) throw await qh({
                cardanoAddress: a,
                dustPublicKey: f.dustPublicKey,
                txHash: f.txHash
            }), new Error("This Cardano wallet is already registered for DUST generation.");
            if (f) throw await qh({
                cardanoAddress: a,
                dustPublicKey: f.dustPublicKey,
                txHash: f.txHash
            }), new Error("This Cardano wallet is already registered to a different Midnight address. Use the update option to change the target address.");
            const p = await _.wallet().getUtxos(), g = p.filter((k)=>k.assets[R7] !== void 0);
            if (g.length === 0) throw new Error("No cNIGHT tokens found in this Cardano wallet.");
            if (p.reduce((k, F)=>k + (F.assets.lovelace ?? 0n), 0n) < S7) throw new Error("You need at least 2.5 ADA in your Cardano wallet to register for DUST generation.");
            const B = co.to(new er(0, [
                new er(0, [
                    s
                ]),
                o
            ])), I = co.to(new er(0, [])), j = await _.newTx().collectFrom(g).mintAssets({
                [jg]: 1n
            }, I).attach.MintingPolicy(T0).pay.ToContract(pb, {
                kind: "inline",
                value: B
            }, {
                lovelace: e7,
                [jg]: 1n
            }).addSigner(a).addSigner(c).complete(), { signedTx: w, normalizedTxCborHex: S } = await n7({
                unsignedTx: j
            });
            let b = null;
            try {
                console.info("[CardanoDust] submit attempt", "lucid-submit");
                const k = await w.submit();
                return await Wp({
                    cardanoAddress: a,
                    dustPublicKey: o,
                    txHash: k
                }), k;
            } catch (k) {
                b = k, console.warn("[CardanoDust] submit attempt failed", "lucid-submit", k);
            }
            try {
                console.info("[CardanoDust] submit attempt", "cml-normalized", {
                    prefix: S.slice(0, 8),
                    bytes: S.length / 2
                });
                const k = await r7(S);
                return await Wp({
                    cardanoAddress: a,
                    dustPublicKey: o,
                    txHash: k
                }), k;
            } catch (k) {
                b = k, console.warn("[CardanoDust] submit attempt failed", "cml-normalized", k);
            }
            throw b instanceof Error ? b : new Error("Cardano DUST transaction submission failed.");
        } finally{
            await y5(a);
        }
    };
    Txt = async function(n) {
        const { mnemonic: t, dustAddress: e } = n, o = b5(e, "mainnet");
        if (!o) throw new Error("Midnight DUST address not ready yet. Wait for wallet to finish syncing.");
        const _ = await _7(t), a = await _.wallet().address(), c = await _.wallet().rewardAddress(), s = uo(a).stakeCredential?.hash;
        if (!c || !s) throw new Error("Cardano stake credential not found for this wallet");
        if (!await w5(a)) throw new Error("A DUST registration update is already in progress.");
        try {
            const l = await a7({
                cardanoAddress: a,
                currentDustPublicKey: o
            });
            if (!l) throw new Error("No existing DUST registration found for this Cardano wallet.");
            if (l.matchesCurrentDustPublicKey) throw new Error("Registration already points to this Midnight address.");
            const p = (await _.utxosAt(pb)).find((S)=>S.txHash === l.txHash && S.outputIndex === l.outputIndex);
            if (!p) throw new Error("Registration UTXO not found on-chain. It may have been consumed.");
            const g = co.to(new er(0, [
                new er(0, [
                    s
                ]),
                o
            ])), h = co.to(new er(1, [])), B = await _.newTx().collectFrom([
                p
            ], h).attach.SpendingValidator(T0).pay.ToContract(pb, {
                kind: "inline",
                value: g
            }, {
                lovelace: e7,
                [jg]: 1n
            }).addSigner(a).addSigner(c).complete(), { signedTx: I, normalizedTxCborHex: j } = await n7({
                unsignedTx: B
            });
            let w = null;
            try {
                const S = await I.submit();
                return await Wp({
                    cardanoAddress: a,
                    dustPublicKey: o,
                    txHash: S
                }), S;
            } catch (S) {
                w = S, console.warn("[CardanoDust] update submit failed (lucid):", S);
            }
            try {
                const S = await r7(j);
                return await Wp({
                    cardanoAddress: a,
                    dustPublicKey: o,
                    txHash: S
                }), S;
            } catch (S) {
                w = S, console.warn("[CardanoDust] update submit failed (cml):", S);
            }
            throw w instanceof Error ? w : new Error("Cardano DUST registration update failed.");
        } finally{
            await y5(a);
        }
    };
});
export { Fxt as DUST_REGISTRATION_POLICY_ID, S7 as MIN_ADA_FOR_CARDANO_DUST_REGISTRATION, w5 as acquireCardanoDustRegistrationInflightLock, Uxt as extractCoinPublicKeyFromShieldedAddress, a7 as findCardanoDustRegistration, Cxt as getCardanoDustRegistrationDisplayState, x7 as getCardanoDustRegistrationLockMessage, b5 as getDustAddressBytes, j7 as loadCardanoDustRegistrationLock, qh as markDetectedCardanoDustRegistration, RBt as parseCardanoDustRegistrationDatum, Wp as recordSubmittedCardanoDustRegistration, Axt as registerCardanoDustGeneration, y5 as releaseCardanoDustRegistrationInflightLock, Nxt as storeCardanoDustRegistrationLock, Txt as updateCardanoDustRegistration, __tla };
