-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path351.browser.js
1 lines (1 loc) · 136 KB
/
351.browser.js
1
"use strict";(this.webpackChunkweb3_cardano_token=this.webpackChunkweb3_cardano_token||[]).push([[351],{351:(t,r,_)=>{_.r(r),_.d(r,{Address:()=>e.kLt,AssetName:()=>e.JfL,AssetNames:()=>e.Tbl,Assets:()=>e.deM,AuxiliaryData:()=>e.TOz,AuxiliaryDataHash:()=>e.c1W,AuxiliaryDataSet:()=>e.HRv,BaseAddress:()=>e.pv,BigInt:()=>e.tkx,BigNum:()=>e.WbW,Bip32PrivateKey:()=>e.BSq,Bip32PublicKey:()=>e.JFy,Block:()=>e.gOu,BlockHash:()=>e.Q63,BootstrapWitness:()=>e.zvN,BootstrapWitnesses:()=>e.lcw,ByronAddress:()=>e.jZ5,Certificate:()=>e.KBB,CertificateKind:()=>e.Z96,Certificates:()=>e.wAL,ConstrPlutusData:()=>e.LvZ,CostModel:()=>e.aNQ,Costmdls:()=>e.oCb,DNSRecordAorAAAA:()=>e.KcK,DNSRecordSRV:()=>e.vRL,DataHash:()=>e.y0L,Ed25519KeyHash:()=>e._Wl,Ed25519KeyHashes:()=>e.YLW,Ed25519Signature:()=>e.AoU,EnterpriseAddress:()=>e.Z0E,ExUnitPrices:()=>e.wJb,ExUnits:()=>e.Yw6,GeneralTransactionMetadata:()=>e.y2O,GenesisDelegateHash:()=>e.r26,GenesisHash:()=>e.Gyx,GenesisHashes:()=>e.JSu,GenesisKeyDelegation:()=>e.GC9,Header:()=>e.h4i,HeaderBody:()=>e.Q4I,Int:()=>e.J7n,Ipv4:()=>e.sE,Ipv6:()=>e.UfF,KESSignature:()=>e.w5E,KESVKey:()=>e.CpY,Language:()=>e.SQ0,LanguageKind:()=>e.$PN,Languages:()=>e.lIE,LegacyDaedalusPrivateKey:()=>e.XeG,LinearFee:()=>e.H8G,MIRKind:()=>e.pWD,MIRPot:()=>e.pj,MIRToStakeCredentials:()=>e.Y9,MetadataJsonSchema:()=>e.Qe3,MetadataList:()=>e.aKO,MetadataMap:()=>e.RoI,Mint:()=>e.y1,MintAssets:()=>e.Vq6,MoveInstantaneousReward:()=>e.ZkT,MoveInstantaneousRewardsCert:()=>e.v$C,MultiAsset:()=>e.MLF,MultiHostName:()=>e.Ado,NativeScript:()=>e.$xJ,NativeScriptKind:()=>e.Awt,NativeScripts:()=>e.a5u,NetworkId:()=>e.B9l,NetworkIdKind:()=>e.rff,NetworkInfo:()=>e.JlX,Nonce:()=>e.pXc,OperationalCert:()=>e.QBC,PlutusData:()=>e.$zK,PlutusDataKind:()=>e.WDl,PlutusList:()=>e.hSQ,PlutusMap:()=>e.FRj,PlutusScript:()=>e.qPp,PlutusScripts:()=>e.bdP,Pointer:()=>e.gbg,PointerAddress:()=>e.gdK,PoolMetadata:()=>e.y4p,PoolMetadataHash:()=>e.kYo,PoolParams:()=>e.Wuc,PoolRegistration:()=>e.M0e,PoolRetirement:()=>e.UtT,PrivateKey:()=>e._q4,ProposedProtocolParameterUpdates:()=>e.HIc,ProtocolParamUpdate:()=>e.qdJ,ProtocolVersion:()=>e.Qeo,ProtocolVersions:()=>e.eiB,PublicKey:()=>e.nhX,PublicKeys:()=>e.prR,Redeemer:()=>e.OJH,RedeemerTag:()=>e.QSL,RedeemerTagKind:()=>e.abK,Redeemers:()=>e.F5E,Relay:()=>e.ZD6,RelayKind:()=>e.dp1,Relays:()=>e.FQ9,RewardAddress:()=>e.mf5,RewardAddresses:()=>e.SYV,ScriptAll:()=>e._6O,ScriptAny:()=>e.f_G,ScriptDataHash:()=>e.uZr,ScriptHash:()=>e.nJe,ScriptHashNamespace:()=>e.Mnn,ScriptHashes:()=>e.kB,ScriptNOfK:()=>e.eBP,ScriptPubkey:()=>e.EuU,SingleHostAddr:()=>e.hAB,SingleHostName:()=>e.efI,StakeCredential:()=>e.qop,StakeCredentials:()=>e.hP7,StakeDelegation:()=>e.YhN,StakeDeregistration:()=>e.CFw,StakeRegistration:()=>e.XNw,Strings:()=>e.eI0,TimelockExpiry:()=>e.Gwp,TimelockStart:()=>e.Yx7,Transaction:()=>e.YW8,TransactionBodies:()=>e.HlM,TransactionBody:()=>e.r$i,TransactionBuilder:()=>e.hKc,TransactionHash:()=>e.wf_,TransactionInput:()=>e.XRW,TransactionInputs:()=>e.TGD,TransactionMetadatum:()=>e.T01,TransactionMetadatumKind:()=>e.jUN,TransactionMetadatumLabels:()=>e.dxt,TransactionOutput:()=>e.HZd,TransactionOutputs:()=>e.YyL,TransactionUnspentOutput:()=>e.ZAD,TransactionWitnessSet:()=>e.XgB,TransactionWitnessSets:()=>e.jmH,URL:()=>e.Jx4,UnitInterval:()=>e.rwR,Update:()=>e.BNo,VRFCert:()=>e.Nn,VRFKeyHash:()=>e.$LP,VRFVKey:()=>e.uHB,Value:()=>e.B4R,Vkey:()=>e.stS,Vkeys:()=>e.qte,Vkeywitness:()=>e.AF1,Vkeywitnesses:()=>e.VLl,Withdrawals:()=>e.fjg,__wbg_call_f54d3a6dadb199ca:()=>e.GVD,__wbg_crypto_1e4302b85d4f64a2:()=>e.Rdj,__wbg_getRandomValues_1b4ba144162a5c9e:()=>e.y48,__wbg_getRandomValues_1ef11e888e5228e9:()=>e.LpO,__wbg_new_3a746f2619705add:()=>e.bCb,__wbg_randomFillSync_1b52c8482374c55b:()=>e.gGb,__wbg_require_6461b1e9a0d7c34a:()=>e.S$j,__wbg_self_ac379e780a0d8b94:()=>e.z0c,__wbindgen_debug_string:()=>e.fYP,__wbindgen_is_undefined:()=>e.XP4,__wbindgen_jsval_eq:()=>e.YqC,__wbindgen_object_drop_ref:()=>e.ug$,__wbindgen_rethrow:()=>e.nDt,__wbindgen_string_get:()=>e.qtq,__wbindgen_string_new:()=>e.h4u,__wbindgen_throw:()=>e.Or8,decode_arbitrary_bytes_from_metadatum:()=>e.gw7,decode_metadatum_to_json_str:()=>e.rQY,decrypt_with_password:()=>e._Kj,encode_arbitrary_bytes_as_metadatum:()=>e.JTq,encode_json_str_to_metadatum:()=>e.soC,encrypt_with_password:()=>e.uXl,get_deposit:()=>e.fgc,get_implicit_input:()=>e._P3,hash_auxiliary_data:()=>e.ZIS,hash_plutus_data:()=>e.SZC,hash_script_data:()=>e.e$S,hash_transaction:()=>e.o28,make_daedalus_bootstrap_witness:()=>e.arV,make_icarus_bootstrap_witness:()=>e.DKW,make_vkey_witness:()=>e.i4D,min_ada_required:()=>e.Ajc,min_fee:()=>e.QP_});var e=_(19)},19:(t,r,_)=>{_.d(r,{JTq:()=>P,gw7:()=>R,soC:()=>A,rQY:()=>T,uXl:()=>K,_Kj:()=>M,QP_:()=>B,arV:()=>C,DKW:()=>z,i4D:()=>D,ZIS:()=>N,o28:()=>H,SZC:()=>L,e$S:()=>I,_P3:()=>q,fgc:()=>V,Ajc:()=>E,Z96:()=>W,pj:()=>J,pWD:()=>Y,dp1:()=>$,Awt:()=>F,Mnn:()=>G,rff:()=>Q,jUN:()=>Z,Qe3:()=>U,$PN:()=>X,WDl:()=>tt,abK:()=>rt,kLt:()=>_t,JfL:()=>et,Tbl:()=>at,deM:()=>nt,TOz:()=>st,c1W:()=>it,HRv:()=>ot,pv:()=>pt,tkx:()=>ct,WbW:()=>dt,BSq:()=>wt,JFy:()=>lt,gOu:()=>bt,Q63:()=>ut,zvN:()=>yt,lcw:()=>ht,jZ5:()=>gt,KBB:()=>vt,wAL:()=>ft,LvZ:()=>mt,aNQ:()=>kt,oCb:()=>jt,KcK:()=>xt,vRL:()=>Ot,y0L:()=>St,_Wl:()=>Pt,YLW:()=>Rt,AoU:()=>At,Z0E:()=>Tt,wJb:()=>Kt,Yw6:()=>Mt,y2O:()=>Bt,r26:()=>Ct,Gyx:()=>zt,JSu:()=>Dt,GC9:()=>Nt,h4i:()=>Ht,Q4I:()=>Lt,J7n:()=>It,sE:()=>qt,UfF:()=>Vt,w5E:()=>Et,CpY:()=>Wt,SQ0:()=>Jt,lIE:()=>Yt,XeG:()=>$t,H8G:()=>Ft,Y9:()=>Gt,aKO:()=>Qt,RoI:()=>Zt,y1:()=>Ut,Vq6:()=>Xt,ZkT:()=>tr,v$C:()=>rr,MLF:()=>_r,Ado:()=>er,$xJ:()=>ar,a5u:()=>nr,B9l:()=>sr,JlX:()=>ir,pXc:()=>or,QBC:()=>pr,$zK:()=>cr,hSQ:()=>dr,FRj:()=>wr,qPp:()=>lr,bdP:()=>br,gbg:()=>ur,gdK:()=>yr,y4p:()=>hr,kYo:()=>gr,Wuc:()=>vr,M0e:()=>fr,UtT:()=>mr,_q4:()=>kr,HIc:()=>jr,qdJ:()=>xr,Qeo:()=>Or,eiB:()=>Sr,nhX:()=>Pr,prR:()=>Rr,OJH:()=>Ar,QSL:()=>Tr,F5E:()=>Kr,ZD6:()=>Mr,FQ9:()=>Br,mf5:()=>Cr,SYV:()=>zr,_6O:()=>Dr,f_G:()=>Nr,uZr:()=>Hr,nJe:()=>Lr,kB:()=>Ir,eBP:()=>qr,EuU:()=>Vr,hAB:()=>Er,efI:()=>Wr,qop:()=>Jr,hP7:()=>Yr,YhN:()=>$r,CFw:()=>Fr,XNw:()=>Gr,eI0:()=>Qr,Gwp:()=>Zr,Yx7:()=>Ur,YW8:()=>Xr,HlM:()=>t_,r$i:()=>r_,hKc:()=>__,wf_:()=>e_,XRW:()=>a_,TGD:()=>n_,T01:()=>s_,dxt:()=>i_,HZd:()=>o_,YyL:()=>p_,ZAD:()=>c_,XgB:()=>d_,jmH:()=>w_,Jx4:()=>l_,rwR:()=>b_,BNo:()=>u_,Nn:()=>y_,$LP:()=>h_,uHB:()=>g_,B4R:()=>v_,stS:()=>f_,qte:()=>m_,AF1:()=>k_,VLl:()=>j_,fjg:()=>x_,ug$:()=>O_,h4u:()=>S_,bCb:()=>P_,GVD:()=>R_,YqC:()=>A_,z0c:()=>T_,Rdj:()=>K_,XP4:()=>M_,y48:()=>B_,S$j:()=>C_,gGb:()=>z_,LpO:()=>D_,qtq:()=>N_,fYP:()=>H_,Or8:()=>L_,nDt:()=>I_});var e=_(889);const a=new Array(32).fill(void 0);function n(t){return a[t]}a.push(void 0,null,!0,!1);let s=a.length;function i(t){const r=n(t);return function(t){t<36||(a[t]=s,s=t)}(t),r}let o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});o.decode();let p=null;function c(){return null!==p&&p.buffer===e.memory.buffer||(p=new Uint8Array(e.memory.buffer)),p}function d(t,r){return o.decode(c().subarray(t,t+r))}function w(t){s===a.length&&a.push(a.length+1);const r=s;return s=a[r],a[r]=t,r}let l=0,b=new TextEncoder("utf-8");const u="function"==typeof b.encodeInto?function(t,r){return b.encodeInto(t,r)}:function(t,r){const _=b.encode(t);return r.set(_),{read:t.length,written:_.length}};function y(t,r,_){if(void 0===_){const _=b.encode(t),e=r(_.length);return c().subarray(e,e+_.length).set(_),l=_.length,e}let e=t.length,a=r(e);const n=c();let s=0;for(;s<e;s++){const r=t.charCodeAt(s);if(r>127)break;n[a+s]=r}if(s!==e){0!==s&&(t=t.slice(s)),a=_(a,e,e=s+3*t.length);const r=c().subarray(a+s,a+e);s+=u(t,r).written}return l=s,a}function h(t){return null==t}let g=null;function v(){return null!==g&&g.buffer===e.memory.buffer||(g=new Int32Array(e.memory.buffer)),g}function f(t){const r=typeof t;if("number"==r||"boolean"==r||null==t)return`${t}`;if("string"==r)return`"${t}"`;if("symbol"==r){const r=t.description;return null==r?"Symbol":`Symbol(${r})`}if("function"==r){const r=t.name;return"string"==typeof r&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(t)){const r=t.length;let _="[";r>0&&(_+=f(t[0]));for(let e=1;e<r;e++)_+=", "+f(t[e]);return _+="]",_}const _=/\[object ([^\]]+)\]/.exec(toString.call(t));let e;if(!(_.length>1))return toString.call(t);if(e=_[1],"Object"==e)try{return"Object("+JSON.stringify(t)+")"}catch(t){return"Object"}return t instanceof Error?`${t.name}: ${t.message}\n${t.stack}`:e}function m(t,r){return c().subarray(t/1,t/1+r)}function k(t,r){const _=r(1*t.length);return c().set(t,_/1),l=t.length,_}function j(t,r){if(!(t instanceof r))throw new Error(`expected instance of ${r.name}`);return t.ptr}let x=null;function O(){return null!==x&&x.buffer===e.memory.buffer||(x=new Uint32Array(e.memory.buffer)),x}function S(t,r){return O().subarray(t/4,t/4+r)}function P(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.encode_arbitrary_bytes_as_metadatum(r,_);return s_.__wrap(a)}function R(t){try{const n=e.__wbindgen_add_to_stack_pointer(-16);j(t,s_),e.decode_arbitrary_bytes_from_metadatum(n,t.ptr);var r=v()[n/4+0],_=v()[n/4+1],a=m(r,_).slice();return e.__wbindgen_free(r,1*_),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}function A(t,r){var _=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),a=l,n=e.encode_json_str_to_metadatum(_,a,r);return s_.__wrap(n)}function T(t,r){try{const n=e.__wbindgen_add_to_stack_pointer(-16);j(t,s_),e.decode_metadatum_to_json_str(n,t.ptr,r);var _=v()[n/4+0],a=v()[n/4+1];return d(_,a)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(_,a)}}function K(t,r,_,a){try{const g=e.__wbindgen_add_to_stack_pointer(-16);var n=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),s=l,i=y(r,e.__wbindgen_malloc,e.__wbindgen_realloc),o=l,p=y(_,e.__wbindgen_malloc,e.__wbindgen_realloc),c=l,w=y(a,e.__wbindgen_malloc,e.__wbindgen_realloc),b=l;e.encrypt_with_password(g,n,s,i,o,p,c,w,b);var u=v()[g/4+0],h=v()[g/4+1];return d(u,h)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(u,h)}}function M(t,r){try{const p=e.__wbindgen_add_to_stack_pointer(-16);var _=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),a=l,n=y(r,e.__wbindgen_malloc,e.__wbindgen_realloc),s=l;e.decrypt_with_password(p,_,a,n,s);var i=v()[p/4+0],o=v()[p/4+1];return d(i,o)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(i,o)}}function B(t,r){j(t,Xr),j(r,Ft);var _=e.min_fee(t.ptr,r.ptr);return dt.__wrap(_)}function C(t,r,_){j(t,e_),j(r,gt),j(_,$t);var a=e.make_daedalus_bootstrap_witness(t.ptr,r.ptr,_.ptr);return yt.__wrap(a)}function z(t,r,_){j(t,e_),j(r,gt),j(_,wt);var a=e.make_icarus_bootstrap_witness(t.ptr,r.ptr,_.ptr);return yt.__wrap(a)}function D(t,r){j(t,e_),j(r,kr);var _=e.make_vkey_witness(t.ptr,r.ptr);return k_.__wrap(_)}function N(t){j(t,st);var r=e.hash_auxiliary_data(t.ptr);return it.__wrap(r)}function H(t){j(t,r_);var r=e.hash_transaction(t.ptr);return e_.__wrap(r)}function L(t){j(t,cr);var r=e.hash_plutus_data(t.ptr);return St.__wrap(r)}function I(t,r,_){j(t,Kr),j(r,jt);let a=0;h(_)||(j(_,dr),a=_.ptr,_.ptr=0);var n=e.hash_script_data(t.ptr,r.ptr,a);return Hr.__wrap(n)}function q(t,r,_){j(t,r_),j(r,dt),j(_,dt);var a=e.get_implicit_input(t.ptr,r.ptr,_.ptr);return v_.__wrap(a)}function V(t,r,_){j(t,r_),j(r,dt),j(_,dt);var a=e.get_deposit(t.ptr,r.ptr,_.ptr);return dt.__wrap(a)}function E(t,r){j(t,v_),j(r,dt);var _=e.min_ada_required(t.ptr,r.ptr);return dt.__wrap(_)}const W=Object.freeze({StakeRegistration:0,0:"StakeRegistration",StakeDeregistration:1,1:"StakeDeregistration",StakeDelegation:2,2:"StakeDelegation",PoolRegistration:3,3:"PoolRegistration",PoolRetirement:4,4:"PoolRetirement",GenesisKeyDelegation:5,5:"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,6:"MoveInstantaneousRewardsCert"}),J=Object.freeze({Reserves:0,0:"Reserves",Treasury:1,1:"Treasury"}),Y=Object.freeze({ToOtherPot:0,0:"ToOtherPot",ToStakeCredentials:1,1:"ToStakeCredentials"}),$=Object.freeze({SingleHostAddr:0,0:"SingleHostAddr",SingleHostName:1,1:"SingleHostName",MultiHostName:2,2:"MultiHostName"}),F=Object.freeze({ScriptPubkey:0,0:"ScriptPubkey",ScriptAll:1,1:"ScriptAll",ScriptAny:2,2:"ScriptAny",ScriptNOfK:3,3:"ScriptNOfK",TimelockStart:4,4:"TimelockStart",TimelockExpiry:5,5:"TimelockExpiry"}),G=Object.freeze({NativeScript:0,0:"NativeScript"}),Q=Object.freeze({Testnet:0,0:"Testnet",Mainnet:1,1:"Mainnet"}),Z=Object.freeze({MetadataMap:0,0:"MetadataMap",MetadataList:1,1:"MetadataList",Int:2,2:"Int",Bytes:3,3:"Bytes",Text:4,4:"Text"}),U=Object.freeze({NoConversions:0,0:"NoConversions",BasicConversions:1,1:"BasicConversions",DetailedSchema:2,2:"DetailedSchema"}),X=Object.freeze({PlutusV1:0,0:"PlutusV1"}),tt=Object.freeze({ConstrPlutusData:0,0:"ConstrPlutusData",Map:1,1:"Map",List:2,2:"List",Integer:3,3:"Integer",Bytes:4,4:"Bytes"}),rt=Object.freeze({Spend:0,0:"Spend",Mint:1,1:"Mint",Cert:2,2:"Cert",Reward:3,3:"Reward"});class _t{static __wrap(t){const r=Object.create(_t.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_address_free(t)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.address_from_bytes(r,_);return _t.__wrap(a)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.address_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=h(t)?0:y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.address_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.address_from_bech32(r,_);return _t.__wrap(a)}network_id(){return e.address_network_id(this.ptr)}}class et{static __wrap(t){const r=Object.create(et.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_assetname_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.assetname_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.assetname_from_bytes(r,_);return et.__wrap(a)}static new(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.assetname_new(r,_);return et.__wrap(a)}name(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.assetname_name(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}class at{static __wrap(t){const r=Object.create(at.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_assetnames_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.assetnames_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.assetnames_from_bytes(r,_);return at.__wrap(a)}static new(){var t=e.assetnames_new();return at.__wrap(t)}len(){return e.assetnames_len(this.ptr)>>>0}get(t){var r=e.assetnames_get(this.ptr,t);return et.__wrap(r)}add(t){j(t,et),e.assetnames_add(this.ptr,t.ptr)}}class nt{static __wrap(t){const r=Object.create(nt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_assets_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.assets_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.assets_from_bytes(r,_);return nt.__wrap(a)}static new(){var t=e.assets_new();return nt.__wrap(t)}len(){return e.assets_len(this.ptr)>>>0}insert(t,r){j(t,et),j(r,dt);var _=e.assets_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:dt.__wrap(_)}get(t){j(t,et);var r=e.assets_get(this.ptr,t.ptr);return 0===r?void 0:dt.__wrap(r)}keys(){var t=e.assets_keys(this.ptr);return at.__wrap(t)}}class st{static __wrap(t){const r=Object.create(st.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_auxiliarydata_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.auxiliarydata_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.auxiliarydata_from_bytes(r,_);return st.__wrap(a)}static new(){var t=e.auxiliarydata_new();return st.__wrap(t)}metadata(){var t=e.auxiliarydata_metadata(this.ptr);return 0===t?void 0:Bt.__wrap(t)}set_metadata(t){j(t,Bt),e.auxiliarydata_set_metadata(this.ptr,t.ptr)}native_scripts(){var t=e.auxiliarydata_native_scripts(this.ptr);return 0===t?void 0:nr.__wrap(t)}set_native_scripts(t){j(t,nr),e.auxiliarydata_set_native_scripts(this.ptr,t.ptr)}plutus_scripts(){var t=e.auxiliarydata_plutus_scripts(this.ptr);return 0===t?void 0:br.__wrap(t)}set_plutus_scripts(t){j(t,br),e.auxiliarydata_set_plutus_scripts(this.ptr,t.ptr)}}class it{static __wrap(t){const r=Object.create(it.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_auxiliarydatahash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.auxiliarydatahash_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.auxiliarydatahash_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.auxiliarydatahash_from_bech32(r,_);return it.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.auxiliarydatahash_from_bytes(r,_);return it.__wrap(a)}}class ot{static __wrap(t){const r=Object.create(ot.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_auxiliarydataset_free(t)}static new(){var t=e.auxiliarydataset_new();return ot.__wrap(t)}len(){return e.auxiliarydataset_len(this.ptr)>>>0}insert(t,r){j(r,st);var _=e.auxiliarydataset_insert(this.ptr,t,r.ptr);return 0===_?void 0:st.__wrap(_)}get(t){var r=e.auxiliarydataset_get(this.ptr,t);return 0===r?void 0:st.__wrap(r)}indices(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.auxiliarydataset_indices(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=S(t,r).slice();return e.__wbindgen_free(t,4*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}class pt{static __wrap(t){const r=Object.create(pt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_baseaddress_free(t)}static new(t,r,_){j(r,Jr),j(_,Jr);var a=e.baseaddress_new(t,r.ptr,_.ptr);return pt.__wrap(a)}payment_cred(){var t=e.baseaddress_payment_cred(this.ptr);return Jr.__wrap(t)}stake_cred(){var t=e.baseaddress_stake_cred(this.ptr);return Jr.__wrap(t)}to_address(){var t=e.baseaddress_to_address(this.ptr);return _t.__wrap(t)}static from_address(t){j(t,_t);var r=e.baseaddress_from_address(t.ptr);return 0===r?void 0:pt.__wrap(r)}}class ct{static __wrap(t){const r=Object.create(ct.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_bigint_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bigint_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.bigint_from_bytes(r,_);return ct.__wrap(a)}as_u64(){var t=e.bigint_as_u64(this.ptr);return 0===t?void 0:dt.__wrap(t)}static from_str(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.bigint_from_str(r,_);return ct.__wrap(a)}to_str(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.bigint_to_str(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}}class dt{static __wrap(t){const r=Object.create(dt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_bignum_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bignum_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.bignum_from_bytes(r,_);return dt.__wrap(a)}static from_str(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.bignum_from_str(r,_);return dt.__wrap(a)}to_str(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.bignum_to_str(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}static zero(){var t=e.bignum_zero();return dt.__wrap(t)}checked_mul(t){j(t,dt);var r=e.bignum_checked_mul(this.ptr,t.ptr);return dt.__wrap(r)}checked_add(t){j(t,dt);var r=e.bignum_checked_add(this.ptr,t.ptr);return dt.__wrap(r)}checked_sub(t){j(t,dt);var r=e.bignum_checked_sub(this.ptr,t.ptr);return dt.__wrap(r)}clamped_sub(t){j(t,dt);var r=e.bignum_clamped_sub(this.ptr,t.ptr);return dt.__wrap(r)}compare(t){return j(t,dt),e.bignum_compare(this.ptr,t.ptr)}}class wt{static __wrap(t){const r=Object.create(wt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_bip32privatekey_free(t)}derive(t){var r=e.bip32privatekey_derive(this.ptr,t);return wt.__wrap(r)}static from_128_xprv(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.bip32privatekey_from_128_xprv(r,_);return wt.__wrap(a)}to_128_xprv(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bip32privatekey_to_128_xprv(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519_bip32(){var t=e.bip32privatekey_generate_ed25519_bip32();return wt.__wrap(t)}to_raw_key(){var t=e.bip32privatekey_to_raw_key(this.ptr);return kr.__wrap(t)}to_public(){var t=e.bip32privatekey_to_public(this.ptr);return lt.__wrap(t)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.bip32privatekey_from_bytes(r,_);return wt.__wrap(a)}as_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bip32privatekey_as_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.bip32privatekey_from_bech32(r,_);return wt.__wrap(a)}to_bech32(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.bip32privatekey_to_bech32(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}static from_bip39_entropy(t,r){var _=k(t,e.__wbindgen_malloc),a=l,n=k(r,e.__wbindgen_malloc),s=l,i=e.bip32privatekey_from_bip39_entropy(_,a,n,s);return wt.__wrap(i)}chaincode(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bip32privatekey_chaincode(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}class lt{static __wrap(t){const r=Object.create(lt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_bip32publickey_free(t)}derive(t){var r=e.bip32publickey_derive(this.ptr,t);return lt.__wrap(r)}to_raw_key(){var t=e.bip32publickey_to_raw_key(this.ptr);return Pr.__wrap(t)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.bip32publickey_from_bytes(r,_);return lt.__wrap(a)}as_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bip32publickey_as_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.bip32publickey_from_bech32(r,_);return lt.__wrap(a)}to_bech32(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.bip32publickey_to_bech32(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}chaincode(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bip32publickey_chaincode(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}class bt{static __wrap(t){const r=Object.create(bt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_block_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.block_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.block_from_bytes(r,_);return bt.__wrap(a)}header(){var t=e.block_header(this.ptr);return Ht.__wrap(t)}transaction_bodies(){var t=e.block_transaction_bodies(this.ptr);return t_.__wrap(t)}transaction_witness_sets(){var t=e.block_transaction_witness_sets(this.ptr);return w_.__wrap(t)}auxiliary_data_set(){var t=e.block_auxiliary_data_set(this.ptr);return ot.__wrap(t)}invalid_transactions(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.block_invalid_transactions(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=S(t,r).slice();return e.__wbindgen_free(t,4*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static new(t,r,_,a,n){j(t,Ht),j(r,t_),j(_,w_),j(a,ot);var s=function(t,r){const _=r(4*t.length);return O().set(t,_/4),l=t.length,_}(n,e.__wbindgen_malloc),i=l,o=e.block_new(t.ptr,r.ptr,_.ptr,a.ptr,s,i);return bt.__wrap(o)}}class ut{static __wrap(t){const r=Object.create(ut.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_blockhash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.blockhash_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.blockhash_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.blockhash_from_bech32(r,_);return ut.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.blockhash_from_bytes(r,_);return ut.__wrap(a)}}class yt{static __wrap(t){const r=Object.create(yt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_bootstrapwitness_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bootstrapwitness_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.bootstrapwitness_from_bytes(r,_);return yt.__wrap(a)}vkey(){var t=e.bootstrapwitness_vkey(this.ptr);return f_.__wrap(t)}signature(){var t=e.bootstrapwitness_signature(this.ptr);return At.__wrap(t)}chain_code(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bootstrapwitness_chain_code(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}attributes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bootstrapwitness_attributes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static new(t,r,_,a){j(t,f_),j(r,At);var n=k(_,e.__wbindgen_malloc),s=l,i=k(a,e.__wbindgen_malloc),o=l,p=e.bootstrapwitness_new(t.ptr,r.ptr,n,s,i,o);return yt.__wrap(p)}}class ht{static __wrap(t){const r=Object.create(ht.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_bootstrapwitnesses_free(t)}static new(){var t=e.bootstrapwitnesses_new();return ht.__wrap(t)}len(){return e.bootstrapwitnesses_len(this.ptr)>>>0}get(t){var r=e.bootstrapwitnesses_get(this.ptr,t);return yt.__wrap(r)}add(t){j(t,yt),e.bootstrapwitnesses_add(this.ptr,t.ptr)}}class gt{static __wrap(t){const r=Object.create(gt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_byronaddress_free(t)}to_base58(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.byronaddress_to_base58(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.byronaddress_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.byronaddress_from_bytes(r,_);return gt.__wrap(a)}byron_protocol_magic(){return e.byronaddress_byron_protocol_magic(this.ptr)>>>0}attributes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.byronaddress_attributes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}network_id(){return e.byronaddress_network_id(this.ptr)}static from_base58(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.byronaddress_from_base58(r,_);return gt.__wrap(a)}static icarus_from_key(t,r){j(t,lt);var _=e.byronaddress_icarus_from_key(t.ptr,r);return gt.__wrap(_)}static is_valid(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;return 0!==e.byronaddress_is_valid(r,_)}to_address(){var t=e.byronaddress_to_address(this.ptr);return _t.__wrap(t)}static from_address(t){j(t,_t);var r=e.byronaddress_from_address(t.ptr);return 0===r?void 0:gt.__wrap(r)}}class vt{static __wrap(t){const r=Object.create(vt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_certificate_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.certificate_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.certificate_from_bytes(r,_);return vt.__wrap(a)}static new_stake_registration(t){j(t,Gr);var r=e.certificate_new_stake_registration(t.ptr);return vt.__wrap(r)}static new_stake_deregistration(t){j(t,Fr);var r=e.certificate_new_stake_deregistration(t.ptr);return vt.__wrap(r)}static new_stake_delegation(t){j(t,$r);var r=e.certificate_new_stake_delegation(t.ptr);return vt.__wrap(r)}static new_pool_registration(t){j(t,fr);var r=e.certificate_new_pool_registration(t.ptr);return vt.__wrap(r)}static new_pool_retirement(t){j(t,mr);var r=e.certificate_new_pool_retirement(t.ptr);return vt.__wrap(r)}static new_genesis_key_delegation(t){j(t,Nt);var r=e.certificate_new_genesis_key_delegation(t.ptr);return vt.__wrap(r)}static new_move_instantaneous_rewards_cert(t){j(t,rr);var r=e.certificate_new_move_instantaneous_rewards_cert(t.ptr);return vt.__wrap(r)}kind(){return e.certificate_kind(this.ptr)>>>0}as_stake_registration(){var t=e.certificate_as_stake_registration(this.ptr);return 0===t?void 0:Gr.__wrap(t)}as_stake_deregistration(){var t=e.certificate_as_stake_deregistration(this.ptr);return 0===t?void 0:Fr.__wrap(t)}as_stake_delegation(){var t=e.certificate_as_stake_delegation(this.ptr);return 0===t?void 0:$r.__wrap(t)}as_pool_registration(){var t=e.certificate_as_pool_registration(this.ptr);return 0===t?void 0:fr.__wrap(t)}as_pool_retirement(){var t=e.certificate_as_pool_retirement(this.ptr);return 0===t?void 0:mr.__wrap(t)}as_genesis_key_delegation(){var t=e.certificate_as_genesis_key_delegation(this.ptr);return 0===t?void 0:Nt.__wrap(t)}as_move_instantaneous_rewards_cert(){var t=e.certificate_as_move_instantaneous_rewards_cert(this.ptr);return 0===t?void 0:rr.__wrap(t)}}class ft{static __wrap(t){const r=Object.create(ft.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_certificates_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.certificates_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.certificates_from_bytes(r,_);return ft.__wrap(a)}static new(){var t=e.certificates_new();return ft.__wrap(t)}len(){return e.certificates_len(this.ptr)>>>0}get(t){var r=e.certificates_get(this.ptr,t);return vt.__wrap(r)}add(t){j(t,vt),e.certificates_add(this.ptr,t.ptr)}}class mt{static __wrap(t){const r=Object.create(mt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_constrplutusdata_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.constrplutusdata_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.constrplutusdata_from_bytes(r,_);return mt.__wrap(a)}tag(){var t=e.constrplutusdata_tag(this.ptr);return It.__wrap(t)}data(){var t=e.constrplutusdata_data(this.ptr);return dr.__wrap(t)}static new(t,r){j(t,It);var _=t.ptr;t.ptr=0,j(r,dr);var a=e.constrplutusdata_new(_,r.ptr);return mt.__wrap(a)}}class kt{static __wrap(t){const r=Object.create(kt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_costmodel_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.costmodel_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.costmodel_from_bytes(r,_);return kt.__wrap(a)}static new(){var t=e.costmodel_new();return kt.__wrap(t)}set(t,r){j(r,It);var _=e.costmodel_set(this.ptr,t,r.ptr);return It.__wrap(_)}get(t){var r=e.costmodel_get(this.ptr,t);return It.__wrap(r)}}class jt{static __wrap(t){const r=Object.create(jt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_costmdls_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.costmdls_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.costmdls_from_bytes(r,_);return jt.__wrap(a)}static new(){var t=e.costmdls_new();return jt.__wrap(t)}len(){return e.costmdls_len(this.ptr)>>>0}insert(t,r){j(t,Jt),j(r,kt);var _=e.costmdls_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:kt.__wrap(_)}get(t){j(t,Jt);var r=e.costmdls_get(this.ptr,t.ptr);return 0===r?void 0:kt.__wrap(r)}keys(){var t=e.costmdls_keys(this.ptr);return Yt.__wrap(t)}}class xt{static __wrap(t){const r=Object.create(xt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_dnsrecordaoraaaa_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.dnsrecordaoraaaa_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.dnsrecordaoraaaa_from_bytes(r,_);return xt.__wrap(a)}static new(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.dnsrecordaoraaaa_new(r,_);return xt.__wrap(a)}record(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.dnsrecordaoraaaa_record(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}}class Ot{static __wrap(t){const r=Object.create(Ot.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_dnsrecordsrv_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.dnsrecordsrv_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.dnsrecordsrv_from_bytes(r,_);return Ot.__wrap(a)}static new(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.dnsrecordsrv_new(r,_);return Ot.__wrap(a)}record(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.dnsrecordsrv_record(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}}class St{static __wrap(t){const r=Object.create(St.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_datahash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.datahash_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.datahash_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.datahash_from_bech32(r,_);return St.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.datahash_from_bytes(r,_);return St.__wrap(a)}}class Pt{static __wrap(t){const r=Object.create(Pt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_ed25519keyhash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ed25519keyhash_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.ed25519keyhash_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.ed25519keyhash_from_bech32(r,_);return Pt.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.ed25519keyhash_from_bytes(r,_);return Pt.__wrap(a)}}class Rt{static __wrap(t){const r=Object.create(Rt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_ed25519keyhashes_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ed25519keyhashes_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.ed25519keyhashes_from_bytes(r,_);return Rt.__wrap(a)}static new(){var t=e.ed25519keyhashes_new();return Rt.__wrap(t)}len(){return e.ed25519keyhashes_len(this.ptr)>>>0}get(t){var r=e.ed25519keyhashes_get(this.ptr,t);return Pt.__wrap(r)}add(t){j(t,Pt),e.ed25519keyhashes_add(this.ptr,t.ptr)}}class At{static __wrap(t){const r=Object.create(At.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_ed25519signature_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ed25519signature_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.ed25519signature_to_bech32(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}to_hex(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.ed25519signature_to_hex(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.ed25519signature_from_bech32(r,_);return At.__wrap(a)}static from_hex(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.ed25519signature_from_hex(r,_);return At.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.ed25519signature_from_bytes(r,_);return At.__wrap(a)}}class Tt{static __wrap(t){const r=Object.create(Tt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_enterpriseaddress_free(t)}static new(t,r){j(r,Jr);var _=e.enterpriseaddress_new(t,r.ptr);return Tt.__wrap(_)}payment_cred(){var t=e.enterpriseaddress_payment_cred(this.ptr);return Jr.__wrap(t)}to_address(){var t=e.enterpriseaddress_to_address(this.ptr);return _t.__wrap(t)}static from_address(t){j(t,_t);var r=e.enterpriseaddress_from_address(t.ptr);return 0===r?void 0:Tt.__wrap(r)}}class Kt{static __wrap(t){const r=Object.create(Kt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_exunitprices_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.exunitprices_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.exunitprices_from_bytes(r,_);return Kt.__wrap(a)}mem_price(){var t=e.exunitprices_mem_price(this.ptr);return b_.__wrap(t)}step_price(){var t=e.exunitprices_step_price(this.ptr);return b_.__wrap(t)}static new(t,r){j(t,b_),j(r,b_);var _=e.exunitprices_new(t.ptr,r.ptr);return Kt.__wrap(_)}}class Mt{static __wrap(t){const r=Object.create(Mt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_exunits_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.exunits_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.exunits_from_bytes(r,_);return Mt.__wrap(a)}mem(){var t=e.exunits_mem(this.ptr);return dt.__wrap(t)}steps(){var t=e.exunits_steps(this.ptr);return dt.__wrap(t)}static new(t,r){j(t,dt),j(r,dt);var _=e.exunits_new(t.ptr,r.ptr);return Mt.__wrap(_)}}class Bt{static __wrap(t){const r=Object.create(Bt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_generaltransactionmetadata_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.generaltransactionmetadata_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.generaltransactionmetadata_from_bytes(r,_);return Bt.__wrap(a)}static new(){var t=e.generaltransactionmetadata_new();return Bt.__wrap(t)}len(){return e.generaltransactionmetadata_len(this.ptr)>>>0}insert(t,r){j(t,dt),j(r,s_);var _=e.generaltransactionmetadata_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:s_.__wrap(_)}get(t){j(t,dt);var r=e.generaltransactionmetadata_get(this.ptr,t.ptr);return 0===r?void 0:s_.__wrap(r)}keys(){var t=e.generaltransactionmetadata_keys(this.ptr);return i_.__wrap(t)}}class Ct{static __wrap(t){const r=Object.create(Ct.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_genesisdelegatehash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.genesisdelegatehash_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.genesisdelegatehash_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.genesisdelegatehash_from_bech32(r,_);return Ct.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.genesisdelegatehash_from_bytes(r,_);return Ct.__wrap(a)}}class zt{static __wrap(t){const r=Object.create(zt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_genesishash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.genesishash_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.genesishash_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.genesishash_from_bech32(r,_);return zt.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.genesishash_from_bytes(r,_);return zt.__wrap(a)}}class Dt{static __wrap(t){const r=Object.create(Dt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_genesishashes_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.genesishashes_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.genesishashes_from_bytes(r,_);return Dt.__wrap(a)}static new(){var t=e.genesishashes_new();return Dt.__wrap(t)}len(){return e.genesishashes_len(this.ptr)>>>0}get(t){var r=e.genesishashes_get(this.ptr,t);return zt.__wrap(r)}add(t){j(t,zt),e.genesishashes_add(this.ptr,t.ptr)}}class Nt{static __wrap(t){const r=Object.create(Nt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_genesiskeydelegation_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.genesiskeydelegation_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.genesiskeydelegation_from_bytes(r,_);return Nt.__wrap(a)}genesishash(){var t=e.genesiskeydelegation_genesishash(this.ptr);return zt.__wrap(t)}genesis_delegate_hash(){var t=e.genesiskeydelegation_genesis_delegate_hash(this.ptr);return Ct.__wrap(t)}vrf_keyhash(){var t=e.genesiskeydelegation_vrf_keyhash(this.ptr);return h_.__wrap(t)}static new(t,r,_){j(t,zt),j(r,Ct),j(_,h_);var a=e.genesiskeydelegation_new(t.ptr,r.ptr,_.ptr);return Nt.__wrap(a)}}class Ht{static __wrap(t){const r=Object.create(Ht.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_header_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.header_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.header_from_bytes(r,_);return Ht.__wrap(a)}header_body(){var t=e.header_header_body(this.ptr);return Lt.__wrap(t)}body_signature(){var t=e.header_body_signature(this.ptr);return Et.__wrap(t)}static new(t,r){j(t,Lt),j(r,Et);var _=e.header_new(t.ptr,r.ptr);return Ht.__wrap(_)}}class Lt{static __wrap(t){const r=Object.create(Lt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_headerbody_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.headerbody_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.headerbody_from_bytes(r,_);return Lt.__wrap(a)}block_number(){return e.headerbody_block_number(this.ptr)>>>0}slot(){return e.headerbody_slot(this.ptr)>>>0}prev_hash(){var t=e.headerbody_prev_hash(this.ptr);return 0===t?void 0:ut.__wrap(t)}issuer_vkey(){var t=e.headerbody_issuer_vkey(this.ptr);return f_.__wrap(t)}vrf_vkey(){var t=e.headerbody_vrf_vkey(this.ptr);return g_.__wrap(t)}nonce_vrf(){var t=e.headerbody_nonce_vrf(this.ptr);return y_.__wrap(t)}leader_vrf(){var t=e.headerbody_leader_vrf(this.ptr);return y_.__wrap(t)}block_body_size(){return e.headerbody_block_body_size(this.ptr)>>>0}block_body_hash(){var t=e.headerbody_block_body_hash(this.ptr);return ut.__wrap(t)}operational_cert(){var t=e.headerbody_operational_cert(this.ptr);return pr.__wrap(t)}protocol_version(){var t=e.headerbody_protocol_version(this.ptr);return Or.__wrap(t)}static new(t,r,_,a,n,s,i,o,p,c,d){let w=0;h(_)||(j(_,ut),w=_.ptr,_.ptr=0),j(a,f_),j(n,g_),j(s,y_),j(i,y_),j(p,ut),j(c,pr),j(d,Or);var l=e.headerbody_new(t,r,w,a.ptr,n.ptr,s.ptr,i.ptr,o,p.ptr,c.ptr,d.ptr);return Lt.__wrap(l)}}class It{static __wrap(t){const r=Object.create(It.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_int_free(t)}static new(t){j(t,dt);var r=e.int_new(t.ptr);return It.__wrap(r)}static new_negative(t){j(t,dt);var r=e.int_new_negative(t.ptr);return It.__wrap(r)}static new_i32(t){var r=e.int_new_i32(t);return It.__wrap(r)}is_positive(){return 0!==e.int_is_positive(this.ptr)}as_positive(){var t=e.int_as_positive(this.ptr);return 0===t?void 0:dt.__wrap(t)}as_negative(){var t=e.int_as_negative(this.ptr);return 0===t?void 0:dt.__wrap(t)}as_i32(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.int_as_i32(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return 0===t?void 0:r}finally{e.__wbindgen_add_to_stack_pointer(16)}}}class qt{static __wrap(t){const r=Object.create(qt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_ipv4_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ipv4_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.ipv4_from_bytes(r,_);return qt.__wrap(a)}static new(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.ipv4_new(r,_);return qt.__wrap(a)}ip(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ipv4_ip(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}class Vt{static __wrap(t){const r=Object.create(Vt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_ipv6_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ipv6_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.ipv6_from_bytes(r,_);return Vt.__wrap(a)}static new(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.ipv6_new(r,_);return Vt.__wrap(a)}ip(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ipv6_ip(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}class Et{static __wrap(t){const r=Object.create(Et.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_kessignature_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.kessignature_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.kessignature_from_bytes(r,_);return Et.__wrap(a)}}class Wt{static __wrap(t){const r=Object.create(Wt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_kesvkey_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.kesvkey_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.kesvkey_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.kesvkey_from_bech32(r,_);return Wt.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.kesvkey_from_bytes(r,_);return Wt.__wrap(a)}}class Jt{static __wrap(t){const r=Object.create(Jt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_language_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.language_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.language_from_bytes(r,_);return Jt.__wrap(a)}static new_plutus_v1(){var t=e.language_new_plutus_v1();return Jt.__wrap(t)}kind(){return e.language_kind(this.ptr)>>>0}}class Yt{static __wrap(t){const r=Object.create(Yt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_languages_free(t)}static new(){var t=e.languages_new();return Yt.__wrap(t)}len(){return e.languages_len(this.ptr)>>>0}get(t){var r=e.languages_get(this.ptr,t);return Jt.__wrap(r)}add(t){j(t,Jt);var r=t.ptr;t.ptr=0,e.languages_add(this.ptr,r)}}class $t{static __wrap(t){const r=Object.create($t.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_legacydaedalusprivatekey_free(t)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.legacydaedalusprivatekey_from_bytes(r,_);return $t.__wrap(a)}as_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.legacydaedalusprivatekey_as_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}chaincode(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.legacydaedalusprivatekey_chaincode(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}class Ft{static __wrap(t){const r=Object.create(Ft.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_linearfee_free(t)}constant(){var t=e.linearfee_constant(this.ptr);return dt.__wrap(t)}coefficient(){var t=e.linearfee_coefficient(this.ptr);return dt.__wrap(t)}static new(t,r){j(t,dt),j(r,dt);var _=e.linearfee_new(t.ptr,r.ptr);return Ft.__wrap(_)}}class Gt{static __wrap(t){const r=Object.create(Gt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_mirtostakecredentials_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.mirtostakecredentials_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.mirtostakecredentials_from_bytes(r,_);return Gt.__wrap(a)}static new(){var t=e.mirtostakecredentials_new();return Gt.__wrap(t)}len(){return e.mirtostakecredentials_len(this.ptr)>>>0}insert(t,r){j(t,Jr),j(r,It);var _=e.mirtostakecredentials_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:It.__wrap(_)}get(t){j(t,Jr);var r=e.mirtostakecredentials_get(this.ptr,t.ptr);return 0===r?void 0:It.__wrap(r)}keys(){var t=e.mirtostakecredentials_keys(this.ptr);return Yr.__wrap(t)}}class Qt{static __wrap(t){const r=Object.create(Qt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_metadatalist_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.metadatalist_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.metadatalist_from_bytes(r,_);return Qt.__wrap(a)}static new(){var t=e.metadatalist_new();return Qt.__wrap(t)}len(){return e.metadatalist_len(this.ptr)>>>0}get(t){var r=e.metadatalist_get(this.ptr,t);return s_.__wrap(r)}add(t){j(t,s_),e.metadatalist_add(this.ptr,t.ptr)}}class Zt{static __wrap(t){const r=Object.create(Zt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_metadatamap_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.metadatamap_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.metadatamap_from_bytes(r,_);return Zt.__wrap(a)}static new(){var t=e.metadatamap_new();return Zt.__wrap(t)}len(){return e.metadatamap_len(this.ptr)>>>0}insert(t,r){j(t,s_),j(r,s_);var _=e.metadatamap_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:s_.__wrap(_)}insert_str(t,r){var _=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),a=l;j(r,s_);var n=e.metadatamap_insert_str(this.ptr,_,a,r.ptr);return 0===n?void 0:s_.__wrap(n)}insert_i32(t,r){j(r,s_);var _=e.metadatamap_insert_i32(this.ptr,t,r.ptr);return 0===_?void 0:s_.__wrap(_)}get(t){j(t,s_);var r=e.metadatamap_get(this.ptr,t.ptr);return s_.__wrap(r)}get_str(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.metadatamap_get_str(this.ptr,r,_);return s_.__wrap(a)}get_i32(t){var r=e.metadatamap_get_i32(this.ptr,t);return s_.__wrap(r)}has(t){return j(t,s_),0!==e.metadatamap_has(this.ptr,t.ptr)}keys(){var t=e.metadatamap_keys(this.ptr);return Qt.__wrap(t)}}class Ut{static __wrap(t){const r=Object.create(Ut.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_mint_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.mint_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.mint_from_bytes(r,_);return Ut.__wrap(a)}static new(){var t=e.mint_new();return Ut.__wrap(t)}len(){return e.mint_len(this.ptr)>>>0}insert(t,r){j(t,Lr),j(r,Xt);var _=e.mint_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:Xt.__wrap(_)}get(t){j(t,Lr);var r=e.mint_get(this.ptr,t.ptr);return 0===r?void 0:Xt.__wrap(r)}keys(){var t=e.mint_keys(this.ptr);return Ir.__wrap(t)}}class Xt{static __wrap(t){const r=Object.create(Xt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_mintassets_free(t)}static new(){var t=e.mintassets_new();return Xt.__wrap(t)}len(){return e.mintassets_len(this.ptr)>>>0}insert(t,r){j(t,et),j(r,It);var _=r.ptr;r.ptr=0;var a=e.mintassets_insert(this.ptr,t.ptr,_);return 0===a?void 0:It.__wrap(a)}get(t){j(t,et);var r=e.mintassets_get(this.ptr,t.ptr);return 0===r?void 0:It.__wrap(r)}keys(){var t=e.mintassets_keys(this.ptr);return at.__wrap(t)}}class tr{static __wrap(t){const r=Object.create(tr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_moveinstantaneousreward_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.moveinstantaneousreward_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.moveinstantaneousreward_from_bytes(r,_);return tr.__wrap(a)}static new_to_other_pot(t,r){j(r,dt);var _=e.moveinstantaneousreward_new_to_other_pot(t,r.ptr);return tr.__wrap(_)}static new_to_stake_creds(t,r){j(r,Gt);var _=e.moveinstantaneousreward_new_to_stake_creds(t,r.ptr);return tr.__wrap(_)}pot(){return e.moveinstantaneousreward_pot(this.ptr)>>>0}kind(){return e.moveinstantaneousreward_kind(this.ptr)>>>0}as_to_other_pot(){var t=e.moveinstantaneousreward_as_to_other_pot(this.ptr);return 0===t?void 0:dt.__wrap(t)}as_to_stake_creds(){var t=e.moveinstantaneousreward_as_to_stake_creds(this.ptr);return 0===t?void 0:Gt.__wrap(t)}}class rr{static __wrap(t){const r=Object.create(rr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_moveinstantaneousrewardscert_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.moveinstantaneousrewardscert_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.moveinstantaneousrewardscert_from_bytes(r,_);return rr.__wrap(a)}move_instantaneous_reward(){var t=e.moveinstantaneousrewardscert_move_instantaneous_reward(this.ptr);return tr.__wrap(t)}static new(t){j(t,tr);var r=e.moveinstantaneousrewardscert_new(t.ptr);return rr.__wrap(r)}}class _r{static __wrap(t){const r=Object.create(_r.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_multiasset_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.multiasset_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.multiasset_from_bytes(r,_);return _r.__wrap(a)}static new(){var t=e.multiasset_new();return _r.__wrap(t)}len(){return e.multiasset_len(this.ptr)>>>0}insert(t,r){j(t,Lr),j(r,nt);var _=e.multiasset_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:nt.__wrap(_)}get(t){j(t,Lr);var r=e.multiasset_get(this.ptr,t.ptr);return 0===r?void 0:nt.__wrap(r)}keys(){var t=e.multiasset_keys(this.ptr);return Ir.__wrap(t)}sub(t){j(t,_r);var r=e.multiasset_sub(this.ptr,t.ptr);return _r.__wrap(r)}}class er{static __wrap(t){const r=Object.create(er.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_multihostname_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.multihostname_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.multihostname_from_bytes(r,_);return er.__wrap(a)}dns_name(){var t=e.multihostname_dns_name(this.ptr);return Ot.__wrap(t)}static new(t){j(t,Ot);var r=e.multihostname_new(t.ptr);return er.__wrap(r)}}class ar{static __wrap(t){const r=Object.create(ar.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_nativescript_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.nativescript_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.nativescript_from_bytes(r,_);return ar.__wrap(a)}hash(t){var r=e.nativescript_hash(this.ptr,t);return Pt.__wrap(r)}static new_script_pubkey(t){j(t,Vr);var r=e.nativescript_new_script_pubkey(t.ptr);return ar.__wrap(r)}static new_script_all(t){j(t,Dr);var r=e.nativescript_new_script_all(t.ptr);return ar.__wrap(r)}static new_script_any(t){j(t,Nr);var r=e.nativescript_new_script_any(t.ptr);return ar.__wrap(r)}static new_script_n_of_k(t){j(t,qr);var r=e.nativescript_new_script_n_of_k(t.ptr);return ar.__wrap(r)}static new_timelock_start(t){j(t,Ur);var r=e.nativescript_new_timelock_start(t.ptr);return ar.__wrap(r)}static new_timelock_expiry(t){j(t,Zr);var r=e.nativescript_new_timelock_expiry(t.ptr);return ar.__wrap(r)}kind(){return e.nativescript_kind(this.ptr)>>>0}as_script_pubkey(){var t=e.nativescript_as_script_pubkey(this.ptr);return 0===t?void 0:Vr.__wrap(t)}as_script_all(){var t=e.nativescript_as_script_all(this.ptr);return 0===t?void 0:Dr.__wrap(t)}as_script_any(){var t=e.nativescript_as_script_any(this.ptr);return 0===t?void 0:Nr.__wrap(t)}as_script_n_of_k(){var t=e.nativescript_as_script_n_of_k(this.ptr);return 0===t?void 0:qr.__wrap(t)}as_timelock_start(){var t=e.nativescript_as_timelock_start(this.ptr);return 0===t?void 0:Ur.__wrap(t)}as_timelock_expiry(){var t=e.nativescript_as_timelock_expiry(this.ptr);return 0===t?void 0:Zr.__wrap(t)}}class nr{static __wrap(t){const r=Object.create(nr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_nativescripts_free(t)}static new(){var t=e.nativescripts_new();return nr.__wrap(t)}len(){return e.nativescripts_len(this.ptr)>>>0}get(t){var r=e.nativescripts_get(this.ptr,t);return ar.__wrap(r)}add(t){j(t,ar),e.nativescripts_add(this.ptr,t.ptr)}}class sr{static __wrap(t){const r=Object.create(sr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_networkid_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.networkid_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.networkid_from_bytes(r,_);return sr.__wrap(a)}static testnet(){var t=e.networkid_testnet();return sr.__wrap(t)}static mainnet(){var t=e.networkid_mainnet();return sr.__wrap(t)}kind(){return e.networkid_kind(this.ptr)>>>0}}class ir{static __wrap(t){const r=Object.create(ir.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_networkinfo_free(t)}static new(t,r){var _=e.networkinfo_new(t,r);return ir.__wrap(_)}network_id(){return e.networkinfo_network_id(this.ptr)}protocol_magic(){return e.networkinfo_protocol_magic(this.ptr)>>>0}static testnet(){var t=e.networkinfo_testnet();return ir.__wrap(t)}static mainnet(){var t=e.networkinfo_mainnet();return ir.__wrap(t)}}class or{static __wrap(t){const r=Object.create(or.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_nonce_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.nonce_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.nonce_from_bytes(r,_);return or.__wrap(a)}static new_identity(){var t=e.nonce_new_identity();return or.__wrap(t)}static new_from_hash(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.nonce_new_from_hash(r,_);return or.__wrap(a)}get_hash(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.nonce_get_hash(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];let a;return 0!==t&&(a=m(t,r).slice(),e.__wbindgen_free(t,1*r)),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}}class pr{static __wrap(t){const r=Object.create(pr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_operationalcert_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.operationalcert_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.operationalcert_from_bytes(r,_);return pr.__wrap(a)}hot_vkey(){var t=e.operationalcert_hot_vkey(this.ptr);return Wt.__wrap(t)}sequence_number(){return e.operationalcert_sequence_number(this.ptr)>>>0}kes_period(){return e.operationalcert_kes_period(this.ptr)>>>0}sigma(){var t=e.operationalcert_sigma(this.ptr);return At.__wrap(t)}static new(t,r,_,a){j(t,Wt),j(a,At);var n=e.operationalcert_new(t.ptr,r,_,a.ptr);return pr.__wrap(n)}}class cr{static __wrap(t){const r=Object.create(cr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_plutusdata_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.plutusdata_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.plutusdata_from_bytes(r,_);return cr.__wrap(a)}static new_constr_plutus_data(t){j(t,mt);var r=e.plutusdata_new_constr_plutus_data(t.ptr);return cr.__wrap(r)}static new_map(t){j(t,wr);var r=e.plutusdata_new_map(t.ptr);return cr.__wrap(r)}static new_list(t){j(t,dr);var r=e.plutusdata_new_list(t.ptr);return cr.__wrap(r)}static new_integer(t){j(t,ct);var r=e.plutusdata_new_integer(t.ptr);return cr.__wrap(r)}static new_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.plutusdata_new_bytes(r,_);return cr.__wrap(a)}kind(){return e.plutusdata_kind(this.ptr)>>>0}as_constr_plutus_data(){var t=e.plutusdata_as_constr_plutus_data(this.ptr);return 0===t?void 0:mt.__wrap(t)}as_map(){var t=e.plutusdata_as_map(this.ptr);return 0===t?void 0:wr.__wrap(t)}as_list(){var t=e.plutusdata_as_list(this.ptr);return 0===t?void 0:dr.__wrap(t)}as_integer(){var t=e.plutusdata_as_integer(this.ptr);return 0===t?void 0:ct.__wrap(t)}as_bytes(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.plutusdata_as_bytes(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];let a;return 0!==t&&(a=m(t,r).slice(),e.__wbindgen_free(t,1*r)),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}}class dr{static __wrap(t){const r=Object.create(dr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_plutuslist_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.plutuslist_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.plutuslist_from_bytes(r,_);return dr.__wrap(a)}static new(){var t=e.plutuslist_new();return dr.__wrap(t)}len(){return e.plutuslist_len(this.ptr)>>>0}get(t){var r=e.plutuslist_get(this.ptr,t);return cr.__wrap(r)}add(t){j(t,cr),e.plutuslist_add(this.ptr,t.ptr)}}class wr{static __wrap(t){const r=Object.create(wr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_plutusmap_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.plutusmap_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.plutusmap_from_bytes(r,_);return wr.__wrap(a)}static new(){var t=e.plutusmap_new();return wr.__wrap(t)}len(){return e.plutusmap_len(this.ptr)>>>0}insert(t,r){j(t,cr),j(r,cr);var _=e.plutusmap_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:cr.__wrap(_)}get(t){j(t,cr);var r=e.plutusmap_get(this.ptr,t.ptr);return 0===r?void 0:cr.__wrap(r)}keys(){var t=e.plutusmap_keys(this.ptr);return dr.__wrap(t)}}class lr{static __wrap(t){const r=Object.create(lr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_plutusscript_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.plutusscript_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.plutusscript_from_bytes(r,_);return lr.__wrap(a)}static new(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.plutusscript_new(r,_);return lr.__wrap(a)}bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.plutusscript_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}class br{static __wrap(t){const r=Object.create(br.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_plutusscripts_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.plutusscripts_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.plutusscripts_from_bytes(r,_);return br.__wrap(a)}static new(){var t=e.plutusscripts_new();return br.__wrap(t)}len(){return e.plutusscripts_len(this.ptr)>>>0}get(t){var r=e.plutusscripts_get(this.ptr,t);return lr.__wrap(r)}add(t){j(t,lr),e.plutusscripts_add(this.ptr,t.ptr)}}class ur{static __wrap(t){const r=Object.create(ur.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_pointer_free(t)}static new(t,r,_){var a=e.pointer_new(t,r,_);return ur.__wrap(a)}slot(){return e.pointer_slot(this.ptr)>>>0}tx_index(){return e.pointer_tx_index(this.ptr)>>>0}cert_index(){return e.pointer_cert_index(this.ptr)>>>0}}class yr{static __wrap(t){const r=Object.create(yr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_pointeraddress_free(t)}static new(t,r,_){j(r,Jr),j(_,ur);var a=e.pointeraddress_new(t,r.ptr,_.ptr);return yr.__wrap(a)}payment_cred(){var t=e.pointeraddress_payment_cred(this.ptr);return Jr.__wrap(t)}stake_pointer(){var t=e.pointeraddress_stake_pointer(this.ptr);return ur.__wrap(t)}to_address(){var t=e.pointeraddress_to_address(this.ptr);return _t.__wrap(t)}static from_address(t){j(t,_t);var r=e.pointeraddress_from_address(t.ptr);return 0===r?void 0:yr.__wrap(r)}}class hr{static __wrap(t){const r=Object.create(hr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_poolmetadata_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.poolmetadata_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.poolmetadata_from_bytes(r,_);return hr.__wrap(a)}url(){var t=e.poolmetadata_url(this.ptr);return l_.__wrap(t)}pool_metadata_hash(){var t=e.poolmetadata_pool_metadata_hash(this.ptr);return gr.__wrap(t)}static new(t,r){j(t,l_),j(r,gr);var _=e.poolmetadata_new(t.ptr,r.ptr);return hr.__wrap(_)}}class gr{static __wrap(t){const r=Object.create(gr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_poolmetadatahash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.poolmetadatahash_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.poolmetadatahash_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.poolmetadatahash_from_bech32(r,_);return gr.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.poolmetadatahash_from_bytes(r,_);return gr.__wrap(a)}}class vr{static __wrap(t){const r=Object.create(vr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_poolparams_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.poolparams_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.poolparams_from_bytes(r,_);return vr.__wrap(a)}operator(){var t=e.poolparams_operator(this.ptr);return Pt.__wrap(t)}vrf_keyhash(){var t=e.poolparams_vrf_keyhash(this.ptr);return h_.__wrap(t)}pledge(){var t=e.poolparams_pledge(this.ptr);return dt.__wrap(t)}cost(){var t=e.poolparams_cost(this.ptr);return dt.__wrap(t)}margin(){var t=e.poolparams_margin(this.ptr);return b_.__wrap(t)}reward_account(){var t=e.poolparams_reward_account(this.ptr);return Cr.__wrap(t)}pool_owners(){var t=e.poolparams_pool_owners(this.ptr);return Rt.__wrap(t)}relays(){var t=e.poolparams_relays(this.ptr);return Br.__wrap(t)}pool_metadata(){var t=e.poolparams_pool_metadata(this.ptr);return 0===t?void 0:hr.__wrap(t)}static new(t,r,_,a,n,s,i,o,p){j(t,Pt),j(r,h_),j(_,dt),j(a,dt),j(n,b_),j(s,Cr),j(i,Rt),j(o,Br);let c=0;h(p)||(j(p,hr),c=p.ptr,p.ptr=0);var d=e.poolparams_new(t.ptr,r.ptr,_.ptr,a.ptr,n.ptr,s.ptr,i.ptr,o.ptr,c);return vr.__wrap(d)}}class fr{static __wrap(t){const r=Object.create(fr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_poolregistration_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.poolregistration_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.poolregistration_from_bytes(r,_);return fr.__wrap(a)}pool_params(){var t=e.poolregistration_pool_params(this.ptr);return vr.__wrap(t)}static new(t){j(t,vr);var r=e.poolregistration_new(t.ptr);return fr.__wrap(r)}}class mr{static __wrap(t){const r=Object.create(mr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_poolretirement_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.poolretirement_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.poolretirement_from_bytes(r,_);return mr.__wrap(a)}pool_keyhash(){var t=e.poolretirement_pool_keyhash(this.ptr);return Pt.__wrap(t)}epoch(){return e.poolretirement_epoch(this.ptr)>>>0}static new(t,r){j(t,Pt);var _=e.poolretirement_new(t.ptr,r);return mr.__wrap(_)}}class kr{static __wrap(t){const r=Object.create(kr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_privatekey_free(t)}to_public(){var t=e.privatekey_to_public(this.ptr);return Pr.__wrap(t)}static generate_ed25519(){var t=e.privatekey_generate_ed25519();return kr.__wrap(t)}static generate_ed25519extended(){var t=e.privatekey_generate_ed25519extended();return kr.__wrap(t)}to_bech32(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.privatekey_to_bech32(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}as_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.privatekey_as_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_extended_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.privatekey_from_extended_bytes(r,_);return kr.__wrap(a)}static from_normal_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.privatekey_from_normal_bytes(r,_);return kr.__wrap(a)}sign(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.privatekey_sign(this.ptr,r,_);return At.__wrap(a)}}class jr{static __wrap(t){const r=Object.create(jr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_proposedprotocolparameterupdates_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.proposedprotocolparameterupdates_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.proposedprotocolparameterupdates_from_bytes(r,_);return jr.__wrap(a)}static new(){var t=e.proposedprotocolparameterupdates_new();return jr.__wrap(t)}len(){return e.proposedprotocolparameterupdates_len(this.ptr)>>>0}insert(t,r){j(t,zt),j(r,xr);var _=e.proposedprotocolparameterupdates_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:xr.__wrap(_)}get(t){j(t,zt);var r=e.proposedprotocolparameterupdates_get(this.ptr,t.ptr);return 0===r?void 0:xr.__wrap(r)}keys(){var t=e.proposedprotocolparameterupdates_keys(this.ptr);return Dt.__wrap(t)}}class xr{static __wrap(t){const r=Object.create(xr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_protocolparamupdate_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.protocolparamupdate_from_bytes(r,_);return xr.__wrap(a)}set_minfee_a(t){j(t,dt),e.protocolparamupdate_set_minfee_a(this.ptr,t.ptr)}minfee_a(){var t=e.protocolparamupdate_minfee_a(this.ptr);return 0===t?void 0:dt.__wrap(t)}set_minfee_b(t){j(t,dt),e.protocolparamupdate_set_minfee_b(this.ptr,t.ptr)}minfee_b(){var t=e.protocolparamupdate_minfee_b(this.ptr);return 0===t?void 0:dt.__wrap(t)}set_max_block_body_size(t){e.protocolparamupdate_set_max_block_body_size(this.ptr,t)}max_block_body_size(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_max_block_body_size(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_max_tx_size(t){e.protocolparamupdate_set_max_tx_size(this.ptr,t)}max_tx_size(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_max_tx_size(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_max_block_header_size(t){e.protocolparamupdate_set_max_block_header_size(this.ptr,t)}max_block_header_size(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_max_block_header_size(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_key_deposit(t){j(t,dt),e.protocolparamupdate_set_key_deposit(this.ptr,t.ptr)}key_deposit(){var t=e.protocolparamupdate_key_deposit(this.ptr);return 0===t?void 0:dt.__wrap(t)}set_pool_deposit(t){j(t,dt),e.protocolparamupdate_set_pool_deposit(this.ptr,t.ptr)}pool_deposit(){var t=e.protocolparamupdate_pool_deposit(this.ptr);return 0===t?void 0:dt.__wrap(t)}set_max_epoch(t){e.protocolparamupdate_set_max_epoch(this.ptr,t)}max_epoch(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_max_epoch(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_n_opt(t){e.protocolparamupdate_set_n_opt(this.ptr,t)}n_opt(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_n_opt(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_pool_pledge_influence(t){j(t,b_),e.protocolparamupdate_set_pool_pledge_influence(this.ptr,t.ptr)}pool_pledge_influence(){var t=e.protocolparamupdate_pool_pledge_influence(this.ptr);return 0===t?void 0:b_.__wrap(t)}set_expansion_rate(t){j(t,b_),e.protocolparamupdate_set_expansion_rate(this.ptr,t.ptr)}expansion_rate(){var t=e.protocolparamupdate_expansion_rate(this.ptr);return 0===t?void 0:b_.__wrap(t)}set_treasury_growth_rate(t){j(t,b_),e.protocolparamupdate_set_treasury_growth_rate(this.ptr,t.ptr)}treasury_growth_rate(){var t=e.protocolparamupdate_treasury_growth_rate(this.ptr);return 0===t?void 0:b_.__wrap(t)}set_d(t){j(t,b_),e.protocolparamupdate_set_d(this.ptr,t.ptr)}d(){var t=e.protocolparamupdate_d(this.ptr);return 0===t?void 0:b_.__wrap(t)}set_extra_entropy(t){j(t,or),e.protocolparamupdate_set_extra_entropy(this.ptr,t.ptr)}extra_entropy(){var t=e.protocolparamupdate_extra_entropy(this.ptr);return 0===t?void 0:or.__wrap(t)}set_protocol_version(t){j(t,Sr),e.protocolparamupdate_set_protocol_version(this.ptr,t.ptr)}protocol_version(){var t=e.protocolparamupdate_protocol_version(this.ptr);return 0===t?void 0:Sr.__wrap(t)}set_min_pool_cost(t){j(t,dt),e.protocolparamupdate_set_min_pool_cost(this.ptr,t.ptr)}min_pool_cost(){var t=e.protocolparamupdate_min_pool_cost(this.ptr);return 0===t?void 0:dt.__wrap(t)}set_ada_per_utxo_byte(t){j(t,dt),e.protocolparamupdate_set_ada_per_utxo_byte(this.ptr,t.ptr)}ada_per_utxo_byte(){var t=e.protocolparamupdate_ada_per_utxo_byte(this.ptr);return 0===t?void 0:dt.__wrap(t)}set_cost_models(t){j(t,jt),e.protocolparamupdate_set_cost_models(this.ptr,t.ptr)}cost_models(){var t=e.protocolparamupdate_cost_models(this.ptr);return 0===t?void 0:jt.__wrap(t)}set_execution_costs(t){j(t,Kt),e.protocolparamupdate_set_execution_costs(this.ptr,t.ptr)}execution_costs(){var t=e.protocolparamupdate_execution_costs(this.ptr);return 0===t?void 0:Kt.__wrap(t)}set_max_tx_ex_units(t){j(t,Mt),e.protocolparamupdate_set_max_tx_ex_units(this.ptr,t.ptr)}max_tx_ex_units(){var t=e.protocolparamupdate_max_tx_ex_units(this.ptr);return 0===t?void 0:Mt.__wrap(t)}set_max_block_ex_units(t){j(t,Mt),e.protocolparamupdate_set_max_block_ex_units(this.ptr,t.ptr)}max_block_ex_units(){var t=e.protocolparamupdate_max_block_ex_units(this.ptr);return 0===t?void 0:Mt.__wrap(t)}set_max_value_size(t){e.protocolparamupdate_set_max_value_size(this.ptr,t)}max_value_size(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_max_value_size(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}static new(){var t=e.protocolparamupdate_new();return xr.__wrap(t)}}class Or{static __wrap(t){const r=Object.create(Or.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_protocolversion_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.protocolversion_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.protocolversion_from_bytes(r,_);return Or.__wrap(a)}major(){return e.protocolversion_major(this.ptr)>>>0}minor(){return e.protocolversion_minor(this.ptr)>>>0}static new(t,r){var _=e.protocolversion_new(t,r);return Or.__wrap(_)}}class Sr{static __wrap(t){const r=Object.create(Sr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_protocolversions_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.protocolversions_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.protocolversions_from_bytes(r,_);return Sr.__wrap(a)}static new(){var t=e.protocolversions_new();return Sr.__wrap(t)}len(){return e.protocolversions_len(this.ptr)>>>0}get(t){var r=e.protocolversions_get(this.ptr,t);return Or.__wrap(r)}add(t){j(t,Or),e.protocolversions_add(this.ptr,t.ptr)}}class Pr{static __wrap(t){const r=Object.create(Pr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_publickey_free(t)}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.publickey_from_bech32(r,_);return Pr.__wrap(a)}to_bech32(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.publickey_to_bech32(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}as_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.publickey_as_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.publickey_from_bytes(r,_);return Pr.__wrap(a)}verify(t,r){var _=k(t,e.__wbindgen_malloc),a=l;return j(r,At),0!==e.publickey_verify(this.ptr,_,a,r.ptr)}hash(){var t=e.publickey_hash(this.ptr);return Pt.__wrap(t)}}class Rr{static __wrap(t){const r=Object.create(Rr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_publickeys_free(t)}constructor(){var t=e.publickeys_new();return Rr.__wrap(t)}size(){return e.publickeys_size(this.ptr)>>>0}get(t){var r=e.publickeys_get(this.ptr,t);return Pr.__wrap(r)}add(t){j(t,Pr),e.publickeys_add(this.ptr,t.ptr)}}class Ar{static __wrap(t){const r=Object.create(Ar.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_redeemer_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.redeemer_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.redeemer_from_bytes(r,_);return Ar.__wrap(a)}tag(){var t=e.redeemer_tag(this.ptr);return Tr.__wrap(t)}index(){var t=e.redeemer_index(this.ptr);return dt.__wrap(t)}data(){var t=e.redeemer_data(this.ptr);return cr.__wrap(t)}ex_units(){var t=e.redeemer_ex_units(this.ptr);return Mt.__wrap(t)}static new(t,r,_,a){j(t,Tr),j(r,dt),j(_,cr),j(a,Mt);var n=e.redeemer_new(t.ptr,r.ptr,_.ptr,a.ptr);return Ar.__wrap(n)}}class Tr{static __wrap(t){const r=Object.create(Tr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_redeemertag_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.redeemertag_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.redeemertag_from_bytes(r,_);return Tr.__wrap(a)}static new_spend(){var t=e.redeemertag_new_spend();return Tr.__wrap(t)}static new_mint(){var t=e.redeemertag_new_mint();return Tr.__wrap(t)}static new_cert(){var t=e.redeemertag_new_cert();return Tr.__wrap(t)}static new_reward(){var t=e.redeemertag_new_reward();return Tr.__wrap(t)}kind(){return e.redeemertag_kind(this.ptr)>>>0}}class Kr{static __wrap(t){const r=Object.create(Kr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_redeemers_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.redeemers_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.redeemers_from_bytes(r,_);return Kr.__wrap(a)}static new(){var t=e.redeemers_new();return Kr.__wrap(t)}len(){return e.redeemers_len(this.ptr)>>>0}get(t){var r=e.redeemers_get(this.ptr,t);return Ar.__wrap(r)}add(t){j(t,Ar),e.redeemers_add(this.ptr,t.ptr)}}class Mr{static __wrap(t){const r=Object.create(Mr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_relay_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.relay_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.relay_from_bytes(r,_);return Mr.__wrap(a)}static new_single_host_addr(t){j(t,Er);var r=e.relay_new_single_host_addr(t.ptr);return Mr.__wrap(r)}static new_single_host_name(t){j(t,Wr);var r=e.relay_new_single_host_name(t.ptr);return Mr.__wrap(r)}static new_multi_host_name(t){j(t,er);var r=e.relay_new_multi_host_name(t.ptr);return Mr.__wrap(r)}kind(){return e.relay_kind(this.ptr)>>>0}as_single_host_addr(){var t=e.relay_as_single_host_addr(this.ptr);return 0===t?void 0:Er.__wrap(t)}as_single_host_name(){var t=e.relay_as_single_host_name(this.ptr);return 0===t?void 0:Wr.__wrap(t)}as_multi_host_name(){var t=e.relay_as_multi_host_name(this.ptr);return 0===t?void 0:er.__wrap(t)}}class Br{static __wrap(t){const r=Object.create(Br.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_relays_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.relays_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.relays_from_bytes(r,_);return Br.__wrap(a)}static new(){var t=e.relays_new();return Br.__wrap(t)}len(){return e.relays_len(this.ptr)>>>0}get(t){var r=e.relays_get(this.ptr,t);return Mr.__wrap(r)}add(t){j(t,Mr),e.relays_add(this.ptr,t.ptr)}}class Cr{static __wrap(t){const r=Object.create(Cr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_rewardaddress_free(t)}static new(t,r){j(r,Jr);var _=e.rewardaddress_new(t,r.ptr);return Cr.__wrap(_)}payment_cred(){var t=e.rewardaddress_payment_cred(this.ptr);return Jr.__wrap(t)}to_address(){var t=e.rewardaddress_to_address(this.ptr);return _t.__wrap(t)}static from_address(t){j(t,_t);var r=e.rewardaddress_from_address(t.ptr);return 0===r?void 0:Cr.__wrap(r)}}class zr{static __wrap(t){const r=Object.create(zr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_rewardaddresses_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.rewardaddresses_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.rewardaddresses_from_bytes(r,_);return zr.__wrap(a)}static new(){var t=e.rewardaddresses_new();return zr.__wrap(t)}len(){return e.rewardaddresses_len(this.ptr)>>>0}get(t){var r=e.rewardaddresses_get(this.ptr,t);return Cr.__wrap(r)}add(t){j(t,Cr),e.rewardaddresses_add(this.ptr,t.ptr)}}class Dr{static __wrap(t){const r=Object.create(Dr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scriptall_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scriptall_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.scriptall_from_bytes(r,_);return Dr.__wrap(a)}native_scripts(){var t=e.scriptall_native_scripts(this.ptr);return nr.__wrap(t)}static new(t){j(t,nr);var r=e.scriptall_new(t.ptr);return Dr.__wrap(r)}}class Nr{static __wrap(t){const r=Object.create(Nr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scriptany_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scriptany_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.scriptany_from_bytes(r,_);return Nr.__wrap(a)}native_scripts(){var t=e.scriptany_native_scripts(this.ptr);return nr.__wrap(t)}static new(t){j(t,nr);var r=e.scriptany_new(t.ptr);return Nr.__wrap(r)}}class Hr{static __wrap(t){const r=Object.create(Hr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scriptdatahash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scriptdatahash_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.scriptdatahash_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.scriptdatahash_from_bech32(r,_);return Hr.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.scriptdatahash_from_bytes(r,_);return Hr.__wrap(a)}}class Lr{static __wrap(t){const r=Object.create(Lr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scripthash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scripthash_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.scripthash_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.scripthash_from_bech32(r,_);return Lr.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.scripthash_from_bytes(r,_);return Lr.__wrap(a)}}class Ir{static __wrap(t){const r=Object.create(Ir.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scripthashes_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scripthashes_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.scripthashes_from_bytes(r,_);return Ir.__wrap(a)}static new(){var t=e.scripthashes_new();return Ir.__wrap(t)}len(){return e.scripthashes_len(this.ptr)>>>0}get(t){var r=e.scripthashes_get(this.ptr,t);return Lr.__wrap(r)}add(t){j(t,Lr),e.scripthashes_add(this.ptr,t.ptr)}}class qr{static __wrap(t){const r=Object.create(qr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scriptnofk_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scriptnofk_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.scriptnofk_from_bytes(r,_);return qr.__wrap(a)}n(){return e.scriptnofk_n(this.ptr)>>>0}native_scripts(){var t=e.scriptnofk_native_scripts(this.ptr);return nr.__wrap(t)}static new(t,r){j(r,nr);var _=e.scriptnofk_new(t,r.ptr);return qr.__wrap(_)}}class Vr{static __wrap(t){const r=Object.create(Vr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scriptpubkey_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scriptpubkey_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.scriptpubkey_from_bytes(r,_);return Vr.__wrap(a)}addr_keyhash(){var t=e.scriptpubkey_addr_keyhash(this.ptr);return Pt.__wrap(t)}static new(t){j(t,Pt);var r=e.scriptpubkey_new(t.ptr);return Vr.__wrap(r)}}class Er{static __wrap(t){const r=Object.create(Er.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_singlehostaddr_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.singlehostaddr_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.singlehostaddr_from_bytes(r,_);return Er.__wrap(a)}port(){var t=e.singlehostaddr_port(this.ptr);return 16777215===t?void 0:t}ipv4(){var t=e.singlehostaddr_ipv4(this.ptr);return 0===t?void 0:qt.__wrap(t)}ipv6(){var t=e.singlehostaddr_ipv6(this.ptr);return 0===t?void 0:Vt.__wrap(t)}static new(t,r,_){let a=0;h(r)||(j(r,qt),a=r.ptr,r.ptr=0);let n=0;h(_)||(j(_,Vt),n=_.ptr,_.ptr=0);var s=e.singlehostaddr_new(h(t)?16777215:t,a,n);return Er.__wrap(s)}}class Wr{static __wrap(t){const r=Object.create(Wr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_singlehostname_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.singlehostname_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.singlehostname_from_bytes(r,_);return Wr.__wrap(a)}port(){var t=e.singlehostname_port(this.ptr);return 16777215===t?void 0:t}dns_name(){var t=e.singlehostname_dns_name(this.ptr);return xt.__wrap(t)}static new(t,r){j(r,xt);var _=e.singlehostname_new(h(t)?16777215:t,r.ptr);return Wr.__wrap(_)}}class Jr{static __wrap(t){const r=Object.create(Jr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_stakecredential_free(t)}static from_keyhash(t){j(t,Pt);var r=e.stakecredential_from_keyhash(t.ptr);return Jr.__wrap(r)}static from_scripthash(t){j(t,Lr);var r=e.stakecredential_from_scripthash(t.ptr);return Jr.__wrap(r)}to_keyhash(){var t=e.stakecredential_to_keyhash(this.ptr);return 0===t?void 0:Pt.__wrap(t)}to_scripthash(){var t=e.stakecredential_to_scripthash(this.ptr);return 0===t?void 0:Lr.__wrap(t)}kind(){return e.stakecredential_kind(this.ptr)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.stakecredential_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.stakecredential_from_bytes(r,_);return Jr.__wrap(a)}}class Yr{static __wrap(t){const r=Object.create(Yr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_stakecredentials_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.stakecredentials_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.stakecredentials_from_bytes(r,_);return Yr.__wrap(a)}static new(){var t=e.stakecredentials_new();return Yr.__wrap(t)}len(){return e.stakecredentials_len(this.ptr)>>>0}get(t){var r=e.stakecredentials_get(this.ptr,t);return Jr.__wrap(r)}add(t){j(t,Jr),e.stakecredentials_add(this.ptr,t.ptr)}}class $r{static __wrap(t){const r=Object.create($r.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_stakedelegation_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.stakedelegation_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.stakedelegation_from_bytes(r,_);return $r.__wrap(a)}stake_credential(){var t=e.stakedelegation_stake_credential(this.ptr);return Jr.__wrap(t)}pool_keyhash(){var t=e.stakedelegation_pool_keyhash(this.ptr);return Pt.__wrap(t)}static new(t,r){j(t,Jr),j(r,Pt);var _=e.stakedelegation_new(t.ptr,r.ptr);return $r.__wrap(_)}}class Fr{static __wrap(t){const r=Object.create(Fr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_stakederegistration_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.stakederegistration_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.stakederegistration_from_bytes(r,_);return Fr.__wrap(a)}stake_credential(){var t=e.stakederegistration_stake_credential(this.ptr);return Jr.__wrap(t)}static new(t){j(t,Jr);var r=e.stakederegistration_new(t.ptr);return Fr.__wrap(r)}}class Gr{static __wrap(t){const r=Object.create(Gr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_stakeregistration_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.stakeregistration_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.stakeregistration_from_bytes(r,_);return Gr.__wrap(a)}stake_credential(){var t=e.stakeregistration_stake_credential(this.ptr);return Jr.__wrap(t)}static new(t){j(t,Jr);var r=e.stakeregistration_new(t.ptr);return Gr.__wrap(r)}}class Qr{static __wrap(t){const r=Object.create(Qr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_strings_free(t)}static new(){var t=e.strings_new();return Qr.__wrap(t)}len(){return e.strings_len(this.ptr)>>>0}get(t){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.strings_get(a,this.ptr,t);var r=v()[a/4+0],_=v()[a/4+1];return d(r,_)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(r,_)}}add(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.strings_add(this.ptr,r,_)}}class Zr{static __wrap(t){const r=Object.create(Zr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_timelockexpiry_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.timelockexpiry_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.timelockexpiry_from_bytes(r,_);return Zr.__wrap(a)}slot(){return e.timelockexpiry_slot(this.ptr)>>>0}static new(t){var r=e.timelockexpiry_new(t);return Zr.__wrap(r)}}class Ur{static __wrap(t){const r=Object.create(Ur.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_timelockstart_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.timelockstart_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.timelockstart_from_bytes(r,_);return Ur.__wrap(a)}slot(){return e.timelockstart_slot(this.ptr)>>>0}static new(t){var r=e.timelockstart_new(t);return Ur.__wrap(r)}}class Xr{static __wrap(t){const r=Object.create(Xr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transaction_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transaction_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transaction_from_bytes(r,_);return Xr.__wrap(a)}body(){var t=e.transaction_body(this.ptr);return r_.__wrap(t)}witness_set(){var t=e.transaction_witness_set(this.ptr);return d_.__wrap(t)}is_valid(){return 0!==e.transaction_is_valid(this.ptr)}auxiliary_data(){var t=e.transaction_auxiliary_data(this.ptr);return 0===t?void 0:st.__wrap(t)}set_is_valid(t){e.transaction_set_is_valid(this.ptr,t)}static new(t,r,_){j(t,r_),j(r,d_);let a=0;h(_)||(j(_,st),a=_.ptr,_.ptr=0);var n=e.transaction_new(t.ptr,r.ptr,a);return Xr.__wrap(n)}}class t_{static __wrap(t){const r=Object.create(t_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionbodies_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionbodies_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactionbodies_from_bytes(r,_);return t_.__wrap(a)}static new(){var t=e.transactionbodies_new();return t_.__wrap(t)}len(){return e.transactionbodies_len(this.ptr)>>>0}get(t){var r=e.transactionbodies_get(this.ptr,t);return r_.__wrap(r)}add(t){j(t,r_),e.transactionbodies_add(this.ptr,t.ptr)}}class r_{static __wrap(t){const r=Object.create(r_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionbody_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionbody_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactionbody_from_bytes(r,_);return r_.__wrap(a)}inputs(){var t=e.transactionbody_inputs(this.ptr);return n_.__wrap(t)}outputs(){var t=e.transactionbody_outputs(this.ptr);return p_.__wrap(t)}fee(){var t=e.transactionbody_fee(this.ptr);return dt.__wrap(t)}ttl(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.transactionbody_ttl(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_certs(t){j(t,ft),e.transactionbody_set_certs(this.ptr,t.ptr)}certs(){var t=e.transactionbody_certs(this.ptr);return 0===t?void 0:ft.__wrap(t)}set_withdrawals(t){j(t,x_),e.transactionbody_set_withdrawals(this.ptr,t.ptr)}withdrawals(){var t=e.transactionbody_withdrawals(this.ptr);return 0===t?void 0:x_.__wrap(t)}set_update(t){j(t,u_),e.transactionbody_set_update(this.ptr,t.ptr)}update(){var t=e.transactionbody_update(this.ptr);return 0===t?void 0:u_.__wrap(t)}set_auxiliary_data_hash(t){j(t,it),e.transactionbody_set_auxiliary_data_hash(this.ptr,t.ptr)}auxiliary_data_hash(){var t=e.transactionbody_auxiliary_data_hash(this.ptr);return 0===t?void 0:it.__wrap(t)}set_validity_start_interval(t){e.transactionbody_set_validity_start_interval(this.ptr,t)}validity_start_interval(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.transactionbody_validity_start_interval(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_mint(t){j(t,Ut),e.transactionbody_set_mint(this.ptr,t.ptr)}multiassets(){var t=e.transactionbody_multiassets(this.ptr);return 0===t?void 0:Ut.__wrap(t)}set_script_data_hash(t){j(t,Hr),e.transactionbody_set_script_data_hash(this.ptr,t.ptr)}script_data_hash(){var t=e.transactionbody_script_data_hash(this.ptr);return 0===t?void 0:Hr.__wrap(t)}set_collateral(t){j(t,n_),e.transactionbody_set_collateral(this.ptr,t.ptr)}collateral(){var t=e.transactionbody_collateral(this.ptr);return 0===t?void 0:n_.__wrap(t)}set_required_signers(t){j(t,Rt),e.transactionbody_set_required_signers(this.ptr,t.ptr)}required_signers(){var t=e.transactionbody_required_signers(this.ptr);return 0===t?void 0:Rt.__wrap(t)}set_network_id(t){j(t,sr),e.transactionbody_set_network_id(this.ptr,t.ptr)}network_id(){var t=e.transactionbody_network_id(this.ptr);return 0===t?void 0:sr.__wrap(t)}static new(t,r,_,a){j(t,n_),j(r,p_),j(_,dt);var n=e.transactionbody_new(t.ptr,r.ptr,_.ptr,!h(a),h(a)?0:a);return r_.__wrap(n)}}class __{static __wrap(t){const r=Object.create(__.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionbuilder_free(t)}add_key_input(t,r,_){j(t,Pt),j(r,a_),j(_,v_),e.transactionbuilder_add_key_input(this.ptr,t.ptr,r.ptr,_.ptr)}add_script_input(t,r,_){j(t,Lr),j(r,a_),j(_,v_),e.transactionbuilder_add_script_input(this.ptr,t.ptr,r.ptr,_.ptr)}add_bootstrap_input(t,r,_){j(t,gt),j(r,a_),j(_,v_),e.transactionbuilder_add_bootstrap_input(this.ptr,t.ptr,r.ptr,_.ptr)}add_input(t,r,_){j(t,_t),j(r,a_),j(_,v_),e.transactionbuilder_add_input(this.ptr,t.ptr,r.ptr,_.ptr)}fee_for_input(t,r,_){j(t,_t),j(r,a_),j(_,v_);var a=e.transactionbuilder_fee_for_input(this.ptr,t.ptr,r.ptr,_.ptr);return dt.__wrap(a)}add_output(t){j(t,o_),e.transactionbuilder_add_output(this.ptr,t.ptr)}fee_for_output(t){j(t,o_);var r=e.transactionbuilder_fee_for_output(this.ptr,t.ptr);return dt.__wrap(r)}set_fee(t){j(t,dt),e.transactionbuilder_set_fee(this.ptr,t.ptr)}set_ttl(t){e.transactionbuilder_set_ttl(this.ptr,t)}set_validity_start_interval(t){e.transactionbuilder_set_validity_start_interval(this.ptr,t)}set_certs(t){j(t,ft),e.transactionbuilder_set_certs(this.ptr,t.ptr)}set_withdrawals(t){j(t,x_),e.transactionbuilder_set_withdrawals(this.ptr,t.ptr)}set_auxiliary_data(t){j(t,st),e.transactionbuilder_set_auxiliary_data(this.ptr,t.ptr)}static new(t,r,_,a,n,s){j(t,Ft),j(r,dt),j(_,dt),j(a,dt);var i=e.transactionbuilder_new(t.ptr,r.ptr,_.ptr,a.ptr,n,s);return __.__wrap(i)}get_explicit_input(){var t=e.transactionbuilder_get_explicit_input(this.ptr);return v_.__wrap(t)}get_implicit_input(){var t=e.transactionbuilder_get_implicit_input(this.ptr);return v_.__wrap(t)}get_explicit_output(){var t=e.transactionbuilder_get_explicit_output(this.ptr);return v_.__wrap(t)}get_deposit(){var t=e.transactionbuilder_get_deposit(this.ptr);return dt.__wrap(t)}get_fee_if_set(){var t=e.transactionbuilder_get_fee_if_set(this.ptr);return 0===t?void 0:dt.__wrap(t)}add_change_if_needed(t){return j(t,_t),0!==e.transactionbuilder_add_change_if_needed(this.ptr,t.ptr)}full_size(){return e.transactionbuilder_full_size(this.ptr)>>>0}output_sizes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionbuilder_output_sizes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=S(t,r).slice();return e.__wbindgen_free(t,4*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}build(){var t=e.transactionbuilder_build(this.ptr);return r_.__wrap(t)}min_fee(){var t=e.transactionbuilder_min_fee(this.ptr);return dt.__wrap(t)}}class e_{static __wrap(t){const r=Object.create(e_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionhash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionhash_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.transactionhash_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.transactionhash_from_bech32(r,_);return e_.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactionhash_from_bytes(r,_);return e_.__wrap(a)}}class a_{static __wrap(t){const r=Object.create(a_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactioninput_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactioninput_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactioninput_from_bytes(r,_);return a_.__wrap(a)}transaction_id(){var t=e.transactioninput_transaction_id(this.ptr);return e_.__wrap(t)}index(){return e.transactioninput_index(this.ptr)>>>0}static new(t,r){j(t,e_);var _=e.transactioninput_new(t.ptr,r);return a_.__wrap(_)}}class n_{static __wrap(t){const r=Object.create(n_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactioninputs_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactioninputs_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactioninputs_from_bytes(r,_);return n_.__wrap(a)}static new(){var t=e.transactioninputs_new();return n_.__wrap(t)}len(){return e.transactioninputs_len(this.ptr)>>>0}get(t){var r=e.transactioninputs_get(this.ptr,t);return a_.__wrap(r)}add(t){j(t,a_),e.transactioninputs_add(this.ptr,t.ptr)}}class s_{static __wrap(t){const r=Object.create(s_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionmetadatum_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionmetadatum_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactionmetadatum_from_bytes(r,_);return s_.__wrap(a)}static new_map(t){j(t,Zt);var r=e.transactionmetadatum_new_map(t.ptr);return s_.__wrap(r)}static new_list(t){j(t,Qt);var r=e.transactionmetadatum_new_list(t.ptr);return s_.__wrap(r)}static new_int(t){j(t,It);var r=e.transactionmetadatum_new_int(t.ptr);return s_.__wrap(r)}static new_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactionmetadatum_new_bytes(r,_);return s_.__wrap(a)}static new_text(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.transactionmetadatum_new_text(r,_);return s_.__wrap(a)}kind(){return e.transactionmetadatum_kind(this.ptr)>>>0}as_map(){var t=e.transactionmetadatum_as_map(this.ptr);return Zt.__wrap(t)}as_list(){var t=e.transactionmetadatum_as_list(this.ptr);return Qt.__wrap(t)}as_int(){var t=e.transactionmetadatum_as_int(this.ptr);return It.__wrap(t)}as_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionmetadatum_as_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}as_text(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.transactionmetadatum_as_text(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}}class i_{static __wrap(t){const r=Object.create(i_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionmetadatumlabels_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionmetadatumlabels_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactionmetadatumlabels_from_bytes(r,_);return i_.__wrap(a)}static new(){var t=e.transactionmetadatumlabels_new();return i_.__wrap(t)}len(){return e.transactionmetadatumlabels_len(this.ptr)>>>0}get(t){var r=e.transactionmetadatumlabels_get(this.ptr,t);return dt.__wrap(r)}add(t){j(t,dt),e.transactionmetadatumlabels_add(this.ptr,t.ptr)}}class o_{static __wrap(t){const r=Object.create(o_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionoutput_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionoutput_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactionoutput_from_bytes(r,_);return o_.__wrap(a)}address(){var t=e.transactionoutput_address(this.ptr);return _t.__wrap(t)}amount(){var t=e.transactionoutput_amount(this.ptr);return v_.__wrap(t)}data_hash(){var t=e.transactionoutput_data_hash(this.ptr);return 0===t?void 0:St.__wrap(t)}set_data_hash(t){j(t,St),e.transactionoutput_set_data_hash(this.ptr,t.ptr)}static new(t,r){j(t,_t),j(r,v_);var _=e.transactionoutput_new(t.ptr,r.ptr);return o_.__wrap(_)}}class p_{static __wrap(t){const r=Object.create(p_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionoutputs_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionoutputs_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactionoutputs_from_bytes(r,_);return p_.__wrap(a)}static new(){var t=e.transactionoutputs_new();return p_.__wrap(t)}len(){return e.transactionoutputs_len(this.ptr)>>>0}get(t){var r=e.transactionoutputs_get(this.ptr,t);return o_.__wrap(r)}add(t){j(t,o_),e.transactionoutputs_add(this.ptr,t.ptr)}}class c_{static __wrap(t){const r=Object.create(c_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionunspentoutput_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionunspentoutput_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactionunspentoutput_from_bytes(r,_);return c_.__wrap(a)}static new(t,r){j(t,a_),j(r,o_);var _=e.transactionunspentoutput_new(t.ptr,r.ptr);return c_.__wrap(_)}input(){var t=e.transactionunspentoutput_input(this.ptr);return a_.__wrap(t)}output(){var t=e.transactionunspentoutput_output(this.ptr);return o_.__wrap(t)}}class d_{static __wrap(t){const r=Object.create(d_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionwitnessset_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionwitnessset_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactionwitnessset_from_bytes(r,_);return d_.__wrap(a)}set_vkeys(t){j(t,j_),e.transactionwitnessset_set_vkeys(this.ptr,t.ptr)}vkeys(){var t=e.transactionwitnessset_vkeys(this.ptr);return 0===t?void 0:j_.__wrap(t)}set_native_scripts(t){j(t,nr),e.transactionwitnessset_set_native_scripts(this.ptr,t.ptr)}native_scripts(){var t=e.transactionwitnessset_native_scripts(this.ptr);return 0===t?void 0:nr.__wrap(t)}set_bootstraps(t){j(t,ht),e.transactionwitnessset_set_bootstraps(this.ptr,t.ptr)}bootstraps(){var t=e.transactionwitnessset_bootstraps(this.ptr);return 0===t?void 0:ht.__wrap(t)}set_plutus_scripts(t){j(t,br),e.transactionwitnessset_set_plutus_scripts(this.ptr,t.ptr)}plutus_scripts(){var t=e.transactionwitnessset_plutus_scripts(this.ptr);return 0===t?void 0:br.__wrap(t)}set_plutus_data(t){j(t,dr),e.transactionwitnessset_set_plutus_data(this.ptr,t.ptr)}plutus_data(){var t=e.transactionwitnessset_plutus_data(this.ptr);return 0===t?void 0:dr.__wrap(t)}set_redeemers(t){j(t,Kr),e.transactionwitnessset_set_redeemers(this.ptr,t.ptr)}redeemers(){var t=e.transactionwitnessset_redeemers(this.ptr);return 0===t?void 0:Kr.__wrap(t)}static new(){var t=e.transactionwitnessset_new();return d_.__wrap(t)}}class w_{static __wrap(t){const r=Object.create(w_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionwitnesssets_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionwitnesssets_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.transactionwitnesssets_from_bytes(r,_);return w_.__wrap(a)}static new(){var t=e.transactionwitnesssets_new();return w_.__wrap(t)}len(){return e.transactionwitnesssets_len(this.ptr)>>>0}get(t){var r=e.transactionwitnesssets_get(this.ptr,t);return d_.__wrap(r)}add(t){j(t,d_),e.transactionwitnesssets_add(this.ptr,t.ptr)}}class l_{static __wrap(t){const r=Object.create(l_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_url_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.url_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.url_from_bytes(r,_);return l_.__wrap(a)}static new(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.url_new(r,_);return l_.__wrap(a)}url(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.url_url(_,this.ptr);var t=v()[_/4+0],r=v()[_/4+1];return d(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}}class b_{static __wrap(t){const r=Object.create(b_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_unitinterval_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.unitinterval_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.unitinterval_from_bytes(r,_);return b_.__wrap(a)}numerator(){var t=e.unitinterval_numerator(this.ptr);return dt.__wrap(t)}denominator(){var t=e.unitinterval_denominator(this.ptr);return dt.__wrap(t)}static new(t,r){j(t,dt),j(r,dt);var _=e.unitinterval_new(t.ptr,r.ptr);return b_.__wrap(_)}}class u_{static __wrap(t){const r=Object.create(u_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_update_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.update_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.update_from_bytes(r,_);return u_.__wrap(a)}proposed_protocol_parameter_updates(){var t=e.update_proposed_protocol_parameter_updates(this.ptr);return jr.__wrap(t)}epoch(){return e.update_epoch(this.ptr)>>>0}static new(t,r){j(t,jr);var _=e.update_new(t.ptr,r);return u_.__wrap(_)}}class y_{static __wrap(t){const r=Object.create(y_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vrfcert_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vrfcert_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.vrfcert_from_bytes(r,_);return y_.__wrap(a)}output(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vrfcert_output(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}proof(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vrfcert_proof(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static new(t,r){var _=k(t,e.__wbindgen_malloc),a=l,n=k(r,e.__wbindgen_malloc),s=l,i=e.vrfcert_new(_,a,n,s);return y_.__wrap(i)}}class h_{static __wrap(t){const r=Object.create(h_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vrfkeyhash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vrfkeyhash_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.vrfkeyhash_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.vrfkeyhash_from_bech32(r,_);return h_.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.vrfkeyhash_from_bytes(r,_);return h_.__wrap(a)}}class g_{static __wrap(t){const r=Object.create(g_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vrfvkey_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vrfvkey_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l;e.vrfvkey_to_bech32(s,this.ptr,r,_);var a=v()[s/4+0],n=v()[s/4+1];return d(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=y(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=l,a=e.vrfvkey_from_bech32(r,_);return g_.__wrap(a)}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.vrfvkey_from_bytes(r,_);return g_.__wrap(a)}}class v_{static __wrap(t){const r=Object.create(v_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_value_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.value_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.value_from_bytes(r,_);return v_.__wrap(a)}static new(t){j(t,dt);var r=e.value_new(t.ptr);return v_.__wrap(r)}coin(){var t=e.value_coin(this.ptr);return dt.__wrap(t)}set_coin(t){j(t,dt),e.value_set_coin(this.ptr,t.ptr)}multiasset(){var t=e.value_multiasset(this.ptr);return 0===t?void 0:_r.__wrap(t)}set_multiasset(t){j(t,_r),e.value_set_multiasset(this.ptr,t.ptr)}checked_add(t){j(t,v_);var r=e.value_checked_add(this.ptr,t.ptr);return v_.__wrap(r)}checked_sub(t){j(t,v_);var r=e.value_checked_sub(this.ptr,t.ptr);return v_.__wrap(r)}clamped_sub(t){j(t,v_);var r=e.value_clamped_sub(this.ptr,t.ptr);return v_.__wrap(r)}compare(t){j(t,v_);var r=e.value_compare(this.ptr,t.ptr);return 16777215===r?void 0:r}}class f_{static __wrap(t){const r=Object.create(f_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vkey_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vkey_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.vkey_from_bytes(r,_);return f_.__wrap(a)}static new(t){j(t,Pr);var r=e.vkey_new(t.ptr);return f_.__wrap(r)}public_key(){var t=e.vkey_public_key(this.ptr);return Pr.__wrap(t)}}class m_{static __wrap(t){const r=Object.create(m_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vkeys_free(t)}static new(){var t=e.vkeys_new();return m_.__wrap(t)}len(){return e.vkeys_len(this.ptr)>>>0}get(t){var r=e.vkeys_get(this.ptr,t);return f_.__wrap(r)}add(t){j(t,f_),e.vkeys_add(this.ptr,t.ptr)}}class k_{static __wrap(t){const r=Object.create(k_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vkeywitness_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vkeywitness_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.vkeywitness_from_bytes(r,_);return k_.__wrap(a)}static new(t,r){j(t,f_),j(r,At);var _=e.vkeywitness_new(t.ptr,r.ptr);return k_.__wrap(_)}vkey(){var t=e.vkeywitness_vkey(this.ptr);return f_.__wrap(t)}signature(){var t=e.vkeywitness_signature(this.ptr);return At.__wrap(t)}}class j_{static __wrap(t){const r=Object.create(j_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vkeywitnesses_free(t)}static new(){var t=e.vkeywitnesses_new();return j_.__wrap(t)}len(){return e.vkeywitnesses_len(this.ptr)>>>0}get(t){var r=e.vkeywitnesses_get(this.ptr,t);return k_.__wrap(r)}add(t){j(t,k_),e.vkeywitnesses_add(this.ptr,t.ptr)}}class x_{static __wrap(t){const r=Object.create(x_.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_withdrawals_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.withdrawals_to_bytes(a,this.ptr);var t=v()[a/4+0],r=v()[a/4+1],_=m(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=k(t,e.__wbindgen_malloc),_=l,a=e.withdrawals_from_bytes(r,_);return x_.__wrap(a)}static new(){var t=e.withdrawals_new();return x_.__wrap(t)}len(){return e.withdrawals_len(this.ptr)>>>0}insert(t,r){j(t,Cr),j(r,dt);var _=e.withdrawals_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:dt.__wrap(_)}get(t){j(t,Cr);var r=e.withdrawals_get(this.ptr,t.ptr);return 0===r?void 0:dt.__wrap(r)}keys(){var t=e.withdrawals_keys(this.ptr);return zr.__wrap(t)}}function O_(t){i(t)}function S_(t,r){return w(d(t,r))}function P_(t,r){return w(new Function(d(t,r)))}function R_(t,r){return w(n(t).call(n(r)))}function A_(t,r){return n(t)===n(r)}function T_(t){return w(n(t).self)}function K_(t){return w(n(t).crypto)}function M_(t){return void 0===n(t)}function B_(t){return w(n(t).getRandomValues)}function C_(t,r){return w(_(66)(d(t,r)))}function z_(t,r,_){n(t).randomFillSync(m(r,_))}function D_(t,r,_){n(t).getRandomValues(m(r,_))}function N_(t,r){const _=n(r);var a="string"==typeof _?_:void 0,s=h(a)?0:y(a,e.__wbindgen_malloc,e.__wbindgen_realloc),i=l;v()[t/4+1]=i,v()[t/4+0]=s}function H_(t,r){var _=y(f(n(r)),e.__wbindgen_malloc,e.__wbindgen_realloc),a=l;v()[t/4+1]=a,v()[t/4+0]=_}function L_(t,r){throw new Error(d(t,r))}function I_(t){throw i(t)}},889:(t,r,_)=>{var e=_.w[t.id];t.exports=e,_(19),e[""]()}}]);