From f86787f4f6db3fbfe933d3a7147370ab02a1906c Mon Sep 17 00:00:00 2001 From: Piefayth Date: Wed, 3 Apr 2024 23:59:40 +0000 Subject: [PATCH] deploy: 32d1c01223d3bef43beed3c120bdca505b3b7ff2 --- .../{index-C0wpDpLW.js => index-COQoPQSW.js} | 28 +++++++++---------- assets/index-CRHpgSRd.css | 1 - assets/index-WXGqKltE.css | 1 + index.html | 4 +-- 4 files changed, 17 insertions(+), 17 deletions(-) rename assets/{index-C0wpDpLW.js => index-COQoPQSW.js} (76%) delete mode 100644 assets/index-CRHpgSRd.css create mode 100644 assets/index-WXGqKltE.css diff --git a/assets/index-C0wpDpLW.js b/assets/index-COQoPQSW.js similarity index 76% rename from assets/index-C0wpDpLW.js rename to assets/index-COQoPQSW.js index dccc8e1..4af9785 100644 --- a/assets/index-C0wpDpLW.js +++ b/assets/index-COQoPQSW.js @@ -1,12 +1,12 @@ -(async()=>{function Qv(n,t){for(var e=0;ei[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))e(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&e(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function e(i){if(i.ep)return;i.ep=!0;const a=t(i);fetch(i.href,a)}})();function Jv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var of={exports:{}},hc={},_f={exports:{}},mt={},Qo=Symbol.for("react.element"),Xv=Symbol.for("react.portal"),Gv=Symbol.for("react.fragment"),Yv=Symbol.for("react.strict_mode"),Zv=Symbol.for("react.profiler"),tk=Symbol.for("react.provider"),ek=Symbol.for("react.context"),nk=Symbol.for("react.forward_ref"),rk=Symbol.for("react.suspense"),ak=Symbol.for("react.memo"),ik=Symbol.for("react.lazy"),cf=Symbol.iterator;function sk(n){return n===null||typeof n!="object"?null:(n=cf&&n[cf]||n["@@iterator"],typeof n=="function"?n:null)}var lf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},df=Object.assign,uf={};function Xs(n,t,e){this.props=n,this.context=t,this.refs=uf,this.updater=e||lf}Xs.prototype.isReactComponent={},Xs.prototype.setState=function(n,t){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,t,"setState")},Xs.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function pf(){}pf.prototype=Xs.prototype;function ud(n,t,e){this.props=n,this.context=t,this.refs=uf,this.updater=e||lf}var pd=ud.prototype=new pf;pd.constructor=ud,df(pd,Xs.prototype),pd.isPureReactComponent=!0;var ff=Array.isArray,wf=Object.prototype.hasOwnProperty,fd={current:null},hf={key:!0,ref:!0,__self:!0,__source:!0};function gf(n,t,e){var i,a={},s=null,_=null;if(t!=null)for(i in t.ref!==void 0&&(_=t.ref),t.key!==void 0&&(s=""+t.key),t)wf.call(t,i)&&!hf.hasOwnProperty(i)&&(a[i]=t[i]);var c=arguments.length-2;if(c===1)a.children=e;else if(1>>1,B=K[z];if(0>>1;za(at,ht))Mta(Le,at)?(K[z]=Le,K[Mt]=ht,z=Mt):(K[z]=at,K[V]=ht,z=V);else if(Mta(Le,ht))K[z]=Le,K[Mt]=ht,z=Mt;else break t}}return ct}function a(K,ct){var ht=K.sortIndex-ct.sortIndex;return ht!==0?ht:K.id-ct.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var _=Date,c=_.now();n.unstable_now=function(){return _.now()-c}}var d=[],f=[],g=1,k=null,m=3,x=!1,S=!1,j=!1,P=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(K){for(var ct=e(f);ct!==null;){if(ct.callback===null)i(f);else if(ct.startTime<=K)i(f),ct.sortIndex=ct.expirationTime,t(d,ct);else break;ct=e(f)}}function F(K){if(j=!1,b(K),!S)if(e(d)!==null)S=!0,Q(D);else{var ct=e(f);ct!==null&&Ct(F,ct.startTime-K)}}function D(K,ct){S=!1,j&&(j=!1,v($),$=-1),x=!0;var ht=m;try{for(b(ct),k=e(d);k!==null&&(!(k.expirationTime>ct)||K&&!St());){var z=k.callback;if(typeof z=="function"){k.callback=null,m=k.priorityLevel;var B=z(k.expirationTime<=ct);ct=n.unstable_now(),typeof B=="function"?k.callback=B:k===e(d)&&i(d),b(ct)}else i(d);k=e(d)}if(k!==null)var Z=!0;else{var V=e(f);V!==null&&Ct(F,V.startTime-ct),Z=!1}return Z}finally{k=null,m=ht,x=!1}}var U=!1,M=null,$=-1,Y=5,W=-1;function St(){return!(n.unstable_now()-WK||125z?(K.sortIndex=ht,t(f,K),e(d)===null&&K===e(f)&&(j?(v($),$=-1):j=!0,Ct(F,ht-z))):(K.sortIndex=B,t(d,K),S||x||(S=!0,Q(D))),K},n.unstable_shouldYield=St,n.unstable_wrapCallback=function(K){var ct=m;return function(){var ht=m;m=ct;try{return K.apply(this,arguments)}finally{m=ht}}}})(xf),kf.exports=xf;var gk=kf.exports,jf=A,an=gk;function H(n){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+n,e=1;e"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bd=Object.prototype.hasOwnProperty,bk=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Cf={},Ef={};function yk(n){return bd.call(Ef,n)?!0:bd.call(Cf,n)?!1:bk.test(n)?Ef[n]=!0:(Cf[n]=!0,!1)}function mk(n,t,e,i){if(e!==null&&e.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:e!==null?!e.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function vk(n,t,e,i){if(t===null||typeof t>"u"||mk(n,t,e,i))return!0;if(i)return!1;if(e!==null)switch(e.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Pe(n,t,e,i,a,s,_){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=a,this.mustUseProperty=e,this.propertyName=n,this.type=t,this.sanitizeURL=s,this.removeEmptyString=_}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){fe[n]=new Pe(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var t=n[0];fe[t]=new Pe(t,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){fe[n]=new Pe(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){fe[n]=new Pe(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){fe[n]=new Pe(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){fe[n]=new Pe(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){fe[n]=new Pe(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){fe[n]=new Pe(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){fe[n]=new Pe(n,5,!1,n.toLowerCase(),null,!1,!1)});var yd=/[\-:]([a-z])/g;function md(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var t=n.replace(yd,md);fe[t]=new Pe(t,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var t=n.replace(yd,md);fe[t]=new Pe(t,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var t=n.replace(yd,md);fe[t]=new Pe(t,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){fe[n]=new Pe(n,1,!1,n.toLowerCase(),null,!1,!1)}),fe.xlinkHref=new Pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){fe[n]=new Pe(n,1,!1,n.toLowerCase(),null,!0,!0)});function vd(n,t,e,i){var a=fe.hasOwnProperty(t)?fe[t]:null;(a!==null?a.type!==0:i||!(2{function Qv(n,t){for(var e=0;ei[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))e(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&e(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function e(i){if(i.ep)return;i.ep=!0;const a=t(i);fetch(i.href,a)}})();function Jv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var sf={exports:{}},hc={},of={exports:{}},mt={},Qo=Symbol.for("react.element"),Xv=Symbol.for("react.portal"),Gv=Symbol.for("react.fragment"),Yv=Symbol.for("react.strict_mode"),Zv=Symbol.for("react.profiler"),tk=Symbol.for("react.provider"),ek=Symbol.for("react.context"),nk=Symbol.for("react.forward_ref"),rk=Symbol.for("react.suspense"),ak=Symbol.for("react.memo"),ik=Symbol.for("react.lazy"),_f=Symbol.iterator;function sk(n){return n===null||typeof n!="object"?null:(n=_f&&n[_f]||n["@@iterator"],typeof n=="function"?n:null)}var cf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lf=Object.assign,df={};function Xs(n,t,e){this.props=n,this.context=t,this.refs=df,this.updater=e||cf}Xs.prototype.isReactComponent={},Xs.prototype.setState=function(n,t){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,t,"setState")},Xs.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function uf(){}uf.prototype=Xs.prototype;function ud(n,t,e){this.props=n,this.context=t,this.refs=df,this.updater=e||cf}var pd=ud.prototype=new uf;pd.constructor=ud,lf(pd,Xs.prototype),pd.isPureReactComponent=!0;var pf=Array.isArray,ff=Object.prototype.hasOwnProperty,fd={current:null},wf={key:!0,ref:!0,__self:!0,__source:!0};function hf(n,t,e){var i,a={},s=null,_=null;if(t!=null)for(i in t.ref!==void 0&&(_=t.ref),t.key!==void 0&&(s=""+t.key),t)ff.call(t,i)&&!wf.hasOwnProperty(i)&&(a[i]=t[i]);var c=arguments.length-2;if(c===1)a.children=e;else if(1>>1,B=K[z];if(0>>1;za(at,ht))Dta(Le,at)?(K[z]=Le,K[Dt]=ht,z=Dt):(K[z]=at,K[V]=ht,z=V);else if(Dta(Le,ht))K[z]=Le,K[Dt]=ht,z=Dt;else break t}}return ct}function a(K,ct){var ht=K.sortIndex-ct.sortIndex;return ht!==0?ht:K.id-ct.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var _=Date,c=_.now();n.unstable_now=function(){return _.now()-c}}var d=[],f=[],g=1,k=null,m=3,x=!1,S=!1,j=!1,P=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(K){for(var ct=e(f);ct!==null;){if(ct.callback===null)i(f);else if(ct.startTime<=K)i(f),ct.sortIndex=ct.expirationTime,t(d,ct);else break;ct=e(f)}}function I(K){if(j=!1,b(K),!S)if(e(d)!==null)S=!0,Q(M);else{var ct=e(f);ct!==null&&Ct(I,ct.startTime-K)}}function M(K,ct){S=!1,j&&(j=!1,v($),$=-1),x=!0;var ht=m;try{for(b(ct),k=e(d);k!==null&&(!(k.expirationTime>ct)||K&&!St());){var z=k.callback;if(typeof z=="function"){k.callback=null,m=k.priorityLevel;var B=z(k.expirationTime<=ct);ct=n.unstable_now(),typeof B=="function"?k.callback=B:k===e(d)&&i(d),b(ct)}else i(d);k=e(d)}if(k!==null)var Z=!0;else{var V=e(f);V!==null&&Ct(I,V.startTime-ct),Z=!1}return Z}finally{k=null,m=ht,x=!1}}var U=!1,D=null,$=-1,Y=5,W=-1;function St(){return!(n.unstable_now()-WK||125z?(K.sortIndex=ht,t(f,K),e(d)===null&&K===e(f)&&(j?(v($),$=-1):j=!0,Ct(I,ht-z))):(K.sortIndex=B,t(d,K),S||x||(S=!0,Q(M))),K},n.unstable_shouldYield=St,n.unstable_wrapCallback=function(K){var ct=m;return function(){var ht=m;m=ct;try{return K.apply(this,arguments)}finally{m=ht}}}})(kf),vf.exports=kf;var gk=vf.exports,xf=A,an=gk;function H(n){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+n,e=1;e"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bd=Object.prototype.hasOwnProperty,bk=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Sf={},Cf={};function yk(n){return bd.call(Cf,n)?!0:bd.call(Sf,n)?!1:bk.test(n)?Cf[n]=!0:(Sf[n]=!0,!1)}function mk(n,t,e,i){if(e!==null&&e.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:e!==null?!e.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function vk(n,t,e,i){if(t===null||typeof t>"u"||mk(n,t,e,i))return!0;if(i)return!1;if(e!==null)switch(e.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Pe(n,t,e,i,a,s,_){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=a,this.mustUseProperty=e,this.propertyName=n,this.type=t,this.sanitizeURL=s,this.removeEmptyString=_}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){fe[n]=new Pe(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var t=n[0];fe[t]=new Pe(t,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){fe[n]=new Pe(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){fe[n]=new Pe(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){fe[n]=new Pe(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){fe[n]=new Pe(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){fe[n]=new Pe(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){fe[n]=new Pe(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){fe[n]=new Pe(n,5,!1,n.toLowerCase(),null,!1,!1)});var yd=/[\-:]([a-z])/g;function md(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var t=n.replace(yd,md);fe[t]=new Pe(t,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var t=n.replace(yd,md);fe[t]=new Pe(t,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var t=n.replace(yd,md);fe[t]=new Pe(t,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){fe[n]=new Pe(n,1,!1,n.toLowerCase(),null,!1,!1)}),fe.xlinkHref=new Pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){fe[n]=new Pe(n,1,!1,n.toLowerCase(),null,!0,!0)});function vd(n,t,e,i){var a=fe.hasOwnProperty(t)?fe[t]:null;(a!==null?a.type!==0:i||!(2c||a[_]!==s[c]){var d=` -`+a[_].replace(" at new "," at ");return n.displayName&&d.includes("")&&(d=d.replace("",n.displayName)),d}while(1<=_&&0<=c);break}}}finally{Nd=!1,Error.prepareStackTrace=e}return(n=n?n.displayName||n.name:"")?Go(n):""}function kk(n){switch(n.tag){case 5:return Go(n.type);case 16:return Go("Lazy");case 13:return Go("Suspense");case 19:return Go("SuspenseList");case 0:case 2:case 15:return n=Rd(n.type,!1),n;case 11:return n=Rd(n.type.render,!1),n;case 1:return n=Rd(n.type,!0),n;default:return""}}function Pd(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Zs:return"Fragment";case Ys:return"Portal";case xd:return"Profiler";case kd:return"StrictMode";case Sd:return"Suspense";case Cd:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case Nf:return(n.displayName||"Context")+".Consumer";case Of:return(n._context.displayName||"Context")+".Provider";case jd:var t=n.render;return n=n.displayName,n||(n=t.displayName||t.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Ed:return t=n.displayName||null,t!==null?t:Pd(n.type)||"Memo";case di:t=n._payload,n=n._init;try{return Pd(n(t))}catch{}}return null}function xk(n){var t=n.type;switch(n.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=t.render,n=n.displayName||n.name||"",t.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pd(t);case 8:return t===kd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ui(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function If(n){var t=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jk(n){var t=If(n)?"checked":"value",e=Object.getOwnPropertyDescriptor(n.constructor.prototype,t),i=""+n[t];if(!n.hasOwnProperty(t)&&typeof e<"u"&&typeof e.get=="function"&&typeof e.set=="function"){var a=e.get,s=e.set;return Object.defineProperty(n,t,{configurable:!0,get:function(){return a.call(this)},set:function(_){i=""+_,s.call(this,_)}}),Object.defineProperty(n,t,{enumerable:e.enumerable}),{getValue:function(){return i},setValue:function(_){i=""+_},stopTracking:function(){n._valueTracker=null,delete n[t]}}}}function vc(n){n._valueTracker||(n._valueTracker=jk(n))}function Tf(n){if(!n)return!1;var t=n._valueTracker;if(!t)return!0;var e=t.getValue(),i="";return n&&(i=If(n)?n.checked?"true":"false":n.value),n=i,n!==e?(t.setValue(n),!0):!1}function kc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Id(n,t){var e=t.checked;return Bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:e??n._wrapperState.initialChecked})}function Ff(n,t){var e=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;e=ui(t.value!=null?t.value:e),n._wrapperState={initialChecked:i,initialValue:e,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zf(n,t){t=t.checked,t!=null&&vd(n,"checked",t,!1)}function Td(n,t){zf(n,t);var e=ui(t.value),i=t.type;if(e!=null)i==="number"?(e===0&&n.value===""||n.value!=e)&&(n.value=""+e):n.value!==""+e&&(n.value=""+e);else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Fd(n,t.type,e):t.hasOwnProperty("defaultValue")&&Fd(n,t.type,ui(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function Mf(n,t,e){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+n._wrapperState.initialValue,e||t===n.value||(n.value=t),n.defaultValue=t}e=n.name,e!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,e!==""&&(n.name=e)}function Fd(n,t,e){(t!=="number"||kc(n.ownerDocument)!==n)&&(e==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+e&&(n.defaultValue=""+e))}var Yo=Array.isArray;function to(n,t,e,i){if(n=n.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=xc.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;t.firstChild;)n.appendChild(t.firstChild)}});function Zo(n,t){if(t){var e=n.firstChild;if(e&&e===n.lastChild&&e.nodeType===3){e.nodeValue=t;return}}n.textContent=t}var t_={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sk=["Webkit","ms","Moz","O"];Object.keys(t_).forEach(function(n){Sk.forEach(function(t){t=t+n.charAt(0).toUpperCase()+n.substring(1),t_[t]=t_[n]})});function $f(n,t,e){return t==null||typeof t=="boolean"||t===""?"":e||typeof t!="number"||t===0||t_.hasOwnProperty(n)&&t_[n]?(""+t).trim():t+"px"}function Hf(n,t){n=n.style;for(var e in t)if(t.hasOwnProperty(e)){var i=e.indexOf("--")===0,a=$f(e,t[e],i);e==="float"&&(e="cssFloat"),i?n.setProperty(e,a):n[e]=a}}var Ck=Bt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Dd(n,t){if(t){if(Ck[n]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,n));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function Ad(n,t){if(n.indexOf("-")===-1)return typeof t.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Bd=null;function Ud(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ld=null,eo=null,no=null;function Wf(n){if(n=k_(n)){if(typeof Ld!="function")throw Error(H(280));var t=n.stateNode;t&&(t=Kc(t),Ld(n.stateNode,n.type,t))}}function Vf(n){eo?no?no.push(n):no=[n]:eo=n}function Kf(){if(eo){var n=eo,t=no;if(no=eo=null,Wf(n),t)for(n=0;n>>=0,n===0?32:31-(Dk(n)/Ak|0)|0}var Oc=64,Nc=4194304;function a_(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Rc(n,t){var e=n.pendingLanes;if(e===0)return 0;var i=0,a=n.suspendedLanes,s=n.pingedLanes,_=e&268435455;if(_!==0){var c=_&~a;c!==0?i=a_(c):(s&=_,s!==0&&(i=a_(s)))}else _=e&~a,_!==0?i=a_(_):s!==0&&(i=a_(s));if(i===0)return 0;if(t!==0&&t!==i&&!(t&a)&&(a=i&-i,s=t&-t,a>=s||a===16&&(s&4194240)!==0))return t;if(i&4&&(i|=e&16),t=n.entangledLanes,t!==0)for(n=n.entanglements,t&=i;0e;e++)t.push(n);return t}function i_(n,t,e){n.pendingLanes|=t,t!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,t=31-Vn(t),n[t]=e}function $k(n,t){var e=n.pendingLanes&~t;n.pendingLanes=t,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=t,n.mutableReadLanes&=t,n.entangledLanes&=t,t=n.entanglements;var i=n.eventTimes;for(n=n.expirationTimes;0=p_),mw=" ",vw=!1;function kw(n,t){switch(n){case"keyup":return h4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xw(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var io=!1;function b4(n,t){switch(n){case"compositionend":return xw(t);case"keypress":return t.which!==32?null:(vw=!0,mw);case"textInput":return n=t.data,n===mw&&vw?null:n;default:return null}}function y4(n,t){if(io)return n==="compositionend"||!iu&&kw(n,t)?(n=fw(),zc=Zd=gi=null,io=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:e,offset:t-n};n=i}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=Rw(e)}}function Iw(n,t){return n&&t?n===t?!0:n&&n.nodeType===3?!1:t&&t.nodeType===3?Iw(n,t.parentNode):"contains"in n?n.contains(t):n.compareDocumentPosition?!!(n.compareDocumentPosition(t)&16):!1:!1}function Tw(){for(var n=window,t=kc();t instanceof n.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)n=t.contentWindow;else break;t=kc(n.document)}return t}function _u(n){var t=n&&n.nodeName&&n.nodeName.toLowerCase();return t&&(t==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||t==="textarea"||n.contentEditable==="true")}function O4(n){var t=Tw(),e=n.focusedElem,i=n.selectionRange;if(t!==e&&e&&e.ownerDocument&&Iw(e.ownerDocument.documentElement,e)){if(i!==null&&_u(e)){if(t=i.start,n=i.end,n===void 0&&(n=t),"selectionStart"in e)e.selectionStart=t,e.selectionEnd=Math.min(n,e.value.length);else if(n=(t=e.ownerDocument||document)&&t.defaultView||window,n.getSelection){n=n.getSelection();var a=e.textContent.length,s=Math.min(i.start,a);i=i.end===void 0?s:Math.min(i.end,a),!n.extend&&s>i&&(a=i,i=s,s=a),a=Pw(e,s);var _=Pw(e,i);a&&_&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==_.node||n.focusOffset!==_.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),n.removeAllRanges(),s>i?(n.addRange(t),n.extend(_.node,_.offset)):(t.setEnd(_.node,_.offset),n.addRange(t)))}}for(t=[],n=e;n=n.parentNode;)n.nodeType===1&&t.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof e.focus=="function"&&e.focus(),e=0;e=document.documentMode,so=null,cu=null,g_=null,lu=!1;function Fw(n,t,e){var i=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;lu||so==null||so!==kc(i)||(i=so,"selectionStart"in i&&_u(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),g_&&h_(g_,i)||(g_=i,i=Hc(cu,"onSelect"),0uo||(n.current=ku[uo],ku[uo]=null,uo--)}function Pt(n,t){uo++,ku[uo]=n.current,n.current=t}var vi={},ve=mi(vi),$e=mi(!1),ws=vi;function po(n,t){var e=n.type.contextTypes;if(!e)return vi;var i=n.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var a={},s;for(s in e)a[s]=t[s];return i&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=t,n.__reactInternalMemoizedMaskedChildContext=a),a}function He(n){return n=n.childContextTypes,n!=null}function qc(){Ft($e),Ft(ve)}function Jw(n,t,e){if(ve.current!==vi)throw Error(H(168));Pt(ve,t),Pt($e,e)}function Xw(n,t,e){var i=n.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return e;i=i.getChildContext();for(var a in i)if(!(a in t))throw Error(H(108,xk(n)||"Unknown",a));return Bt({},e,i)}function Qc(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||vi,ws=ve.current,Pt(ve,n),Pt($e,$e.current),!0}function Gw(n,t,e){var i=n.stateNode;if(!i)throw Error(H(169));e?(n=Xw(n,t,ws),i.__reactInternalMemoizedMergedChildContext=n,Ft($e),Ft(ve),Pt(ve,n)):Ft($e),Pt($e,e)}var aa=null,Jc=!1,xu=!1;function Yw(n){aa===null?aa=[n]:aa.push(n)}function U4(n){Jc=!0,Yw(n)}function ki(){if(!xu&&aa!==null){xu=!0;var n=0,t=Et;try{var e=aa;for(Et=1;n>=_,a-=_,ia=1<<32-Vn(t)+a|e<$?(Y=M,M=null):Y=M.sibling;var W=m(v,M,b[$],F);if(W===null){M===null&&(M=Y);break}n&&M&&W.alternate===null&&t(v,M),y=s(W,y,$),U===null?D=W:U.sibling=W,U=W,M=Y}if($===b.length)return e(v,M),Dt&&gs(v,$),D;if(M===null){for(;$$?(Y=M,M=null):Y=M.sibling;var St=m(v,M,W.value,F);if(St===null){M===null&&(M=Y);break}n&&M&&St.alternate===null&&t(v,M),y=s(St,y,$),U===null?D=St:U.sibling=St,U=St,M=Y}if(W.done)return e(v,M),Dt&&gs(v,$),D;if(M===null){for(;!W.done;$++,W=b.next())W=k(v,W.value,F),W!==null&&(y=s(W,y,$),U===null?D=W:U.sibling=W,U=W);return Dt&&gs(v,$),D}for(M=i(v,M);!W.done;$++,W=b.next())W=x(M,v,$,W.value,F),W!==null&&(n&&W.alternate!==null&&M.delete(W.key===null?$:W.key),y=s(W,y,$),U===null?D=W:U.sibling=W,U=W);return n&&M.forEach(function(Qt){return t(v,Qt)}),Dt&&gs(v,$),D}function P(v,y,b,F){if(typeof b=="object"&&b!==null&&b.type===Zs&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case mc:t:{for(var D=b.key,U=y;U!==null;){if(U.key===D){if(D=b.type,D===Zs){if(U.tag===7){e(v,U.sibling),y=a(U,b.props.children),y.return=v,v=y;break t}}else if(U.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===di&&uh(D)===U.type){e(v,U.sibling),y=a(U,b.props),y.ref=x_(v,U,b),y.return=v,v=y;break t}e(v,U);break}else t(v,U);U=U.sibling}b.type===Zs?(y=Ss(b.props.children,v.mode,F,b.key),y.return=v,v=y):(F=xl(b.type,b.key,b.props,null,v.mode,F),F.ref=x_(v,y,b),F.return=v,v=F)}return _(v);case Ys:t:{for(U=b.key;y!==null;){if(y.key===U)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){e(v,y.sibling),y=a(y,b.children||[]),y.return=v,v=y;break t}else{e(v,y);break}else t(v,y);y=y.sibling}y=yp(b,v.mode,F),y.return=v,v=y}return _(v);case di:return U=b._init,P(v,y,U(b._payload),F)}if(Yo(b))return S(v,y,b,F);if(Xo(b))return j(v,y,b,F);al(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(e(v,y.sibling),y=a(y,b),y.return=v,v=y):(e(v,y),y=bp(b,v.mode,F),y.return=v,v=y),_(v)):e(v,y)}return P}var yo=ph(!0),fh=ph(!1),j_={},gr=mi(j_),S_=mi(j_),C_=mi(j_);function ys(n){if(n===j_)throw Error(H(174));return n}function Du(n,t){switch(Pt(C_,t),Pt(S_,n),Pt(gr,j_),n=t.nodeType,n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Md(null,"");break;default:n=n===8?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=Md(t,n)}Ft(gr),Pt(gr,t)}function mo(){Ft(gr),Ft(S_),Ft(C_)}function wh(n){ys(C_.current);var t=ys(gr.current),e=Md(t,n.type);t!==e&&(Pt(S_,n),Pt(gr,e))}function Au(n){S_.current===n&&(Ft(gr),Ft(S_))}var Ut=mi(0);function il(n){for(var t=n;t!==null;){if(t.tag===13){var e=t.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||e.data==="$?"||e.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bu=[];function Uu(){for(var n=0;ne?e:4,n(!0);var i=Lu.transition;Lu.transition={};try{n(!1),t()}finally{Et=e,Lu.transition=i}}function Th(){return Pn().memoizedState}function W4(n,t,e){var i=Oi(n);if(e={lane:i,action:e,hasEagerState:!1,eagerState:null,next:null},Fh(n))zh(t,e);else if(e=ah(n,t,e,i),e!==null){var a=Te();Gn(e,n,i,a),Mh(e,t,i)}}function V4(n,t,e){var i=Oi(n),a={lane:i,action:e,hasEagerState:!1,eagerState:null,next:null};if(Fh(n))zh(t,a);else{var s=n.alternate;if(n.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var _=t.lastRenderedState,c=s(_,e);if(a.hasEagerState=!0,a.eagerState=c,Kn(c,_)){var d=t.interleaved;d===null?(a.next=a,Tu(t)):(a.next=d.next,d.next=a),t.interleaved=a;return}}catch{}finally{}e=ah(n,t,a,i),e!==null&&(a=Te(),Gn(e,n,i,a),Mh(e,t,i))}}function Fh(n){var t=n.alternate;return n===Lt||t!==null&&t===Lt}function zh(n,t){E_=ol=!0;var e=n.pending;e===null?t.next=t:(t.next=e.next,e.next=t),n.pending=t}function Mh(n,t,e){if(e&4194240){var i=t.lanes;i&=n.pendingLanes,e|=i,t.lanes=e,Qd(n,e)}}var ll={readContext:Rn,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},K4={readContext:Rn,useCallback:function(n,t){return br().memoizedState=[n,t===void 0?null:t],n},useContext:Rn,useEffect:Sh,useImperativeHandle:function(n,t,e){return e=e!=null?e.concat([n]):null,_l(4194308,4,Oh.bind(null,t,n),e)},useLayoutEffect:function(n,t){return _l(4194308,4,n,t)},useInsertionEffect:function(n,t){return _l(4,2,n,t)},useMemo:function(n,t){var e=br();return t=t===void 0?null:t,n=n(),e.memoizedState=[n,t],n},useReducer:function(n,t,e){var i=br();return t=e!==void 0?e(t):t,i.memoizedState=i.baseState=t,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:t},i.queue=n,n=n.dispatch=W4.bind(null,Lt,n),[i.memoizedState,n]},useRef:function(n){var t=br();return n={current:n},t.memoizedState=n},useState:xh,useDebugValue:Qu,useDeferredValue:function(n){return br().memoizedState=n},useTransition:function(){var n=xh(!1),t=n[0];return n=H4.bind(null,n[1]),br().memoizedState=n,[t,n]},useMutableSource:function(){},useSyncExternalStore:function(n,t,e){var i=Lt,a=br();if(Dt){if(e===void 0)throw Error(H(407));e=e()}else{if(e=t(),ae===null)throw Error(H(349));ms&30||bh(i,t,e)}a.memoizedState=e;var s={value:e,getSnapshot:t};return a.queue=s,Sh(mh.bind(null,i,s,n),[n]),i.flags|=2048,R_(9,yh.bind(null,i,s,e,t),void 0,null),e},useId:function(){var n=br(),t=ae.identifierPrefix;if(Dt){var e=sa,i=ia;e=(i&~(1<<32-Vn(i)-1)).toString(32)+e,t=":"+t+"R"+e,e=O_++,0")&&(d=d.replace("",n.displayName)),d}while(1<=_&&0<=c);break}}}finally{Nd=!1,Error.prepareStackTrace=e}return(n=n?n.displayName||n.name:"")?Go(n):""}function kk(n){switch(n.tag){case 5:return Go(n.type);case 16:return Go("Lazy");case 13:return Go("Suspense");case 19:return Go("SuspenseList");case 0:case 2:case 15:return n=Rd(n.type,!1),n;case 11:return n=Rd(n.type.render,!1),n;case 1:return n=Rd(n.type,!0),n;default:return""}}function Pd(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Zs:return"Fragment";case Ys:return"Portal";case xd:return"Profiler";case kd:return"StrictMode";case Sd:return"Suspense";case Cd:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case Of:return(n.displayName||"Context")+".Consumer";case Ef:return(n._context.displayName||"Context")+".Provider";case jd:var t=n.render;return n=n.displayName,n||(n=t.displayName||t.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Ed:return t=n.displayName||null,t!==null?t:Pd(n.type)||"Memo";case di:t=n._payload,n=n._init;try{return Pd(n(t))}catch{}}return null}function xk(n){var t=n.type;switch(n.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=t.render,n=n.displayName||n.name||"",t.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pd(t);case 8:return t===kd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ui(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Pf(n){var t=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jk(n){var t=Pf(n)?"checked":"value",e=Object.getOwnPropertyDescriptor(n.constructor.prototype,t),i=""+n[t];if(!n.hasOwnProperty(t)&&typeof e<"u"&&typeof e.get=="function"&&typeof e.set=="function"){var a=e.get,s=e.set;return Object.defineProperty(n,t,{configurable:!0,get:function(){return a.call(this)},set:function(_){i=""+_,s.call(this,_)}}),Object.defineProperty(n,t,{enumerable:e.enumerable}),{getValue:function(){return i},setValue:function(_){i=""+_},stopTracking:function(){n._valueTracker=null,delete n[t]}}}}function vc(n){n._valueTracker||(n._valueTracker=jk(n))}function If(n){if(!n)return!1;var t=n._valueTracker;if(!t)return!0;var e=t.getValue(),i="";return n&&(i=Pf(n)?n.checked?"true":"false":n.value),n=i,n!==e?(t.setValue(n),!0):!1}function kc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Id(n,t){var e=t.checked;return Bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:e??n._wrapperState.initialChecked})}function Tf(n,t){var e=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;e=ui(t.value!=null?t.value:e),n._wrapperState={initialChecked:i,initialValue:e,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ff(n,t){t=t.checked,t!=null&&vd(n,"checked",t,!1)}function Td(n,t){Ff(n,t);var e=ui(t.value),i=t.type;if(e!=null)i==="number"?(e===0&&n.value===""||n.value!=e)&&(n.value=""+e):n.value!==""+e&&(n.value=""+e);else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Fd(n,t.type,e):t.hasOwnProperty("defaultValue")&&Fd(n,t.type,ui(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function zf(n,t,e){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+n._wrapperState.initialValue,e||t===n.value||(n.value=t),n.defaultValue=t}e=n.name,e!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,e!==""&&(n.name=e)}function Fd(n,t,e){(t!=="number"||kc(n.ownerDocument)!==n)&&(e==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+e&&(n.defaultValue=""+e))}var Yo=Array.isArray;function to(n,t,e,i){if(n=n.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=xc.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;t.firstChild;)n.appendChild(t.firstChild)}});function Zo(n,t){if(t){var e=n.firstChild;if(e&&e===n.lastChild&&e.nodeType===3){e.nodeValue=t;return}}n.textContent=t}var t_={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sk=["Webkit","ms","Moz","O"];Object.keys(t_).forEach(function(n){Sk.forEach(function(t){t=t+n.charAt(0).toUpperCase()+n.substring(1),t_[t]=t_[n]})});function Lf(n,t,e){return t==null||typeof t=="boolean"||t===""?"":e||typeof t!="number"||t===0||t_.hasOwnProperty(n)&&t_[n]?(""+t).trim():t+"px"}function $f(n,t){n=n.style;for(var e in t)if(t.hasOwnProperty(e)){var i=e.indexOf("--")===0,a=Lf(e,t[e],i);e==="float"&&(e="cssFloat"),i?n.setProperty(e,a):n[e]=a}}var Ck=Bt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Md(n,t){if(t){if(Ck[n]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,n));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function Ad(n,t){if(n.indexOf("-")===-1)return typeof t.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Bd=null;function Ud(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ld=null,eo=null,no=null;function Hf(n){if(n=k_(n)){if(typeof Ld!="function")throw Error(H(280));var t=n.stateNode;t&&(t=Kc(t),Ld(n.stateNode,n.type,t))}}function Wf(n){eo?no?no.push(n):no=[n]:eo=n}function Vf(){if(eo){var n=eo,t=no;if(no=eo=null,Hf(n),t)for(n=0;n>>=0,n===0?32:31-(Mk(n)/Ak|0)|0}var Oc=64,Nc=4194304;function a_(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Rc(n,t){var e=n.pendingLanes;if(e===0)return 0;var i=0,a=n.suspendedLanes,s=n.pingedLanes,_=e&268435455;if(_!==0){var c=_&~a;c!==0?i=a_(c):(s&=_,s!==0&&(i=a_(s)))}else _=e&~a,_!==0?i=a_(_):s!==0&&(i=a_(s));if(i===0)return 0;if(t!==0&&t!==i&&!(t&a)&&(a=i&-i,s=t&-t,a>=s||a===16&&(s&4194240)!==0))return t;if(i&4&&(i|=e&16),t=n.entangledLanes,t!==0)for(n=n.entanglements,t&=i;0e;e++)t.push(n);return t}function i_(n,t,e){n.pendingLanes|=t,t!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,t=31-Vn(t),n[t]=e}function $k(n,t){var e=n.pendingLanes&~t;n.pendingLanes=t,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=t,n.mutableReadLanes&=t,n.entangledLanes&=t,t=n.entanglements;var i=n.eventTimes;for(n=n.expirationTimes;0=p_),yw=" ",mw=!1;function vw(n,t){switch(n){case"keyup":return h4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kw(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var io=!1;function b4(n,t){switch(n){case"compositionend":return kw(t);case"keypress":return t.which!==32?null:(mw=!0,yw);case"textInput":return n=t.data,n===yw&&mw?null:n;default:return null}}function y4(n,t){if(io)return n==="compositionend"||!iu&&vw(n,t)?(n=pw(),zc=Zd=gi=null,io=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:e,offset:t-n};n=i}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=Nw(e)}}function Pw(n,t){return n&&t?n===t?!0:n&&n.nodeType===3?!1:t&&t.nodeType===3?Pw(n,t.parentNode):"contains"in n?n.contains(t):n.compareDocumentPosition?!!(n.compareDocumentPosition(t)&16):!1:!1}function Iw(){for(var n=window,t=kc();t instanceof n.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)n=t.contentWindow;else break;t=kc(n.document)}return t}function _u(n){var t=n&&n.nodeName&&n.nodeName.toLowerCase();return t&&(t==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||t==="textarea"||n.contentEditable==="true")}function O4(n){var t=Iw(),e=n.focusedElem,i=n.selectionRange;if(t!==e&&e&&e.ownerDocument&&Pw(e.ownerDocument.documentElement,e)){if(i!==null&&_u(e)){if(t=i.start,n=i.end,n===void 0&&(n=t),"selectionStart"in e)e.selectionStart=t,e.selectionEnd=Math.min(n,e.value.length);else if(n=(t=e.ownerDocument||document)&&t.defaultView||window,n.getSelection){n=n.getSelection();var a=e.textContent.length,s=Math.min(i.start,a);i=i.end===void 0?s:Math.min(i.end,a),!n.extend&&s>i&&(a=i,i=s,s=a),a=Rw(e,s);var _=Rw(e,i);a&&_&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==_.node||n.focusOffset!==_.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),n.removeAllRanges(),s>i?(n.addRange(t),n.extend(_.node,_.offset)):(t.setEnd(_.node,_.offset),n.addRange(t)))}}for(t=[],n=e;n=n.parentNode;)n.nodeType===1&&t.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof e.focus=="function"&&e.focus(),e=0;e=document.documentMode,so=null,cu=null,g_=null,lu=!1;function Tw(n,t,e){var i=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;lu||so==null||so!==kc(i)||(i=so,"selectionStart"in i&&_u(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),g_&&h_(g_,i)||(g_=i,i=Hc(cu,"onSelect"),0uo||(n.current=ku[uo],ku[uo]=null,uo--)}function Pt(n,t){uo++,ku[uo]=n.current,n.current=t}var vi={},ve=mi(vi),$e=mi(!1),ws=vi;function po(n,t){var e=n.type.contextTypes;if(!e)return vi;var i=n.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var a={},s;for(s in e)a[s]=t[s];return i&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=t,n.__reactInternalMemoizedMaskedChildContext=a),a}function He(n){return n=n.childContextTypes,n!=null}function qc(){Ft($e),Ft(ve)}function Qw(n,t,e){if(ve.current!==vi)throw Error(H(168));Pt(ve,t),Pt($e,e)}function Jw(n,t,e){var i=n.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return e;i=i.getChildContext();for(var a in i)if(!(a in t))throw Error(H(108,xk(n)||"Unknown",a));return Bt({},e,i)}function Qc(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||vi,ws=ve.current,Pt(ve,n),Pt($e,$e.current),!0}function Xw(n,t,e){var i=n.stateNode;if(!i)throw Error(H(169));e?(n=Jw(n,t,ws),i.__reactInternalMemoizedMergedChildContext=n,Ft($e),Ft(ve),Pt(ve,n)):Ft($e),Pt($e,e)}var aa=null,Jc=!1,xu=!1;function Gw(n){aa===null?aa=[n]:aa.push(n)}function U4(n){Jc=!0,Gw(n)}function ki(){if(!xu&&aa!==null){xu=!0;var n=0,t=Et;try{var e=aa;for(Et=1;n>=_,a-=_,ia=1<<32-Vn(t)+a|e<$?(Y=D,D=null):Y=D.sibling;var W=m(v,D,b[$],I);if(W===null){D===null&&(D=Y);break}n&&D&&W.alternate===null&&t(v,D),y=s(W,y,$),U===null?M=W:U.sibling=W,U=W,D=Y}if($===b.length)return e(v,D),Mt&&gs(v,$),M;if(D===null){for(;$$?(Y=D,D=null):Y=D.sibling;var St=m(v,D,W.value,I);if(St===null){D===null&&(D=Y);break}n&&D&&St.alternate===null&&t(v,D),y=s(St,y,$),U===null?M=St:U.sibling=St,U=St,D=Y}if(W.done)return e(v,D),Mt&&gs(v,$),M;if(D===null){for(;!W.done;$++,W=b.next())W=k(v,W.value,I),W!==null&&(y=s(W,y,$),U===null?M=W:U.sibling=W,U=W);return Mt&&gs(v,$),M}for(D=i(v,D);!W.done;$++,W=b.next())W=x(D,v,$,W.value,I),W!==null&&(n&&W.alternate!==null&&D.delete(W.key===null?$:W.key),y=s(W,y,$),U===null?M=W:U.sibling=W,U=W);return n&&D.forEach(function(Qt){return t(v,Qt)}),Mt&&gs(v,$),M}function P(v,y,b,I){if(typeof b=="object"&&b!==null&&b.type===Zs&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case mc:t:{for(var M=b.key,U=y;U!==null;){if(U.key===M){if(M=b.type,M===Zs){if(U.tag===7){e(v,U.sibling),y=a(U,b.props.children),y.return=v,v=y;break t}}else if(U.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===di&&dh(M)===U.type){e(v,U.sibling),y=a(U,b.props),y.ref=x_(v,U,b),y.return=v,v=y;break t}e(v,U);break}else t(v,U);U=U.sibling}b.type===Zs?(y=Ss(b.props.children,v.mode,I,b.key),y.return=v,v=y):(I=xl(b.type,b.key,b.props,null,v.mode,I),I.ref=x_(v,y,b),I.return=v,v=I)}return _(v);case Ys:t:{for(U=b.key;y!==null;){if(y.key===U)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){e(v,y.sibling),y=a(y,b.children||[]),y.return=v,v=y;break t}else{e(v,y);break}else t(v,y);y=y.sibling}y=yp(b,v.mode,I),y.return=v,v=y}return _(v);case di:return U=b._init,P(v,y,U(b._payload),I)}if(Yo(b))return S(v,y,b,I);if(Xo(b))return j(v,y,b,I);al(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(e(v,y.sibling),y=a(y,b),y.return=v,v=y):(e(v,y),y=bp(b,v.mode,I),y.return=v,v=y),_(v)):e(v,y)}return P}var yo=uh(!0),ph=uh(!1),j_={},gr=mi(j_),S_=mi(j_),C_=mi(j_);function ys(n){if(n===j_)throw Error(H(174));return n}function Mu(n,t){switch(Pt(C_,t),Pt(S_,n),Pt(gr,j_),n=t.nodeType,n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Dd(null,"");break;default:n=n===8?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=Dd(t,n)}Ft(gr),Pt(gr,t)}function mo(){Ft(gr),Ft(S_),Ft(C_)}function fh(n){ys(C_.current);var t=ys(gr.current),e=Dd(t,n.type);t!==e&&(Pt(S_,n),Pt(gr,e))}function Au(n){S_.current===n&&(Ft(gr),Ft(S_))}var Ut=mi(0);function il(n){for(var t=n;t!==null;){if(t.tag===13){var e=t.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||e.data==="$?"||e.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bu=[];function Uu(){for(var n=0;ne?e:4,n(!0);var i=Lu.transition;Lu.transition={};try{n(!1),t()}finally{Et=e,Lu.transition=i}}function Ih(){return Pn().memoizedState}function W4(n,t,e){var i=Oi(n);if(e={lane:i,action:e,hasEagerState:!1,eagerState:null,next:null},Th(n))Fh(t,e);else if(e=rh(n,t,e,i),e!==null){var a=Te();Gn(e,n,i,a),zh(e,t,i)}}function V4(n,t,e){var i=Oi(n),a={lane:i,action:e,hasEagerState:!1,eagerState:null,next:null};if(Th(n))Fh(t,a);else{var s=n.alternate;if(n.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var _=t.lastRenderedState,c=s(_,e);if(a.hasEagerState=!0,a.eagerState=c,Kn(c,_)){var d=t.interleaved;d===null?(a.next=a,Tu(t)):(a.next=d.next,d.next=a),t.interleaved=a;return}}catch{}finally{}e=rh(n,t,a,i),e!==null&&(a=Te(),Gn(e,n,i,a),zh(e,t,i))}}function Th(n){var t=n.alternate;return n===Lt||t!==null&&t===Lt}function Fh(n,t){E_=ol=!0;var e=n.pending;e===null?t.next=t:(t.next=e.next,e.next=t),n.pending=t}function zh(n,t,e){if(e&4194240){var i=t.lanes;i&=n.pendingLanes,e|=i,t.lanes=e,Qd(n,e)}}var ll={readContext:Rn,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},K4={readContext:Rn,useCallback:function(n,t){return br().memoizedState=[n,t===void 0?null:t],n},useContext:Rn,useEffect:jh,useImperativeHandle:function(n,t,e){return e=e!=null?e.concat([n]):null,_l(4194308,4,Eh.bind(null,t,n),e)},useLayoutEffect:function(n,t){return _l(4194308,4,n,t)},useInsertionEffect:function(n,t){return _l(4,2,n,t)},useMemo:function(n,t){var e=br();return t=t===void 0?null:t,n=n(),e.memoizedState=[n,t],n},useReducer:function(n,t,e){var i=br();return t=e!==void 0?e(t):t,i.memoizedState=i.baseState=t,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:t},i.queue=n,n=n.dispatch=W4.bind(null,Lt,n),[i.memoizedState,n]},useRef:function(n){var t=br();return n={current:n},t.memoizedState=n},useState:kh,useDebugValue:Qu,useDeferredValue:function(n){return br().memoizedState=n},useTransition:function(){var n=kh(!1),t=n[0];return n=H4.bind(null,n[1]),br().memoizedState=n,[t,n]},useMutableSource:function(){},useSyncExternalStore:function(n,t,e){var i=Lt,a=br();if(Mt){if(e===void 0)throw Error(H(407));e=e()}else{if(e=t(),ae===null)throw Error(H(349));ms&30||gh(i,t,e)}a.memoizedState=e;var s={value:e,getSnapshot:t};return a.queue=s,jh(yh.bind(null,i,s,n),[n]),i.flags|=2048,R_(9,bh.bind(null,i,s,e,t),void 0,null),e},useId:function(){var n=br(),t=ae.identifierPrefix;if(Mt){var e=sa,i=ia;e=(i&~(1<<32-Vn(i)-1)).toString(32)+e,t=":"+t+"R"+e,e=O_++,0<\/script>",n=n.removeChild(n.firstChild)):typeof i.is=="string"?n=_.createElement(e,{is:i.is}):(n=_.createElement(e),e==="select"&&(_=n,i.multiple?_.multiple=!0:i.size&&(_.size=i.size))):n=_.createElementNS(n,e),n[hr]=t,n[v_]=i,Zh(n,t,!1,!1),t.stateNode=n;t:{switch(_=Ad(e,i),e){case"dialog":Tt("cancel",n),Tt("close",n),a=i;break;case"iframe":case"object":case"embed":Tt("load",n),a=i;break;case"video":case"audio":for(a=0;ajo&&(t.flags|=128,i=!0,P_(s,!1),t.lanes=4194304)}else{if(!i)if(n=il(_),n!==null){if(t.flags|=128,i=!0,e=n.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),P_(s,!0),s.tail===null&&s.tailMode==="hidden"&&!_.alternate&&!Dt)return xe(t),null}else 2*Vt()-s.renderingStartTime>jo&&e!==1073741824&&(t.flags|=128,i=!0,P_(s,!1),t.lanes=4194304);s.isBackwards?(_.sibling=t.child,t.child=_):(e=s.last,e!==null?e.sibling=_:t.child=_,s.last=_)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Vt(),t.sibling=null,e=Ut.current,Pt(Ut,i?e&1|2:e&1),t):(xe(t),null);case 22:case 23:return wp(),i=t.memoizedState!==null,n!==null&&n.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?cn&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function t6(n,t){switch(Su(t),t.tag){case 1:return He(t.type)&&qc(),n=t.flags,n&65536?(t.flags=n&-65537|128,t):null;case 3:return mo(),Ft($e),Ft(ve),Uu(),n=t.flags,n&65536&&!(n&128)?(t.flags=n&-65537|128,t):null;case 5:return Au(t),null;case 13:if(Ft(Ut),n=t.memoizedState,n!==null&&n.dehydrated!==null){if(t.alternate===null)throw Error(H(340));ho()}return n=t.flags,n&65536?(t.flags=n&-65537|128,t):null;case 19:return Ft(Ut),null;case 4:return mo(),null;case 10:return Pu(t.type._context),null;case 22:case 23:return wp(),null;case 24:return null;default:return null}}var pl=!1,je=!1,e6=typeof WeakSet=="function"?WeakSet:Set,G=null;function ko(n,t){var e=n.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(i){$t(n,t,i)}else e.current=null}function ng(n,t,e){try{e()}catch(i){$t(n,t,i)}}var rg=!1;function n6(n,t){if(hu=Tc,n=Tw(),_u(n)){if("selectionStart"in n)var e={start:n.selectionStart,end:n.selectionEnd};else t:{e=(e=n.ownerDocument)&&e.defaultView||window;var i=e.getSelection&&e.getSelection();if(i&&i.rangeCount!==0){e=i.anchorNode;var a=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{e.nodeType,s.nodeType}catch{e=null;break t}var _=0,c=-1,d=-1,f=0,g=0,k=n,m=null;e:for(;;){for(var x;k!==e||a!==0&&k.nodeType!==3||(c=_+a),k!==s||i!==0&&k.nodeType!==3||(d=_+i),k.nodeType===3&&(_+=k.nodeValue.length),(x=k.firstChild)!==null;)m=k,k=x;for(;;){if(k===n)break e;if(m===e&&++f===a&&(c=_),m===s&&++g===i&&(d=_),(x=k.nextSibling)!==null)break;k=m,m=k.parentNode}k=x}e=c===-1||d===-1?null:{start:c,end:d}}else e=null}e=e||{start:0,end:0}}else e=null;for(gu={focusedElem:n,selectionRange:e},Tc=!1,G=t;G!==null;)if(t=G,n=t.child,(t.subtreeFlags&1028)!==0&&n!==null)n.return=t,G=n;else for(;G!==null;){t=G;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var j=S.memoizedProps,P=S.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?j:Qn(t.type,j),P);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(F){$t(t,t.return,F)}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}return S=rg,rg=!1,S}function I_(n,t,e){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&n)===n){var s=a.destroy;a.destroy=void 0,s!==void 0&&ng(t,e,s)}a=a.next}while(a!==i)}}function fl(n,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var e=t=t.next;do{if((e.tag&n)===n){var i=e.create;e.destroy=i()}e=e.next}while(e!==t)}}function ap(n){var t=n.ref;if(t!==null){var e=n.stateNode;switch(n.tag){case 5:n=e;break;default:n=e}typeof t=="function"?t(n):t.current=n}}function ag(n){var t=n.alternate;t!==null&&(n.alternate=null,ag(t)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(t=n.stateNode,t!==null&&(delete t[hr],delete t[v_],delete t[vu],delete t[A4],delete t[B4])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function ig(n){return n.tag===5||n.tag===3||n.tag===4}function sg(n){t:for(;;){for(;n.sibling===null;){if(n.return===null||ig(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function ip(n,t,e){var i=n.tag;if(i===5||i===6)n=n.stateNode,t?e.nodeType===8?e.parentNode.insertBefore(n,t):e.insertBefore(n,t):(e.nodeType===8?(t=e.parentNode,t.insertBefore(n,e)):(t=e,t.appendChild(n)),e=e._reactRootContainer,e!=null||t.onclick!==null||(t.onclick=Vc));else if(i!==4&&(n=n.child,n!==null))for(ip(n,t,e),n=n.sibling;n!==null;)ip(n,t,e),n=n.sibling}function sp(n,t,e){var i=n.tag;if(i===5||i===6)n=n.stateNode,t?e.insertBefore(n,t):e.appendChild(n);else if(i!==4&&(n=n.child,n!==null))for(sp(n,t,e),n=n.sibling;n!==null;)sp(n,t,e),n=n.sibling}var we=null,Jn=!1;function Si(n,t,e){for(e=e.child;e!==null;)og(n,t,e),e=e.sibling}function og(n,t,e){if(wr&&typeof wr.onCommitFiberUnmount=="function")try{wr.onCommitFiberUnmount(Ec,e)}catch{}switch(e.tag){case 5:je||ko(e,t);case 6:var i=we,a=Jn;we=null,Si(n,t,e),we=i,Jn=a,we!==null&&(Jn?(n=we,e=e.stateNode,n.nodeType===8?n.parentNode.removeChild(e):n.removeChild(e)):we.removeChild(e.stateNode));break;case 18:we!==null&&(Jn?(n=we,e=e.stateNode,n.nodeType===8?mu(n.parentNode,e):n.nodeType===1&&mu(n,e),l_(n)):mu(we,e.stateNode));break;case 4:i=we,a=Jn,we=e.stateNode.containerInfo,Jn=!0,Si(n,t,e),we=i,Jn=a;break;case 0:case 11:case 14:case 15:if(!je&&(i=e.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){a=i=i.next;do{var s=a,_=s.destroy;s=s.tag,_!==void 0&&(s&2||s&4)&&ng(e,t,_),a=a.next}while(a!==i)}Si(n,t,e);break;case 1:if(!je&&(ko(e,t),i=e.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=e.memoizedProps,i.state=e.memoizedState,i.componentWillUnmount()}catch(c){$t(e,t,c)}Si(n,t,e);break;case 21:Si(n,t,e);break;case 22:e.mode&1?(je=(i=je)||e.memoizedState!==null,Si(n,t,e),je=i):Si(n,t,e);break;default:Si(n,t,e)}}function _g(n){var t=n.updateQueue;if(t!==null){n.updateQueue=null;var e=n.stateNode;e===null&&(e=n.stateNode=new e6),t.forEach(function(i){var a=d6.bind(null,n,i);e.has(i)||(e.add(i),i.then(a,a))})}}function Xn(n,t){var e=t.deletions;if(e!==null)for(var i=0;ia&&(a=_),i&=~s}if(i=a,i=Vt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*a6(i/1960))-i,10n?16:n,Ei===null)var i=!1;else{if(n=Ei,Ei=null,yl=0,kt&6)throw Error(H(331));var a=kt;for(kt|=4,G=n.current;G!==null;){var s=G,_=s.child;if(G.flags&16){var c=s.deletions;if(c!==null){for(var d=0;dVt()-cp?xs(n,0):_p|=e),Ke(n,t)}function vg(n,t){t===0&&(n.mode&1?(t=Nc,Nc<<=1,!(Nc&130023424)&&(Nc=4194304)):t=1);var e=Te();n=oa(n,t),n!==null&&(i_(n,t,e),Ke(n,e))}function l6(n){var t=n.memoizedState,e=0;t!==null&&(e=t.retryLane),vg(n,e)}function d6(n,t){var e=0;switch(n.tag){case 13:var i=n.stateNode,a=n.memoizedState;a!==null&&(e=a.retryLane);break;case 19:i=n.stateNode;break;default:throw Error(H(314))}i!==null&&i.delete(t),vg(n,e)}var kg;kg=function(n,t,e){if(n!==null)if(n.memoizedProps!==t.pendingProps||$e.current)We=!0;else{if(!(n.lanes&e)&&!(t.flags&128))return We=!1,Y4(n,t,e);We=!!(n.flags&131072)}else We=!1,Dt&&t.flags&1048576&&Zw(t,Gc,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ul(n,t),n=t.pendingProps;var a=po(t,ve.current);bo(t,e),a=Hu(null,t,i,n,a,e);var s=Wu();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,He(i)?(s=!0,Qc(t)):s=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Fu(t),a.updater=rl,t.stateNode=a,a._reactInternals=t,Mu(t,i,n,e),t=Yu(null,t,i,!0,s,e)):(t.tag=0,Dt&&s&&ju(t),Ie(null,t,a,e),t=t.child),t;case 16:i=t.elementType;t:{switch(ul(n,t),n=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=p6(i),n=Qn(i,n),a){case 0:t=Gu(null,t,i,n,e);break t;case 1:t=qh(null,t,i,n,e);break t;case 11:t=$h(null,t,i,n,e);break t;case 14:t=Hh(null,t,i,Qn(i.type,n),e);break t}throw Error(H(306,i,""))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Qn(i,a),Gu(n,t,i,a,e);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Qn(i,a),qh(n,t,i,a,e);case 3:t:{if(Qh(t),n===null)throw Error(H(387));i=t.pendingProps,s=t.memoizedState,a=s.element,ih(n,t),nl(t,i,null,e);var _=t.memoizedState;if(i=_.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){a=vo(Error(H(423)),t),t=Jh(n,t,i,e,a);break t}else if(i!==a){a=vo(Error(H(424)),t),t=Jh(n,t,i,e,a);break t}else for(_n=yi(t.stateNode.containerInfo.firstChild),on=t,Dt=!0,qn=null,e=fh(t,null,i,e),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling;else{if(ho(),i===a){t=ca(n,t,e);break t}Ie(n,t,i,e)}t=t.child}return t;case 5:return wh(t),n===null&&Eu(t),i=t.type,a=t.pendingProps,s=n!==null?n.memoizedProps:null,_=a.children,bu(i,a)?_=null:s!==null&&bu(i,s)&&(t.flags|=32),Kh(n,t),Ie(n,t,_,e),t.child;case 6:return n===null&&Eu(t),null;case 13:return Xh(n,t,e);case 4:return Du(t,t.stateNode.containerInfo),i=t.pendingProps,n===null?t.child=yo(t,null,i,e):Ie(n,t,i,e),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Qn(i,a),$h(n,t,i,a,e);case 7:return Ie(n,t,t.pendingProps,e),t.child;case 8:return Ie(n,t,t.pendingProps.children,e),t.child;case 12:return Ie(n,t,t.pendingProps.children,e),t.child;case 10:t:{if(i=t.type._context,a=t.pendingProps,s=t.memoizedProps,_=a.value,Pt(Zc,i._currentValue),i._currentValue=_,s!==null)if(Kn(s.value,_)){if(s.children===a.children&&!$e.current){t=ca(n,t,e);break t}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var c=s.dependencies;if(c!==null){_=s.child;for(var d=c.firstContext;d!==null;){if(d.context===i){if(s.tag===1){d=_a(-1,e&-e),d.tag=2;var f=s.updateQueue;if(f!==null){f=f.shared;var g=f.pending;g===null?d.next=d:(d.next=g.next,g.next=d),f.pending=d}}s.lanes|=e,d=s.alternate,d!==null&&(d.lanes|=e),Iu(s.return,e,t),c.lanes|=e;break}d=d.next}}else if(s.tag===10)_=s.type===t.type?null:s.child;else if(s.tag===18){if(_=s.return,_===null)throw Error(H(341));_.lanes|=e,c=_.alternate,c!==null&&(c.lanes|=e),Iu(_,e,t),_=s.sibling}else _=s.child;if(_!==null)_.return=s;else for(_=s;_!==null;){if(_===t){_=null;break}if(s=_.sibling,s!==null){s.return=_.return,_=s;break}_=_.return}s=_}Ie(n,t,a.children,e),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,bo(t,e),a=Rn(a),i=i(a),t.flags|=1,Ie(n,t,i,e),t.child;case 14:return i=t.type,a=Qn(i,t.pendingProps),a=Qn(i.type,a),Hh(n,t,i,a,e);case 15:return Wh(n,t,t.type,t.pendingProps,e);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Qn(i,a),ul(n,t),t.tag=1,He(i)?(n=!0,Qc(t)):n=!1,bo(t,e),lh(t,i,a),Mu(t,i,a,e),Yu(null,t,i,!0,n,e);case 19:return Yh(n,t,e);case 22:return Vh(n,t,e)}throw Error(H(156,t.tag))};function xg(n,t){return tw(n,t)}function u6(n,t,e,i){this.tag=n,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(n,t,e,i){return new u6(n,t,e,i)}function gp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function p6(n){if(typeof n=="function")return gp(n)?1:0;if(n!=null){if(n=n.$$typeof,n===jd)return 11;if(n===Ed)return 14}return 2}function Ri(n,t){var e=n.alternate;return e===null?(e=Tn(n.tag,t,n.key,n.mode),e.elementType=n.elementType,e.type=n.type,e.stateNode=n.stateNode,e.alternate=n,n.alternate=e):(e.pendingProps=t,e.type=n.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=n.flags&14680064,e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},e.sibling=n.sibling,e.index=n.index,e.ref=n.ref,e}function xl(n,t,e,i,a,s){var _=2;if(i=n,typeof n=="function")gp(n)&&(_=1);else if(typeof n=="string")_=5;else t:switch(n){case Zs:return Ss(e.children,a,s,t);case kd:_=8,a|=8;break;case xd:return n=Tn(12,e,t,a|2),n.elementType=xd,n.lanes=s,n;case Sd:return n=Tn(13,e,t,a),n.elementType=Sd,n.lanes=s,n;case Cd:return n=Tn(19,e,t,a),n.elementType=Cd,n.lanes=s,n;case Rf:return jl(e,a,s,t);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Of:_=10;break t;case Nf:_=9;break t;case jd:_=11;break t;case Ed:_=14;break t;case di:_=16,i=null;break t}throw Error(H(130,n==null?n:typeof n,""))}return t=Tn(_,e,t,a),t.elementType=n,t.type=i,t.lanes=s,t}function Ss(n,t,e,i){return n=Tn(7,n,i,t),n.lanes=e,n}function jl(n,t,e,i){return n=Tn(22,n,i,t),n.elementType=Rf,n.lanes=e,n.stateNode={isHidden:!1},n}function bp(n,t,e){return n=Tn(6,n,null,t),n.lanes=e,n}function yp(n,t,e){return t=Tn(4,n.children!==null?n.children:[],n.key,t),t.lanes=e,t.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},t}function f6(n,t,e,i,a){this.tag=t,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qd(0),this.expirationTimes=qd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qd(0),this.identifierPrefix=i,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function mp(n,t,e,i,a,s,_,c,d){return n=new f6(n,t,e,c,d),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Tn(3,null,null,t),n.current=s,s.stateNode=n,s.memoizedState={element:i,isDehydrated:e,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fu(s),n}function w6(n,t,e){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ng)}catch(n){console.error(n)}}Ng(),vf.exports=rn;var m6=vf.exports,Rg=m6;gd.createRoot=Rg.createRoot,gd.hydrateRoot=Rg.hydrateRoot;var Pg={exports:{}},Ig={},D_=A;function v6(n,t){return n===t&&(n!==0||1/n===1/t)||n!==n&&t!==t}var k6=typeof Object.is=="function"?Object.is:v6,x6=D_.useSyncExternalStore,j6=D_.useRef,S6=D_.useEffect,C6=D_.useMemo,E6=D_.useDebugValue;Ig.useSyncExternalStoreWithSelector=function(n,t,e,i,a){var s=j6(null);if(s.current===null){var _={hasValue:!1,value:null};s.current=_}else _=s.current;s=C6(function(){function d(x){if(!f){if(f=!0,g=x,x=i(x),a!==void 0&&_.hasValue){var S=_.value;if(a(S,x))return k=S}return k=x}if(S=k,k6(g,x))return S;var j=i(x);return a!==void 0&&a(S,j)?S:(g=x,k=j)}var f=!1,g,k,m=e===void 0?null:e;return[function(){return d(t())},m===null?void 0:function(){return d(m())}]},[t,e,i,a]);var c=x6(n,s[0],s[1]);return S6(function(){_.hasValue=!0,_.value=c},[c]),E6(c),c},Pg.exports=Ig;var O6=Pg.exports,ln="default"in yf?ta:yf,Tg=Symbol.for("react-redux-context"),Fg=typeof globalThis<"u"?globalThis:{};function N6(){if(!ln.createContext)return{};const n=Fg[Tg]??(Fg[Tg]=new Map);let t=n.get(ln.createContext);return t||(t=ln.createContext(null),n.set(ln.createContext,t)),t}var Pi=N6(),R6=()=>{throw new Error("uSES not initialized!")};function jp(n=Pi){return function(){return ln.useContext(n)}}var zg=jp(),Mg=R6,P6=n=>{Mg=n},I6=(n,t)=>n===t;function T6(n=Pi){const t=n===Pi?zg:jp(n),e=(i,a={})=>{const{equalityFn:s=I6,devModeChecks:_={}}=typeof a=="function"?{equalityFn:a}:a,{store:c,subscription:d,getServerState:f,stabilityCheck:g,identityFunctionCheck:k}=t();ln.useRef(!0);const m=ln.useCallback({[i.name](S){return i(S)}}[i.name],[i,g,_.stabilityCheck]),x=Mg(d.addNestedSub,c.getState,f||c.getState,m,s);return ln.useDebugValue(x),x};return Object.assign(e,{withTypes:()=>e}),e}var pt=T6();function F6(n){n()}function z6(){let n=null,t=null;return{clear(){n=null,t=null},notify(){F6(()=>{let e=n;for(;e;)e.callback(),e=e.next})},get(){const e=[];let i=n;for(;i;)e.push(i),i=i.next;return e},subscribe(e){let i=!0;const a=t={callback:e,next:null,prev:t};return a.prev?a.prev.next=a:n=a,function(){!i||n===null||(i=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:n=a.next)}}}}var Dg={notify(){},get:()=>[]};function M6(n,t){let e,i=Dg,a=0,s=!1;function _(j){g();const P=i.subscribe(j);let v=!1;return()=>{v||(v=!0,P(),k())}}function c(){i.notify()}function d(){S.onStateChange&&S.onStateChange()}function f(){return s}function g(){a++,e||(e=t?t.addNestedSub(d):n.subscribe(d),i=z6())}function k(){a--,e&&a===0&&(e(),e=void 0,i.clear(),i=Dg)}function m(){s||(s=!0,g())}function x(){s&&(s=!1,k())}const S={addNestedSub:_,notifyNestedSubs:c,handleChangeWrapper:d,isSubscribed:f,trySubscribe:m,tryUnsubscribe:x,getListeners:()=>i};return S}var D6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",A6=D6?ln.useLayoutEffect:ln.useEffect;function B6({store:n,context:t,children:e,serverState:i,stabilityCheck:a="once",identityFunctionCheck:s="once"}){const _=ln.useMemo(()=>{const f=M6(n);return{store:n,subscription:f,getServerState:i?()=>i:void 0,stabilityCheck:a,identityFunctionCheck:s}},[n,i,a,s]),c=ln.useMemo(()=>n.getState(),[n]);A6(()=>{const{subscription:f}=_;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),c!==n.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[_,c]);const d=t||Pi;return ln.createElement(d.Provider,{value:_},e)}var U6=B6;function Ag(n=Pi){const t=n===Pi?zg:jp(n),e=()=>{const{store:i}=t();return i};return Object.assign(e,{withTypes:()=>e}),e}var L6=Ag();function $6(n=Pi){const t=n===Pi?L6:Ag(n),e=()=>t().dispatch;return Object.assign(e,{withTypes:()=>e}),e}var Xt=$6();P6(O6.useSyncExternalStoreWithSelector);let At;const da=new Array(128).fill(void 0);da.push(void 0,null,!0,!1);function Co(n){return da[n]}let A_=da.length;function H6(n){n<132||(da[n]=A_,A_=n)}function Ii(n){const t=Co(n);return H6(n),t}const Bg=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Bg.decode();let B_=null;function Pl(){return(B_===null||B_.byteLength===0)&&(B_=new Uint8Array(At.memory.buffer)),B_}function Sp(n,t){return n=n>>>0,Bg.decode(Pl().subarray(n,n+t))}function Ti(n){A_===da.length&&da.push(da.length+1);const t=A_;return A_=da[t],da[t]=n,t}let U_=0;const Il=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},W6=typeof Il.encodeInto=="function"?function(n,t){return Il.encodeInto(n,t)}:function(n,t){const e=Il.encode(n);return t.set(e),{read:n.length,written:e.length}};function Cp(n,t,e){if(e===void 0){const c=Il.encode(n),d=t(c.length,1)>>>0;return Pl().subarray(d,d+c.length).set(c),U_=c.length,d}let i=n.length,a=t(i,1)>>>0;const s=Pl();let _=0;for(;_127)break;s[a+_]=c}if(_!==i){_!==0&&(n=n.slice(_)),a=e(a,i,i=_+n.length*3,1)>>>0;const c=Pl().subarray(a+_,a+i),d=W6(n,c);_+=d.written,a=e(a,i,_,1)>>>0}return U_=_,a}let L_=null;function Fi(){return(L_===null||L_.byteLength===0)&&(L_=new Int32Array(At.memory.buffer)),L_}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>At.__wbg_buildresult_free(n>>>0)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>At.__wbg_formatresult_free(n>>>0));const V6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>At.__wbg_project_free(n>>>0));class K6{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,V6.unregister(this),t}free(){const t=this.__destroy_into_raw();At.__wbg_project_free(t)}constructor(){const t=At.project_new();return this.__wbg_ptr=t>>>0,this}build(t,e){try{const _=At.__wbindgen_add_to_stack_pointer(-16),c=Cp(t,At.__wbindgen_malloc,At.__wbindgen_realloc),d=U_;At.project_build(_,this.__wbg_ptr,c,d,e);var i=Fi()[_/4+0],a=Fi()[_/4+1],s=Fi()[_/4+2];if(s)throw Ii(a);return Ii(i)}finally{At.__wbindgen_add_to_stack_pointer(16)}}format(t){try{const s=At.__wbindgen_add_to_stack_pointer(-16),_=Cp(t,At.__wbindgen_malloc,At.__wbindgen_realloc),c=U_;At.project_format(s,this.__wbg_ptr,_,c);var e=Fi()[s/4+0],i=Fi()[s/4+1],a=Fi()[s/4+2];if(a)throw Ii(i);return Ii(e)}finally{At.__wbindgen_add_to_stack_pointer(16)}}setup_stdlib(){At.project_setup_stdlib(this.__wbg_ptr)}}async function q6(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(i){if(n.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",i);else throw i}const e=await n.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(n,t);return e instanceof WebAssembly.Instance?{instance:e,module:n}:e}}function Q6(){const n={};return n.wbg={},n.wbg.__wbindgen_object_drop_ref=function(t){Ii(t)},n.wbg.__wbindgen_string_new=function(t,e){const i=Sp(t,e);return Ti(i)},n.wbg.__wbindgen_object_clone_ref=function(t){const e=Co(t);return Ti(e)},n.wbg.__wbindgen_error_new=function(t,e){const i=new Error(Sp(t,e));return Ti(i)},n.wbg.__wbg_String_b9412f8799faab3e=function(t,e){const i=String(Co(e)),a=Cp(i,At.__wbindgen_malloc,At.__wbindgen_realloc),s=U_;Fi()[t/4+1]=s,Fi()[t/4+0]=a},n.wbg.__wbindgen_number_new=function(t){return Ti(t)},n.wbg.__wbindgen_bigint_from_i64=function(t){return Ti(t)},n.wbg.__wbindgen_bigint_from_u64=function(t){const e=BigInt.asUintN(64,t);return Ti(e)},n.wbg.__wbg_set_f975102236d3c502=function(t,e,i){Co(t)[Ii(e)]=Ii(i)},n.wbg.__wbg_log_5bb5f88f245d7762=function(t){console.log(Co(t))},n.wbg.__wbg_new_16b304a2cfa7ff4a=function(){const t=new Array;return Ti(t)},n.wbg.__wbg_new_72fb9a18b5ae2624=function(){const t=new Object;return Ti(t)},n.wbg.__wbg_set_d4638f722068f043=function(t,e,i){Co(t)[e>>>0]=Ii(i)},n.wbg.__wbindgen_throw=function(t,e){throw new Error(Sp(t,e))},n}function J6(n,t){return At=n.exports,Ug.__wbindgen_wasm_module=t,L_=null,B_=null,At}async function Ug(n){if(At!==void 0)return At;typeof n>"u"&&(n=new URL("/aiken-ide/assets/aiken_js_bindings_bg-C175zDaU.wasm",import.meta.url));const t=Q6();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:i}=await q6(await n,t);return J6(e,i)}let Eo;function Lg(){const[n,t]=A.useState(Eo),[e,i]=A.useState(!1),[a,s]=A.useState(null);return A.useEffect(()=>{!Eo&&!e?(i(!0),Ug().then(()=>{Eo=new K6,t(Eo)}).catch(_=>{s(_)}).finally(()=>{i(!1)})):Eo&&t(Eo)},[]),{project:n,isLoading:e,error:a}}function X6(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function $g(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),e.push.apply(e,i)}return e}function Hg(n){for(var t=1;t=0)&&(e[a]=n[a]);return e}function Y6(n,t){if(n==null)return{};var e=G6(n,t),i,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}function Z6(n,t){return t2(n)||e2(n,t)||n2(n,t)||r2()}function t2(n){if(Array.isArray(n))return n}function e2(n,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var e=[],i=!0,a=!1,s=void 0;try{for(var _=n[Symbol.iterator](),c;!(i=(c=_.next()).done)&&(e.push(c.value),!(t&&e.length===t));i=!0);}catch(d){a=!0,s=d}finally{try{!i&&_.return!=null&&_.return()}finally{if(a)throw s}}return e}}function n2(n,t){if(n){if(typeof n=="string")return Wg(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Wg(n,t)}}function Wg(n,t){(t==null||t>n.length)&&(t=n.length);for(var e=0,i=new Array(t);e=n.length?n.apply(this,a):function(){for(var _=arguments.length,c=new Array(_),d=0;d<_;d++)c[d]=arguments[d];return t.apply(e,[].concat(a,c))}}}function Tl(n){return{}.toString.call(n).includes("Object")}function s2(n){return!Object.keys(n).length}function H_(n){return typeof n=="function"}function o2(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function _2(n,t){return Tl(t)||zi("changeType"),Object.keys(t).some(function(e){return!o2(n,e)})&&zi("changeField"),t}function c2(n){H_(n)||zi("selectorType")}function l2(n){H_(n)||Tl(n)||zi("handlerType"),Tl(n)&&Object.values(n).some(function(t){return!H_(t)})&&zi("handlersType")}function d2(n){n||zi("initialIsRequired"),Tl(n)||zi("initialType"),s2(n)&&zi("initialContent")}function u2(n,t){throw new Error(n[t]||n.default)}var p2={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},zi=$_(u2)(p2),Fl={changes:_2,selector:c2,handler:l2,initial:d2};function f2(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fl.initial(n),Fl.handler(t);var e={current:n},i=$_(g2)(e,t),a=$_(h2)(e),s=$_(Fl.changes)(n),_=$_(w2)(e);function c(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return Fl.selector(f),f(e.current)}function d(f){i2(i,a,s,_)(f)}return[c,d]}function w2(n,t){return H_(t)?t(n.current):t}function h2(n,t){return n.current=Kg(Kg({},n.current),t),t}function g2(n,t,e){return H_(t)?t(n.current):Object.keys(e).forEach(function(i){var a;return(a=t[i])===null||a===void 0?void 0:a.call(t,n.current[i])}),e}var b2={create:f2},y2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function m2(n){return function t(){for(var e=this,i=arguments.length,a=new Array(i),s=0;s=n.length?n.apply(this,a):function(){for(var _=arguments.length,c=new Array(_),d=0;d<_;d++)c[d]=arguments[d];return t.apply(e,[].concat(a,c))}}}function v2(n){return{}.toString.call(n).includes("Object")}function k2(n){return n||Qg("configIsRequired"),v2(n)||Qg("configType"),n.urls?(x2(),{paths:{vs:n.urls.monacoBase}}):n}function x2(){console.warn(qg.deprecation)}function j2(n,t){throw new Error(n[t]||n.default)}var qg={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning! +`+s.stack}return{value:n,source:t,stack:a,digest:null}}function Ju(n,t,e){return{value:n,source:null,stack:e??null,digest:t??null}}function Xu(n,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var J4=typeof WeakMap=="function"?WeakMap:Map;function Dh(n,t,e){e=_a(-1,e),e.tag=3,e.payload={element:null};var i=t.value;return e.callback=function(){gl||(gl=!0,lp=i),Xu(n,t)},e}function Mh(n,t,e){e=_a(-1,e),e.tag=3;var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var a=t.value;e.payload=function(){return i(a)},e.callback=function(){Xu(n,t)}}var s=n.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){Xu(n,t),typeof i!="function"&&(Ci===null?Ci=new Set([this]):Ci.add(this));var _=t.stack;this.componentDidCatch(t.value,{componentStack:_!==null?_:""})}),e}function Ah(n,t,e){var i=n.pingCache;if(i===null){i=n.pingCache=new J4;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(e)||(a.add(e),n=c6.bind(null,n,t,e),t.then(n,n))}function Bh(n){do{var t;if((t=n.tag===13)&&(t=n.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return n;n=n.return}while(n!==null);return null}function Uh(n,t,e,i,a){return n.mode&1?(n.flags|=65536,n.lanes=a,n):(n===t?n.flags|=65536:(n.flags|=128,e.flags|=131072,e.flags&=-52805,e.tag===1&&(e.alternate===null?e.tag=17:(t=_a(-1,1),t.tag=2,ji(e,t,1))),e.lanes|=1),n)}var X4=na.ReactCurrentOwner,We=!1;function Ie(n,t,e,i){t.child=n===null?ph(t,null,e,i):yo(t,n.child,e,i)}function Lh(n,t,e,i,a){e=e.render;var s=t.ref;return bo(t,a),i=Hu(n,t,e,i,s,a),e=Wu(),n!==null&&!We?(t.updateQueue=n.updateQueue,t.flags&=-2053,n.lanes&=~a,ca(n,t,a)):(Mt&&e&&ju(t),t.flags|=1,Ie(n,t,i,a),t.child)}function $h(n,t,e,i,a){if(n===null){var s=e.type;return typeof s=="function"&&!gp(s)&&s.defaultProps===void 0&&e.compare===null&&e.defaultProps===void 0?(t.tag=15,t.type=s,Hh(n,t,s,i,a)):(n=xl(e.type,null,i,t,t.mode,a),n.ref=t.ref,n.return=t,t.child=n)}if(s=n.child,!(n.lanes&a)){var _=s.memoizedProps;if(e=e.compare,e=e!==null?e:h_,e(_,i)&&n.ref===t.ref)return ca(n,t,a)}return t.flags|=1,n=Ri(s,i),n.ref=t.ref,n.return=t,t.child=n}function Hh(n,t,e,i,a){if(n!==null){var s=n.memoizedProps;if(h_(s,i)&&n.ref===t.ref)if(We=!1,t.pendingProps=i=s,(n.lanes&a)!==0)n.flags&131072&&(We=!0);else return t.lanes=n.lanes,ca(n,t,a)}return Gu(n,t,e,i,a)}function Wh(n,t,e){var i=t.pendingProps,a=i.children,s=n!==null?n.memoizedState:null;if(i.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pt(xo,cn),cn|=e;else{if(!(e&1073741824))return n=s!==null?s.baseLanes|e:e,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:n,cachePool:null,transitions:null},t.updateQueue=null,Pt(xo,cn),cn|=n,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=s!==null?s.baseLanes:e,Pt(xo,cn),cn|=i}else s!==null?(i=s.baseLanes|e,t.memoizedState=null):i=e,Pt(xo,cn),cn|=i;return Ie(n,t,a,e),t.child}function Vh(n,t){var e=t.ref;(n===null&&e!==null||n!==null&&n.ref!==e)&&(t.flags|=512,t.flags|=2097152)}function Gu(n,t,e,i,a){var s=He(e)?ws:ve.current;return s=po(t,s),bo(t,a),e=Hu(n,t,e,i,s,a),i=Wu(),n!==null&&!We?(t.updateQueue=n.updateQueue,t.flags&=-2053,n.lanes&=~a,ca(n,t,a)):(Mt&&i&&ju(t),t.flags|=1,Ie(n,t,e,a),t.child)}function Kh(n,t,e,i,a){if(He(e)){var s=!0;Qc(t)}else s=!1;if(bo(t,a),t.stateNode===null)ul(n,t),ch(t,e,i),Du(t,e,i,a),i=!0;else if(n===null){var _=t.stateNode,c=t.memoizedProps;_.props=c;var d=_.context,f=e.contextType;typeof f=="object"&&f!==null?f=Rn(f):(f=He(e)?ws:ve.current,f=po(t,f));var g=e.getDerivedStateFromProps,k=typeof g=="function"||typeof _.getSnapshotBeforeUpdate=="function";k||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(c!==i||d!==f)&&lh(t,_,i,f),xi=!1;var m=t.memoizedState;_.state=m,nl(t,i,_,a),d=t.memoizedState,c!==i||m!==d||$e.current||xi?(typeof g=="function"&&(zu(t,e,g,i),d=t.memoizedState),(c=xi||_h(t,e,c,i,m,d,f))?(k||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(t.flags|=4194308)):(typeof _.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=d),_.props=i,_.state=d,_.context=f,i=c):(typeof _.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{_=t.stateNode,ah(n,t),c=t.memoizedProps,f=t.type===t.elementType?c:Qn(t.type,c),_.props=f,k=t.pendingProps,m=_.context,d=e.contextType,typeof d=="object"&&d!==null?d=Rn(d):(d=He(e)?ws:ve.current,d=po(t,d));var x=e.getDerivedStateFromProps;(g=typeof x=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(c!==k||m!==d)&&lh(t,_,i,d),xi=!1,m=t.memoizedState,_.state=m,nl(t,i,_,a);var S=t.memoizedState;c!==k||m!==S||$e.current||xi?(typeof x=="function"&&(zu(t,e,x,i),S=t.memoizedState),(f=xi||_h(t,e,f,i,m,S,d)||!1)?(g||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(i,S,d),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(i,S,d)),typeof _.componentDidUpdate=="function"&&(t.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof _.componentDidUpdate!="function"||c===n.memoizedProps&&m===n.memoizedState||(t.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||c===n.memoizedProps&&m===n.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=S),_.props=i,_.state=S,_.context=d,i=f):(typeof _.componentDidUpdate!="function"||c===n.memoizedProps&&m===n.memoizedState||(t.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||c===n.memoizedProps&&m===n.memoizedState||(t.flags|=1024),i=!1)}return Yu(n,t,e,i,s,a)}function Yu(n,t,e,i,a,s){Vh(n,t);var _=(t.flags&128)!==0;if(!i&&!_)return a&&Xw(t,e,!1),ca(n,t,s);i=t.stateNode,X4.current=t;var c=_&&typeof e.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,n!==null&&_?(t.child=yo(t,n.child,null,s),t.child=yo(t,null,c,s)):Ie(n,t,c,s),t.memoizedState=i.state,a&&Xw(t,e,!0),t.child}function qh(n){var t=n.stateNode;t.pendingContext?Qw(n,t.pendingContext,t.pendingContext!==t.context):t.context&&Qw(n,t.context,!1),Mu(n,t.containerInfo)}function Qh(n,t,e,i,a){return ho(),Ou(a),t.flags|=256,Ie(n,t,e,i),t.child}var Zu={dehydrated:null,treeContext:null,retryLane:0};function tp(n){return{baseLanes:n,cachePool:null,transitions:null}}function Jh(n,t,e){var i=t.pendingProps,a=Ut.current,s=!1,_=(t.flags&128)!==0,c;if((c=_)||(c=n!==null&&n.memoizedState===null?!1:(a&2)!==0),c?(s=!0,t.flags&=-129):(n===null||n.memoizedState!==null)&&(a|=1),Pt(Ut,a&1),n===null)return Eu(t),n=t.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?(t.mode&1?n.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(_=i.children,n=i.fallback,s?(i=t.mode,s=t.child,_={mode:"hidden",children:_},!(i&1)&&s!==null?(s.childLanes=0,s.pendingProps=_):s=jl(_,i,0,null),n=Ss(n,i,e,null),s.return=t,n.return=t,s.sibling=n,t.child=s,t.child.memoizedState=tp(e),t.memoizedState=Zu,n):ep(t,_));if(a=n.memoizedState,a!==null&&(c=a.dehydrated,c!==null))return G4(n,t,_,i,c,a,e);if(s){s=i.fallback,_=t.mode,a=n.child,c=a.sibling;var d={mode:"hidden",children:i.children};return!(_&1)&&t.child!==a?(i=t.child,i.childLanes=0,i.pendingProps=d,t.deletions=null):(i=Ri(a,d),i.subtreeFlags=a.subtreeFlags&14680064),c!==null?s=Ri(c,s):(s=Ss(s,_,e,null),s.flags|=2),s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,_=n.child.memoizedState,_=_===null?tp(e):{baseLanes:_.baseLanes|e,cachePool:null,transitions:_.transitions},s.memoizedState=_,s.childLanes=n.childLanes&~e,t.memoizedState=Zu,i}return s=n.child,n=s.sibling,i=Ri(s,{mode:"visible",children:i.children}),!(t.mode&1)&&(i.lanes=e),i.return=t,i.sibling=null,n!==null&&(e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)),t.child=i,t.memoizedState=null,i}function ep(n,t){return t=jl({mode:"visible",children:t},n.mode,0,null),t.return=n,n.child=t}function dl(n,t,e,i){return i!==null&&Ou(i),yo(t,n.child,null,e),n=ep(t,t.pendingProps.children),n.flags|=2,t.memoizedState=null,n}function G4(n,t,e,i,a,s,_){if(e)return t.flags&256?(t.flags&=-257,i=Ju(Error(H(422))),dl(n,t,_,i)):t.memoizedState!==null?(t.child=n.child,t.flags|=128,null):(s=i.fallback,a=t.mode,i=jl({mode:"visible",children:i.children},a,0,null),s=Ss(s,a,_,null),s.flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,t.mode&1&&yo(t,n.child,null,_),t.child.memoizedState=tp(_),t.memoizedState=Zu,s);if(!(t.mode&1))return dl(n,t,_,null);if(a.data==="$!"){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,s=Error(H(419)),i=Ju(s,i,void 0),dl(n,t,_,i)}if(c=(_&n.childLanes)!==0,We||c){if(i=ae,i!==null){switch(_&-_){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(i.suspendedLanes|_)?0:a,a!==0&&a!==s.retryLane&&(s.retryLane=a,oa(n,a),Gn(i,n,a,-1))}return hp(),i=Ju(Error(H(421))),dl(n,t,_,i)}return a.data==="$?"?(t.flags|=128,t.child=n.child,t=l6.bind(null,n),a._reactRetry=t,null):(n=s.treeContext,_n=yi(a.nextSibling),on=t,Mt=!0,qn=null,n!==null&&(On[Nn++]=ia,On[Nn++]=sa,On[Nn++]=hs,ia=n.id,sa=n.overflow,hs=t),t=ep(t,i.children),t.flags|=4096,t)}function Xh(n,t,e){n.lanes|=t;var i=n.alternate;i!==null&&(i.lanes|=t),Iu(n.return,t,e)}function np(n,t,e,i,a){var s=n.memoizedState;s===null?n.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:e,tailMode:a}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=i,s.tail=e,s.tailMode=a)}function Gh(n,t,e){var i=t.pendingProps,a=i.revealOrder,s=i.tail;if(Ie(n,t,i.children,e),i=Ut.current,i&2)i=i&1|2,t.flags|=128;else{if(n!==null&&n.flags&128)t:for(n=t.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Xh(n,e,t);else if(n.tag===19)Xh(n,e,t);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break t;for(;n.sibling===null;){if(n.return===null||n.return===t)break t;n=n.return}n.sibling.return=n.return,n=n.sibling}i&=1}if(Pt(Ut,i),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(e=t.child,a=null;e!==null;)n=e.alternate,n!==null&&il(n)===null&&(a=e),e=e.sibling;e=a,e===null?(a=t.child,t.child=null):(a=e.sibling,e.sibling=null),np(t,!1,a,e,s);break;case"backwards":for(e=null,a=t.child,t.child=null;a!==null;){if(n=a.alternate,n!==null&&il(n)===null){t.child=a;break}n=a.sibling,a.sibling=e,e=a,a=n}np(t,!0,e,null,s);break;case"together":np(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ul(n,t){!(t.mode&1)&&n!==null&&(n.alternate=null,t.alternate=null,t.flags|=2)}function ca(n,t,e){if(n!==null&&(t.dependencies=n.dependencies),vs|=t.lanes,!(e&t.childLanes))return null;if(n!==null&&t.child!==n.child)throw Error(H(153));if(t.child!==null){for(n=t.child,e=Ri(n,n.pendingProps),t.child=e,e.return=t;n.sibling!==null;)n=n.sibling,e=e.sibling=Ri(n,n.pendingProps),e.return=t;e.sibling=null}return t.child}function Y4(n,t,e){switch(t.tag){case 3:qh(t),ho();break;case 5:fh(t);break;case 1:He(t.type)&&Qc(t);break;case 4:Mu(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,a=t.memoizedProps.value;Pt(Zc,i._currentValue),i._currentValue=a;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(Pt(Ut,Ut.current&1),t.flags|=128,null):e&t.child.childLanes?Jh(n,t,e):(Pt(Ut,Ut.current&1),n=ca(n,t,e),n!==null?n.sibling:null);Pt(Ut,Ut.current&1);break;case 19:if(i=(e&t.childLanes)!==0,n.flags&128){if(i)return Gh(n,t,e);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Pt(Ut,Ut.current),i)break;return null;case 22:case 23:return t.lanes=0,Wh(n,t,e)}return ca(n,t,e)}var Yh,rp,Zh,tg;Yh=function(n,t){for(var e=t.child;e!==null;){if(e.tag===5||e.tag===6)n.appendChild(e.stateNode);else if(e.tag!==4&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return;e=e.return}e.sibling.return=e.return,e=e.sibling}},rp=function(){},Zh=function(n,t,e,i){var a=n.memoizedProps;if(a!==i){n=t.stateNode,ys(gr.current);var s=null;switch(e){case"input":a=Id(n,a),i=Id(n,i),s=[];break;case"select":a=Bt({},a,{value:void 0}),i=Bt({},i,{value:void 0}),s=[];break;case"textarea":a=zd(n,a),i=zd(n,i),s=[];break;default:typeof a.onClick!="function"&&typeof i.onClick=="function"&&(n.onclick=Vc)}Md(e,i);var _;e=null;for(f in a)if(!i.hasOwnProperty(f)&&a.hasOwnProperty(f)&&a[f]!=null)if(f==="style"){var c=a[f];for(_ in c)c.hasOwnProperty(_)&&(e||(e={}),e[_]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Jo.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in i){var d=i[f];if(c=a==null?void 0:a[f],i.hasOwnProperty(f)&&d!==c&&(d!=null||c!=null))if(f==="style")if(c){for(_ in c)!c.hasOwnProperty(_)||d&&d.hasOwnProperty(_)||(e||(e={}),e[_]="");for(_ in d)d.hasOwnProperty(_)&&c[_]!==d[_]&&(e||(e={}),e[_]=d[_])}else e||(s||(s=[]),s.push(f,e)),e=d;else f==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,c=c?c.__html:void 0,d!=null&&c!==d&&(s=s||[]).push(f,d)):f==="children"?typeof d!="string"&&typeof d!="number"||(s=s||[]).push(f,""+d):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Jo.hasOwnProperty(f)?(d!=null&&f==="onScroll"&&Tt("scroll",n),s||c===d||(s=[])):(s=s||[]).push(f,d))}e&&(s=s||[]).push("style",e);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},tg=function(n,t,e,i){e!==i&&(t.flags|=4)};function P_(n,t){if(!Mt)switch(n.tailMode){case"hidden":t=n.tail;for(var e=null;t!==null;)t.alternate!==null&&(e=t),t=t.sibling;e===null?n.tail=null:e.sibling=null;break;case"collapsed":e=n.tail;for(var i=null;e!==null;)e.alternate!==null&&(i=e),e=e.sibling;i===null?t||n.tail===null?n.tail=null:n.tail.sibling=null:i.sibling=null}}function xe(n){var t=n.alternate!==null&&n.alternate.child===n.child,e=0,i=0;if(t)for(var a=n.child;a!==null;)e|=a.lanes|a.childLanes,i|=a.subtreeFlags&14680064,i|=a.flags&14680064,a.return=n,a=a.sibling;else for(a=n.child;a!==null;)e|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=n,a=a.sibling;return n.subtreeFlags|=i,n.childLanes=e,t}function Z4(n,t,e){var i=t.pendingProps;switch(Su(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return He(t.type)&&qc(),xe(t),null;case 3:return i=t.stateNode,mo(),Ft($e),Ft(ve),Uu(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(Yc(t)?t.flags|=4:n===null||n.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,qn!==null&&(pp(qn),qn=null))),rp(n,t),xe(t),null;case 5:Au(t);var a=ys(C_.current);if(e=t.type,n!==null&&t.stateNode!=null)Zh(n,t,e,i,a),n.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(H(166));return xe(t),null}if(n=ys(gr.current),Yc(t)){i=t.stateNode,e=t.type;var s=t.memoizedProps;switch(i[hr]=t,i[v_]=s,n=(t.mode&1)!==0,e){case"dialog":Tt("cancel",i),Tt("close",i);break;case"iframe":case"object":case"embed":Tt("load",i);break;case"video":case"audio":for(a=0;a<\/script>",n=n.removeChild(n.firstChild)):typeof i.is=="string"?n=_.createElement(e,{is:i.is}):(n=_.createElement(e),e==="select"&&(_=n,i.multiple?_.multiple=!0:i.size&&(_.size=i.size))):n=_.createElementNS(n,e),n[hr]=t,n[v_]=i,Yh(n,t,!1,!1),t.stateNode=n;t:{switch(_=Ad(e,i),e){case"dialog":Tt("cancel",n),Tt("close",n),a=i;break;case"iframe":case"object":case"embed":Tt("load",n),a=i;break;case"video":case"audio":for(a=0;ajo&&(t.flags|=128,i=!0,P_(s,!1),t.lanes=4194304)}else{if(!i)if(n=il(_),n!==null){if(t.flags|=128,i=!0,e=n.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),P_(s,!0),s.tail===null&&s.tailMode==="hidden"&&!_.alternate&&!Mt)return xe(t),null}else 2*Vt()-s.renderingStartTime>jo&&e!==1073741824&&(t.flags|=128,i=!0,P_(s,!1),t.lanes=4194304);s.isBackwards?(_.sibling=t.child,t.child=_):(e=s.last,e!==null?e.sibling=_:t.child=_,s.last=_)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Vt(),t.sibling=null,e=Ut.current,Pt(Ut,i?e&1|2:e&1),t):(xe(t),null);case 22:case 23:return wp(),i=t.memoizedState!==null,n!==null&&n.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?cn&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function t6(n,t){switch(Su(t),t.tag){case 1:return He(t.type)&&qc(),n=t.flags,n&65536?(t.flags=n&-65537|128,t):null;case 3:return mo(),Ft($e),Ft(ve),Uu(),n=t.flags,n&65536&&!(n&128)?(t.flags=n&-65537|128,t):null;case 5:return Au(t),null;case 13:if(Ft(Ut),n=t.memoizedState,n!==null&&n.dehydrated!==null){if(t.alternate===null)throw Error(H(340));ho()}return n=t.flags,n&65536?(t.flags=n&-65537|128,t):null;case 19:return Ft(Ut),null;case 4:return mo(),null;case 10:return Pu(t.type._context),null;case 22:case 23:return wp(),null;case 24:return null;default:return null}}var pl=!1,je=!1,e6=typeof WeakSet=="function"?WeakSet:Set,G=null;function ko(n,t){var e=n.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(i){$t(n,t,i)}else e.current=null}function eg(n,t,e){try{e()}catch(i){$t(n,t,i)}}var ng=!1;function n6(n,t){if(hu=Tc,n=Iw(),_u(n)){if("selectionStart"in n)var e={start:n.selectionStart,end:n.selectionEnd};else t:{e=(e=n.ownerDocument)&&e.defaultView||window;var i=e.getSelection&&e.getSelection();if(i&&i.rangeCount!==0){e=i.anchorNode;var a=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{e.nodeType,s.nodeType}catch{e=null;break t}var _=0,c=-1,d=-1,f=0,g=0,k=n,m=null;e:for(;;){for(var x;k!==e||a!==0&&k.nodeType!==3||(c=_+a),k!==s||i!==0&&k.nodeType!==3||(d=_+i),k.nodeType===3&&(_+=k.nodeValue.length),(x=k.firstChild)!==null;)m=k,k=x;for(;;){if(k===n)break e;if(m===e&&++f===a&&(c=_),m===s&&++g===i&&(d=_),(x=k.nextSibling)!==null)break;k=m,m=k.parentNode}k=x}e=c===-1||d===-1?null:{start:c,end:d}}else e=null}e=e||{start:0,end:0}}else e=null;for(gu={focusedElem:n,selectionRange:e},Tc=!1,G=t;G!==null;)if(t=G,n=t.child,(t.subtreeFlags&1028)!==0&&n!==null)n.return=t,G=n;else for(;G!==null;){t=G;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var j=S.memoizedProps,P=S.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?j:Qn(t.type,j),P);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(I){$t(t,t.return,I)}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}return S=ng,ng=!1,S}function I_(n,t,e){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&n)===n){var s=a.destroy;a.destroy=void 0,s!==void 0&&eg(t,e,s)}a=a.next}while(a!==i)}}function fl(n,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var e=t=t.next;do{if((e.tag&n)===n){var i=e.create;e.destroy=i()}e=e.next}while(e!==t)}}function ap(n){var t=n.ref;if(t!==null){var e=n.stateNode;switch(n.tag){case 5:n=e;break;default:n=e}typeof t=="function"?t(n):t.current=n}}function rg(n){var t=n.alternate;t!==null&&(n.alternate=null,rg(t)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(t=n.stateNode,t!==null&&(delete t[hr],delete t[v_],delete t[vu],delete t[A4],delete t[B4])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function ag(n){return n.tag===5||n.tag===3||n.tag===4}function ig(n){t:for(;;){for(;n.sibling===null;){if(n.return===null||ag(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function ip(n,t,e){var i=n.tag;if(i===5||i===6)n=n.stateNode,t?e.nodeType===8?e.parentNode.insertBefore(n,t):e.insertBefore(n,t):(e.nodeType===8?(t=e.parentNode,t.insertBefore(n,e)):(t=e,t.appendChild(n)),e=e._reactRootContainer,e!=null||t.onclick!==null||(t.onclick=Vc));else if(i!==4&&(n=n.child,n!==null))for(ip(n,t,e),n=n.sibling;n!==null;)ip(n,t,e),n=n.sibling}function sp(n,t,e){var i=n.tag;if(i===5||i===6)n=n.stateNode,t?e.insertBefore(n,t):e.appendChild(n);else if(i!==4&&(n=n.child,n!==null))for(sp(n,t,e),n=n.sibling;n!==null;)sp(n,t,e),n=n.sibling}var we=null,Jn=!1;function Si(n,t,e){for(e=e.child;e!==null;)sg(n,t,e),e=e.sibling}function sg(n,t,e){if(wr&&typeof wr.onCommitFiberUnmount=="function")try{wr.onCommitFiberUnmount(Ec,e)}catch{}switch(e.tag){case 5:je||ko(e,t);case 6:var i=we,a=Jn;we=null,Si(n,t,e),we=i,Jn=a,we!==null&&(Jn?(n=we,e=e.stateNode,n.nodeType===8?n.parentNode.removeChild(e):n.removeChild(e)):we.removeChild(e.stateNode));break;case 18:we!==null&&(Jn?(n=we,e=e.stateNode,n.nodeType===8?mu(n.parentNode,e):n.nodeType===1&&mu(n,e),l_(n)):mu(we,e.stateNode));break;case 4:i=we,a=Jn,we=e.stateNode.containerInfo,Jn=!0,Si(n,t,e),we=i,Jn=a;break;case 0:case 11:case 14:case 15:if(!je&&(i=e.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){a=i=i.next;do{var s=a,_=s.destroy;s=s.tag,_!==void 0&&(s&2||s&4)&&eg(e,t,_),a=a.next}while(a!==i)}Si(n,t,e);break;case 1:if(!je&&(ko(e,t),i=e.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=e.memoizedProps,i.state=e.memoizedState,i.componentWillUnmount()}catch(c){$t(e,t,c)}Si(n,t,e);break;case 21:Si(n,t,e);break;case 22:e.mode&1?(je=(i=je)||e.memoizedState!==null,Si(n,t,e),je=i):Si(n,t,e);break;default:Si(n,t,e)}}function og(n){var t=n.updateQueue;if(t!==null){n.updateQueue=null;var e=n.stateNode;e===null&&(e=n.stateNode=new e6),t.forEach(function(i){var a=d6.bind(null,n,i);e.has(i)||(e.add(i),i.then(a,a))})}}function Xn(n,t){var e=t.deletions;if(e!==null)for(var i=0;ia&&(a=_),i&=~s}if(i=a,i=Vt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*a6(i/1960))-i,10n?16:n,Ei===null)var i=!1;else{if(n=Ei,Ei=null,yl=0,kt&6)throw Error(H(331));var a=kt;for(kt|=4,G=n.current;G!==null;){var s=G,_=s.child;if(G.flags&16){var c=s.deletions;if(c!==null){for(var d=0;dVt()-cp?xs(n,0):_p|=e),Ke(n,t)}function mg(n,t){t===0&&(n.mode&1?(t=Nc,Nc<<=1,!(Nc&130023424)&&(Nc=4194304)):t=1);var e=Te();n=oa(n,t),n!==null&&(i_(n,t,e),Ke(n,e))}function l6(n){var t=n.memoizedState,e=0;t!==null&&(e=t.retryLane),mg(n,e)}function d6(n,t){var e=0;switch(n.tag){case 13:var i=n.stateNode,a=n.memoizedState;a!==null&&(e=a.retryLane);break;case 19:i=n.stateNode;break;default:throw Error(H(314))}i!==null&&i.delete(t),mg(n,e)}var vg;vg=function(n,t,e){if(n!==null)if(n.memoizedProps!==t.pendingProps||$e.current)We=!0;else{if(!(n.lanes&e)&&!(t.flags&128))return We=!1,Y4(n,t,e);We=!!(n.flags&131072)}else We=!1,Mt&&t.flags&1048576&&Yw(t,Gc,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ul(n,t),n=t.pendingProps;var a=po(t,ve.current);bo(t,e),a=Hu(null,t,i,n,a,e);var s=Wu();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,He(i)?(s=!0,Qc(t)):s=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Fu(t),a.updater=rl,t.stateNode=a,a._reactInternals=t,Du(t,i,n,e),t=Yu(null,t,i,!0,s,e)):(t.tag=0,Mt&&s&&ju(t),Ie(null,t,a,e),t=t.child),t;case 16:i=t.elementType;t:{switch(ul(n,t),n=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=p6(i),n=Qn(i,n),a){case 0:t=Gu(null,t,i,n,e);break t;case 1:t=Kh(null,t,i,n,e);break t;case 11:t=Lh(null,t,i,n,e);break t;case 14:t=$h(null,t,i,Qn(i.type,n),e);break t}throw Error(H(306,i,""))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Qn(i,a),Gu(n,t,i,a,e);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Qn(i,a),Kh(n,t,i,a,e);case 3:t:{if(qh(t),n===null)throw Error(H(387));i=t.pendingProps,s=t.memoizedState,a=s.element,ah(n,t),nl(t,i,null,e);var _=t.memoizedState;if(i=_.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){a=vo(Error(H(423)),t),t=Qh(n,t,i,e,a);break t}else if(i!==a){a=vo(Error(H(424)),t),t=Qh(n,t,i,e,a);break t}else for(_n=yi(t.stateNode.containerInfo.firstChild),on=t,Mt=!0,qn=null,e=ph(t,null,i,e),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling;else{if(ho(),i===a){t=ca(n,t,e);break t}Ie(n,t,i,e)}t=t.child}return t;case 5:return fh(t),n===null&&Eu(t),i=t.type,a=t.pendingProps,s=n!==null?n.memoizedProps:null,_=a.children,bu(i,a)?_=null:s!==null&&bu(i,s)&&(t.flags|=32),Vh(n,t),Ie(n,t,_,e),t.child;case 6:return n===null&&Eu(t),null;case 13:return Jh(n,t,e);case 4:return Mu(t,t.stateNode.containerInfo),i=t.pendingProps,n===null?t.child=yo(t,null,i,e):Ie(n,t,i,e),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Qn(i,a),Lh(n,t,i,a,e);case 7:return Ie(n,t,t.pendingProps,e),t.child;case 8:return Ie(n,t,t.pendingProps.children,e),t.child;case 12:return Ie(n,t,t.pendingProps.children,e),t.child;case 10:t:{if(i=t.type._context,a=t.pendingProps,s=t.memoizedProps,_=a.value,Pt(Zc,i._currentValue),i._currentValue=_,s!==null)if(Kn(s.value,_)){if(s.children===a.children&&!$e.current){t=ca(n,t,e);break t}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var c=s.dependencies;if(c!==null){_=s.child;for(var d=c.firstContext;d!==null;){if(d.context===i){if(s.tag===1){d=_a(-1,e&-e),d.tag=2;var f=s.updateQueue;if(f!==null){f=f.shared;var g=f.pending;g===null?d.next=d:(d.next=g.next,g.next=d),f.pending=d}}s.lanes|=e,d=s.alternate,d!==null&&(d.lanes|=e),Iu(s.return,e,t),c.lanes|=e;break}d=d.next}}else if(s.tag===10)_=s.type===t.type?null:s.child;else if(s.tag===18){if(_=s.return,_===null)throw Error(H(341));_.lanes|=e,c=_.alternate,c!==null&&(c.lanes|=e),Iu(_,e,t),_=s.sibling}else _=s.child;if(_!==null)_.return=s;else for(_=s;_!==null;){if(_===t){_=null;break}if(s=_.sibling,s!==null){s.return=_.return,_=s;break}_=_.return}s=_}Ie(n,t,a.children,e),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,bo(t,e),a=Rn(a),i=i(a),t.flags|=1,Ie(n,t,i,e),t.child;case 14:return i=t.type,a=Qn(i,t.pendingProps),a=Qn(i.type,a),$h(n,t,i,a,e);case 15:return Hh(n,t,t.type,t.pendingProps,e);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Qn(i,a),ul(n,t),t.tag=1,He(i)?(n=!0,Qc(t)):n=!1,bo(t,e),ch(t,i,a),Du(t,i,a,e),Yu(null,t,i,!0,n,e);case 19:return Gh(n,t,e);case 22:return Wh(n,t,e)}throw Error(H(156,t.tag))};function kg(n,t){return Zf(n,t)}function u6(n,t,e,i){this.tag=n,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(n,t,e,i){return new u6(n,t,e,i)}function gp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function p6(n){if(typeof n=="function")return gp(n)?1:0;if(n!=null){if(n=n.$$typeof,n===jd)return 11;if(n===Ed)return 14}return 2}function Ri(n,t){var e=n.alternate;return e===null?(e=Tn(n.tag,t,n.key,n.mode),e.elementType=n.elementType,e.type=n.type,e.stateNode=n.stateNode,e.alternate=n,n.alternate=e):(e.pendingProps=t,e.type=n.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=n.flags&14680064,e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},e.sibling=n.sibling,e.index=n.index,e.ref=n.ref,e}function xl(n,t,e,i,a,s){var _=2;if(i=n,typeof n=="function")gp(n)&&(_=1);else if(typeof n=="string")_=5;else t:switch(n){case Zs:return Ss(e.children,a,s,t);case kd:_=8,a|=8;break;case xd:return n=Tn(12,e,t,a|2),n.elementType=xd,n.lanes=s,n;case Sd:return n=Tn(13,e,t,a),n.elementType=Sd,n.lanes=s,n;case Cd:return n=Tn(19,e,t,a),n.elementType=Cd,n.lanes=s,n;case Nf:return jl(e,a,s,t);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Ef:_=10;break t;case Of:_=9;break t;case jd:_=11;break t;case Ed:_=14;break t;case di:_=16,i=null;break t}throw Error(H(130,n==null?n:typeof n,""))}return t=Tn(_,e,t,a),t.elementType=n,t.type=i,t.lanes=s,t}function Ss(n,t,e,i){return n=Tn(7,n,i,t),n.lanes=e,n}function jl(n,t,e,i){return n=Tn(22,n,i,t),n.elementType=Nf,n.lanes=e,n.stateNode={isHidden:!1},n}function bp(n,t,e){return n=Tn(6,n,null,t),n.lanes=e,n}function yp(n,t,e){return t=Tn(4,n.children!==null?n.children:[],n.key,t),t.lanes=e,t.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},t}function f6(n,t,e,i,a){this.tag=t,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qd(0),this.expirationTimes=qd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qd(0),this.identifierPrefix=i,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function mp(n,t,e,i,a,s,_,c,d){return n=new f6(n,t,e,c,d),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Tn(3,null,null,t),n.current=s,s.stateNode=n,s.memoizedState={element:i,isDehydrated:e,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fu(s),n}function w6(n,t,e){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Og)}catch(n){console.error(n)}}Og(),mf.exports=rn;var m6=mf.exports,Ng=m6;gd.createRoot=Ng.createRoot,gd.hydrateRoot=Ng.hydrateRoot;var Rg={exports:{}},Pg={},M_=A;function v6(n,t){return n===t&&(n!==0||1/n===1/t)||n!==n&&t!==t}var k6=typeof Object.is=="function"?Object.is:v6,x6=M_.useSyncExternalStore,j6=M_.useRef,S6=M_.useEffect,C6=M_.useMemo,E6=M_.useDebugValue;Pg.useSyncExternalStoreWithSelector=function(n,t,e,i,a){var s=j6(null);if(s.current===null){var _={hasValue:!1,value:null};s.current=_}else _=s.current;s=C6(function(){function d(x){if(!f){if(f=!0,g=x,x=i(x),a!==void 0&&_.hasValue){var S=_.value;if(a(S,x))return k=S}return k=x}if(S=k,k6(g,x))return S;var j=i(x);return a!==void 0&&a(S,j)?S:(g=x,k=j)}var f=!1,g,k,m=e===void 0?null:e;return[function(){return d(t())},m===null?void 0:function(){return d(m())}]},[t,e,i,a]);var c=x6(n,s[0],s[1]);return S6(function(){_.hasValue=!0,_.value=c},[c]),E6(c),c},Rg.exports=Pg;var O6=Rg.exports,ln="default"in bf?ta:bf,Ig=Symbol.for("react-redux-context"),Tg=typeof globalThis<"u"?globalThis:{};function N6(){if(!ln.createContext)return{};const n=Tg[Ig]??(Tg[Ig]=new Map);let t=n.get(ln.createContext);return t||(t=ln.createContext(null),n.set(ln.createContext,t)),t}var Pi=N6(),R6=()=>{throw new Error("uSES not initialized!")};function jp(n=Pi){return function(){return ln.useContext(n)}}var Fg=jp(),zg=R6,P6=n=>{zg=n},I6=(n,t)=>n===t;function T6(n=Pi){const t=n===Pi?Fg:jp(n),e=(i,a={})=>{const{equalityFn:s=I6,devModeChecks:_={}}=typeof a=="function"?{equalityFn:a}:a,{store:c,subscription:d,getServerState:f,stabilityCheck:g,identityFunctionCheck:k}=t();ln.useRef(!0);const m=ln.useCallback({[i.name](S){return i(S)}}[i.name],[i,g,_.stabilityCheck]),x=zg(d.addNestedSub,c.getState,f||c.getState,m,s);return ln.useDebugValue(x),x};return Object.assign(e,{withTypes:()=>e}),e}var pt=T6();function F6(n){n()}function z6(){let n=null,t=null;return{clear(){n=null,t=null},notify(){F6(()=>{let e=n;for(;e;)e.callback(),e=e.next})},get(){const e=[];let i=n;for(;i;)e.push(i),i=i.next;return e},subscribe(e){let i=!0;const a=t={callback:e,next:null,prev:t};return a.prev?a.prev.next=a:n=a,function(){!i||n===null||(i=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:n=a.next)}}}}var Dg={notify(){},get:()=>[]};function D6(n,t){let e,i=Dg,a=0,s=!1;function _(j){g();const P=i.subscribe(j);let v=!1;return()=>{v||(v=!0,P(),k())}}function c(){i.notify()}function d(){S.onStateChange&&S.onStateChange()}function f(){return s}function g(){a++,e||(e=t?t.addNestedSub(d):n.subscribe(d),i=z6())}function k(){a--,e&&a===0&&(e(),e=void 0,i.clear(),i=Dg)}function m(){s||(s=!0,g())}function x(){s&&(s=!1,k())}const S={addNestedSub:_,notifyNestedSubs:c,handleChangeWrapper:d,isSubscribed:f,trySubscribe:m,tryUnsubscribe:x,getListeners:()=>i};return S}var M6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",A6=M6?ln.useLayoutEffect:ln.useEffect;function B6({store:n,context:t,children:e,serverState:i,stabilityCheck:a="once",identityFunctionCheck:s="once"}){const _=ln.useMemo(()=>{const f=D6(n);return{store:n,subscription:f,getServerState:i?()=>i:void 0,stabilityCheck:a,identityFunctionCheck:s}},[n,i,a,s]),c=ln.useMemo(()=>n.getState(),[n]);A6(()=>{const{subscription:f}=_;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),c!==n.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[_,c]);const d=t||Pi;return ln.createElement(d.Provider,{value:_},e)}var U6=B6;function Mg(n=Pi){const t=n===Pi?Fg:jp(n),e=()=>{const{store:i}=t();return i};return Object.assign(e,{withTypes:()=>e}),e}var L6=Mg();function $6(n=Pi){const t=n===Pi?L6:Mg(n),e=()=>t().dispatch;return Object.assign(e,{withTypes:()=>e}),e}var Xt=$6();P6(O6.useSyncExternalStoreWithSelector);let At;const da=new Array(128).fill(void 0);da.push(void 0,null,!0,!1);function Co(n){return da[n]}let A_=da.length;function H6(n){n<132||(da[n]=A_,A_=n)}function Ii(n){const t=Co(n);return H6(n),t}const Ag=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Ag.decode();let B_=null;function Pl(){return(B_===null||B_.byteLength===0)&&(B_=new Uint8Array(At.memory.buffer)),B_}function Sp(n,t){return n=n>>>0,Ag.decode(Pl().subarray(n,n+t))}function Ti(n){A_===da.length&&da.push(da.length+1);const t=A_;return A_=da[t],da[t]=n,t}let U_=0;const Il=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},W6=typeof Il.encodeInto=="function"?function(n,t){return Il.encodeInto(n,t)}:function(n,t){const e=Il.encode(n);return t.set(e),{read:n.length,written:e.length}};function Cp(n,t,e){if(e===void 0){const c=Il.encode(n),d=t(c.length,1)>>>0;return Pl().subarray(d,d+c.length).set(c),U_=c.length,d}let i=n.length,a=t(i,1)>>>0;const s=Pl();let _=0;for(;_127)break;s[a+_]=c}if(_!==i){_!==0&&(n=n.slice(_)),a=e(a,i,i=_+n.length*3,1)>>>0;const c=Pl().subarray(a+_,a+i),d=W6(n,c);_+=d.written,a=e(a,i,_,1)>>>0}return U_=_,a}let L_=null;function Fi(){return(L_===null||L_.byteLength===0)&&(L_=new Int32Array(At.memory.buffer)),L_}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>At.__wbg_buildresult_free(n>>>0)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>At.__wbg_formatresult_free(n>>>0));const V6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>At.__wbg_project_free(n>>>0));class K6{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,V6.unregister(this),t}free(){const t=this.__destroy_into_raw();At.__wbg_project_free(t)}constructor(){const t=At.project_new();return this.__wbg_ptr=t>>>0,this}build(t,e){try{const _=At.__wbindgen_add_to_stack_pointer(-16),c=Cp(t,At.__wbindgen_malloc,At.__wbindgen_realloc),d=U_;At.project_build(_,this.__wbg_ptr,c,d,e);var i=Fi()[_/4+0],a=Fi()[_/4+1],s=Fi()[_/4+2];if(s)throw Ii(a);return Ii(i)}finally{At.__wbindgen_add_to_stack_pointer(16)}}format(t){try{const s=At.__wbindgen_add_to_stack_pointer(-16),_=Cp(t,At.__wbindgen_malloc,At.__wbindgen_realloc),c=U_;At.project_format(s,this.__wbg_ptr,_,c);var e=Fi()[s/4+0],i=Fi()[s/4+1],a=Fi()[s/4+2];if(a)throw Ii(i);return Ii(e)}finally{At.__wbindgen_add_to_stack_pointer(16)}}setup_stdlib(){At.project_setup_stdlib(this.__wbg_ptr)}}async function q6(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(i){if(n.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",i);else throw i}const e=await n.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(n,t);return e instanceof WebAssembly.Instance?{instance:e,module:n}:e}}function Q6(){const n={};return n.wbg={},n.wbg.__wbindgen_object_drop_ref=function(t){Ii(t)},n.wbg.__wbindgen_string_new=function(t,e){const i=Sp(t,e);return Ti(i)},n.wbg.__wbindgen_object_clone_ref=function(t){const e=Co(t);return Ti(e)},n.wbg.__wbindgen_error_new=function(t,e){const i=new Error(Sp(t,e));return Ti(i)},n.wbg.__wbg_String_b9412f8799faab3e=function(t,e){const i=String(Co(e)),a=Cp(i,At.__wbindgen_malloc,At.__wbindgen_realloc),s=U_;Fi()[t/4+1]=s,Fi()[t/4+0]=a},n.wbg.__wbindgen_number_new=function(t){return Ti(t)},n.wbg.__wbindgen_bigint_from_i64=function(t){return Ti(t)},n.wbg.__wbindgen_bigint_from_u64=function(t){const e=BigInt.asUintN(64,t);return Ti(e)},n.wbg.__wbg_set_f975102236d3c502=function(t,e,i){Co(t)[Ii(e)]=Ii(i)},n.wbg.__wbg_log_5bb5f88f245d7762=function(t){console.log(Co(t))},n.wbg.__wbg_new_16b304a2cfa7ff4a=function(){const t=new Array;return Ti(t)},n.wbg.__wbg_new_72fb9a18b5ae2624=function(){const t=new Object;return Ti(t)},n.wbg.__wbg_set_d4638f722068f043=function(t,e,i){Co(t)[e>>>0]=Ii(i)},n.wbg.__wbindgen_throw=function(t,e){throw new Error(Sp(t,e))},n}function J6(n,t){return At=n.exports,Bg.__wbindgen_wasm_module=t,L_=null,B_=null,At}async function Bg(n){if(At!==void 0)return At;typeof n>"u"&&(n=new URL("/aiken-ide/assets/aiken_js_bindings_bg-C175zDaU.wasm",import.meta.url));const t=Q6();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:i}=await q6(await n,t);return J6(e,i)}let Eo;function Ug(){const[n,t]=A.useState(Eo),[e,i]=A.useState(!1),[a,s]=A.useState(null);return A.useEffect(()=>{!Eo&&!e?(i(!0),Bg().then(()=>{Eo=new K6,t(Eo)}).catch(_=>{s(_)}).finally(()=>{i(!1)})):Eo&&t(Eo)},[]),{project:n,isLoading:e,error:a}}function X6(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Lg(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),e.push.apply(e,i)}return e}function $g(n){for(var t=1;t=0)&&(e[a]=n[a]);return e}function Y6(n,t){if(n==null)return{};var e=G6(n,t),i,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}function Z6(n,t){return t2(n)||e2(n,t)||n2(n,t)||r2()}function t2(n){if(Array.isArray(n))return n}function e2(n,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var e=[],i=!0,a=!1,s=void 0;try{for(var _=n[Symbol.iterator](),c;!(i=(c=_.next()).done)&&(e.push(c.value),!(t&&e.length===t));i=!0);}catch(d){a=!0,s=d}finally{try{!i&&_.return!=null&&_.return()}finally{if(a)throw s}}return e}}function n2(n,t){if(n){if(typeof n=="string")return Hg(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Hg(n,t)}}function Hg(n,t){(t==null||t>n.length)&&(t=n.length);for(var e=0,i=new Array(t);e=n.length?n.apply(this,a):function(){for(var _=arguments.length,c=new Array(_),d=0;d<_;d++)c[d]=arguments[d];return t.apply(e,[].concat(a,c))}}}function Tl(n){return{}.toString.call(n).includes("Object")}function s2(n){return!Object.keys(n).length}function H_(n){return typeof n=="function"}function o2(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function _2(n,t){return Tl(t)||zi("changeType"),Object.keys(t).some(function(e){return!o2(n,e)})&&zi("changeField"),t}function c2(n){H_(n)||zi("selectorType")}function l2(n){H_(n)||Tl(n)||zi("handlerType"),Tl(n)&&Object.values(n).some(function(t){return!H_(t)})&&zi("handlersType")}function d2(n){n||zi("initialIsRequired"),Tl(n)||zi("initialType"),s2(n)&&zi("initialContent")}function u2(n,t){throw new Error(n[t]||n.default)}var p2={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},zi=$_(u2)(p2),Fl={changes:_2,selector:c2,handler:l2,initial:d2};function f2(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fl.initial(n),Fl.handler(t);var e={current:n},i=$_(g2)(e,t),a=$_(h2)(e),s=$_(Fl.changes)(n),_=$_(w2)(e);function c(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return Fl.selector(f),f(e.current)}function d(f){i2(i,a,s,_)(f)}return[c,d]}function w2(n,t){return H_(t)?t(n.current):t}function h2(n,t){return n.current=Vg(Vg({},n.current),t),t}function g2(n,t,e){return H_(t)?t(n.current):Object.keys(e).forEach(function(i){var a;return(a=t[i])===null||a===void 0?void 0:a.call(t,n.current[i])}),e}var b2={create:f2},y2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function m2(n){return function t(){for(var e=this,i=arguments.length,a=new Array(i),s=0;s=n.length?n.apply(this,a):function(){for(var _=arguments.length,c=new Array(_),d=0;d<_;d++)c[d]=arguments[d];return t.apply(e,[].concat(a,c))}}}function v2(n){return{}.toString.call(n).includes("Object")}function k2(n){return n||qg("configIsRequired"),v2(n)||qg("configType"),n.urls?(x2(),{paths:{vs:n.urls.monacoBase}}):n}function x2(){console.warn(Kg.deprecation)}function j2(n,t){throw new Error(n[t]||n.default)}var Kg={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning! You are using deprecated way of configuration. Instead of using @@ -15,7 +15,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho monaco.config({ paths: { vs: '...' } }) For more please check the link https://github.com/suren-atoyan/monaco-loader#config - `},Qg=m2(j2)(qg),S2={config:k2},C2=function(){for(var n=arguments.length,t=new Array(n),e=0;e{i.current=!1}:n,t)}var dn=V2;function V_(){}function Oo(n,t,e,i){return K2(n,i)||q2(n,t,e,i)}function K2(n,t){return n.editor.getModel(Zg(n,t))}function q2(n,t,e,i){return n.editor.createModel(t,e,i?Zg(n,i):void 0)}function Zg(n,t){return n.Uri.parse(t)}function Q2({original:n,modified:t,language:e,originalLanguage:i,modifiedLanguage:a,originalModelPath:s,modifiedModelPath:_,keepCurrentOriginalModel:c=!1,keepCurrentModifiedModel:d=!1,theme:f="light",loading:g="Loading...",options:k={},height:m="100%",width:x="100%",className:S,wrapperProps:j={},beforeMount:P=V_,onMount:v=V_}){let[y,b]=A.useState(!1),[F,D]=A.useState(!0),U=A.useRef(null),M=A.useRef(null),$=A.useRef(null),Y=A.useRef(v),W=A.useRef(P),St=A.useRef(!1);Rp(()=>{let L=Ml.init();return L.then(Q=>(M.current=Q)&&D(!1)).catch(Q=>(Q==null?void 0:Q.type)!=="cancelation"&&console.error("Monaco initialization: error:",Q)),()=>U.current?I():L.cancel()}),dn(()=>{if(U.current&&M.current){let L=U.current.getOriginalEditor(),Q=Oo(M.current,n||"",i||e||"text",s||"");Q!==L.getModel()&&L.setModel(Q)}},[s],y),dn(()=>{if(U.current&&M.current){let L=U.current.getModifiedEditor(),Q=Oo(M.current,t||"",a||e||"text",_||"");Q!==L.getModel()&&L.setModel(Q)}},[_],y),dn(()=>{let L=U.current.getModifiedEditor();L.getOption(M.current.editor.EditorOption.readOnly)?L.setValue(t||""):t!==L.getValue()&&(L.executeEdits("",[{range:L.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),L.pushUndoStop())},[t],y),dn(()=>{var L,Q;(Q=(L=U.current)==null?void 0:L.getModel())==null||Q.original.setValue(n||"")},[n],y),dn(()=>{let{original:L,modified:Q}=U.current.getModel();M.current.editor.setModelLanguage(L,i||e||"text"),M.current.editor.setModelLanguage(Q,a||e||"text")},[e,i,a],y),dn(()=>{var L;(L=M.current)==null||L.editor.setTheme(f)},[f],y),dn(()=>{var L;(L=U.current)==null||L.updateOptions(k)},[k],y);let Qt=A.useCallback(()=>{var Ct;if(!M.current)return;W.current(M.current);let L=Oo(M.current,n||"",i||e||"text",s||""),Q=Oo(M.current,t||"",a||e||"text",_||"");(Ct=U.current)==null||Ct.setModel({original:L,modified:Q})},[e,t,a,n,i,s,_]),ue=A.useCallback(()=>{var L;!St.current&&$.current&&(U.current=M.current.editor.createDiffEditor($.current,{automaticLayout:!0,...k}),Qt(),(L=M.current)==null||L.editor.setTheme(f),b(!0),St.current=!0)},[k,f,Qt]);A.useEffect(()=>{y&&Y.current(U.current,M.current)},[y]),A.useEffect(()=>{!F&&!y&&ue()},[F,y,ue]);function I(){var Q,Ct,K,ct;let L=(Q=U.current)==null?void 0:Q.getModel();c||((Ct=L==null?void 0:L.original)==null||Ct.dispose()),d||((K=L==null?void 0:L.modified)==null||K.dispose()),(ct=U.current)==null||ct.dispose()}return ta.createElement(Yg,{width:x,height:m,isEditorReady:y,loading:g,_ref:$,className:S,wrapperProps:j})}var J2=Q2;A.memo(J2);function X2(){let[n,t]=A.useState(Ml.__getMonacoInstance());return Rp(()=>{let e;return n||(e=Ml.init(),e.then(i=>{t(i)})),()=>e==null?void 0:e.cancel()}),n}var G2=X2;function Y2(n){let t=A.useRef();return A.useEffect(()=>{t.current=n},[n]),t.current}var Z2=Y2,Dl=new Map;function tx({defaultValue:n,defaultLanguage:t,defaultPath:e,value:i,language:a,path:s,theme:_="light",line:c,loading:d="Loading...",options:f={},overrideServices:g={},saveViewState:k=!0,keepCurrentModel:m=!1,width:x="100%",height:S="100%",className:j,wrapperProps:P={},beforeMount:v=V_,onMount:y=V_,onChange:b,onValidate:F=V_}){let[D,U]=A.useState(!1),[M,$]=A.useState(!0),Y=A.useRef(null),W=A.useRef(null),St=A.useRef(null),Qt=A.useRef(y),ue=A.useRef(v),I=A.useRef(),L=A.useRef(i),Q=Z2(s),Ct=A.useRef(!1),K=A.useRef(!1);Rp(()=>{let z=Ml.init();return z.then(B=>(Y.current=B)&&$(!1)).catch(B=>(B==null?void 0:B.type)!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>W.current?ht():z.cancel()}),dn(()=>{var B,Z,V,at;let z=Oo(Y.current,n||i||"",t||a||"",s||e||"");z!==((B=W.current)==null?void 0:B.getModel())&&(k&&Dl.set(Q,(Z=W.current)==null?void 0:Z.saveViewState()),(V=W.current)==null||V.setModel(z),k&&((at=W.current)==null||at.restoreViewState(Dl.get(s))))},[s],D),dn(()=>{var z;(z=W.current)==null||z.updateOptions(f)},[f],D),dn(()=>{!W.current||i===void 0||(W.current.getOption(Y.current.editor.EditorOption.readOnly)?W.current.setValue(i):i!==W.current.getValue()&&(K.current=!0,W.current.executeEdits("",[{range:W.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),W.current.pushUndoStop(),K.current=!1))},[i],D),dn(()=>{var B,Z;let z=(B=W.current)==null?void 0:B.getModel();z&&a&&((Z=Y.current)==null||Z.editor.setModelLanguage(z,a))},[a],D),dn(()=>{var z;c!==void 0&&((z=W.current)==null||z.revealLine(c))},[c],D),dn(()=>{var z;(z=Y.current)==null||z.editor.setTheme(_)},[_],D);let ct=A.useCallback(()=>{var z;if(!(!St.current||!Y.current)&&!Ct.current){ue.current(Y.current);let B=s||e,Z=Oo(Y.current,i||n||"",t||a||"",B||"");W.current=(z=Y.current)==null?void 0:z.editor.create(St.current,{model:Z,automaticLayout:!0,...f},g),k&&W.current.restoreViewState(Dl.get(B)),Y.current.editor.setTheme(_),c!==void 0&&W.current.revealLine(c),U(!0),Ct.current=!0}},[n,t,e,i,a,s,f,g,k,_,c]);A.useEffect(()=>{D&&Qt.current(W.current,Y.current)},[D]),A.useEffect(()=>{!M&&!D&&ct()},[M,D,ct]),L.current=i,A.useEffect(()=>{var z,B;D&&b&&((z=I.current)==null||z.dispose(),I.current=(B=W.current)==null?void 0:B.onDidChangeModelContent(Z=>{K.current||b(W.current.getValue(),Z)}))},[D,b]),A.useEffect(()=>{if(D){let z=Y.current.editor.onDidChangeMarkers(B=>{var V;let Z=(V=W.current.getModel())==null?void 0:V.uri;if(Z&&B.find(at=>at.path===Z.path)){let at=Y.current.editor.getModelMarkers({resource:Z});F==null||F(at)}});return()=>{z==null||z.dispose()}}return()=>{}},[D,F]);function ht(){var z,B;(z=I.current)==null||z.dispose(),m?k&&Dl.set(s,W.current.saveViewState()):(B=W.current.getModel())==null||B.dispose(),W.current.dispose()}return ta.createElement(Yg,{width:x,height:S,isEditorReady:D,loading:d,_ref:St,className:j,wrapperProps:P})}var ex=tx,nx=A.memo(ex),rx=nx;const Al={".ak":"aiken",".js":"javascript",".ts":"typescript",".json":"json",".txt":"plaintext"},tb=n=>{const t=n.slice(n.lastIndexOf("."));return Al[t]||"plaintext"},eb=Object.keys(Al);function ge(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var ax=typeof Symbol=="function"&&Symbol.observable||"@@observable",nb=ax,Pp=()=>Math.random().toString(36).substring(7).split("").join("."),ix={INIT:`@@redux/INIT${Pp()}`,REPLACE:`@@redux/REPLACE${Pp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Pp()}`},Bl=ix;function Ip(n){if(typeof n!="object"||n===null)return!1;let t=n;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(n)===t||Object.getPrototypeOf(n)===null}function rb(n,t,e){if(typeof n!="function")throw new Error(ge(2));if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(ge(1));return e(rb)(n,t)}let i=n,a=t,s=new Map,_=s,c=0,d=!1;function f(){_===s&&(_=new Map,s.forEach((j,P)=>{_.set(P,j)}))}function g(){if(d)throw new Error(ge(3));return a}function k(j){if(typeof j!="function")throw new Error(ge(4));if(d)throw new Error(ge(5));let P=!0;f();const v=c++;return _.set(v,j),function(){if(P){if(d)throw new Error(ge(6));P=!1,f(),_.delete(v),s=null}}}function m(j){if(!Ip(j))throw new Error(ge(7));if(typeof j.type>"u")throw new Error(ge(8));if(typeof j.type!="string")throw new Error(ge(17));if(d)throw new Error(ge(9));try{d=!0,a=i(a,j)}finally{d=!1}return(s=_).forEach(P=>{P()}),j}function x(j){if(typeof j!="function")throw new Error(ge(10));i=j,m({type:Bl.REPLACE})}function S(){const j=k;return{subscribe(P){if(typeof P!="object"||P===null)throw new Error(ge(11));function v(){const y=P;y.next&&y.next(g())}return v(),{unsubscribe:j(v)}},[nb](){return this}}}return m({type:Bl.INIT}),{dispatch:m,subscribe:k,getState:g,replaceReducer:x,[nb]:S}}function sx(n){Object.keys(n).forEach(t=>{const e=n[t];if(typeof e(void 0,{type:Bl.INIT})>"u")throw new Error(ge(12));if(typeof e(void 0,{type:Bl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function ox(n){const t=Object.keys(n),e={};for(let s=0;s"u")throw _&&_.type,new Error(ge(14));d[g]=x,c=c||x!==m}return c=c||i.length!==Object.keys(s).length,c?d:s}}function Ul(...n){return n.length===0?t=>t:n.length===1?n[0]:n.reduce((t,e)=>(...i)=>t(e(...i)))}function _x(...n){return t=>(e,i)=>{const a=t(e,i);let s=()=>{throw new Error(ge(15))};const _={getState:a.getState,dispatch:(d,...f)=>s(d,...f)},c=n.map(d=>d(_));return s=Ul(...c)(a.dispatch),{...a,dispatch:s}}}function cx(n){return Ip(n)&&"type"in n&&typeof n.type=="string"}var ab=Symbol.for("immer-nothing"),ib=Symbol.for("immer-draftable"),un=Symbol.for("immer-state");function Yn(n,...t){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var No=Object.getPrototypeOf;function Mi(n){return!!n&&!!n[un]}function ua(n){var t;return n?sb(n)||Array.isArray(n)||!!n[ib]||!!((t=n.constructor)!=null&&t[ib])||Hl(n)||Wl(n):!1}var lx=Object.prototype.constructor.toString();function sb(n){if(!n||typeof n!="object")return!1;const t=No(n);if(t===null)return!0;const e=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return e===Object?!0:typeof e=="function"&&Function.toString.call(e)===lx}function Ll(n,t){$l(n)===0?Reflect.ownKeys(n).forEach(e=>{t(e,n[e],n)}):n.forEach((e,i)=>t(i,e,n))}function $l(n){const t=n[un];return t?t.type_:Array.isArray(n)?1:Hl(n)?2:Wl(n)?3:0}function Tp(n,t){return $l(n)===2?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function ob(n,t,e){const i=$l(n);i===2?n.set(t,e):i===3?n.add(e):n[t]=e}function dx(n,t){return n===t?n!==0||1/n===1/t:n!==n&&t!==t}function Hl(n){return n instanceof Map}function Wl(n){return n instanceof Set}function Cs(n){return n.copy_||n.base_}function Fp(n,t){if(Hl(n))return new Map(n);if(Wl(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);if(!t&&sb(n))return No(n)?{...n}:Object.assign(Object.create(null),n);const e=Object.getOwnPropertyDescriptors(n);delete e[un];let i=Reflect.ownKeys(e);for(let a=0;a1&&(n.set=n.add=n.clear=n.delete=ux),Object.freeze(n),t&&Object.entries(n).forEach(([e,i])=>zp(i,!0))),n}function ux(){Yn(2)}function Vl(n){return Object.isFrozen(n)}var px={};function Es(n){const t=px[n];return t||Yn(0,n),t}var K_;function _b(){return K_}function fx(n,t){return{drafts_:[],parent_:n,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function cb(n,t){t&&(Es("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=t)}function Mp(n){Dp(n),n.drafts_.forEach(wx),n.drafts_=null}function Dp(n){n===K_&&(K_=n.parent_)}function lb(n){return K_=fx(K_,n)}function wx(n){const t=n[un];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function db(n,t){t.unfinalizedDrafts_=t.drafts_.length;const e=t.drafts_[0];return n!==void 0&&n!==e?(e[un].modified_&&(Mp(t),Yn(4)),ua(n)&&(n=Kl(t,n),t.parent_||ql(t,n)),t.patches_&&Es("Patches").generateReplacementPatches_(e[un].base_,n,t.patches_,t.inversePatches_)):n=Kl(t,e,[]),Mp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),n!==ab?n:void 0}function Kl(n,t,e){if(Vl(t))return t;const i=t[un];if(!i)return Ll(t,(a,s)=>ub(n,i,t,a,s,e)),t;if(i.scope_!==n)return t;if(!i.modified_)return ql(n,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let s=a,_=!1;i.type_===3&&(s=new Set(a),a.clear(),_=!0),Ll(s,(c,d)=>ub(n,i,a,c,d,e,_)),ql(n,a,!1),e&&n.patches_&&Es("Patches").generatePatches_(i,e,n.patches_,n.inversePatches_)}return i.copy_}function ub(n,t,e,i,a,s,_){if(Mi(a)){const c=s&&t&&t.type_!==3&&!Tp(t.assigned_,i)?s.concat(i):void 0,d=Kl(n,a,c);if(ob(e,i,d),Mi(d))n.canAutoFreeze_=!1;else return}else _&&e.add(a);if(ua(a)&&!Vl(a)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;Kl(n,a),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&Object.prototype.propertyIsEnumerable.call(e,i)&&ql(n,a)}}function ql(n,t,e=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&zp(t,e)}function hx(n,t){const e=Array.isArray(n),i={type_:e?1:0,scope_:t?t.scope_:_b(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=i,s=Ap;e&&(a=[i],s=q_);const{revoke:_,proxy:c}=Proxy.revocable(a,s);return i.draft_=c,i.revoke_=_,c}var Ap={get(n,t){if(t===un)return n;const e=Cs(n);if(!Tp(e,t))return gx(n,e,t);const i=e[t];return n.finalized_||!ua(i)?i:i===Bp(n.base_,t)?(Lp(n),n.copy_[t]=$p(i,n)):i},has(n,t){return t in Cs(n)},ownKeys(n){return Reflect.ownKeys(Cs(n))},set(n,t,e){const i=pb(Cs(n),t);if(i!=null&&i.set)return i.set.call(n.draft_,e),!0;if(!n.modified_){const a=Bp(Cs(n),t),s=a==null?void 0:a[un];if(s&&s.base_===e)return n.copy_[t]=e,n.assigned_[t]=!1,!0;if(dx(e,a)&&(e!==void 0||Tp(n.base_,t)))return!0;Lp(n),Up(n)}return n.copy_[t]===e&&(e!==void 0||t in n.copy_)||Number.isNaN(e)&&Number.isNaN(n.copy_[t])||(n.copy_[t]=e,n.assigned_[t]=!0),!0},deleteProperty(n,t){return Bp(n.base_,t)!==void 0||t in n.base_?(n.assigned_[t]=!1,Lp(n),Up(n)):delete n.assigned_[t],n.copy_&&delete n.copy_[t],!0},getOwnPropertyDescriptor(n,t){const e=Cs(n),i=Reflect.getOwnPropertyDescriptor(e,t);return i&&{writable:!0,configurable:n.type_!==1||t!=="length",enumerable:i.enumerable,value:e[t]}},defineProperty(){Yn(11)},getPrototypeOf(n){return No(n.base_)},setPrototypeOf(){Yn(12)}},q_={};Ll(Ap,(n,t)=>{q_[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),q_.deleteProperty=function(n,t){return q_.set.call(this,n,t,void 0)},q_.set=function(n,t,e){return Ap.set.call(this,n[0],t,e,n[0])};function Bp(n,t){const e=n[un];return(e?Cs(e):n)[t]}function gx(n,t,e){var a;const i=pb(t,e);return i?"value"in i?i.value:(a=i.get)==null?void 0:a.call(n.draft_):void 0}function pb(n,t){if(!(t in n))return;let e=No(n);for(;e;){const i=Object.getOwnPropertyDescriptor(e,t);if(i)return i;e=No(e)}}function Up(n){n.modified_||(n.modified_=!0,n.parent_&&Up(n.parent_))}function Lp(n){n.copy_||(n.copy_=Fp(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var bx=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,e,i)=>{if(typeof t=="function"&&typeof e!="function"){const s=e;e=t;const _=this;return function(c=s,...d){return _.produce(c,f=>e.call(this,f,...d))}}typeof e!="function"&&Yn(6),i!==void 0&&typeof i!="function"&&Yn(7);let a;if(ua(t)){const s=lb(this),_=$p(t,void 0);let c=!0;try{a=e(_),c=!1}finally{c?Mp(s):Dp(s)}return cb(s,i),db(a,s)}else if(!t||typeof t!="object"){if(a=e(t),a===void 0&&(a=t),a===ab&&(a=void 0),this.autoFreeze_&&zp(a,!0),i){const s=[],_=[];Es("Patches").generateReplacementPatches_(t,a,s,_),i(s,_)}return a}else Yn(1,t)},this.produceWithPatches=(t,e)=>{if(typeof t=="function")return(s,..._)=>this.produceWithPatches(s,c=>t(c,..._));let i,a;return[this.produce(t,e,(s,_)=>{i=s,a=_}),i,a]},typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof(n==null?void 0:n.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){ua(n)||Yn(8),Mi(n)&&(n=fb(n));const t=lb(this),e=$p(n,void 0);return e[un].isManual_=!0,Dp(t),e}finishDraft(n,t){const e=n&&n[un];(!e||!e.isManual_)&&Yn(9);const{scope_:i}=e;return cb(i,t),db(void 0,i)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,t){let e;for(e=t.length-1;e>=0;e--){const a=t[e];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}e>-1&&(t=t.slice(e+1));const i=Es("Patches").applyPatches_;return Mi(n)?i(n,t):this.produce(n,a=>i(a,t))}};function $p(n,t){const e=Hl(n)?Es("MapSet").proxyMap_(n,t):Wl(n)?Es("MapSet").proxySet_(n,t):hx(n,t);return(t?t.scope_:_b()).drafts_.push(e),e}function fb(n){return Mi(n)||Yn(10,n),wb(n)}function wb(n){if(!ua(n)||Vl(n))return n;const t=n[un];let e;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,e=Fp(n,t.scope_.immer_.useStrictShallowCopy_)}else e=Fp(n,!0);return Ll(e,(i,a)=>{ob(e,i,wb(a))}),t&&(t.finalized_=!1),e}var pn=new bx,hb=pn.produce;pn.produceWithPatches.bind(pn),pn.setAutoFreeze.bind(pn),pn.setUseStrictShallowCopy.bind(pn),pn.applyPatches.bind(pn),pn.createDraft.bind(pn),pn.finishDraft.bind(pn);function yx(n,t=`expected a function, instead received ${typeof n}`){if(typeof n!="function")throw new TypeError(t)}function mx(n,t=`expected an object, instead received ${typeof n}`){if(typeof n!="object")throw new TypeError(t)}function vx(n,t="expected all items to be functions, instead received the following types: "){if(!n.every(e=>typeof e=="function")){const e=n.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${e}]`)}}var gb=n=>Array.isArray(n)?n:[n];function kx(n){const t=Array.isArray(n[0])?n[0]:n;return vx(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function xx(n,t){const e=[],{length:i}=n;for(let a=0;a{e=Ql(),_.resetResultsCount()},_.resultsCount=()=>s,_.resetResultsCount=()=>{s=0},_}function yb(n,...t){const e=typeof n=="function"?{memoize:n,memoizeOptions:t}:n,i=(...a)=>{let s=0,_=0,c,d={},f=a.pop();typeof f=="object"&&(d=f,f=a.pop()),yx(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const g={...e,...d},{memoize:k,memoizeOptions:m=[],argsMemoize:x=Hp,argsMemoizeOptions:S=[],devModeChecks:j={}}=g,P=gb(m),v=gb(S),y=kx(a),b=k(function(){return s++,f.apply(null,arguments)},...P),F=x(function(){_++;const D=xx(y,arguments);return c=b.apply(null,D),c},...v);return Object.assign(F,{resultFunc:f,memoizedResultFunc:b,dependencies:y,dependencyRecomputations:()=>_,resetDependencyRecomputations:()=>{_=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:k,argsMemoize:x})};return Object.assign(i,{withTypes:()=>i}),i}var Ex=yb(Hp),Ox=Object.assign((n,t=Ex)=>{mx(n,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof n}`);const e=Object.keys(n),i=e.map(a=>n[a]);return t(i,(...a)=>a.reduce((s,_,c)=>(s[e[c]]=_,s),{}))},{withTypes:()=>Ox});function mb(n){return({dispatch:t,getState:e})=>i=>a=>typeof a=="function"?a(t,e,n):i(a)}var Nx=mb(),Rx=mb,Px=(...n)=>{const t=yb(...n),e=Object.assign((...i)=>{const a=t(...i),s=(_,...c)=>a(Mi(_)?fb(_):_,...c);return Object.assign(s,a),s},{withTypes:()=>e});return e};Px(Hp);var Ix=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ul:Ul.apply(null,arguments)};function Ro(n,t){function e(...i){if(t){let a=t(...i);if(!a)throw new Error(qe(0));return{type:n,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:n,payload:i[0]}}return e.toString=()=>`${n}`,e.type=n,e.match=i=>cx(i)&&i.type===n,e}var vb=class wc extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,wc.prototype)}static get[Symbol.species](){return wc}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new wc(...t[0].concat(this)):new wc(...t.concat(this))}};function kb(n){return ua(n)?hb(n,()=>{}):n}function xb(n,t,e){if(n.has(t)){let a=n.get(t);return e.update&&(a=e.update(a,t,n),n.set(t,a)),a}if(!e.insert)throw new Error(qe(10));const i=e.insert(t,n);return n.set(t,i),i}function Tx(n){return typeof n=="boolean"}var Fx=()=>function(n){const{thunk:t=!0,immutableCheck:e=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=n??{};let s=new vb;return t&&(Tx(t)?s.push(Nx):s.push(Rx(t.extraArgument))),s},zx="RTK_autoBatch",jb=n=>t=>{setTimeout(t,n)},Mx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jb(10),Dx=(n={type:"raf"})=>t=>(...e)=>{const i=t(...e);let a=!0,s=!1,_=!1;const c=new Set,d=n.type==="tick"?queueMicrotask:n.type==="raf"?Mx:n.type==="callback"?n.queueNotification:jb(n.timeout),f=()=>{_=!1,s&&(s=!1,c.forEach(g=>g()))};return Object.assign({},i,{subscribe(g){const k=()=>a&&g(),m=i.subscribe(k);return c.add(g),()=>{m(),c.delete(g)}},dispatch(g){var k;try{return a=!((k=g==null?void 0:g.meta)!=null&&k[zx]),s=!a,s&&(_||(_=!0,d(f))),i.dispatch(g)}finally{a=!0}}})},Ax=n=>function(t){const{autoBatch:e=!0}=t??{};let i=new vb(n);return e&&i.push(Dx(typeof e=="object"?e:void 0)),i},Bx=!0;function Ux(n){const t=Fx(),{reducer:e=void 0,middleware:i,devTools:a=!0,preloadedState:s=void 0,enhancers:_=void 0}=n||{};let c;if(typeof e=="function")c=e;else if(Ip(e))c=ox(e);else throw new Error(qe(1));let d;typeof i=="function"?d=i(t):d=t();let f=Ul;a&&(f=Ix({trace:!Bx,...typeof a=="object"&&a}));const g=_x(...d),k=Ax(g);let m=typeof _=="function"?_(k):k();const x=f(...m);return rb(c,s,x)}function Sb(n){const t={},e=[];let i;const a={addCase(s,_){const c=typeof s=="string"?s:s.type;if(!c)throw new Error(qe(28));if(c in t)throw new Error(qe(29));return t[c]=_,a},addMatcher(s,_){return e.push({matcher:s,reducer:_}),a},addDefaultCase(s){return i=s,a}};return n(a),[t,e,i]}function Lx(n){return typeof n=="function"}function $x(n,t){let[e,i,a]=Sb(t),s;if(Lx(n))s=()=>kb(n());else{const c=kb(n);s=()=>c}function _(c=s(),d){let f=[e[d.type],...i.filter(({matcher:g})=>g(d)).map(({reducer:g})=>g)];return f.filter(g=>!!g).length===0&&(f=[a]),f.reduce((g,k)=>{if(k)if(Mi(g)){const m=k(g,d);return m===void 0?g:m}else{if(ua(g))return hb(g,m=>k(m,d));{const m=k(g,d);if(m===void 0){if(g===null)return g;throw new Error(qe(9))}return m}}return g},c)}return _.getInitialState=s,_}var Hx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wx=(n=21)=>{let t="",e=n;for(;e--;)t+=Hx[Math.random()*64|0];return t},Vx=Symbol.for("rtk-slice-createasyncthunk");function Kx(n,t){return`${n}/${t}`}function qx({creators:n}={}){var e;const t=(e=n==null?void 0:n.asyncThunk)==null?void 0:e[Vx];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(qe(11));typeof process<"u";const _=(typeof i.reducers=="function"?i.reducers(Jx()):i.reducers)||{},c=Object.keys(_),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(y,b){const F=typeof y=="string"?y:y.type;if(!F)throw new Error(qe(12));if(F in d.sliceCaseReducersByType)throw new Error(qe(13));return d.sliceCaseReducersByType[F]=b,f},addMatcher(y,b){return d.sliceMatchers.push({matcher:y,reducer:b}),f},exposeAction(y,b){return d.actionCreators[y]=b,f},exposeCaseReducer(y,b){return d.sliceCaseReducersByName[y]=b,f}};c.forEach(y=>{const b=_[y],F={reducerName:y,type:Kx(a,y),createNotation:typeof i.reducers=="function"};Gx(b)?Zx(F,b,f,t):Xx(F,b,f)});function g(){const[y={},b=[],F=void 0]=typeof i.extraReducers=="function"?Sb(i.extraReducers):[i.extraReducers],D={...y,...d.sliceCaseReducersByType};return $x(i.initialState,U=>{for(let M in D)U.addCase(M,D[M]);for(let M of d.sliceMatchers)U.addMatcher(M.matcher,M.reducer);for(let M of b)U.addMatcher(M.matcher,M.reducer);F&&U.addDefaultCase(F)})}const k=y=>y,m=new Map;let x;function S(y,b){return x||(x=g()),x(y,b)}function j(){return x||(x=g()),x.getInitialState()}function P(y,b=!1){function F(U){let M=U[y];return typeof M>"u"&&b&&(M=j()),M}function D(U=k){const M=xb(m,b,{insert:()=>new WeakMap});return xb(M,U,{insert:()=>{const $={};for(const[Y,W]of Object.entries(i.selectors??{}))$[Y]=Qx(W,U,j,b);return $}})}return{reducerPath:y,getSelectors:D,get selectors(){return D(F)},selectSlice:F}}const v={name:a,reducer:S,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:j,...P(s),injectInto(y,{reducerPath:b,...F}={}){const D=b??s;return y.inject({reducerPath:D,reducer:S},F),{...v,...P(D,!0)}}};return v}}function Qx(n,t,e,i){function a(s,..._){let c=t(s);return typeof c>"u"&&i&&(c=e()),n(c,..._)}return a.unwrapped=n,a}var Di=qx();function Jx(){function n(t,e){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...e}}return n.withTypes=()=>n,{reducer(t){return Object.assign({[t.name](...e){return t(...e)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,e){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:e}},asyncThunk:n}}function Xx({type:n,reducerName:t,createNotation:e},i,a){let s,_;if("reducer"in i){if(e&&!Yx(i))throw new Error(qe(17));s=i.reducer,_=i.prepare}else s=i;a.addCase(n,s).exposeCaseReducer(t,s).exposeAction(t,_?Ro(n,_):Ro(n))}function Gx(n){return n._reducerDefinitionType==="asyncThunk"}function Yx(n){return n._reducerDefinitionType==="reducerWithPrepare"}function Zx({type:n,reducerName:t},e,i,a){if(!a)throw new Error(qe(18));const{payloadCreator:s,fulfilled:_,pending:c,rejected:d,settled:f,options:g}=e,k=a(n,s,g);i.exposeAction(t,k),_&&i.addCase(k.fulfilled,_),c&&i.addCase(k.pending,c),d&&i.addCase(k.rejected,d),f&&i.addMatcher(k.settled,f),i.exposeCaseReducer(t,{fulfilled:_||Jl,pending:c||Jl,rejected:d||Jl,settled:f||Jl})}function Jl(){}var tj=(n,t)=>{if(typeof n!="function")throw new Error(qe(32))},Wp="listenerMiddleware",ej=n=>{let{type:t,actionCreator:e,matcher:i,predicate:a,effect:s}=n;if(t)a=Ro(t).match;else if(e)t=e.type,a=e.match;else if(i)a=i;else if(!a)throw new Error(qe(21));return tj(s),{predicate:a,type:t,effect:s}},nj=Object.assign(n=>{const{type:t,predicate:e,effect:i}=ej(n);return{id:Wx(),effect:i,type:t,predicate:e,pending:new Set,unsubscribe:()=>{throw new Error(qe(22))}}},{withTypes:()=>nj}),rj=Object.assign(Ro(`${Wp}/add`),{withTypes:()=>rj});Ro(`${Wp}/removeAll`);var aj=Object.assign(Ro(`${Wp}/remove`),{withTypes:()=>aj});function qe(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}const ij=`use aiken/list + `},qg=m2(j2)(Kg),S2={config:k2},C2=function(){for(var n=arguments.length,t=new Array(n),e=0;e{i.current=!1}:n,t)}var dn=V2;function V_(){}function Oo(n,t,e,i){return K2(n,i)||q2(n,t,e,i)}function K2(n,t){return n.editor.getModel(Yg(n,t))}function q2(n,t,e,i){return n.editor.createModel(t,e,i?Yg(n,i):void 0)}function Yg(n,t){return n.Uri.parse(t)}function Q2({original:n,modified:t,language:e,originalLanguage:i,modifiedLanguage:a,originalModelPath:s,modifiedModelPath:_,keepCurrentOriginalModel:c=!1,keepCurrentModifiedModel:d=!1,theme:f="light",loading:g="Loading...",options:k={},height:m="100%",width:x="100%",className:S,wrapperProps:j={},beforeMount:P=V_,onMount:v=V_}){let[y,b]=A.useState(!1),[I,M]=A.useState(!0),U=A.useRef(null),D=A.useRef(null),$=A.useRef(null),Y=A.useRef(v),W=A.useRef(P),St=A.useRef(!1);Rp(()=>{let L=Dl.init();return L.then(Q=>(D.current=Q)&&M(!1)).catch(Q=>(Q==null?void 0:Q.type)!=="cancelation"&&console.error("Monaco initialization: error:",Q)),()=>U.current?T():L.cancel()}),dn(()=>{if(U.current&&D.current){let L=U.current.getOriginalEditor(),Q=Oo(D.current,n||"",i||e||"text",s||"");Q!==L.getModel()&&L.setModel(Q)}},[s],y),dn(()=>{if(U.current&&D.current){let L=U.current.getModifiedEditor(),Q=Oo(D.current,t||"",a||e||"text",_||"");Q!==L.getModel()&&L.setModel(Q)}},[_],y),dn(()=>{let L=U.current.getModifiedEditor();L.getOption(D.current.editor.EditorOption.readOnly)?L.setValue(t||""):t!==L.getValue()&&(L.executeEdits("",[{range:L.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),L.pushUndoStop())},[t],y),dn(()=>{var L,Q;(Q=(L=U.current)==null?void 0:L.getModel())==null||Q.original.setValue(n||"")},[n],y),dn(()=>{let{original:L,modified:Q}=U.current.getModel();D.current.editor.setModelLanguage(L,i||e||"text"),D.current.editor.setModelLanguage(Q,a||e||"text")},[e,i,a],y),dn(()=>{var L;(L=D.current)==null||L.editor.setTheme(f)},[f],y),dn(()=>{var L;(L=U.current)==null||L.updateOptions(k)},[k],y);let Qt=A.useCallback(()=>{var Ct;if(!D.current)return;W.current(D.current);let L=Oo(D.current,n||"",i||e||"text",s||""),Q=Oo(D.current,t||"",a||e||"text",_||"");(Ct=U.current)==null||Ct.setModel({original:L,modified:Q})},[e,t,a,n,i,s,_]),ue=A.useCallback(()=>{var L;!St.current&&$.current&&(U.current=D.current.editor.createDiffEditor($.current,{automaticLayout:!0,...k}),Qt(),(L=D.current)==null||L.editor.setTheme(f),b(!0),St.current=!0)},[k,f,Qt]);A.useEffect(()=>{y&&Y.current(U.current,D.current)},[y]),A.useEffect(()=>{!I&&!y&&ue()},[I,y,ue]);function T(){var Q,Ct,K,ct;let L=(Q=U.current)==null?void 0:Q.getModel();c||((Ct=L==null?void 0:L.original)==null||Ct.dispose()),d||((K=L==null?void 0:L.modified)==null||K.dispose()),(ct=U.current)==null||ct.dispose()}return ta.createElement(Gg,{width:x,height:m,isEditorReady:y,loading:g,_ref:$,className:S,wrapperProps:j})}var J2=Q2;A.memo(J2);function X2(){let[n,t]=A.useState(Dl.__getMonacoInstance());return Rp(()=>{let e;return n||(e=Dl.init(),e.then(i=>{t(i)})),()=>e==null?void 0:e.cancel()}),n}var G2=X2;function Y2(n){let t=A.useRef();return A.useEffect(()=>{t.current=n},[n]),t.current}var Z2=Y2,Ml=new Map;function tx({defaultValue:n,defaultLanguage:t,defaultPath:e,value:i,language:a,path:s,theme:_="light",line:c,loading:d="Loading...",options:f={},overrideServices:g={},saveViewState:k=!0,keepCurrentModel:m=!1,width:x="100%",height:S="100%",className:j,wrapperProps:P={},beforeMount:v=V_,onMount:y=V_,onChange:b,onValidate:I=V_}){let[M,U]=A.useState(!1),[D,$]=A.useState(!0),Y=A.useRef(null),W=A.useRef(null),St=A.useRef(null),Qt=A.useRef(y),ue=A.useRef(v),T=A.useRef(),L=A.useRef(i),Q=Z2(s),Ct=A.useRef(!1),K=A.useRef(!1);Rp(()=>{let z=Dl.init();return z.then(B=>(Y.current=B)&&$(!1)).catch(B=>(B==null?void 0:B.type)!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>W.current?ht():z.cancel()}),dn(()=>{var B,Z,V,at;let z=Oo(Y.current,n||i||"",t||a||"",s||e||"");z!==((B=W.current)==null?void 0:B.getModel())&&(k&&Ml.set(Q,(Z=W.current)==null?void 0:Z.saveViewState()),(V=W.current)==null||V.setModel(z),k&&((at=W.current)==null||at.restoreViewState(Ml.get(s))))},[s],M),dn(()=>{var z;(z=W.current)==null||z.updateOptions(f)},[f],M),dn(()=>{!W.current||i===void 0||(W.current.getOption(Y.current.editor.EditorOption.readOnly)?W.current.setValue(i):i!==W.current.getValue()&&(K.current=!0,W.current.executeEdits("",[{range:W.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),W.current.pushUndoStop(),K.current=!1))},[i],M),dn(()=>{var B,Z;let z=(B=W.current)==null?void 0:B.getModel();z&&a&&((Z=Y.current)==null||Z.editor.setModelLanguage(z,a))},[a],M),dn(()=>{var z;c!==void 0&&((z=W.current)==null||z.revealLine(c))},[c],M),dn(()=>{var z;(z=Y.current)==null||z.editor.setTheme(_)},[_],M);let ct=A.useCallback(()=>{var z;if(!(!St.current||!Y.current)&&!Ct.current){ue.current(Y.current);let B=s||e,Z=Oo(Y.current,i||n||"",t||a||"",B||"");W.current=(z=Y.current)==null?void 0:z.editor.create(St.current,{model:Z,automaticLayout:!0,...f},g),k&&W.current.restoreViewState(Ml.get(B)),Y.current.editor.setTheme(_),c!==void 0&&W.current.revealLine(c),U(!0),Ct.current=!0}},[n,t,e,i,a,s,f,g,k,_,c]);A.useEffect(()=>{M&&Qt.current(W.current,Y.current)},[M]),A.useEffect(()=>{!D&&!M&&ct()},[D,M,ct]),L.current=i,A.useEffect(()=>{var z,B;M&&b&&((z=T.current)==null||z.dispose(),T.current=(B=W.current)==null?void 0:B.onDidChangeModelContent(Z=>{K.current||b(W.current.getValue(),Z)}))},[M,b]),A.useEffect(()=>{if(M){let z=Y.current.editor.onDidChangeMarkers(B=>{var V;let Z=(V=W.current.getModel())==null?void 0:V.uri;if(Z&&B.find(at=>at.path===Z.path)){let at=Y.current.editor.getModelMarkers({resource:Z});I==null||I(at)}});return()=>{z==null||z.dispose()}}return()=>{}},[M,I]);function ht(){var z,B;(z=T.current)==null||z.dispose(),m?k&&Ml.set(s,W.current.saveViewState()):(B=W.current.getModel())==null||B.dispose(),W.current.dispose()}return ta.createElement(Gg,{width:x,height:S,isEditorReady:M,loading:d,_ref:St,className:j,wrapperProps:P})}var ex=tx,nx=A.memo(ex),rx=nx;const Al={".ak":"aiken",".js":"javascript",".ts":"typescript",".json":"json",".txt":"plaintext"},Zg=n=>{const t=n.slice(n.lastIndexOf("."));return Al[t]||"plaintext"},tb=Object.keys(Al);function ge(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var ax=typeof Symbol=="function"&&Symbol.observable||"@@observable",eb=ax,Pp=()=>Math.random().toString(36).substring(7).split("").join("."),ix={INIT:`@@redux/INIT${Pp()}`,REPLACE:`@@redux/REPLACE${Pp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Pp()}`},Bl=ix;function Ip(n){if(typeof n!="object"||n===null)return!1;let t=n;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(n)===t||Object.getPrototypeOf(n)===null}function nb(n,t,e){if(typeof n!="function")throw new Error(ge(2));if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(ge(1));return e(nb)(n,t)}let i=n,a=t,s=new Map,_=s,c=0,d=!1;function f(){_===s&&(_=new Map,s.forEach((j,P)=>{_.set(P,j)}))}function g(){if(d)throw new Error(ge(3));return a}function k(j){if(typeof j!="function")throw new Error(ge(4));if(d)throw new Error(ge(5));let P=!0;f();const v=c++;return _.set(v,j),function(){if(P){if(d)throw new Error(ge(6));P=!1,f(),_.delete(v),s=null}}}function m(j){if(!Ip(j))throw new Error(ge(7));if(typeof j.type>"u")throw new Error(ge(8));if(typeof j.type!="string")throw new Error(ge(17));if(d)throw new Error(ge(9));try{d=!0,a=i(a,j)}finally{d=!1}return(s=_).forEach(P=>{P()}),j}function x(j){if(typeof j!="function")throw new Error(ge(10));i=j,m({type:Bl.REPLACE})}function S(){const j=k;return{subscribe(P){if(typeof P!="object"||P===null)throw new Error(ge(11));function v(){const y=P;y.next&&y.next(g())}return v(),{unsubscribe:j(v)}},[eb](){return this}}}return m({type:Bl.INIT}),{dispatch:m,subscribe:k,getState:g,replaceReducer:x,[eb]:S}}function sx(n){Object.keys(n).forEach(t=>{const e=n[t];if(typeof e(void 0,{type:Bl.INIT})>"u")throw new Error(ge(12));if(typeof e(void 0,{type:Bl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function ox(n){const t=Object.keys(n),e={};for(let s=0;s"u")throw _&&_.type,new Error(ge(14));d[g]=x,c=c||x!==m}return c=c||i.length!==Object.keys(s).length,c?d:s}}function Ul(...n){return n.length===0?t=>t:n.length===1?n[0]:n.reduce((t,e)=>(...i)=>t(e(...i)))}function _x(...n){return t=>(e,i)=>{const a=t(e,i);let s=()=>{throw new Error(ge(15))};const _={getState:a.getState,dispatch:(d,...f)=>s(d,...f)},c=n.map(d=>d(_));return s=Ul(...c)(a.dispatch),{...a,dispatch:s}}}function cx(n){return Ip(n)&&"type"in n&&typeof n.type=="string"}var rb=Symbol.for("immer-nothing"),ab=Symbol.for("immer-draftable"),un=Symbol.for("immer-state");function Yn(n,...t){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var No=Object.getPrototypeOf;function Di(n){return!!n&&!!n[un]}function ua(n){var t;return n?ib(n)||Array.isArray(n)||!!n[ab]||!!((t=n.constructor)!=null&&t[ab])||Hl(n)||Wl(n):!1}var lx=Object.prototype.constructor.toString();function ib(n){if(!n||typeof n!="object")return!1;const t=No(n);if(t===null)return!0;const e=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return e===Object?!0:typeof e=="function"&&Function.toString.call(e)===lx}function Ll(n,t){$l(n)===0?Reflect.ownKeys(n).forEach(e=>{t(e,n[e],n)}):n.forEach((e,i)=>t(i,e,n))}function $l(n){const t=n[un];return t?t.type_:Array.isArray(n)?1:Hl(n)?2:Wl(n)?3:0}function Tp(n,t){return $l(n)===2?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function sb(n,t,e){const i=$l(n);i===2?n.set(t,e):i===3?n.add(e):n[t]=e}function dx(n,t){return n===t?n!==0||1/n===1/t:n!==n&&t!==t}function Hl(n){return n instanceof Map}function Wl(n){return n instanceof Set}function Cs(n){return n.copy_||n.base_}function Fp(n,t){if(Hl(n))return new Map(n);if(Wl(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);if(!t&&ib(n))return No(n)?{...n}:Object.assign(Object.create(null),n);const e=Object.getOwnPropertyDescriptors(n);delete e[un];let i=Reflect.ownKeys(e);for(let a=0;a1&&(n.set=n.add=n.clear=n.delete=ux),Object.freeze(n),t&&Object.entries(n).forEach(([e,i])=>zp(i,!0))),n}function ux(){Yn(2)}function Vl(n){return Object.isFrozen(n)}var px={};function Es(n){const t=px[n];return t||Yn(0,n),t}var K_;function ob(){return K_}function fx(n,t){return{drafts_:[],parent_:n,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function _b(n,t){t&&(Es("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=t)}function Dp(n){Mp(n),n.drafts_.forEach(wx),n.drafts_=null}function Mp(n){n===K_&&(K_=n.parent_)}function cb(n){return K_=fx(K_,n)}function wx(n){const t=n[un];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function lb(n,t){t.unfinalizedDrafts_=t.drafts_.length;const e=t.drafts_[0];return n!==void 0&&n!==e?(e[un].modified_&&(Dp(t),Yn(4)),ua(n)&&(n=Kl(t,n),t.parent_||ql(t,n)),t.patches_&&Es("Patches").generateReplacementPatches_(e[un].base_,n,t.patches_,t.inversePatches_)):n=Kl(t,e,[]),Dp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),n!==rb?n:void 0}function Kl(n,t,e){if(Vl(t))return t;const i=t[un];if(!i)return Ll(t,(a,s)=>db(n,i,t,a,s,e)),t;if(i.scope_!==n)return t;if(!i.modified_)return ql(n,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let s=a,_=!1;i.type_===3&&(s=new Set(a),a.clear(),_=!0),Ll(s,(c,d)=>db(n,i,a,c,d,e,_)),ql(n,a,!1),e&&n.patches_&&Es("Patches").generatePatches_(i,e,n.patches_,n.inversePatches_)}return i.copy_}function db(n,t,e,i,a,s,_){if(Di(a)){const c=s&&t&&t.type_!==3&&!Tp(t.assigned_,i)?s.concat(i):void 0,d=Kl(n,a,c);if(sb(e,i,d),Di(d))n.canAutoFreeze_=!1;else return}else _&&e.add(a);if(ua(a)&&!Vl(a)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;Kl(n,a),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&Object.prototype.propertyIsEnumerable.call(e,i)&&ql(n,a)}}function ql(n,t,e=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&zp(t,e)}function hx(n,t){const e=Array.isArray(n),i={type_:e?1:0,scope_:t?t.scope_:ob(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=i,s=Ap;e&&(a=[i],s=q_);const{revoke:_,proxy:c}=Proxy.revocable(a,s);return i.draft_=c,i.revoke_=_,c}var Ap={get(n,t){if(t===un)return n;const e=Cs(n);if(!Tp(e,t))return gx(n,e,t);const i=e[t];return n.finalized_||!ua(i)?i:i===Bp(n.base_,t)?(Lp(n),n.copy_[t]=$p(i,n)):i},has(n,t){return t in Cs(n)},ownKeys(n){return Reflect.ownKeys(Cs(n))},set(n,t,e){const i=ub(Cs(n),t);if(i!=null&&i.set)return i.set.call(n.draft_,e),!0;if(!n.modified_){const a=Bp(Cs(n),t),s=a==null?void 0:a[un];if(s&&s.base_===e)return n.copy_[t]=e,n.assigned_[t]=!1,!0;if(dx(e,a)&&(e!==void 0||Tp(n.base_,t)))return!0;Lp(n),Up(n)}return n.copy_[t]===e&&(e!==void 0||t in n.copy_)||Number.isNaN(e)&&Number.isNaN(n.copy_[t])||(n.copy_[t]=e,n.assigned_[t]=!0),!0},deleteProperty(n,t){return Bp(n.base_,t)!==void 0||t in n.base_?(n.assigned_[t]=!1,Lp(n),Up(n)):delete n.assigned_[t],n.copy_&&delete n.copy_[t],!0},getOwnPropertyDescriptor(n,t){const e=Cs(n),i=Reflect.getOwnPropertyDescriptor(e,t);return i&&{writable:!0,configurable:n.type_!==1||t!=="length",enumerable:i.enumerable,value:e[t]}},defineProperty(){Yn(11)},getPrototypeOf(n){return No(n.base_)},setPrototypeOf(){Yn(12)}},q_={};Ll(Ap,(n,t)=>{q_[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),q_.deleteProperty=function(n,t){return q_.set.call(this,n,t,void 0)},q_.set=function(n,t,e){return Ap.set.call(this,n[0],t,e,n[0])};function Bp(n,t){const e=n[un];return(e?Cs(e):n)[t]}function gx(n,t,e){var a;const i=ub(t,e);return i?"value"in i?i.value:(a=i.get)==null?void 0:a.call(n.draft_):void 0}function ub(n,t){if(!(t in n))return;let e=No(n);for(;e;){const i=Object.getOwnPropertyDescriptor(e,t);if(i)return i;e=No(e)}}function Up(n){n.modified_||(n.modified_=!0,n.parent_&&Up(n.parent_))}function Lp(n){n.copy_||(n.copy_=Fp(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var bx=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,e,i)=>{if(typeof t=="function"&&typeof e!="function"){const s=e;e=t;const _=this;return function(c=s,...d){return _.produce(c,f=>e.call(this,f,...d))}}typeof e!="function"&&Yn(6),i!==void 0&&typeof i!="function"&&Yn(7);let a;if(ua(t)){const s=cb(this),_=$p(t,void 0);let c=!0;try{a=e(_),c=!1}finally{c?Dp(s):Mp(s)}return _b(s,i),lb(a,s)}else if(!t||typeof t!="object"){if(a=e(t),a===void 0&&(a=t),a===rb&&(a=void 0),this.autoFreeze_&&zp(a,!0),i){const s=[],_=[];Es("Patches").generateReplacementPatches_(t,a,s,_),i(s,_)}return a}else Yn(1,t)},this.produceWithPatches=(t,e)=>{if(typeof t=="function")return(s,..._)=>this.produceWithPatches(s,c=>t(c,..._));let i,a;return[this.produce(t,e,(s,_)=>{i=s,a=_}),i,a]},typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof(n==null?void 0:n.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){ua(n)||Yn(8),Di(n)&&(n=pb(n));const t=cb(this),e=$p(n,void 0);return e[un].isManual_=!0,Mp(t),e}finishDraft(n,t){const e=n&&n[un];(!e||!e.isManual_)&&Yn(9);const{scope_:i}=e;return _b(i,t),lb(void 0,i)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,t){let e;for(e=t.length-1;e>=0;e--){const a=t[e];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}e>-1&&(t=t.slice(e+1));const i=Es("Patches").applyPatches_;return Di(n)?i(n,t):this.produce(n,a=>i(a,t))}};function $p(n,t){const e=Hl(n)?Es("MapSet").proxyMap_(n,t):Wl(n)?Es("MapSet").proxySet_(n,t):hx(n,t);return(t?t.scope_:ob()).drafts_.push(e),e}function pb(n){return Di(n)||Yn(10,n),fb(n)}function fb(n){if(!ua(n)||Vl(n))return n;const t=n[un];let e;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,e=Fp(n,t.scope_.immer_.useStrictShallowCopy_)}else e=Fp(n,!0);return Ll(e,(i,a)=>{sb(e,i,fb(a))}),t&&(t.finalized_=!1),e}var pn=new bx,wb=pn.produce;pn.produceWithPatches.bind(pn),pn.setAutoFreeze.bind(pn),pn.setUseStrictShallowCopy.bind(pn),pn.applyPatches.bind(pn),pn.createDraft.bind(pn),pn.finishDraft.bind(pn);function yx(n,t=`expected a function, instead received ${typeof n}`){if(typeof n!="function")throw new TypeError(t)}function mx(n,t=`expected an object, instead received ${typeof n}`){if(typeof n!="object")throw new TypeError(t)}function vx(n,t="expected all items to be functions, instead received the following types: "){if(!n.every(e=>typeof e=="function")){const e=n.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${e}]`)}}var hb=n=>Array.isArray(n)?n:[n];function kx(n){const t=Array.isArray(n[0])?n[0]:n;return vx(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function xx(n,t){const e=[],{length:i}=n;for(let a=0;a{e=Ql(),_.resetResultsCount()},_.resultsCount=()=>s,_.resetResultsCount=()=>{s=0},_}function bb(n,...t){const e=typeof n=="function"?{memoize:n,memoizeOptions:t}:n,i=(...a)=>{let s=0,_=0,c,d={},f=a.pop();typeof f=="object"&&(d=f,f=a.pop()),yx(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const g={...e,...d},{memoize:k,memoizeOptions:m=[],argsMemoize:x=Hp,argsMemoizeOptions:S=[],devModeChecks:j={}}=g,P=hb(m),v=hb(S),y=kx(a),b=k(function(){return s++,f.apply(null,arguments)},...P),I=x(function(){_++;const M=xx(y,arguments);return c=b.apply(null,M),c},...v);return Object.assign(I,{resultFunc:f,memoizedResultFunc:b,dependencies:y,dependencyRecomputations:()=>_,resetDependencyRecomputations:()=>{_=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:k,argsMemoize:x})};return Object.assign(i,{withTypes:()=>i}),i}var Ex=bb(Hp),Ox=Object.assign((n,t=Ex)=>{mx(n,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof n}`);const e=Object.keys(n),i=e.map(a=>n[a]);return t(i,(...a)=>a.reduce((s,_,c)=>(s[e[c]]=_,s),{}))},{withTypes:()=>Ox});function yb(n){return({dispatch:t,getState:e})=>i=>a=>typeof a=="function"?a(t,e,n):i(a)}var Nx=yb(),Rx=yb,Px=(...n)=>{const t=bb(...n),e=Object.assign((...i)=>{const a=t(...i),s=(_,...c)=>a(Di(_)?pb(_):_,...c);return Object.assign(s,a),s},{withTypes:()=>e});return e};Px(Hp);var Ix=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ul:Ul.apply(null,arguments)};function Ro(n,t){function e(...i){if(t){let a=t(...i);if(!a)throw new Error(qe(0));return{type:n,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:n,payload:i[0]}}return e.toString=()=>`${n}`,e.type=n,e.match=i=>cx(i)&&i.type===n,e}var mb=class wc extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,wc.prototype)}static get[Symbol.species](){return wc}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new wc(...t[0].concat(this)):new wc(...t.concat(this))}};function vb(n){return ua(n)?wb(n,()=>{}):n}function kb(n,t,e){if(n.has(t)){let a=n.get(t);return e.update&&(a=e.update(a,t,n),n.set(t,a)),a}if(!e.insert)throw new Error(qe(10));const i=e.insert(t,n);return n.set(t,i),i}function Tx(n){return typeof n=="boolean"}var Fx=()=>function(n){const{thunk:t=!0,immutableCheck:e=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=n??{};let s=new mb;return t&&(Tx(t)?s.push(Nx):s.push(Rx(t.extraArgument))),s},zx="RTK_autoBatch",xb=n=>t=>{setTimeout(t,n)},Dx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:xb(10),Mx=(n={type:"raf"})=>t=>(...e)=>{const i=t(...e);let a=!0,s=!1,_=!1;const c=new Set,d=n.type==="tick"?queueMicrotask:n.type==="raf"?Dx:n.type==="callback"?n.queueNotification:xb(n.timeout),f=()=>{_=!1,s&&(s=!1,c.forEach(g=>g()))};return Object.assign({},i,{subscribe(g){const k=()=>a&&g(),m=i.subscribe(k);return c.add(g),()=>{m(),c.delete(g)}},dispatch(g){var k;try{return a=!((k=g==null?void 0:g.meta)!=null&&k[zx]),s=!a,s&&(_||(_=!0,d(f))),i.dispatch(g)}finally{a=!0}}})},Ax=n=>function(t){const{autoBatch:e=!0}=t??{};let i=new mb(n);return e&&i.push(Mx(typeof e=="object"?e:void 0)),i},Bx=!0;function Ux(n){const t=Fx(),{reducer:e=void 0,middleware:i,devTools:a=!0,preloadedState:s=void 0,enhancers:_=void 0}=n||{};let c;if(typeof e=="function")c=e;else if(Ip(e))c=ox(e);else throw new Error(qe(1));let d;typeof i=="function"?d=i(t):d=t();let f=Ul;a&&(f=Ix({trace:!Bx,...typeof a=="object"&&a}));const g=_x(...d),k=Ax(g);let m=typeof _=="function"?_(k):k();const x=f(...m);return nb(c,s,x)}function jb(n){const t={},e=[];let i;const a={addCase(s,_){const c=typeof s=="string"?s:s.type;if(!c)throw new Error(qe(28));if(c in t)throw new Error(qe(29));return t[c]=_,a},addMatcher(s,_){return e.push({matcher:s,reducer:_}),a},addDefaultCase(s){return i=s,a}};return n(a),[t,e,i]}function Lx(n){return typeof n=="function"}function $x(n,t){let[e,i,a]=jb(t),s;if(Lx(n))s=()=>vb(n());else{const c=vb(n);s=()=>c}function _(c=s(),d){let f=[e[d.type],...i.filter(({matcher:g})=>g(d)).map(({reducer:g})=>g)];return f.filter(g=>!!g).length===0&&(f=[a]),f.reduce((g,k)=>{if(k)if(Di(g)){const m=k(g,d);return m===void 0?g:m}else{if(ua(g))return wb(g,m=>k(m,d));{const m=k(g,d);if(m===void 0){if(g===null)return g;throw new Error(qe(9))}return m}}return g},c)}return _.getInitialState=s,_}var Hx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wx=(n=21)=>{let t="",e=n;for(;e--;)t+=Hx[Math.random()*64|0];return t},Vx=Symbol.for("rtk-slice-createasyncthunk");function Kx(n,t){return`${n}/${t}`}function qx({creators:n}={}){var e;const t=(e=n==null?void 0:n.asyncThunk)==null?void 0:e[Vx];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(qe(11));typeof process<"u";const _=(typeof i.reducers=="function"?i.reducers(Jx()):i.reducers)||{},c=Object.keys(_),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(y,b){const I=typeof y=="string"?y:y.type;if(!I)throw new Error(qe(12));if(I in d.sliceCaseReducersByType)throw new Error(qe(13));return d.sliceCaseReducersByType[I]=b,f},addMatcher(y,b){return d.sliceMatchers.push({matcher:y,reducer:b}),f},exposeAction(y,b){return d.actionCreators[y]=b,f},exposeCaseReducer(y,b){return d.sliceCaseReducersByName[y]=b,f}};c.forEach(y=>{const b=_[y],I={reducerName:y,type:Kx(a,y),createNotation:typeof i.reducers=="function"};Gx(b)?Zx(I,b,f,t):Xx(I,b,f)});function g(){const[y={},b=[],I=void 0]=typeof i.extraReducers=="function"?jb(i.extraReducers):[i.extraReducers],M={...y,...d.sliceCaseReducersByType};return $x(i.initialState,U=>{for(let D in M)U.addCase(D,M[D]);for(let D of d.sliceMatchers)U.addMatcher(D.matcher,D.reducer);for(let D of b)U.addMatcher(D.matcher,D.reducer);I&&U.addDefaultCase(I)})}const k=y=>y,m=new Map;let x;function S(y,b){return x||(x=g()),x(y,b)}function j(){return x||(x=g()),x.getInitialState()}function P(y,b=!1){function I(U){let D=U[y];return typeof D>"u"&&b&&(D=j()),D}function M(U=k){const D=kb(m,b,{insert:()=>new WeakMap});return kb(D,U,{insert:()=>{const $={};for(const[Y,W]of Object.entries(i.selectors??{}))$[Y]=Qx(W,U,j,b);return $}})}return{reducerPath:y,getSelectors:M,get selectors(){return M(I)},selectSlice:I}}const v={name:a,reducer:S,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:j,...P(s),injectInto(y,{reducerPath:b,...I}={}){const M=b??s;return y.inject({reducerPath:M,reducer:S},I),{...v,...P(M,!0)}}};return v}}function Qx(n,t,e,i){function a(s,..._){let c=t(s);return typeof c>"u"&&i&&(c=e()),n(c,..._)}return a.unwrapped=n,a}var Mi=qx();function Jx(){function n(t,e){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...e}}return n.withTypes=()=>n,{reducer(t){return Object.assign({[t.name](...e){return t(...e)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,e){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:e}},asyncThunk:n}}function Xx({type:n,reducerName:t,createNotation:e},i,a){let s,_;if("reducer"in i){if(e&&!Yx(i))throw new Error(qe(17));s=i.reducer,_=i.prepare}else s=i;a.addCase(n,s).exposeCaseReducer(t,s).exposeAction(t,_?Ro(n,_):Ro(n))}function Gx(n){return n._reducerDefinitionType==="asyncThunk"}function Yx(n){return n._reducerDefinitionType==="reducerWithPrepare"}function Zx({type:n,reducerName:t},e,i,a){if(!a)throw new Error(qe(18));const{payloadCreator:s,fulfilled:_,pending:c,rejected:d,settled:f,options:g}=e,k=a(n,s,g);i.exposeAction(t,k),_&&i.addCase(k.fulfilled,_),c&&i.addCase(k.pending,c),d&&i.addCase(k.rejected,d),f&&i.addMatcher(k.settled,f),i.exposeCaseReducer(t,{fulfilled:_||Jl,pending:c||Jl,rejected:d||Jl,settled:f||Jl})}function Jl(){}var tj=(n,t)=>{if(typeof n!="function")throw new Error(qe(32))},Wp="listenerMiddleware",ej=n=>{let{type:t,actionCreator:e,matcher:i,predicate:a,effect:s}=n;if(t)a=Ro(t).match;else if(e)t=e.type,a=e.match;else if(i)a=i;else if(!a)throw new Error(qe(21));return tj(s),{predicate:a,type:t,effect:s}},nj=Object.assign(n=>{const{type:t,predicate:e,effect:i}=ej(n);return{id:Wx(),effect:i,type:t,predicate:e,pending:new Set,unsubscribe:()=>{throw new Error(qe(22))}}},{withTypes:()=>nj}),rj=Object.assign(Ro(`${Wp}/add`),{withTypes:()=>rj});Ro(`${Wp}/removeAll`);var aj=Object.assign(Ro(`${Wp}/remove`),{withTypes:()=>aj});function qe(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}const ij=`use aiken/list use aiken/transaction.{ ScriptContext } @@ -57,13 +57,13 @@ test quicksort_1() { test quicksort_2() { quicksort([1, 2, 3, 4]) == [1, 2, 3, 4] } -`,sj={files:[{name:"example.ak",content:ij,type:"aiken"},{name:"params.json",content:JSON.stringify([{constructor:0,fields:[{bytes:"7468697369736D79736563726574"}]}],null,2),type:"json"},{name:"nativeScript.json",content:JSON.stringify({type:"all",scripts:[{type:"before",slot:1},{type:"sig",keyHash:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}]},null,2),type:"json"},{name:"redeemer.json",content:JSON.stringify({constructor:0,fields:[{bytes:"7468697369736D79736563726574"}]},null,2),type:"json"}],currentFileFocusedInEditorIndex:0,openFileIndices:[0],pendingCloseFileIndex:-1,beingRenamedFileIndex:-1,renameFileError:void 0},Cb=Di({name:"files",initialState:sj,reducers:{selectFile(n,t){n.currentFileFocusedInEditorIndex=t.payload,n.openFileIndices.includes(t.payload)||n.openFileIndices.push(t.payload)},writeFileContents(n,t){n.files[t.payload.index].content=t.payload.content},closeFile(n,t){const e=t.payload;if(e!=n.pendingCloseFileIndex){n.pendingCloseFileIndex=-1;return}if(e==n.beingRenamedFileIndex){n.pendingCloseFileIndex=-1;return}const i=n.openFileIndices.indexOf(e),a=i>0?i-1:i+1,s=n.openFileIndices[a];n.openFileIndices.splice(i,1),n.currentFileFocusedInEditorIndex==e&&(n.currentFileFocusedInEditorIndex=s)},pendingCloseFile(n,t){n.pendingCloseFileIndex=t.payload},addFile(n){if(n.beingRenamedFileIndex!==-1)return;let t="newfile";for(let i=1;i<1/0;i++){const a=`${t}${i===1?"":i-1}.ak`;if(!n.files.find(s=>s.name===a)){t=a;break}}n.files.push({name:t,content:"",type:"aiken"});const e=n.files.length-1;n.beingRenamedFileIndex=e,n.currentFileFocusedInEditorIndex=e,n.openFileIndices.includes(e)||n.openFileIndices.push(e)},renameFile(n,t){n.beingRenamedFileIndex=t.payload},clearRenameFileError(n){n.renameFileError=void 0},confirmRenameFile(n,t){const e=t.payload,i=!n.files.find((_,c)=>_.name===e&&c!=n.beingRenamedFileIndex),a=eb.find(_=>e.endsWith(_));let s="";i?a?(n.files[n.beingRenamedFileIndex].name=e,n.files[n.beingRenamedFileIndex].type=Al[a],n.beingRenamedFileIndex=-1,n.renameFileError=void 0):s=`Allowed extensions: ${eb.join(" ")}`:s="Filenames must be unique.",n.renameFileError=s},cancelRenameFile(n){n.beingRenamedFileIndex=-1,n.renameFileError=void 0},removeFile(n,t){const e=t.payload,i=n.openFileIndices.indexOf(e);i!=-1&&n.openFileIndices.splice(i,1),n.files.splice(e,1),n.openFileIndices=n.openFileIndices.map(_=>_>e?_-1:_);const a=i>0?i-1:i+1,s=n.openFileIndices[a];if(n.currentFileFocusedInEditorIndex!=e){n.currentFileFocusedInEditorIndex>e&&(n.currentFileFocusedInEditorIndex-=1);return}n.currentFileFocusedInEditorIndex=s}}}),{selectFile:Eb,writeFileContents:oj,closeFile:_j,pendingCloseFile:Ob,addFile:Nb,confirmRenameFile:Rb,cancelRenameFile:cj,removeFile:lj,renameFile:dj,clearRenameFileError:uj}=Cb.actions,pj=Cb.reducer;function fj({onLoad:n}){const t=G2(),e=pt(_=>_.files),i=Xt(),a=A.useRef(null);if(a.current&&t){const _=e.files[e.currentFileFocusedInEditorIndex],c=t.editor.getModels();if(_){const d=_.name.slice(_.name.lastIndexOf(".")),f=Al[d]||"plaintext";let g=c.find(k=>k.uri.path.includes(_.name));(!g||f!=g.getLanguageId())&&(g=t.editor.createModel(_.content,f,t.Uri.parse(_.name))),a.current.setModel(g)}else a.current.setModel(null);c.forEach(d=>{e.files.find(f=>d.uri.path.includes(f.name))||d.dispose()})}const s=_=>{a.current=_,n&&n(_)};return A.useEffect(()=>{if(t){t.languages.register({id:"aiken"});const _=["if","else","when","is","fn","use","let","pub","type","opaque","const","todo","expect","check","test","trace","fail","validator","and","or"];t.languages.setMonarchTokensProvider("aiken",{keywords:_,operators:["->","|>","..","<=",">=","==","!=","<",">","&&","||","|","+","-","/","*","%","="],digits:"\\d+(_+\\d+)*",octaldigits:"[0-7]+(_+[0-7]+)*",binarydigits:"[0-1]+(_+[0-1]+)*",hexdigits:"[0-9a-fA-F]+(_+[0-9a-fA-F]+)*",tokenizer:{root:[["[a-z_$][\\w$]*",{cases:{"@keywords":"keyword","@default":"identifier"}}],["//.*","comment"],["[A-Z][\\w\\$]*","type.identifier"],["[a-z][\\w\\$]*","identifier"],["0[xX](@hexdigits)","number.hex"],["0[oO]?(@octaldigits)","number.octal"],["0[bB](@binarydigits)","number.binary"],["(@digits)","number"]]}}),t.editor.defineTheme("aiken-theme",{base:"vs-dark",rules:[{token:"source",foreground:"#BBBBBB"}],inherit:!0,colors:{"scrollbar.shadow":"#ffffff00","editor.lineHighlightBackground":"#00000000","editor.lineHighlightBorder":"#00000000"}})}},[t]),t?w.jsx("div",{style:{width:"100%",height:"90vh"},onBlur:()=>{if(!t)return;const _=e.files[e.currentFileFocusedInEditorIndex];let c=t.editor.getModels().find(d=>d.uri.path.includes(_.name));if(!c){console.error("If this happened, there is a bug. :)");return}i(oj({index:e.currentFileFocusedInEditorIndex,content:c.getValue()}))},children:w.jsx(rx,{height:"calc(97vh - 76px)",width:"100%",theme:"aiken-theme",defaultLanguage:"aiken",defaultValue:e.files[0].content,options:{minimap:{enabled:!1}},onMount:s})}):null}function Pb(n,t){const e=n.split(/\r?\n/);let i=0;for(let a=0;a=t)return a+1;i+=s.length+1}return null}function Ib(n){const t=n.lastIndexOf(".");return t===-1?{name:n,extension:""}:{name:n.substring(0,t),extension:n.substring(t)}}function Qe(n,t=12,e=7){if(n.length>t+e){let i=n.substring(0,t),a=n.substring(n.length-e);return`${i}...${a}`}return n}function wj(n){return n.charAt(0).toUpperCase()+n.slice(1)}const hj={buildResults:[],builtFiles:[]},Tb=Di({name:"aiken",initialState:hj,reducers:{testProject:(n,t)=>{n.buildResults=t.payload.buildResults,n.builtFiles=t.payload.compiledFiles;for(let e=0;e{const a=Pb(n.builtFiles[e].content,i.line)||-1;return{...i,line:a}}),n.buildResults[e].warnings=n.buildResults[e].warnings.map(i=>{const a=Pb(n.builtFiles[e].content,i.line)||-1;return{...i,line:a}})}}}),{testProject:Fb}=Tb.actions,gj=Tb.reducer,zb=A.createContext(null);function bj(){return A.useContext(zb)}function yj(){const n=Lg();bj();const t=pt(a=>a.files),e=Xt();let i="";return w.jsxs("div",{className:"top-bar editor-top-bar",children:[w.jsx("div",{className:"editor-top-bar-left-side",children:w.jsx("div",{className:"title-logo top-bar-item",children:"ApplicationName"})}),w.jsxs("div",{className:"editor-top-bar-right-side ",children:[w.jsxs("div",{className:`top-bar-item editor-top-bar-item ${i}`,onClick:()=>{let a=[],s=[];for(let _ of t.files)if(tb(_.name)==="aiken"){a.push(_);const c=n.project.build(_.content,!0);s.push(c)}e(Fb({buildResults:s,compiledFiles:a}))},children:[w.jsx("span",{className:"editor-top-bar-play-icon",children:"\u25B6"})," Test"]}),w.jsxs("div",{className:`top-bar-item editor-top-bar-item ${i}`,onClick:()=>{let a=[],s=[];for(let _ of t.files)tb(_.name)==="aiken"&&(a.push(_),s.push(n.project.build(_.content,!1)));e(Fb({buildResults:s,compiledFiles:a}))},children:[w.jsx("span",{className:"editor-top-bar-build-icon",children:"\u{1F6E0}"})," Build"]}),w.jsxs("div",{className:"top-bar-item editor-top-bar-item",children:[w.jsx("span",{className:"editor-top-bar-format-icon",children:"\u270E"})," Format"]}),w.jsxs("div",{className:"top-bar-item editor-top-bar-item",children:[w.jsx("span",{className:"editor-top-bar-share-icon",children:"\u260E"})," Share"]})]})]})}var mj={BASE_URL:"/aiken-ide/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const vj={open:!1,network:"Custom",providerConfig:{kind:"emulator"},form:{providerKind:"emulator",network:"Emulator",blockfrost:{kind:"blockfrost",apiKey:mj.VITE_BLOCKFROST_API_KEY||"",url:"https://cardano-preview.blockfrost.io/api/v0"},kupmios:{kind:"kupmios",kupoUrl:"",ogmiosUrl:""}}},Mb=Di({name:"tooltip",initialState:vj,reducers:{toggleSettings:n=>{n.open=!n.open},saveUpdatedSettings:n=>{if(n.open=!1,n.network=n.form.network==="Emulator"?"Custom":n.form.network,n.form.providerKind==="blockfrost")n.providerConfig=n.form.blockfrost;else if(n.form.providerKind==="kupmios")n.providerConfig=n.form.kupmios;else if(n.form.providerKind==="emulator")n.providerConfig={kind:"emulator"};else throw Error("not implemented")},setFormProviderKind:(n,t)=>{n.form.providerKind=t.payload},setFormNetwork:(n,t)=>{n.form.network=t.payload,n.form.network==="Emulator"&&n.form.providerKind!=="emulator"&&(n.form.providerKind="emulator"),n.form.network!=="Emulator"&&n.form.providerKind==="emulator"&&(n.form.providerKind="blockfrost")},setBlockfrostConfig:(n,t)=>{n.form.blockfrost=t.payload},setKupmiosConfig:(n,t)=>{n.form.blockfrost=t.payload}}}),{toggleSettings:Vp,saveUpdatedSettings:Db,setFormProviderKind:kj,setBlockfrostConfig:Ab,setKupmiosConfig:pC,setFormNetwork:xj}=Mb.actions,jj=Mb.reducer;function Sj(){const n=pt(i=>i.settings.network),t=Xt(),e=n==="Custom"?"Emulator":n;return w.jsxs("div",{className:"top-bar management-top-bar",children:[w.jsxs("div",{className:"top-bar-item",children:[w.jsx("strong",{children:"Network"}),": ",e]}),w.jsx("div",{className:"top-bar-item",onClick:()=>t(Vp()),children:w.jsx("strong",{children:"Settings"})})]})}function Cj(){var e,i;const n=pt(a=>a.project),t=(a,s)=>{const _=a==null?void 0:a.warnings.length,c=a==null?void 0:a.errors.length,d=a==null?void 0:a.test_results.length,f=(a==null?void 0:a.test_results.filter(x=>!x.success).length)||0,g=!_||_<=0?null:w.jsxs("div",{className:"build-results-section warnings",children:[w.jsx("span",{className:"build-result-heading",children:"Warnings"}),a==null?void 0:a.warnings.map((x,S)=>w.jsxs("div",{className:"build-results-individual-result",children:[w.jsxs("div",{className:"warning-item",children:["On line ",x.line,", ",x.message]}),w.jsx("div",{}),w.jsx("div",{className:"warning-item",children:x.help})]},S))]}),k=!c||c<=0?null:w.jsxs("div",{className:"build-results-section errors",children:[w.jsx("span",{className:"build-result-heading",children:"Errors"}),a==null?void 0:a.errors.map((x,S)=>w.jsxs("div",{className:"build-results-individual-result",children:[w.jsxs("div",{className:"error-item",children:["On line ",x.line,", ",x.message]}),w.jsx("div",{className:"error-item",children:x.help})]},S))]}),m=!d||d<=0?null:w.jsxs("div",{className:"build-results-section tests",children:[w.jsx("span",{className:"build-result-heading",children:"Tests"}),a==null?void 0:a.test_results.map(x=>w.jsx("div",{className:"build-results-individual-result",children:w.jsxs("div",{className:"test-item",children:[x.success?"\u2714\uFE0F ":"\u274C ",x.name," (CPU: ",x.spent_budget.cpu,", Mem: ",x.spent_budget.mem,")"]})},x.index))]});return w.jsxs("div",{className:"build-result-container",children:[w.jsx("div",{className:"build-result-filename",children:n.builtFiles[s].name}),w.jsxs("div",{className:"summary",children:[w.jsxs("span",{className:"summary-entry",children:["Errors: ",w.jsx("span",{className:"error-number",children:`${c||0}`})]}),w.jsxs("span",{className:"summary-entry",children:["Warnings: ",w.jsx("span",{className:"warning-number",children:`${_||0}`})]}),w.jsxs("span",{className:"summary-entry",children:["Tests: ",w.jsxs("span",{className:"test-number",children:[`${d||0} `,f>0?w.jsxs("span",{children:["(",w.jsx("span",{className:"error-number",children:f}),")"]}):null]})]})]}),m,g,k]},s)};return w.jsx("div",{className:"management-content-scroll-exclusion-wrapper",children:w.jsxs("div",{className:"management-content management-section-shadow",children:[w.jsx("div",{className:"management-section-heading",children:w.jsx("strong",{children:"Build Results"})}),n.buildResults&&((e=n.buildResults)==null?void 0:e.length)>0?w.jsx(w.Fragment,{}):w.jsx("div",{className:"no-last-build-notice",children:' No last build to display. Click "Test" to compile.'}),(i=n.buildResults)==null?void 0:i.map((a,s)=>t(a,s))]})})}let r;const Bb=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Bb.decode();let Q_=null;function Po(){return(Q_===null||Q_.byteLength===0)&&(Q_=new Uint8Array(r.memory.buffer)),Q_}function T(n,t){return Bb.decode(Po().subarray(n,n+t))}const pa=new Array(128).fill(void 0);pa.push(void 0,null,!0,!1);let J_=pa.length;function wt(n){J_===pa.length&&pa.push(pa.length+1);const t=J_;return J_=pa[t],pa[t]=n,t}function it(n){return pa[n]}function Ej(n){n<132||(pa[n]=J_,J_=n)}function l(n){const t=it(n);return Ej(n),t}let h=0;const Ub=new TextEncoder("utf-8"),Oj=function(n,t){return Ub.encodeInto(n,t)};function N(n,t,e){if(e===void 0){const c=Ub.encode(n),d=t(c.length);return Po().subarray(d,d+c.length).set(c),h=c.length,d}let i=n.length,a=t(i);const s=Po();let _=0;for(;_127)break;s[a+_]=c}if(_!==i){_!==0&&(n=n.slice(_)),a=e(a,i,i=_+n.length*3);const c=Po().subarray(a+_,a+i),d=Oj(n,c);_+=d.written}return h=_,a}let X_=null;function o(){return(X_===null||X_.byteLength===0)&&(X_=new Int32Array(r.memory.buffer)),X_}function zt(n){return n==null}function Kp(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const a=n.description;return a==null?"Symbol":`Symbol(${a})`}if(t=="function"){const a=n.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(n)){const a=n.length;let s="[";a>0&&(s+=Kp(n[0]));for(let _=1;_1)i=e[1];else return toString.call(n);if(i=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message} -${n.stack}`:i}const Lb=new FinalizationRegistry(n=>{r.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Nj(n,t,e,i){const a={a:n,b:t,cnt:1,dtor:e},s=(..._)=>{a.cnt++;const c=a.a;a.a=0;try{return i(c,a.b,..._)}finally{--a.cnt===0?(r.__wbindgen_export_2.get(a.dtor)(c,a.b),Lb.unregister(a)):a.a=c}};return s.original=a,Lb.register(s,a,a),s}function Rj(n,t,e){r._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9de9452916ac8cca(n,t,wt(e))}function p(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`);return n.ptr}function E(n,t){return Po().subarray(n/1,n/1+t)}function R(n,t){const e=t(n.length*1);return Po().set(n,e/1),h=n.length,e}function $b(n,t,e,i){try{const g=r.__wbindgen_add_to_stack_pointer(-16),k=N(n,r.__wbindgen_malloc,r.__wbindgen_realloc),m=h,x=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),S=h,j=N(e,r.__wbindgen_malloc,r.__wbindgen_realloc),P=h,v=N(i,r.__wbindgen_malloc,r.__wbindgen_realloc),y=h;r.encrypt_with_password(g,k,m,x,S,j,P,v,y);var a=o()[g/4+0],s=o()[g/4+1],_=o()[g/4+2],c=o()[g/4+3],d=a,f=s;if(c)throw d=0,f=0,l(_);return T(d,f)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(d,f)}}function Hb(n,t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(n,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h,k=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),m=h;r.decrypt_with_password(d,f,g,k,m);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}function Wb(n,t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(n,xn),p(t,Bi),p(e,Dn),r.min_fee(_,n.ptr,t.ptr,e.ptr);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return O.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Vb(n){const t=R(n,r.__wbindgen_malloc),e=h,i=r.encode_arbitrary_bytes_as_metadatum(t,e);return xt.__wrap(i)}function Kb(n){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(n,xt),r.decode_arbitrary_bytes_from_metadatum(_,n.ptr);var t=o()[_/4+0],e=o()[_/4+1],i=o()[_/4+2],a=o()[_/4+3];if(a)throw l(i);var s=E(t,e).slice();return r.__wbindgen_free(t,e*1),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}function qb(n,t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.encode_json_str_to_metadatum(s,_,c,t);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Qb(n,t){try{const d=r.__wbindgen_add_to_stack_pointer(-16);p(n,xt),r.decode_metadatum_to_json_str(d,n.ptr,t);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}function Jb(n,t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.encode_json_str_to_plutus_datum(s,_,c,t);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return st.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Xb(n,t){try{const d=r.__wbindgen_add_to_stack_pointer(-16);p(n,st),r.decode_plutus_datum_to_json_str(d,n.ptr,t);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}let Xl=null;function Gb(){return(Xl===null||Xl.byteLength===0)&&(Xl=new Uint32Array(r.memory.buffer)),Xl}function Pj(n,t){const e=t(n.length*4);return Gb().set(n,e/4),h=n.length,e}function Ij(n,t){return Gb().subarray(n/4,n/4+t)}function Yb(n,t,e){p(n,ye),p(t,ze),p(e,zo);const i=r.make_daedalus_bootstrap_witness(n.ptr,t.ptr,e.ptr);return hn.__wrap(i)}function Zb(n,t,e){p(n,ye),p(t,ze),p(e,Fn);const i=r.make_icarus_bootstrap_witness(n.ptr,t.ptr,e.ptr);return hn.__wrap(i)}function Io(n,t){p(n,ye),p(t,Kt);const e=r.make_vkey_witness(n.ptr,t.ptr);return Ln.__wrap(e)}function ty(n){p(n,Fe);const t=r.hash_auxiliary_data(n.ptr);return mr.__wrap(t)}function fa(n){p(n,Ze);const t=r.hash_transaction(n.ptr);return ye.__wrap(t)}function To(n){p(n,st);const t=r.hash_plutus_data(n.ptr);return se.__wrap(t)}function qp(n){try{const a=r.__wbindgen_add_to_stack_pointer(-16),s=R(n,r.__wbindgen_malloc),_=h;r.hash_blake2b256(a,s,_);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}function ey(n){try{const a=r.__wbindgen_add_to_stack_pointer(-16),s=R(n,r.__wbindgen_malloc),_=h;r.hash_blake2b224(a,s,_);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}function ny(n,t,e){p(n,Fr),p(t,rr);let i=0;zt(e)||(p(e,ce),i=e.__destroy_into_raw());const a=r.hash_script_data(n.ptr,t.ptr,i);return ir.__wrap(a)}function ry(n,t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(n,Ze),p(t,O),p(e,O),r.get_implicit_input(_,n.ptr,t.ptr,e.ptr);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return Rt.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function ay(n,t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(n,Ze),p(t,O),p(e,O),r.get_deposit(_,n.ptr,t.ptr,e.ptr);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return O.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function iy(n,t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(n,Yt),p(t,O),r.min_ada_required(s,n.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return O.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Qp(n,t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16),c=N(n,r.__wbindgen_malloc,r.__wbindgen_realloc),d=h,f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.encode_json_str_to_native_script(_,c,d,f,g,e);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return Nt.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Jp(n,t){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(n,ce),p(t,bt);var e=t.__destroy_into_raw();r.apply_params_to_plutus_script(_,n.ptr,e);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return bt.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function fn(n,t){try{return n.apply(this,t)}catch(e){r.__wbindgen_exn_store(wt(e))}}function Tj(n,t,e,i){r.wasm_bindgen__convert__closures__invoke2_mut__h36afefe016e25d40(n,t,wt(e),wt(i))}const Fj=Object.freeze({Key:0,0:"Key",Script:1,1:"Script"}),zj=Object.freeze({ParameterChangeAction:0,0:"ParameterChangeAction",HardForkInitiationAction:1,1:"HardForkInitiationAction",TreasuryWithdrawalsAction:2,2:"TreasuryWithdrawalsAction",NoConfidence:3,3:"NoConfidence",NewCommittee:4,4:"NewCommittee",NewConstitution:5,5:"NewConstitution",InfoAction:6,6:"InfoAction"}),Mj=Object.freeze({CommitteeHotKeyHash:0,0:"CommitteeHotKeyHash",CommitteeHotScriptHash:1,1:"CommitteeHotScriptHash",DrepKeyHash:2,2:"DrepKeyHash",DrepScriptHash:3,3:"DrepScriptHash",StakingPoolKeyHash:4,4:"StakingPoolKeyHash"}),Dj=Object.freeze({No:0,0:"No",Yes:1,1:"Yes",Abstain:2,2:"Abstain"}),Aj=Object.freeze({KeyHash:0,0:"KeyHash",ScriptHash:1,1:"ScriptHash",Abstain:2,2:"Abstain",NoConfidence:3,3:"NoConfidence"}),Bj=Object.freeze({MetadataMap:0,0:"MetadataMap",MetadataList:1,1:"MetadataList",Int:2,2:"Int",Bytes:3,3:"Bytes",Text:4,4:"Text"}),sy=Object.freeze({NoConversions:0,0:"NoConversions",BasicConversions:1,1:"BasicConversions",DetailedSchema:2,2:"DetailedSchema"}),Uj=Object.freeze({PlutusV1:0,0:"PlutusV1",PlutusV2:1,1:"PlutusV2",PlutusV3:2,2:"PlutusV3"}),Lj=Object.freeze({ConstrPlutusData:0,0:"ConstrPlutusData",Map:1,1:"Map",List:2,2:"List",Integer:3,3:"Integer",Bytes:4,4:"Bytes"}),$j=Object.freeze({Spend:0,0:"Spend",Mint:1,1:"Mint",Cert:2,2:"Cert",Reward:3,3:"Reward",Drep:4,4:"Drep"}),Hj=Object.freeze({BasicConversions:0,0:"BasicConversions",DetailedSchema:1,1:"DetailedSchema"}),Wj=Object.freeze({NativeScript:0,0:"NativeScript",PlutusScriptV1:1,1:"PlutusScriptV1",PlutusScriptV2:2,2:"PlutusScriptV2",PlutusScriptV3:3,3:"PlutusScriptV3"}),Vj=Object.freeze({Hash:0,0:"Hash",Data:1,1:"Data"}),wn=Object.freeze({NativeScript:0,0:"NativeScript",PlutusV1:1,1:"PlutusV1",PlutusV2:2,2:"PlutusV2"}),oy=Object.freeze({Wallet:0,0:"Wallet",Node:1,1:"Node"}),Kj=Object.freeze({NativeWitness:0,0:"NativeWitness",PlutusWitness:1,1:"PlutusWitness"}),qj=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",RegCert:7,7:"RegCert",UnregCert:8,8:"UnregCert",VoteDelegCert:9,9:"VoteDelegCert",StakeVoteDelegCert:10,10:"StakeVoteDelegCert",StakeRegDelegCert:11,11:"StakeRegDelegCert",VoteRegDelegCert:12,12:"VoteRegDelegCert",StakeVoteRegDelegCert:13,13:"StakeVoteRegDelegCert",RegCommitteeHotKeyCert:14,14:"RegCommitteeHotKeyCert",UnregCommitteeHotKeyCert:15,15:"UnregCommitteeHotKeyCert",RegDrepCert:16,16:"RegDrepCert",UnregDrepCert:17,17:"UnregDrepCert"}),Qj=Object.freeze({Reserves:0,0:"Reserves",Treasury:1,1:"Treasury"}),Jj=Object.freeze({ToOtherPot:0,0:"ToOtherPot",ToStakeCredentials:1,1:"ToStakeCredentials"}),Xj=Object.freeze({SingleHostAddr:0,0:"SingleHostAddr",SingleHostName:1,1:"SingleHostName",MultiHostName:2,2:"MultiHostName"}),Gj=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"}),Yj=Object.freeze({Testnet:0,0:"Testnet",Mainnet:1,1:"Mainnet"}),_y=new FinalizationRegistry(n=>r.__wbg_address_free(n));class jt{static __wrap(t){const e=Object.create(jt.prototype);return e.ptr=t,_y.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_y.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_address_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.address_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.address_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.address_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.address_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.address_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const g=r.__wbindgen_add_to_stack_pointer(-16);var e=zt(t)?0:N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=h;r.address_to_bech32(g,this.ptr,e,i);var a=o()[g/4+0],s=o()[g/4+1],_=o()[g/4+2],c=o()[g/4+3],d=a,f=s;if(c)throw d=0,f=0,l(_);return T(d,f)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(d,f)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.address_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}network_id(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.address_network_id(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_byron(){const t=r.address_as_byron(this.ptr);return t===0?void 0:ze.__wrap(t)}as_reward(){const t=r.address_as_reward(this.ptr);return t===0?void 0:It.__wrap(t)}as_pointer(){const t=r.address_as_pointer(this.ptr);return t===0?void 0:Li.__wrap(t)}as_enterprise(){const t=r.address_as_enterprise(this.ptr);return t===0?void 0:Mn.__wrap(t)}as_base(){const t=r.address_as_base(this.ptr);return t===0?void 0:er.__wrap(t)}}const cy=new FinalizationRegistry(n=>r.__wbg_anchor_free(n));class Zn{static __wrap(t){const e=Object.create(Zn.prototype);return e.ptr=t,cy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,cy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_anchor_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.anchor_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.anchor_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Zn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.anchor_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.anchor_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.anchor_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Zn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}anchor_url(){const t=r.anchor_anchor_url(this.ptr);return or.__wrap(t)}anchor_data_hash(){const t=r.anchor_anchor_data_hash(this.ptr);return se.__wrap(t)}static new(t,e){p(t,or),p(e,se);const i=r.anchor_new(t.ptr,e.ptr);return Zn.__wrap(i)}}const ly=new FinalizationRegistry(n=>r.__wbg_assetname_free(n));class ie{static __wrap(t){const e=Object.create(ie.prototype);return e.ptr=t,ly.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ly.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_assetname_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.assetname_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ie.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.assetname_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ie.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.assetname_new(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ie.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}name(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const dy=new FinalizationRegistry(n=>r.__wbg_assetnames_free(n));class wa{static __wrap(t){const e=Object.create(wa.prototype);return e.ptr=t,dy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,dy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_assetnames_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetnames_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.assetnames_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return wa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.assetnames_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetnames_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.assetnames_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return wa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return wa.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.assetnames_get(this.ptr,t);return ie.__wrap(e)}add(t){p(t,ie),r.assetnames_add(this.ptr,t.ptr)}}const uy=new FinalizationRegistry(n=>r.__wbg_assets_free(n));class tr{static __wrap(t){const e=Object.create(tr.prototype);return e.ptr=t,uy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,uy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_assets_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assets_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.assets_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return tr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.assets_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assets_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.assets_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return tr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return tr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,ie),p(e,O);const i=r.assets_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:O.__wrap(i)}get(t){p(t,ie);const e=r.assets_get(this.ptr,t.ptr);return e===0?void 0:O.__wrap(e)}keys(){const t=r.assets_keys(this.ptr);return wa.__wrap(t)}}const py=new FinalizationRegistry(n=>r.__wbg_auxiliarydata_free(n));class Fe{static __wrap(t){const e=Object.create(Fe.prototype);return e.ptr=t,py.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,py.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_auxiliarydata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydata_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.auxiliarydata_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydata_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydata_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.auxiliarydata_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydata_new();return Fe.__wrap(t)}metadata(){const t=r.auxiliarydata_metadata(this.ptr);return t===0?void 0:kr.__wrap(t)}set_metadata(t){p(t,kr),r.auxiliarydata_set_metadata(this.ptr,t.ptr)}native_scripts(){const t=r.auxiliarydata_native_scripts(this.ptr);return t===0?void 0:Ce.__wrap(t)}set_native_scripts(t){p(t,Ce),r.auxiliarydata_set_native_scripts(this.ptr,t.ptr)}plutus_scripts(){const t=r.auxiliarydata_plutus_scripts(this.ptr);return t===0?void 0:le.__wrap(t)}plutus_v2_scripts(){const t=r.auxiliarydata_plutus_v2_scripts(this.ptr);return t===0?void 0:le.__wrap(t)}plutus_v3_scripts(){const t=r.auxiliarydata_plutus_v3_scripts(this.ptr);return t===0?void 0:le.__wrap(t)}set_plutus_scripts(t){p(t,le),r.auxiliarydata_set_plutus_scripts(this.ptr,t.ptr)}set_plutus_v2_scripts(t){p(t,le),r.auxiliarydata_set_plutus_v2_scripts(this.ptr,t.ptr)}set_plutus_v3_scripts(t){p(t,le),r.auxiliarydata_set_plutus_v3_scripts(this.ptr,t.ptr)}}const fy=new FinalizationRegistry(n=>r.__wbg_auxiliarydatahash_free(n));class mr{static __wrap(t){const e=Object.create(mr.prototype);return e.ptr=t,fy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,fy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_auxiliarydatahash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.auxiliarydatahash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.auxiliarydatahash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.auxiliarydatahash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const wy=new FinalizationRegistry(n=>r.__wbg_auxiliarydataset_free(n));class Os{static __wrap(t){const e=Object.create(Os.prototype);return e.ptr=t,wy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,wy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_auxiliarydataset_free(t)}static new(){const t=r.auxiliarydataset_new();return Os.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,O),p(e,Fe);const i=r.auxiliarydataset_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:Fe.__wrap(i)}get(t){p(t,O);const e=r.auxiliarydataset_get(this.ptr,t.ptr);return e===0?void 0:Fe.__wrap(e)}indices(){const t=r.auxiliarydataset_indices(this.ptr);return Qa.__wrap(t)}}const hy=new FinalizationRegistry(n=>r.__wbg_baseaddress_free(n));class er{static __wrap(t){const e=Object.create(er.prototype);return e.ptr=t,hy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,hy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_baseaddress_free(t)}static new(t,e,i){p(e,q),p(i,q);const a=r.baseaddress_new(t,e.ptr,i.ptr);return er.__wrap(a)}payment_cred(){const t=r.baseaddress_payment_cred(this.ptr);return q.__wrap(t)}stake_cred(){const t=r.baseaddress_stake_cred(this.ptr);return q.__wrap(t)}to_address(){const t=r.baseaddress_to_address(this.ptr);return jt.__wrap(t)}static from_address(t){p(t,jt);const e=r.address_as_base(t.ptr);return e===0?void 0:er.__wrap(e)}}const gy=new FinalizationRegistry(n=>r.__wbg_bigint_free(n));let G_=class dd{static __wrap(t){const e=Object.create(dd.prototype);return e.ptr=t,gy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,gy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bigint_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bigint_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.bigint_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return dd.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_u64(){const t=r.bigint_as_u64(this.ptr);return t===0?void 0:O.__wrap(t)}as_int(){const t=r.bigint_as_int(this.ptr);return t===0?void 0:_e.__wrap(t)}static from_str(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.bigint_from_str(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return dd.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.bigint_to_str(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}};const by=new FinalizationRegistry(n=>r.__wbg_bignum_free(n));let O=class pe{static __wrap(t){const e=Object.create(pe.prototype);return e.ptr=t,by.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,by.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bignum_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bignum_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.bignum_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_str(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.bignum_from_str(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.bignum_to_str(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static zero(){const t=r.bignum_zero();return pe.__wrap(t)}is_zero(){return r.bignum_is_zero(this.ptr)!==0}checked_mul(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,pe),r.bignum_checked_mul(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_add(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,pe),r.bignum_checked_add(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,pe),r.bignum_checked_sub(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_div(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,pe),r.bignum_checked_div(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_div_ceil(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,pe),r.bignum_checked_div_ceil(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}clamped_sub(t){p(t,pe);const e=r.bignum_clamped_sub(this.ptr,t.ptr);return pe.__wrap(e)}compare(t){return p(t,pe),r.bignum_compare(this.ptr,t.ptr)}};const yy=new FinalizationRegistry(n=>r.__wbg_bip32privatekey_free(n));class Fn{static __wrap(t){const e=Object.create(Fn.prototype);return e.ptr=t,yy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,yy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bip32privatekey_free(t)}derive(t){const e=r.bip32privatekey_derive(this.ptr,t);return Fn.__wrap(e)}static from_128_xprv(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.bip32privatekey_from_128_xprv(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_128_xprv(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_to_128_xprv(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519_bip32(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_generate_ed25519_bip32(a);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Fn.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_raw_key(){const t=r.bip32privatekey_to_raw_key(this.ptr);return Kt.__wrap(t)}to_public(){const t=r.bip32privatekey_to_public(this.ptr);return ha.__wrap(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.bip32privatekey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_as_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.bip32privatekey_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_to_bech32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_bip39_entropy(t,e){const i=R(t,r.__wbindgen_malloc),a=h,s=R(e,r.__wbindgen_malloc),_=h,c=r.bip32privatekey_from_bip39_entropy(i,a,s,_);return Fn.__wrap(c)}chaincode(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_chaincode(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const my=new FinalizationRegistry(n=>r.__wbg_bip32publickey_free(n));class ha{static __wrap(t){const e=Object.create(ha.prototype);return e.ptr=t,my.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,my.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bip32publickey_free(t)}derive(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_derive(s,this.ptr,t);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_raw_key(){const t=r.bip32publickey_to_raw_key(this.ptr);return kn.__wrap(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.bip32publickey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_as_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.bip32publickey_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_to_bech32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}chaincode(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_chaincode(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const vy=new FinalizationRegistry(n=>r.__wbg_block_free(n));class Ns{static __wrap(t){const e=Object.create(Ns.prototype);return e.ptr=t,vy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,vy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_block_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.block_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.block_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ns.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.block_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.block_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.block_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ns.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}header(){const t=r.block_header(this.ptr);return Sa.__wrap(t)}transaction_bodies(){const t=r.block_transaction_bodies(this.ptr);return qa.__wrap(t)}transaction_witness_sets(){const t=r.block_transaction_witness_sets(this.ptr);return Ga.__wrap(t)}auxiliary_data_set(){const t=r.block_auxiliary_data_set(this.ptr);return Os.__wrap(t)}invalid_transactions(){const t=r.block_invalid_transactions(this.ptr);return Qa.__wrap(t)}static new(t,e,i,a,s){p(t,Sa),p(e,qa),p(i,Ga),p(a,Os),p(s,Qa);const _=r.block_new(t.ptr,e.ptr,i.ptr,a.ptr,s.ptr);return Ns.__wrap(_)}}const ky=new FinalizationRegistry(n=>r.__wbg_blockhash_free(n));class nr{static __wrap(t){const e=Object.create(nr.prototype);return e.ptr=t,ky.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ky.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_blockhash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.blockhash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.blockhash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.blockhash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const xy=new FinalizationRegistry(n=>r.__wbg_blockfrost_free(n));class Rs{static __wrap(t){const e=Object.create(Rs.prototype);return e.ptr=t,xy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,xy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_blockfrost_free(t)}static new(t,e){const i=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=h,s=N(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=h,c=r.blockfrost_new(i,a,s,_);return Rs.__wrap(c)}url(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}project_id(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_project_id(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const jy=new FinalizationRegistry(n=>r.__wbg_bootstrapwitness_free(n));class hn{static __wrap(t){const e=Object.create(hn.prototype);return e.ptr=t,jy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,jy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bootstrapwitness_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.bootstrapwitness_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return hn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.bootstrapwitness_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return hn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}vkey(){const t=r.bootstrapwitness_vkey(this.ptr);return Oe.__wrap(t)}signature(){const t=r.bootstrapwitness_signature(this.ptr);return Se.__wrap(t)}chain_code(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}attributes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_attributes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e,i,a){p(t,Oe),p(e,Se);const s=R(i,r.__wbindgen_malloc),_=h,c=R(a,r.__wbindgen_malloc),d=h,f=r.bootstrapwitness_new(t.ptr,e.ptr,s,_,c,d);return hn.__wrap(f)}}const Sy=new FinalizationRegistry(n=>r.__wbg_bootstrapwitnesses_free(n));class Ps{static __wrap(t){const e=Object.create(Ps.prototype);return e.ptr=t,Sy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Sy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bootstrapwitnesses_free(t)}static new(){const t=r.assetnames_new();return Ps.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.bootstrapwitnesses_get(this.ptr,t);return hn.__wrap(e)}add(t){p(t,hn),r.bootstrapwitnesses_add(this.ptr,t.ptr)}}const Cy=new FinalizationRegistry(n=>r.__wbg_byronaddress_free(n));class ze{static __wrap(t){const e=Object.create(ze.prototype);return e.ptr=t,Cy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Cy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_byronaddress_free(t)}to_base58(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_to_base58(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.byronaddress_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ze.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}byron_protocol_magic(){return r.byronaddress_byron_protocol_magic(this.ptr)>>>0}attributes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_attributes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}network_id(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_network_id(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_base58(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.byronaddress_from_base58(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ze.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static icarus_from_key(t,e){p(t,ha);const i=r.byronaddress_icarus_from_key(t.ptr,e);return ze.__wrap(i)}static is_valid(t){const e=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=h;return r.byronaddress_is_valid(e,i)!==0}to_address(){const t=r.byronaddress_to_address(this.ptr);return jt.__wrap(t)}static from_address(t){p(t,jt);const e=r.address_as_byron(t.ptr);return e===0?void 0:ze.__wrap(e)}}const Ey=new FinalizationRegistry(n=>r.__wbg_certificate_free(n));class Ht{static __wrap(t){const e=Object.create(Ht.prototype);return e.ptr=t,Ey.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ey.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_certificate_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.certificate_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.certificate_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ht.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.certificate_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.certificate_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.certificate_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ht.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_stake_registration(t){p(t,Ur);const e=r.certificate_new_stake_registration(t.ptr);return Ht.__wrap(e)}static new_stake_deregistration(t){p(t,Br);const e=r.certificate_new_stake_deregistration(t.ptr);return Ht.__wrap(e)}static new_stake_delegation(t){p(t,Ar);const e=r.certificate_new_stake_delegation(t.ptr);return Ht.__wrap(e)}static new_pool_registration(t){p(t,Pr);const e=r.certificate_new_pool_registration(t.ptr);return Ht.__wrap(e)}static new_pool_retirement(t){p(t,Ir);const e=r.certificate_new_pool_retirement(t.ptr);return Ht.__wrap(e)}static new_genesis_key_delegation(t){p(t,ka);const e=r.certificate_new_genesis_key_delegation(t.ptr);return Ht.__wrap(e)}static new_move_instantaneous_rewards_cert(t){p(t,Ra);const e=r.certificate_new_move_instantaneous_rewards_cert(t.ptr);return Ht.__wrap(e)}kind(){return r.certificate_kind(this.ptr)>>>0}as_stake_registration(){const t=r.certificate_as_stake_registration(this.ptr);return t===0?void 0:Ur.__wrap(t)}as_stake_deregistration(){const t=r.certificate_as_stake_deregistration(this.ptr);return t===0?void 0:Br.__wrap(t)}as_stake_delegation(){const t=r.certificate_as_stake_delegation(this.ptr);return t===0?void 0:Ar.__wrap(t)}as_pool_registration(){const t=r.certificate_as_pool_registration(this.ptr);return t===0?void 0:Pr.__wrap(t)}as_pool_retirement(){const t=r.certificate_as_pool_retirement(this.ptr);return t===0?void 0:Ir.__wrap(t)}as_genesis_key_delegation(){const t=r.certificate_as_genesis_key_delegation(this.ptr);return t===0?void 0:ka.__wrap(t)}as_move_instantaneous_rewards_cert(){const t=r.certificate_as_move_instantaneous_rewards_cert(this.ptr);return t===0?void 0:Ra.__wrap(t)}as_reg_cert(){const t=r.certificate_as_reg_cert(this.ptr);return t===0?void 0:Hi.__wrap(t)}as_unreg_cert(){const t=r.certificate_as_unreg_cert(this.ptr);return t===0?void 0:Gi.__wrap(t)}as_vote_deleg_cert(){const t=r.certificate_as_vote_deleg_cert(this.ptr);return t===0?void 0:ts.__wrap(t)}as_stake_vote_deleg_cert(){const t=r.certificate_as_stake_vote_deleg_cert(this.ptr);return t===0?void 0:Ji.__wrap(t)}as_stake_reg_deleg_cert(){const t=r.certificate_as_stake_reg_deleg_cert(this.ptr);return t===0?void 0:Qi.__wrap(t)}as_vote_reg_deleg_cert(){const t=r.certificate_as_vote_reg_deleg_cert(this.ptr);return t===0?void 0:es.__wrap(t)}as_stake_vote_reg_deleg_cert(){const t=r.certificate_as_stake_vote_reg_deleg_cert(this.ptr);return t===0?void 0:Xi.__wrap(t)}as_reg_committee_hot_key_cert(){const t=r.certificate_as_reg_committee_hot_key_cert(this.ptr);return t===0?void 0:Wi.__wrap(t)}as_unreg_committee_hot_key_cert(){const t=r.certificate_as_unreg_committee_hot_key_cert(this.ptr);return t===0?void 0:Yi.__wrap(t)}as_reg_drep_cert(){const t=r.certificate_as_reg_drep_cert(this.ptr);return t===0?void 0:Vi.__wrap(t)}as_unreg_drep_cert(){const t=r.certificate_as_unreg_drep_cert(this.ptr);return t===0?void 0:Zi.__wrap(t)}}const Oy=new FinalizationRegistry(n=>r.__wbg_certificates_free(n));class vr{static __wrap(t){const e=Object.create(vr.prototype);return e.ptr=t,Oy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Oy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_certificates_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.certificates_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.certificates_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return vr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.certificates_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.certificates_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.certificates_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return vr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return vr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.certificates_get(this.ptr,t);return Ht.__wrap(e)}add(t){p(t,Ht),r.certificates_add(this.ptr,t.ptr)}}const Ny=new FinalizationRegistry(n=>r.__wbg_constrplutusdata_free(n));class ga{static __wrap(t){const e=Object.create(ga.prototype);return e.ptr=t,Ny.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ny.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_constrplutusdata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.constrplutusdata_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.constrplutusdata_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}alternative(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}data(){const t=r.constrplutusdata_data(this.ptr);return ce.__wrap(t)}static new(t,e){p(t,O),p(e,ce);const i=r.constrplutusdata_new(t.ptr,e.ptr);return ga.__wrap(i)}}const Ry=new FinalizationRegistry(n=>r.__wbg_costmodel_free(n));class gn{static __wrap(t){const e=Object.create(gn.prototype);return e.ptr=t,Ry.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ry.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_costmodel_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.costmodel_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.costmodel_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return gn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.costmodel_new();return gn.__wrap(t)}static new_plutus_v2(){const t=r.costmodel_new_plutus_v2();return gn.__wrap(t)}static new_plutus_v3(){const t=r.costmodel_new_plutus_v3();return gn.__wrap(t)}set(t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(e,_e),r.costmodel_set(_,this.ptr,t,e.ptr);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return _e.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.costmodel_get(s,this.ptr,t);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return _e.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}len(){return r.assetnames_len(this.ptr)>>>0}}const Py=new FinalizationRegistry(n=>r.__wbg_costmdls_free(n));class rr{static __wrap(t){const e=Object.create(rr.prototype);return e.ptr=t,Py.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Py.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_costmdls_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.costmdls_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.costmdls_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return rr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return rr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,Xe),p(e,gn);const i=r.costmdls_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:gn.__wrap(i)}get(t){p(t,Xe);const e=r.costmdls_get(this.ptr,t.ptr);return e===0?void 0:gn.__wrap(e)}keys(){const t=r.costmdls_keys(this.ptr);return Fo.__wrap(t)}}const Iy=new FinalizationRegistry(n=>r.__wbg_dnsrecordaoraaaa_free(n));class ba{static __wrap(t){const e=Object.create(ba.prototype);return e.ptr=t,Iy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Iy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_dnsrecordaoraaaa_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.dnsrecordaoraaaa_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.dnsrecordaoraaaa_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.dnsrecordaoraaaa_new(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}record(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const Ty=new FinalizationRegistry(n=>r.__wbg_dnsrecordsrv_free(n));class ya{static __wrap(t){const e=Object.create(ya.prototype);return e.ptr=t,Ty.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ty.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_dnsrecordsrv_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.dnsrecordsrv_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.dnsrecordsrv_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.dnsrecordsrv_new(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}record(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const Fy=new FinalizationRegistry(n=>r.__wbg_data_free(n));class zn{static __wrap(t){const e=Object.create(zn.prototype);return e.ptr=t,Fy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Fy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_data_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.data_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.data_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return zn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.data_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.data_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.data_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return zn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,st);const e=r.data_new(t.ptr);return zn.__wrap(e)}get(){const t=r.data_get(this.ptr);return st.__wrap(t)}}const zy=new FinalizationRegistry(n=>r.__wbg_datahash_free(n));class se{static __wrap(t){const e=Object.create(se.prototype);return e.ptr=t,zy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,zy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_datahash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.datahash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.datahash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.datahash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const My=new FinalizationRegistry(n=>r.__wbg_datum_free(n));class Gt{static __wrap(t){const e=Object.create(Gt.prototype);return e.ptr=t,My.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,My.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_datum_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.datum_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.datum_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Gt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.datum_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.datum_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.datum_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Gt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_data_hash(t){p(t,se);const e=r.datum_new_data_hash(t.ptr);return Gt.__wrap(e)}static new_data(t){p(t,zn);const e=r.datum_new_data(t.ptr);return Gt.__wrap(e)}kind(){return r.datum_kind(this.ptr)>>>0}as_data_hash(){const t=r.datum_as_data_hash(this.ptr);return t===0?void 0:se.__wrap(t)}as_data(){const t=r.datum_as_data(this.ptr);return t===0?void 0:zn.__wrap(t)}}const Dy=new FinalizationRegistry(n=>r.__wbg_drep_free(n));class oe{static __wrap(t){const e=Object.create(oe.prototype);return e.ptr=t,Dy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Dy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_drep_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.drep_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.drep_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return oe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.drep_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.drep_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.drep_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return oe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_keyhash(t){p(t,et);const e=r.drep_new_keyhash(t.ptr);return oe.__wrap(e)}static new_scripthash(t){p(t,dt);const e=r.drep_new_scripthash(t.ptr);return oe.__wrap(e)}static new_abstain(){const t=r.drep_new_abstain();return oe.__wrap(t)}static new_no_confidence(){const t=r.drep_new_no_confidence();return oe.__wrap(t)}kind(){return r.drep_kind(this.ptr)>>>0}as_keyhash(){const t=r.drep_as_keyhash(this.ptr);return t===0?void 0:et.__wrap(t)}as_scripthash(){const t=r.drep_as_scripthash(this.ptr);return t===0?void 0:dt.__wrap(t)}}const Ay=new FinalizationRegistry(n=>r.__wbg_drepvotingthresholds_free(n));class ma{static __wrap(t){const e=Object.create(ma.prototype);return e.ptr=t,Ay.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ay.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_drepvotingthresholds_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.drepvotingthresholds_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.drepvotingthresholds_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.drepvotingthresholds_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.drepvotingthresholds_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.drepvotingthresholds_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}motion_no_confidence(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return ot.__wrap(t)}committee_normal(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return ot.__wrap(t)}committee_no_confidence(){const t=r.drepvotingthresholds_committee_no_confidence(this.ptr);return ot.__wrap(t)}update_constitution(){const t=r.drepvotingthresholds_update_constitution(this.ptr);return ot.__wrap(t)}hard_fork_initiation(){const t=r.drepvotingthresholds_hard_fork_initiation(this.ptr);return ot.__wrap(t)}pp_network_group(){const t=r.drepvotingthresholds_pp_network_group(this.ptr);return ot.__wrap(t)}pp_economic_group(){const t=r.drepvotingthresholds_pp_economic_group(this.ptr);return ot.__wrap(t)}pp_technical_group(){const t=r.drepvotingthresholds_pp_technical_group(this.ptr);return ot.__wrap(t)}pp_governance_group(){const t=r.drepvotingthresholds_pp_governance_group(this.ptr);return ot.__wrap(t)}treasury_withdrawal(){const t=r.drepvotingthresholds_treasury_withdrawal(this.ptr);return ot.__wrap(t)}static new(t,e,i,a,s,_,c,d,f,g){p(t,ot),p(e,ot),p(i,ot),p(a,ot),p(s,ot),p(_,ot),p(c,ot),p(d,ot),p(f,ot),p(g,ot);const k=r.drepvotingthresholds_new(t.ptr,e.ptr,i.ptr,a.ptr,s.ptr,_.ptr,c.ptr,d.ptr,f.ptr,g.ptr);return ma.__wrap(k)}}const By=new FinalizationRegistry(n=>r.__wbg_ed25519keyhash_free(n));class et{static __wrap(t){const e=Object.create(et.prototype);return e.ptr=t,By.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,By.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ed25519keyhash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ed25519keyhash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return et.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.ed25519keyhash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ed25519keyhash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return et.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ed25519keyhash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return et.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Uy=new FinalizationRegistry(n=>r.__wbg_ed25519keyhashes_free(n));class ee{static __wrap(t){const e=Object.create(ee.prototype);return e.ptr=t,Uy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Uy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ed25519keyhashes_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ed25519keyhashes_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ee.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ed25519keyhashes_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ee.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return ee.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.ed25519keyhashes_get(this.ptr,t);return et.__wrap(e)}add(t){p(t,et),r.ed25519keyhashes_add(this.ptr,t.ptr)}}const Ly=new FinalizationRegistry(n=>r.__wbg_ed25519signature_free(n));class Se{static __wrap(t){const e=Object.create(Se.prototype);return e.ptr=t,Ly.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ly.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ed25519signature_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519signature_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519signature_to_bech32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519signature_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ed25519signature_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ed25519signature_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ed25519signature_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const $y=new FinalizationRegistry(n=>r.__wbg_enterpriseaddress_free(n));class Mn{static __wrap(t){const e=Object.create(Mn.prototype);return e.ptr=t,$y.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$y.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_enterpriseaddress_free(t)}static new(t,e){p(e,q);const i=r.enterpriseaddress_new(t,e.ptr);return Mn.__wrap(i)}payment_cred(){const t=r.baseaddress_payment_cred(this.ptr);return q.__wrap(t)}to_address(){const t=r.enterpriseaddress_to_address(this.ptr);return jt.__wrap(t)}static from_address(t){p(t,jt);const e=r.address_as_enterprise(t.ptr);return e===0?void 0:Mn.__wrap(e)}}const Hy=new FinalizationRegistry(n=>r.__wbg_exunitprices_free(n));class Dn{static __wrap(t){const e=Object.create(Dn.prototype);return e.ptr=t,Hy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Hy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_exunitprices_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.exunitprices_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.exunitprices_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Dn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}mem_price(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return ot.__wrap(t)}step_price(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return ot.__wrap(t)}static new(t,e){p(t,ot),p(e,ot);const i=r.exunitprices_new(t.ptr,e.ptr);return Dn.__wrap(i)}static from_float(t,e){const i=r.exunitprices_from_float(t,e);return Dn.__wrap(i)}}const Wy=new FinalizationRegistry(n=>r.__wbg_exunits_free(n));class Je{static __wrap(t){const e=Object.create(Je.prototype);return e.ptr=t,Wy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Wy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_exunits_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.exunits_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.exunits_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Je.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}mem(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}steps(){const t=r.exunits_steps(this.ptr);return O.__wrap(t)}static new(t,e){p(t,O),p(e,O);const i=r.exunits_new(t.ptr,e.ptr);return Je.__wrap(i)}}const Vy=new FinalizationRegistry(n=>r.__wbg_generaltransactionmetadata_free(n));class kr{static __wrap(t){const e=Object.create(kr.prototype);return e.ptr=t,Vy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Vy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_generaltransactionmetadata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.generaltransactionmetadata_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.generaltransactionmetadata_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return kr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.generaltransactionmetadata_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.generaltransactionmetadata_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.generaltransactionmetadata_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return kr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return kr.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,O),p(e,xt);const i=r.generaltransactionmetadata_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:xt.__wrap(i)}get(t){p(t,O);const e=r.generaltransactionmetadata_get(this.ptr,t.ptr);return e===0?void 0:xt.__wrap(e)}keys(){const t=r.generaltransactionmetadata_keys(this.ptr);return zs.__wrap(t)}}const Ky=new FinalizationRegistry(n=>r.__wbg_genesisdelegatehash_free(n));class va{static __wrap(t){const e=Object.create(va.prototype);return e.ptr=t,Ky.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ky.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesisdelegatehash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.genesisdelegatehash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.ed25519keyhash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.genesisdelegatehash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.genesisdelegatehash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const qy=new FinalizationRegistry(n=>r.__wbg_genesishash_free(n));class bn{static __wrap(t){const e=Object.create(bn.prototype);return e.ptr=t,qy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,qy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesishash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.genesishash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.ed25519keyhash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.genesishash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.genesishash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Qy=new FinalizationRegistry(n=>r.__wbg_genesishashes_free(n));class Ai{static __wrap(t){const e=Object.create(Ai.prototype);return e.ptr=t,Qy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Qy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesishashes_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.genesishashes_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.genesishashes_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ai.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.genesishashes_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ai.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return Ai.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.genesishashes_get(this.ptr,t);return bn.__wrap(e)}add(t){p(t,bn),r.ed25519keyhashes_add(this.ptr,t.ptr)}}const Jy=new FinalizationRegistry(n=>r.__wbg_genesiskeydelegation_free(n));class ka{static __wrap(t){const e=Object.create(ka.prototype);return e.ptr=t,Jy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Jy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesiskeydelegation_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.genesiskeydelegation_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.genesiskeydelegation_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ka.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.genesiskeydelegation_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.genesiskeydelegation_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.genesiskeydelegation_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ka.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}genesishash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return bn.__wrap(t)}genesis_delegate_hash(){const t=r.genesiskeydelegation_genesis_delegate_hash(this.ptr);return va.__wrap(t)}vrf_keyhash(){const t=r.genesiskeydelegation_vrf_keyhash(this.ptr);return jn.__wrap(t)}static new(t,e,i){p(t,bn),p(e,va),p(i,jn);const a=r.genesiskeydelegation_new(t.ptr,e.ptr,i.ptr);return ka.__wrap(a)}}const Xy=new FinalizationRegistry(n=>r.__wbg_governanceaction_free(n));class Me{static __wrap(t){const e=Object.create(Me.prototype);return e.ptr=t,Xy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Xy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_governanceaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.governanceaction_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.governanceaction_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Me.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.governanceaction_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.governanceaction_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.governanceaction_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Me.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_parameter_change_action(t){p(t,za);const e=r.governanceaction_new_parameter_change_action(t.ptr);return Me.__wrap(e)}static new_hard_fork_initiation_action(t){p(t,ja);const e=r.governanceaction_new_hard_fork_initiation_action(t.ptr);return Me.__wrap(e)}static new_treasury_withdrawals_action(t){p(t,Za);const e=r.governanceaction_new_treasury_withdrawals_action(t.ptr);return Me.__wrap(e)}static new_no_confidence(){const t=r.governanceaction_new_no_confidence();return Me.__wrap(t)}static new_new_committee(t){p(t,Pa);const e=r.governanceaction_new_new_committee(t.ptr);return Me.__wrap(e)}static new_new_constitution(t){p(t,Ia);const e=r.governanceaction_new_new_constitution(t.ptr);return Me.__wrap(e)}static new_info_action(){const t=r.governanceaction_new_info_action();return Me.__wrap(t)}kind(){return r.governanceaction_kind(this.ptr)>>>0}as_parameter_change_action(){const t=r.governanceaction_as_parameter_change_action(this.ptr);return t===0?void 0:za.__wrap(t)}as_hard_fork_initiation_action(){const t=r.governanceaction_as_hard_fork_initiation_action(this.ptr);return t===0?void 0:ja.__wrap(t)}as_treasury_withdrawals_action(){const t=r.governanceaction_as_treasury_withdrawals_action(this.ptr);return t===0?void 0:Za.__wrap(t)}as_new_committee(){const t=r.governanceaction_as_new_committee(this.ptr);return t===0?void 0:Pa.__wrap(t)}as_new_constitution(){const t=r.governanceaction_as_new_constitution(this.ptr);return t===0?void 0:Ia.__wrap(t)}}const Gy=new FinalizationRegistry(n=>r.__wbg_governanceactionid_free(n));class xa{static __wrap(t){const e=Object.create(xa.prototype);return e.ptr=t,Gy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Gy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_governanceactionid_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.governanceactionid_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.governanceactionid_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.governanceactionid_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.governanceactionid_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.governanceactionid_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}transaction_id(){const t=r.governanceactionid_transaction_id(this.ptr);return ye.__wrap(t)}governance_action_index(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,ye),p(e,O);const i=r.governanceactionid_new(t.ptr,e.ptr);return xa.__wrap(i)}}const Yy=new FinalizationRegistry(n=>r.__wbg_hardforkinitiationaction_free(n));class ja{static __wrap(t){const e=Object.create(ja.prototype);return e.ptr=t,Yy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Yy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_hardforkinitiationaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.hardforkinitiationaction_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.hardforkinitiationaction_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.hardforkinitiationaction_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.hardforkinitiationaction_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.hardforkinitiationaction_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}protocol_version(){const t=r.hardforkinitiationaction_new(this.ptr);return vn.__wrap(t)}static new(t){p(t,vn);const e=r.hardforkinitiationaction_new(t.ptr);return ja.__wrap(e)}}const Zy=new FinalizationRegistry(n=>r.__wbg_header_free(n));class Sa{static __wrap(t){const e=Object.create(Sa.prototype);return e.ptr=t,Zy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Zy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_header_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.header_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.header_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Sa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.header_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.header_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.header_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Sa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}header_body(){const t=r.header_header_body(this.ptr);return Ca.__wrap(t)}body_signature(){const t=r.header_body_signature(this.ptr);return Is.__wrap(t)}static new(t,e){p(t,Ca),p(e,Is);const i=r.header_new(t.ptr,e.ptr);return Sa.__wrap(i)}}const tm=new FinalizationRegistry(n=>r.__wbg_headerbody_free(n));class Ca{static __wrap(t){const e=Object.create(Ca.prototype);return e.ptr=t,tm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,tm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_headerbody_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.headerbody_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.headerbody_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ca.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.headerbody_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.headerbody_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.headerbody_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ca.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}block_number(){return r.headerbody_block_number(this.ptr)>>>0}slot(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}prev_hash(){const t=r.headerbody_prev_hash(this.ptr);return t===0?void 0:nr.__wrap(t)}issuer_vkey(){const t=r.headerbody_issuer_vkey(this.ptr);return Oe.__wrap(t)}vrf_vkey(){const t=r.headerbody_vrf_vkey(this.ptr);return Ds.__wrap(t)}nonce_vrf(){const t=r.headerbody_nonce_vrf(this.ptr);return _r.__wrap(t)}leader_vrf(){const t=r.headerbody_leader_vrf(this.ptr);return _r.__wrap(t)}block_body_size(){return r.headerbody_block_body_size(this.ptr)>>>0}block_body_hash(){const t=r.headerbody_block_body_hash(this.ptr);return nr.__wrap(t)}operational_cert(){const t=r.headerbody_operational_cert(this.ptr);return Fa.__wrap(t)}protocol_version(){const t=r.headerbody_protocol_version(this.ptr);return vn.__wrap(t)}static new(t,e,i,a,s,_,c,d,f,g,k){p(e,O);let m=0;zt(i)||(p(i,nr),m=i.__destroy_into_raw()),p(a,Oe),p(s,Ds),p(_,_r),p(c,_r),p(f,nr),p(g,Fa),p(k,vn);const x=r.headerbody_new(t,e.ptr,m,a.ptr,s.ptr,_.ptr,c.ptr,d,f.ptr,g.ptr,k.ptr);return Ca.__wrap(x)}}const em=new FinalizationRegistry(n=>r.__wbg_int_free(n));let _e=class Js{static __wrap(t){const e=Object.create(Js.prototype);return e.ptr=t,em.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,em.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_int_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.int_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.int_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Js.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,O);const e=r.int_new(t.ptr);return Js.__wrap(e)}static new_negative(t){p(t,O);const e=r.int_new_negative(t.ptr);return Js.__wrap(e)}static new_i32(t){const e=r.int_new_i32(t);return Js.__wrap(e)}is_positive(){return r.int_is_positive(this.ptr)!==0}as_positive(){const t=r.int_as_positive(this.ptr);return t===0?void 0:O.__wrap(t)}as_negative(){const t=r.int_as_negative(this.ptr);return t===0?void 0:O.__wrap(t)}as_i32(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.int_as_i32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_i32_or_nothing(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.int_as_i32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_i32_or_fail(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.int_as_i32_or_fail(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.int_to_str(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_str(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.int_from_str(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Js.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};const nm=new FinalizationRegistry(n=>r.__wbg_ipv4_free(n));class xr{static __wrap(t){const e=Object.create(xr.prototype);return e.ptr=t,nm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,nm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ipv4_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ipv4_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ipv4_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ipv4_new(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}ip(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_ip(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const rm=new FinalizationRegistry(n=>r.__wbg_ipv6_free(n));class jr{static __wrap(t){const e=Object.create(jr.prototype);return e.ptr=t,rm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,rm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ipv6_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ipv6_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ipv6_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ipv6_new(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}ip(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_ip(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const am=new FinalizationRegistry(n=>r.__wbg_kessignature_free(n));class Is{static __wrap(t){const e=Object.create(Is.prototype);return e.ptr=t,am.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,am.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_kessignature_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.kessignature_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Is.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const im=new FinalizationRegistry(n=>r.__wbg_kesvkey_free(n));class Ea{static __wrap(t){const e=Object.create(Ea.prototype);return e.ptr=t,im.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,im.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_kesvkey_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.kesvkey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ea.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.kesvkey_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ea.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.kesvkey_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ea.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const sm=new FinalizationRegistry(n=>r.__wbg_language_free(n));class Xe{static __wrap(t){const e=Object.create(Xe.prototype);return e.ptr=t,sm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,sm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_language_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.language_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.language_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Xe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_plutus_v1(){const t=r.language_new_plutus_v1();return Xe.__wrap(t)}static new_plutus_v2(){const t=r.language_new_plutus_v2();return Xe.__wrap(t)}static new_plutus_v3(){const t=r.language_new_plutus_v3();return Xe.__wrap(t)}kind(){return r.language_kind(this.ptr)>>>0}}const om=new FinalizationRegistry(n=>r.__wbg_languages_free(n));class Fo{static __wrap(t){const e=Object.create(Fo.prototype);return e.ptr=t,om.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,om.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_languages_free(t)}static new(){const t=r.ed25519keyhashes_new();return Fo.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.languages_get(this.ptr,t);return Xe.__wrap(e)}add(t){p(t,Xe);var e=t.__destroy_into_raw();r.languages_add(this.ptr,e)}}const _m=new FinalizationRegistry(n=>r.__wbg_legacydaedalusprivatekey_free(n));class zo{static __wrap(t){const e=Object.create(zo.prototype);return e.ptr=t,_m.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_m.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_legacydaedalusprivatekey_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.legacydaedalusprivatekey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return zo.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.legacydaedalusprivatekey_as_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}chaincode(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.legacydaedalusprivatekey_chaincode(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const cm=new FinalizationRegistry(n=>r.__wbg_linearfee_free(n));class Bi{static __wrap(t){const e=Object.create(Bi.prototype);return e.ptr=t,cm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,cm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_linearfee_free(t)}constant(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}coefficient(){const t=r.exunits_steps(this.ptr);return O.__wrap(t)}static new(t,e){p(t,O),p(e,O);const i=r.linearfee_new(t.ptr,e.ptr);return Bi.__wrap(i)}}const lm=new FinalizationRegistry(n=>r.__wbg_mirtostakecredentials_free(n));class Oa{static __wrap(t){const e=Object.create(Oa.prototype);return e.ptr=t,lm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,lm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_mirtostakecredentials_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.mirtostakecredentials_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.mirtostakecredentials_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Oa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.mirtostakecredentials_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.mirtostakecredentials_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.mirtostakecredentials_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Oa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return Oa.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,q),p(e,_e);const i=r.mirtostakecredentials_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:_e.__wrap(i)}get(t){p(t,q);const e=r.mirtostakecredentials_get(this.ptr,t.ptr);return e===0?void 0:_e.__wrap(e)}keys(){const t=r.mirtostakecredentials_keys(this.ptr);return qi.__wrap(t)}}const dm=new FinalizationRegistry(n=>r.__wbg_metadatalist_free(n));class Na{static __wrap(t){const e=Object.create(Na.prototype);return e.ptr=t,dm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,dm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_metadatalist_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.metadatalist_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.metadatalist_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Na.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Na.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.metadatalist_get(this.ptr,t);return xt.__wrap(e)}add(t){p(t,xt),r.metadatalist_add(this.ptr,t.ptr)}}const um=new FinalizationRegistry(n=>r.__wbg_metadatamap_free(n));class Ui{static __wrap(t){const e=Object.create(Ui.prototype);return e.ptr=t,um.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,um.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_metadatamap_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.metadatamap_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.metadatamap_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ui.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return Ui.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,xt),p(e,xt);const i=r.metadatamap_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:xt.__wrap(i)}insert_str(t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16),c=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),d=h;p(e,xt),r.metadatamap_insert_str(_,this.ptr,c,d,e.ptr);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return i===0?void 0:xt.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}insert_i32(t,e){p(e,xt);const i=r.metadatamap_insert_i32(this.ptr,t,e.ptr);return i===0?void 0:xt.__wrap(i)}get(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,xt),r.metadatamap_get(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_str(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.metadatamap_get_str(s,this.ptr,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_i32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.metadatamap_get_i32(s,this.ptr,t);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}has(t){return p(t,xt),r.metadatamap_has(this.ptr,t.ptr)!==0}keys(){const t=r.metadatamap_keys(this.ptr);return Na.__wrap(t)}}const pm=new FinalizationRegistry(n=>r.__wbg_mint_free(n));class ar{static __wrap(t){const e=Object.create(ar.prototype);return e.ptr=t,pm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,pm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_mint_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.mint_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.mint_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.mint_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.mint_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.mint_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return ar.__wrap(t)}static new_from_entry(t,e){p(t,dt),p(e,An);const i=r.mint_new_from_entry(t.ptr,e.ptr);return ar.__wrap(i)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,dt),p(e,An);const i=r.mint_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:An.__wrap(i)}get(t){p(t,dt);const e=r.mint_get(this.ptr,t.ptr);return e===0?void 0:An.__wrap(e)}keys(){const t=r.mint_keys(this.ptr);return $a.__wrap(t)}as_positive_multiasset(){const t=r.mint_as_positive_multiasset(this.ptr);return be.__wrap(t)}as_negative_multiasset(){const t=r.mint_as_negative_multiasset(this.ptr);return be.__wrap(t)}}const fm=new FinalizationRegistry(n=>r.__wbg_mintassets_free(n));class An{static __wrap(t){const e=Object.create(An.prototype);return e.ptr=t,fm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,fm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_mintassets_free(t)}static new(){const t=r.assets_new();return An.__wrap(t)}static new_from_entry(t,e){p(t,ie),p(e,_e);var i=e.__destroy_into_raw();const a=r.mintassets_new_from_entry(t.ptr,i);return An.__wrap(a)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,ie),p(e,_e);var i=e.__destroy_into_raw();const a=r.mintassets_insert(this.ptr,t.ptr,i);return a===0?void 0:_e.__wrap(a)}get(t){p(t,ie);const e=r.mintassets_get(this.ptr,t.ptr);return e===0?void 0:_e.__wrap(e)}keys(){const t=r.mintassets_keys(this.ptr);return wa.__wrap(t)}}const wm=new FinalizationRegistry(n=>r.__wbg_moveinstantaneousreward_free(n));class Sr{static __wrap(t){const e=Object.create(Sr.prototype);return e.ptr=t,wm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,wm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_moveinstantaneousreward_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousreward_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.moveinstantaneousreward_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Sr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousreward_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousreward_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.moveinstantaneousreward_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Sr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_to_other_pot(t,e){p(e,O);const i=r.moveinstantaneousreward_new_to_other_pot(t,e.ptr);return Sr.__wrap(i)}static new_to_stake_creds(t,e){p(e,Oa);const i=r.moveinstantaneousreward_new_to_stake_creds(t,e.ptr);return Sr.__wrap(i)}pot(){return r.moveinstantaneousreward_pot(this.ptr)>>>0}kind(){return r.moveinstantaneousreward_kind(this.ptr)>>>0}as_to_other_pot(){const t=r.moveinstantaneousreward_as_to_other_pot(this.ptr);return t===0?void 0:O.__wrap(t)}as_to_stake_creds(){const t=r.moveinstantaneousreward_as_to_stake_creds(this.ptr);return t===0?void 0:Oa.__wrap(t)}}const hm=new FinalizationRegistry(n=>r.__wbg_moveinstantaneousrewardscert_free(n));class Ra{static __wrap(t){const e=Object.create(Ra.prototype);return e.ptr=t,hm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,hm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_moveinstantaneousrewardscert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousrewardscert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.moveinstantaneousrewardscert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ra.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousrewardscert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousrewardscert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.moveinstantaneousrewardscert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ra.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}move_instantaneous_reward(){const t=r.moveinstantaneousrewardscert_move_instantaneous_reward(this.ptr);return Sr.__wrap(t)}static new(t){p(t,Sr);const e=r.moveinstantaneousrewardscert_new(t.ptr);return Ra.__wrap(e)}}const gm=new FinalizationRegistry(n=>r.__wbg_multiasset_free(n));class be{static __wrap(t){const e=Object.create(be.prototype);return e.ptr=t,gm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,gm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_multiasset_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.multiasset_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.multiasset_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return be.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.multiasset_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.multiasset_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.multiasset_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return be.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return be.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,dt),p(e,tr);const i=r.multiasset_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:tr.__wrap(i)}get(t){p(t,dt);const e=r.multiasset_get(this.ptr,t.ptr);return e===0?void 0:tr.__wrap(e)}set_asset(t,e,i){p(t,dt),p(e,ie),p(i,O);var a=i.__destroy_into_raw();const s=r.multiasset_set_asset(this.ptr,t.ptr,e.ptr,a);return s===0?void 0:O.__wrap(s)}get_asset(t,e){p(t,dt),p(e,ie);const i=r.multiasset_get_asset(this.ptr,t.ptr,e.ptr);return O.__wrap(i)}keys(){const t=r.mint_keys(this.ptr);return $a.__wrap(t)}sub(t){p(t,be);const e=r.multiasset_sub(this.ptr,t.ptr);return be.__wrap(e)}}const bm=new FinalizationRegistry(n=>r.__wbg_multihostname_free(n));class Cr{static __wrap(t){const e=Object.create(Cr.prototype);return e.ptr=t,bm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,bm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_multihostname_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.multihostname_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.multihostname_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Cr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.multihostname_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.multihostname_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.multihostname_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Cr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}dns_name(){const t=r.anchor_anchor_url(this.ptr);return ya.__wrap(t)}static new(t){p(t,ya);const e=r.multihostname_new(t.ptr);return Cr.__wrap(e)}}const ym=new FinalizationRegistry(n=>r.__wbg_nativescript_free(n));class Nt{static __wrap(t){const e=Object.create(Nt.prototype);return e.ptr=t,ym.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ym.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_nativescript_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.nativescript_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.nativescript_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Nt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.nativescript_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.nativescript_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.nativescript_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Nt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(t){const e=r.nativescript_hash(this.ptr,t);return dt.__wrap(e)}static new_script_pubkey(t){p(t,Wa);const e=r.nativescript_new_script_pubkey(t.ptr);return Nt.__wrap(e)}static new_script_all(t){p(t,Ua);const e=r.nativescript_new_script_all(t.ptr);return Nt.__wrap(e)}static new_script_any(t){p(t,La);const e=r.nativescript_new_script_any(t.ptr);return Nt.__wrap(e)}static new_script_n_of_k(t){p(t,Ha);const e=r.nativescript_new_script_n_of_k(t.ptr);return Nt.__wrap(e)}static new_timelock_start(t){p(t,Ka);const e=r.nativescript_new_timelock_start(t.ptr);return Nt.__wrap(e)}static new_timelock_expiry(t){p(t,Va);const e=r.nativescript_new_timelock_expiry(t.ptr);return Nt.__wrap(e)}kind(){return r.nativescript_kind(this.ptr)>>>0}as_script_pubkey(){const t=r.nativescript_as_script_pubkey(this.ptr);return t===0?void 0:Wa.__wrap(t)}as_script_all(){const t=r.nativescript_as_script_all(this.ptr);return t===0?void 0:Ua.__wrap(t)}as_script_any(){const t=r.nativescript_as_script_any(this.ptr);return t===0?void 0:La.__wrap(t)}as_script_n_of_k(){const t=r.nativescript_as_script_n_of_k(this.ptr);return t===0?void 0:Ha.__wrap(t)}as_timelock_start(){const t=r.nativescript_as_timelock_start(this.ptr);return t===0?void 0:Ka.__wrap(t)}as_timelock_expiry(){const t=r.nativescript_as_timelock_expiry(this.ptr);return t===0?void 0:Va.__wrap(t)}get_required_signers(){const t=r.nativescript_get_required_signers(this.ptr);return ee.__wrap(t)}verify(t,e,i){let a=0;zt(t)||(p(t,O),a=t.__destroy_into_raw());let s=0;return zt(e)||(p(e,O),s=e.__destroy_into_raw()),p(i,ee),r.nativescript_verify(this.ptr,a,s,i.ptr)!==0}}const mm=new FinalizationRegistry(n=>r.__wbg_nativescripts_free(n));class Ce{static __wrap(t){const e=Object.create(Ce.prototype);return e.ptr=t,mm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,mm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_nativescripts_free(t)}static new(){const t=r.certificates_new();return Ce.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.nativescripts_get(this.ptr,t);return Nt.__wrap(e)}add(t){p(t,Nt),r.nativescripts_add(this.ptr,t.ptr)}}const vm=new FinalizationRegistry(n=>r.__wbg_networkid_free(n));class yn{static __wrap(t){const e=Object.create(yn.prototype);return e.ptr=t,vm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,vm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_networkid_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.networkid_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.networkid_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.networkid_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.networkid_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.networkid_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static testnet(){const t=r.networkid_testnet();return yn.__wrap(t)}static mainnet(){const t=r.networkid_mainnet();return yn.__wrap(t)}kind(){return r.networkid_kind(this.ptr)>>>0}}const km=new FinalizationRegistry(n=>r.__wbg_networkinfo_free(n));class Er{static __wrap(t){const e=Object.create(Er.prototype);return e.ptr=t,km.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,km.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_networkinfo_free(t)}static new(t,e){const i=r.networkinfo_new(t,e);return Er.__wrap(i)}network_id(){return r.networkinfo_network_id(this.ptr)}protocol_magic(){return r.networkinfo_protocol_magic(this.ptr)>>>0}static testnet(){const t=r.networkinfo_testnet();return Er.__wrap(t)}static mainnet(){const t=r.networkinfo_mainnet();return Er.__wrap(t)}}const xm=new FinalizationRegistry(n=>r.__wbg_newcommittee_free(n));class Pa{static __wrap(t){const e=Object.create(Pa.prototype);return e.ptr=t,xm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,xm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_newcommittee_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.newcommittee_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.newcommittee_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.newcommittee_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.newcommittee_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.newcommittee_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}committee(){const t=r.newcommittee_committee(this.ptr);return ee.__wrap(t)}rational(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return ot.__wrap(t)}static new(t,e){p(t,ee),p(e,ot);const i=r.newcommittee_new(t.ptr,e.ptr);return Pa.__wrap(i)}}const jm=new FinalizationRegistry(n=>r.__wbg_newconstitution_free(n));class Ia{static __wrap(t){const e=Object.create(Ia.prototype);return e.ptr=t,jm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,jm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_newconstitution_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.newconstitution_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.newconstitution_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ia.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.newconstitution_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.newconstitution_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.newconstitution_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ia.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(){const t=r.newconstitution_hash(this.ptr);return se.__wrap(t)}static new(t){p(t,se);const e=r.newconstitution_new(t.ptr);return Ia.__wrap(e)}}const Sm=new FinalizationRegistry(n=>r.__wbg_nonce_free(n));class Ta{static __wrap(t){const e=Object.create(Ta.prototype);return e.ptr=t,Sm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Sm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_nonce_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.nonce_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.nonce_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ta.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_identity(){const t=r.nonce_new_identity();return Ta.__wrap(t)}static new_from_hash(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.nonce_new_from_hash(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ta.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_hash(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.nonce_get_hash(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];let a;return t!==0&&(a=E(t,e).slice(),r.__wbindgen_free(t,e*1)),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Cm=new FinalizationRegistry(n=>r.__wbg_operationalcert_free(n));class Fa{static __wrap(t){const e=Object.create(Fa.prototype);return e.ptr=t,Cm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Cm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_operationalcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.operationalcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.operationalcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.operationalcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.operationalcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.operationalcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hot_vkey(){const t=r.operationalcert_hot_vkey(this.ptr);return Ea.__wrap(t)}sequence_number(){return r.networkinfo_protocol_magic(this.ptr)>>>0}kes_period(){return r.operationalcert_kes_period(this.ptr)>>>0}sigma(){const t=r.operationalcert_sigma(this.ptr);return Se.__wrap(t)}static new(t,e,i,a){p(t,Ea),p(a,Se);const s=r.operationalcert_new(t.ptr,e,i,a.ptr);return Fa.__wrap(s)}}const Em=new FinalizationRegistry(n=>r.__wbg_parameterchangeaction_free(n));class za{static __wrap(t){const e=Object.create(za.prototype);return e.ptr=t,Em.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Em.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_parameterchangeaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.parameterchangeaction_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.parameterchangeaction_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.parameterchangeaction_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.parameterchangeaction_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.parameterchangeaction_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}protocol_param_update(){const t=r.parameterchangeaction_protocol_param_update(this.ptr);return Bn.__wrap(t)}static new(t){p(t,Bn);const e=r.parameterchangeaction_new(t.ptr);return za.__wrap(e)}}const Om=new FinalizationRegistry(n=>r.__wbg_plutusdata_free(n));class st{static __wrap(t){const e=Object.create(st.prototype);return e.ptr=t,Om.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Om.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusdata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusdata_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.plutusdata_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return st.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_constr_plutus_data(t){p(t,ga);const e=r.plutusdata_new_constr_plutus_data(t.ptr);return st.__wrap(e)}static new_map(t){p(t,Ma);const e=r.plutusdata_new_map(t.ptr);return st.__wrap(e)}static new_list(t){p(t,ce);const e=r.plutusdata_new_list(t.ptr);return st.__wrap(e)}static new_integer(t){p(t,G_);const e=r.plutusdata_new_integer(t.ptr);return st.__wrap(e)}static new_bytes(t){const e=R(t,r.__wbindgen_malloc),i=h,a=r.plutusdata_new_bytes(e,i);return st.__wrap(a)}kind(){return r.plutusdata_kind(this.ptr)>>>0}as_constr_plutus_data(){const t=r.plutusdata_as_constr_plutus_data(this.ptr);return t===0?void 0:ga.__wrap(t)}as_map(){const t=r.plutusdata_as_map(this.ptr);return t===0?void 0:Ma.__wrap(t)}as_list(){const t=r.plutusdata_as_list(this.ptr);return t===0?void 0:ce.__wrap(t)}as_integer(){const t=r.plutusdata_as_integer(this.ptr);return t===0?void 0:G_.__wrap(t)}as_bytes(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.plutusdata_as_bytes(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];let a;return t!==0&&(a=E(t,e).slice(),r.__wbindgen_free(t,e*1)),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Nm=new FinalizationRegistry(n=>r.__wbg_plutuslist_free(n));class ce{static __wrap(t){const e=Object.create(ce.prototype);return e.ptr=t,Nm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Nm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutuslist_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutuslist_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.plutuslist_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ce.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.plutuslist_new();return ce.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.plutuslist_get(this.ptr,t);return st.__wrap(e)}add(t){p(t,st),r.plutuslist_add(this.ptr,t.ptr)}}const Rm=new FinalizationRegistry(n=>r.__wbg_plutusmap_free(n));class Ma{static __wrap(t){const e=Object.create(Ma.prototype);return e.ptr=t,Rm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Rm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusmap_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusmap_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.plutusmap_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Ma.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,st),p(e,st);const i=r.plutusmap_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:st.__wrap(i)}get(t){p(t,st);const e=r.plutusmap_get(this.ptr,t.ptr);return e===0?void 0:st.__wrap(e)}keys(){const t=r.plutusmap_keys(this.ptr);return ce.__wrap(t)}}const Pm=new FinalizationRegistry(n=>r.__wbg_plutusscript_free(n));class bt{static __wrap(t){const e=Object.create(bt.prototype);return e.ptr=t,Pm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Pm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusscript_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusscript_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.plutusscript_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return bt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(t){const e=r.plutusscript_hash(this.ptr,t);return dt.__wrap(e)}static new(t){const e=R(t,r.__wbindgen_malloc),i=h,a=r.plutusscript_new(e,i);return bt.__wrap(a)}bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Im=new FinalizationRegistry(n=>r.__wbg_plutusscripts_free(n));class le{static __wrap(t){const e=Object.create(le.prototype);return e.ptr=t,Im.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Im.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusscripts_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusscripts_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.plutusscripts_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return le.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return le.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.plutusscripts_get(this.ptr,t);return bt.__wrap(e)}add(t){p(t,bt),r.assetnames_add(this.ptr,t.ptr)}}const Tm=new FinalizationRegistry(n=>r.__wbg_plutuswitness_free(n));class mn{static __wrap(t){const e=Object.create(mn.prototype);return e.ptr=t,Tm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Tm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutuswitness_free(t)}static new(t,e,i){p(t,st);let a=0;zt(e)||(p(e,st),a=e.__destroy_into_raw());let s=0;zt(i)||(p(i,bt),s=i.__destroy_into_raw());const _=r.plutuswitness_new(t.ptr,a,s);return mn.__wrap(_)}static new_plutus_v2(t,e,i){p(t,st);let a=0;zt(e)||(p(e,st),a=e.__destroy_into_raw());let s=0;zt(i)||(p(i,bt),s=i.__destroy_into_raw());const _=r.plutuswitness_new_plutus_v2(t.ptr,a,s);return mn.__wrap(_)}plutus_data(){const t=r.plutuswitness_plutus_data(this.ptr);return t===0?void 0:st.__wrap(t)}redeemer(){const t=r.data_get(this.ptr);return st.__wrap(t)}script(){const t=r.plutuswitness_script(this.ptr);return t===0?void 0:bt.__wrap(t)}version(){return r.plutuswitness_version(this.ptr)>>>0}}const Fm=new FinalizationRegistry(n=>r.__wbg_pointer_free(n));class Ts{static __wrap(t){const e=Object.create(Ts.prototype);return e.ptr=t,Fm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Fm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_pointer_free(t)}static new(t,e,i){p(t,O),p(e,O),p(i,O);const a=r.pointer_new(t.ptr,e.ptr,i.ptr);return Ts.__wrap(a)}slot(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}tx_index(){const t=r.exunits_steps(this.ptr);return O.__wrap(t)}cert_index(){const t=r.pointer_cert_index(this.ptr);return O.__wrap(t)}}const zm=new FinalizationRegistry(n=>r.__wbg_pointeraddress_free(n));class Li{static __wrap(t){const e=Object.create(Li.prototype);return e.ptr=t,zm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,zm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_pointeraddress_free(t)}static new(t,e,i){p(e,q),p(i,Ts);const a=r.pointeraddress_new(t,e.ptr,i.ptr);return Li.__wrap(a)}payment_cred(){const t=r.pointeraddress_payment_cred(this.ptr);return q.__wrap(t)}stake_pointer(){const t=r.pointeraddress_stake_pointer(this.ptr);return Ts.__wrap(t)}to_address(){const t=r.pointeraddress_to_address(this.ptr);return jt.__wrap(t)}static from_address(t){p(t,jt);const e=r.address_as_pointer(t.ptr);return e===0?void 0:Li.__wrap(e)}}const Mm=new FinalizationRegistry(n=>r.__wbg_poolmetadata_free(n));class Or{static __wrap(t){const e=Object.create(Or.prototype);return e.ptr=t,Mm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Mm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolmetadata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolmetadata_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.poolmetadata_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Or.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolmetadata_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolmetadata_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolmetadata_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Or.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}url(){const t=r.anchor_anchor_url(this.ptr);return or.__wrap(t)}pool_metadata_hash(){const t=r.anchor_anchor_data_hash(this.ptr);return Nr.__wrap(t)}static new(t,e){p(t,or),p(e,Nr);const i=r.anchor_new(t.ptr,e.ptr);return Or.__wrap(i)}}const Dm=new FinalizationRegistry(n=>r.__wbg_poolmetadatahash_free(n));class Nr{static __wrap(t){const e=Object.create(Nr.prototype);return e.ptr=t,Dm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Dm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolmetadatahash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.poolmetadatahash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolmetadatahash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolmetadatahash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Am=new FinalizationRegistry(n=>r.__wbg_poolparams_free(n));class Rr{static __wrap(t){const e=Object.create(Rr.prototype);return e.ptr=t,Am.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Am.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolparams_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolparams_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.poolparams_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Rr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolparams_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolparams_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolparams_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Rr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}operator(){const t=r.poolparams_operator(this.ptr);return et.__wrap(t)}vrf_keyhash(){const t=r.poolparams_vrf_keyhash(this.ptr);return jn.__wrap(t)}pledge(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}cost(){const t=r.exunits_steps(this.ptr);return O.__wrap(t)}margin(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return ot.__wrap(t)}reward_account(){const t=r.poolparams_reward_account(this.ptr);return It.__wrap(t)}pool_owners(){const t=r.poolparams_pool_owners(this.ptr);return ee.__wrap(t)}relays(){const t=r.poolparams_relays(this.ptr);return zr.__wrap(t)}pool_metadata(){const t=r.poolparams_pool_metadata(this.ptr);return t===0?void 0:Or.__wrap(t)}static new(t,e,i,a,s,_,c,d,f){p(t,et),p(e,jn),p(i,O),p(a,O),p(s,ot),p(_,It),p(c,ee),p(d,zr);let g=0;zt(f)||(p(f,Or),g=f.__destroy_into_raw());const k=r.poolparams_new(t.ptr,e.ptr,i.ptr,a.ptr,s.ptr,_.ptr,c.ptr,d.ptr,g);return Rr.__wrap(k)}}const Bm=new FinalizationRegistry(n=>r.__wbg_poolregistration_free(n));class Pr{static __wrap(t){const e=Object.create(Pr.prototype);return e.ptr=t,Bm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Bm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolregistration_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolregistration_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.poolregistration_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Pr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolregistration_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolregistration_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolregistration_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Pr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}pool_params(){const t=r.poolregistration_pool_params(this.ptr);return Rr.__wrap(t)}static new(t){p(t,Rr);const e=r.poolregistration_new(t.ptr);return Pr.__wrap(e)}set_is_update(t){r.poolregistration_set_is_update(this.ptr,t)}}const Um=new FinalizationRegistry(n=>r.__wbg_poolretirement_free(n));class Ir{static __wrap(t){const e=Object.create(Ir.prototype);return e.ptr=t,Um.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Um.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolretirement_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolretirement_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.poolretirement_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolretirement_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolretirement_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolretirement_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}pool_keyhash(){const t=r.poolretirement_pool_keyhash(this.ptr);return et.__wrap(t)}epoch(){return r.networkinfo_protocol_magic(this.ptr)>>>0}static new(t,e){p(t,et);const i=r.poolretirement_new(t.ptr,e);return Ir.__wrap(i)}}const Lm=new FinalizationRegistry(n=>r.__wbg_poolvotingthresholds_free(n));class Da{static __wrap(t){const e=Object.create(Da.prototype);return e.ptr=t,Lm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Lm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolvotingthresholds_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolvotingthresholds_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.poolvotingthresholds_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Da.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolvotingthresholds_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolvotingthresholds_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolvotingthresholds_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Da.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}motion_no_confidence(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return ot.__wrap(t)}committee_normal(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return ot.__wrap(t)}committee_no_confidence(){const t=r.drepvotingthresholds_committee_no_confidence(this.ptr);return ot.__wrap(t)}hard_fork_initiation(){const t=r.drepvotingthresholds_update_constitution(this.ptr);return ot.__wrap(t)}static new(t,e,i,a){p(t,ot),p(e,ot),p(i,ot),p(a,ot);const s=r.poolvotingthresholds_new(t.ptr,e.ptr,i.ptr,a.ptr);return Da.__wrap(s)}}const $m=new FinalizationRegistry(n=>r.__wbg_privatekey_free(n));class Kt{static __wrap(t){const e=Object.create(Kt.prototype);return e.ptr=t,$m.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$m.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_privatekey_free(t)}to_public(){const t=r.privatekey_to_public(this.ptr);return kn.__wrap(t)}static generate_ed25519(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_generate_ed25519(a);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Kt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519extended(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_generate_ed25519extended(a);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Kt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.privatekey_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_to_bech32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_as_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_extended_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.privatekey_from_extended_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_normal_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.privatekey_from_normal_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}sign(t){const e=R(t,r.__wbindgen_malloc),i=h,a=r.privatekey_sign(this.ptr,e,i);return Se.__wrap(a)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.privatekey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Hm=new FinalizationRegistry(n=>r.__wbg_proposalprocedure_free(n));class Aa{static __wrap(t){const e=Object.create(Aa.prototype);return e.ptr=t,Hm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Hm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_proposalprocedure_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedure_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.proposalprocedure_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Aa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedure_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedure_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.proposalprocedure_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Aa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}deposit(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}hash(){const t=r.proposalprocedure_hash(this.ptr);return dt.__wrap(t)}governance_action(){const t=r.proposalprocedure_governance_action(this.ptr);return Me.__wrap(t)}anchor(){const t=r.proposalprocedure_anchor(this.ptr);return Zn.__wrap(t)}static new(t,e,i,a){p(t,O),p(e,dt),p(i,Me),p(a,Zn);const s=r.proposalprocedure_new(t.ptr,e.ptr,i.ptr,a.ptr);return Aa.__wrap(s)}}const Wm=new FinalizationRegistry(n=>r.__wbg_proposalprocedures_free(n));class $i{static __wrap(t){const e=Object.create($i.prototype);return e.ptr=t,Wm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Wm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_proposalprocedures_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedures_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.proposalprocedures_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return $i.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return $i.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.proposalprocedures_get(this.ptr,t);return Aa.__wrap(e)}add(t){p(t,Aa),r.proposalprocedures_add(this.ptr,t.ptr)}}const Vm=new FinalizationRegistry(n=>r.__wbg_proposedprotocolparameterupdates_free(n));class Ba{static __wrap(t){const e=Object.create(Ba.prototype);return e.ptr=t,Vm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Vm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_proposedprotocolparameterupdates_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposedprotocolparameterupdates_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.proposedprotocolparameterupdates_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.proposedprotocolparameterupdates_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposedprotocolparameterupdates_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.proposedprotocolparameterupdates_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return Ba.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,bn),p(e,Bn);const i=r.proposedprotocolparameterupdates_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:Bn.__wrap(i)}get(t){p(t,bn);const e=r.proposedprotocolparameterupdates_get(this.ptr,t.ptr);return e===0?void 0:Bn.__wrap(e)}keys(){const t=r.proposedprotocolparameterupdates_keys(this.ptr);return Ai.__wrap(t)}}const Km=new FinalizationRegistry(n=>r.__wbg_protocolparamupdate_free(n));class Bn{static __wrap(t){const e=Object.create(Bn.prototype);return e.ptr=t,Km.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Km.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_protocolparamupdate_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.protocolparamupdate_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.protocolparamupdate_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_minfee_a(t){p(t,O),r.protocolparamupdate_set_minfee_a(this.ptr,t.ptr)}minfee_a(){const t=r.protocolparamupdate_minfee_a(this.ptr);return t===0?void 0:O.__wrap(t)}set_minfee_b(t){p(t,O),r.protocolparamupdate_set_minfee_b(this.ptr,t.ptr)}minfee_b(){const t=r.protocolparamupdate_minfee_b(this.ptr);return t===0?void 0:O.__wrap(t)}set_max_block_body_size(t){r.protocolparamupdate_set_max_block_body_size(this.ptr,t)}max_block_body_size(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_block_body_size(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_max_tx_size(t){r.protocolparamupdate_set_max_tx_size(this.ptr,t)}max_tx_size(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_tx_size(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_max_block_header_size(t){r.protocolparamupdate_set_max_block_header_size(this.ptr,t)}max_block_header_size(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_block_header_size(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_key_deposit(t){p(t,O),r.protocolparamupdate_set_key_deposit(this.ptr,t.ptr)}key_deposit(){const t=r.protocolparamupdate_key_deposit(this.ptr);return t===0?void 0:O.__wrap(t)}set_pool_deposit(t){p(t,O),r.protocolparamupdate_set_pool_deposit(this.ptr,t.ptr)}pool_deposit(){const t=r.protocolparamupdate_pool_deposit(this.ptr);return t===0?void 0:O.__wrap(t)}set_max_epoch(t){r.protocolparamupdate_set_max_epoch(this.ptr,t)}max_epoch(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_epoch(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_n_opt(t){r.protocolparamupdate_set_n_opt(this.ptr,t)}n_opt(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_n_opt(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_pool_pledge_influence(t){p(t,ot),r.protocolparamupdate_set_pool_pledge_influence(this.ptr,t.ptr)}pool_pledge_influence(){const t=r.protocolparamupdate_pool_pledge_influence(this.ptr);return t===0?void 0:ot.__wrap(t)}set_expansion_rate(t){p(t,ot),r.protocolparamupdate_set_expansion_rate(this.ptr,t.ptr)}expansion_rate(){const t=r.protocolparamupdate_expansion_rate(this.ptr);return t===0?void 0:ot.__wrap(t)}set_treasury_growth_rate(t){p(t,ot),r.protocolparamupdate_set_treasury_growth_rate(this.ptr,t.ptr)}treasury_growth_rate(){const t=r.protocolparamupdate_treasury_growth_rate(this.ptr);return t===0?void 0:ot.__wrap(t)}set_d(t){p(t,ot),r.protocolparamupdate_set_d(this.ptr,t.ptr)}d(){const t=r.protocolparamupdate_d(this.ptr);return t===0?void 0:ot.__wrap(t)}set_extra_entropy(t){p(t,Ta),r.protocolparamupdate_set_extra_entropy(this.ptr,t.ptr)}extra_entropy(){const t=r.protocolparamupdate_extra_entropy(this.ptr);return t===0?void 0:Ta.__wrap(t)}set_protocol_version(t){p(t,vn),r.protocolparamupdate_set_protocol_version(this.ptr,t.ptr)}protocol_version(){const t=r.protocolparamupdate_protocol_version(this.ptr);return t===0?void 0:vn.__wrap(t)}set_min_pool_cost(t){p(t,O),r.protocolparamupdate_set_min_pool_cost(this.ptr,t.ptr)}min_pool_cost(){const t=r.protocolparamupdate_min_pool_cost(this.ptr);return t===0?void 0:O.__wrap(t)}set_ada_per_utxo_byte(t){p(t,O),r.protocolparamupdate_set_ada_per_utxo_byte(this.ptr,t.ptr)}ada_per_utxo_byte(){const t=r.protocolparamupdate_ada_per_utxo_byte(this.ptr);return t===0?void 0:O.__wrap(t)}set_cost_models(t){p(t,rr),r.protocolparamupdate_set_cost_models(this.ptr,t.ptr)}cost_models(){const t=r.protocolparamupdate_cost_models(this.ptr);return t===0?void 0:rr.__wrap(t)}set_execution_costs(t){p(t,Dn),r.protocolparamupdate_set_execution_costs(this.ptr,t.ptr)}execution_costs(){const t=r.protocolparamupdate_execution_costs(this.ptr);return t===0?void 0:Dn.__wrap(t)}set_max_tx_ex_units(t){p(t,Je),r.protocolparamupdate_set_max_tx_ex_units(this.ptr,t.ptr)}max_tx_ex_units(){const t=r.protocolparamupdate_max_tx_ex_units(this.ptr);return t===0?void 0:Je.__wrap(t)}set_max_block_ex_units(t){p(t,Je),r.protocolparamupdate_set_max_block_ex_units(this.ptr,t.ptr)}max_block_ex_units(){const t=r.protocolparamupdate_max_block_ex_units(this.ptr);return t===0?void 0:Je.__wrap(t)}set_max_value_size(t){r.protocolparamupdate_set_max_value_size(this.ptr,t)}max_value_size(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_value_size(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_collateral_percentage(t){r.protocolparamupdate_set_collateral_percentage(this.ptr,t)}collateral_percentage(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_collateral_percentage(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_max_collateral_inputs(t){r.protocolparamupdate_set_max_collateral_inputs(this.ptr,t)}max_collateral_inputs(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_collateral_inputs(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_pool_voting_thresholds(t){p(t,Da);var e=t.__destroy_into_raw();r.protocolparamupdate_set_pool_voting_thresholds(this.ptr,e)}pool_voting_thresholds(){const t=r.protocolparamupdate_pool_voting_thresholds(this.ptr);return t===0?void 0:Da.__wrap(t)}set_drep_voting_thresholds(t){p(t,ma);var e=t.__destroy_into_raw();r.protocolparamupdate_set_drep_voting_thresholds(this.ptr,e)}drep_voting_thresholds(){const t=r.protocolparamupdate_drep_voting_thresholds(this.ptr);return t===0?void 0:ma.__wrap(t)}set_min_committee_size(t){p(t,O);var e=t.__destroy_into_raw();r.protocolparamupdate_set_min_committee_size(this.ptr,e)}min_committee_size(){const t=r.protocolparamupdate_min_committee_size(this.ptr);return t===0?void 0:O.__wrap(t)}set_committee_term_limit(t){p(t,O);var e=t.__destroy_into_raw();r.protocolparamupdate_set_committee_term_limit(this.ptr,e)}committee_term_limit(){const t=r.protocolparamupdate_committee_term_limit(this.ptr);return t===0?void 0:O.__wrap(t)}set_governance_action_expiration(t){p(t,O);var e=t.__destroy_into_raw();r.protocolparamupdate_set_governance_action_expiration(this.ptr,e)}governance_action_expiration(){const t=r.protocolparamupdate_governance_action_expiration(this.ptr);return t===0?void 0:O.__wrap(t)}set_governance_action_deposit(t){p(t,O);var e=t.__destroy_into_raw();r.protocolparamupdate_set_governance_action_deposit(this.ptr,e)}governance_action_deposit(){const t=r.protocolparamupdate_governance_action_deposit(this.ptr);return t===0?void 0:O.__wrap(t)}set_drep_deposit(t){p(t,O);var e=t.__destroy_into_raw();r.protocolparamupdate_set_drep_deposit(this.ptr,e)}drep_deposit(){const t=r.protocolparamupdate_drep_deposit(this.ptr);return t===0?void 0:O.__wrap(t)}set_drep_inactivity_period(t){r.protocolparamupdate_set_drep_inactivity_period(this.ptr,t)}drep_inactivity_period(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_drep_inactivity_period(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.protocolparamupdate_new();return Bn.__wrap(t)}}const qm=new FinalizationRegistry(n=>r.__wbg_protocolversion_free(n));class vn{static __wrap(t){const e=Object.create(vn.prototype);return e.ptr=t,qm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,qm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_protocolversion_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolversion_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.protocolversion_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return vn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.protocolversion_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolversion_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.protocolversion_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return vn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}major(){return r.networkinfo_protocol_magic(this.ptr)>>>0}minor(){return r.operationalcert_kes_period(this.ptr)>>>0}static new(t,e){const i=r.protocolversion_new(t,e);return vn.__wrap(i)}}const Qm=new FinalizationRegistry(n=>r.__wbg_publickey_free(n));class kn{static __wrap(t){const e=Object.create(kn.prototype);return e.ptr=t,Qm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Qm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_publickey_free(t)}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.publickey_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return kn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.publickey_to_bech32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.publickey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return kn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}verify(t,e){const i=R(t,r.__wbindgen_malloc),a=h;return p(e,Se),r.publickey_verify(this.ptr,i,a,e.ptr)!==0}hash(){const t=r.publickey_hash(this.ptr);return et.__wrap(t)}}const Jm=new FinalizationRegistry(n=>r.__wbg_publickeys_free(n));class Y_{static __wrap(t){const e=Object.create(Y_.prototype);return e.ptr=t,Jm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Jm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_publickeys_free(t)}constructor(){const t=r.ed25519keyhashes_new();return Y_.__wrap(t)}size(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.publickeys_get(this.ptr,t);return kn.__wrap(e)}add(t){p(t,kn),r.publickeys_add(this.ptr,t.ptr)}}const Xm=new FinalizationRegistry(n=>r.__wbg_redeemer_free(n));class Tr{static __wrap(t){const e=Object.create(Tr.prototype);return e.ptr=t,Xm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Xm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemer_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.redeemer_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.redeemer_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Tr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}tag(){const t=r.redeemer_tag(this.ptr);return Ge.__wrap(t)}index(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}data(){const t=r.redeemer_data(this.ptr);return st.__wrap(t)}ex_units(){const t=r.drepvotingthresholds_update_constitution(this.ptr);return Je.__wrap(t)}static new(t,e,i,a){p(t,Ge),p(e,O),p(i,st),p(a,Je);const s=r.redeemer_new(t.ptr,e.ptr,i.ptr,a.ptr);return Tr.__wrap(s)}}const Gm=new FinalizationRegistry(n=>r.__wbg_redeemertag_free(n));class Ge{static __wrap(t){const e=Object.create(Ge.prototype);return e.ptr=t,Gm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Gm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemertag_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.redeemertag_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.redeemertag_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ge.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_spend(){const t=r.language_new_plutus_v1();return Ge.__wrap(t)}static new_mint(){const t=r.language_new_plutus_v2();return Ge.__wrap(t)}static new_cert(){const t=r.language_new_plutus_v3();return Ge.__wrap(t)}static new_reward(){const t=r.redeemertag_new_reward();return Ge.__wrap(t)}static new_drep(){const t=r.redeemertag_new_drep();return Ge.__wrap(t)}kind(){return r.redeemertag_kind(this.ptr)>>>0}}const Ym=new FinalizationRegistry(n=>r.__wbg_redeemerwitnesskey_free(n));class Mo{static __wrap(t){const e=Object.create(Mo.prototype);return e.ptr=t,Ym.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ym.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemerwitnesskey_free(t)}tag(){const t=r.redeemerwitnesskey_tag(this.ptr);return Ge.__wrap(t)}index(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,Ge),p(e,O);const i=r.redeemerwitnesskey_new(t.ptr,e.ptr);return Mo.__wrap(i)}}const Zm=new FinalizationRegistry(n=>r.__wbg_redeemers_free(n));class Fr{static __wrap(t){const e=Object.create(Fr.prototype);return e.ptr=t,Zm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Zm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemers_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.redeemers_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.redeemers_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Fr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.redeemers_get(this.ptr,t);return Tr.__wrap(e)}add(t){p(t,Tr),r.redeemers_add(this.ptr,t.ptr)}}const t1=new FinalizationRegistry(n=>r.__wbg_regcert_free(n));class Hi{static __wrap(t){const e=Object.create(Hi.prototype);return e.ptr=t,t1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_regcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.regcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Hi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.regcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Hi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,q),p(e,O);const i=r.regcert_new(t.ptr,e.ptr);return Hi.__wrap(i)}}const e1=new FinalizationRegistry(n=>r.__wbg_regcommitteehotkeycert_free(n));class Wi{static __wrap(t){const e=Object.create(Wi.prototype);return e.ptr=t,e1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,e1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_regcommitteehotkeycert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcommitteehotkeycert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.regcommitteehotkeycert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Wi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regcommitteehotkeycert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcommitteehotkeycert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.regcommitteehotkeycert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Wi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}committee_cold_keyhash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return et.__wrap(t)}committee_hot_keyhash(){const t=r.genesiskeydelegation_genesis_delegate_hash(this.ptr);return et.__wrap(t)}static new(t,e){p(t,et),p(e,et);const i=r.regcommitteehotkeycert_new(t.ptr,e.ptr);return Wi.__wrap(i)}}const n1=new FinalizationRegistry(n=>r.__wbg_regdrepcert_free(n));class Vi{static __wrap(t){const e=Object.create(Vi.prototype);return e.ptr=t,n1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,n1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_regdrepcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.regdrepcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Vi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.regdrepcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Vi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}voting_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,q),p(e,O);const i=r.regcert_new(t.ptr,e.ptr);return Vi.__wrap(i)}}const r1=new FinalizationRegistry(n=>r.__wbg_relay_free(n));class Ye{static __wrap(t){const e=Object.create(Ye.prototype);return e.ptr=t,r1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,r1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_relay_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.relay_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.relay_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ye.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.relay_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.relay_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.relay_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ye.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_single_host_addr(t){p(t,Mr);const e=r.relay_new_single_host_addr(t.ptr);return Ye.__wrap(e)}static new_single_host_name(t){p(t,Dr);const e=r.relay_new_single_host_name(t.ptr);return Ye.__wrap(e)}static new_multi_host_name(t){p(t,Cr);const e=r.relay_new_multi_host_name(t.ptr);return Ye.__wrap(e)}kind(){return r.relay_kind(this.ptr)>>>0}as_single_host_addr(){const t=r.relay_as_single_host_addr(this.ptr);return t===0?void 0:Mr.__wrap(t)}as_single_host_name(){const t=r.relay_as_single_host_name(this.ptr);return t===0?void 0:Dr.__wrap(t)}as_multi_host_name(){const t=r.relay_as_multi_host_name(this.ptr);return t===0?void 0:Cr.__wrap(t)}}const a1=new FinalizationRegistry(n=>r.__wbg_relays_free(n));class zr{static __wrap(t){const e=Object.create(zr.prototype);return e.ptr=t,a1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,a1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_relays_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.relays_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.relays_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return zr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.relays_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.relays_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.relays_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return zr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return zr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.relays_get(this.ptr,t);return Ye.__wrap(e)}add(t){p(t,Ye),r.relays_add(this.ptr,t.ptr)}}const i1=new FinalizationRegistry(n=>r.__wbg_requiredwitnessset_free(n));class Fs{static __wrap(t){const e=Object.create(Fs.prototype);return e.ptr=t,i1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,i1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_requiredwitnessset_free(t)}add_vkey(t){p(t,Ln),r.requiredwitnessset_add_vkey(this.ptr,t.ptr)}add_vkey_key(t){p(t,Oe),r.requiredwitnessset_add_vkey(this.ptr,t.ptr)}add_vkey_key_hash(t){p(t,et),r.requiredwitnessset_add_vkey_key_hash(this.ptr,t.ptr)}add_bootstrap(t){p(t,hn),r.requiredwitnessset_add_bootstrap(this.ptr,t.ptr)}add_bootstrap_key(t){p(t,Oe),r.requiredwitnessset_add_bootstrap_key(this.ptr,t.ptr)}add_bootstrap_key_hash(t){p(t,et),r.requiredwitnessset_add_bootstrap_key_hash(this.ptr,t.ptr)}add_native_script(t){p(t,Nt),r.requiredwitnessset_add_native_script(this.ptr,t.ptr)}add_native_script_hash(t){p(t,dt),r.requiredwitnessset_add_native_script_hash(this.ptr,t.ptr)}add_plutus_script(t){p(t,bt),r.requiredwitnessset_add_plutus_script(this.ptr,t.ptr)}add_plutus_v2_script(t){p(t,bt),r.requiredwitnessset_add_plutus_v2_script(this.ptr,t.ptr)}add_plutus_hash(t){p(t,dt),r.requiredwitnessset_add_plutus_hash(this.ptr,t.ptr)}add_plutus_datum(t){p(t,st),r.requiredwitnessset_add_plutus_datum(this.ptr,t.ptr)}add_plutus_datum_hash(t){p(t,se),r.requiredwitnessset_add_plutus_datum_hash(this.ptr,t.ptr)}add_redeemer(t){p(t,Tr),r.requiredwitnessset_add_redeemer(this.ptr,t.ptr)}add_redeemer_tag(t){p(t,Mo),r.requiredwitnessset_add_redeemer_tag(this.ptr,t.ptr)}add_all(t){p(t,Fs),r.requiredwitnessset_add_all(this.ptr,t.ptr)}static new(){const t=r.requiredwitnessset_new();return Fs.__wrap(t)}}const s1=new FinalizationRegistry(n=>r.__wbg_rewardaddress_free(n));class It{static __wrap(t){const e=Object.create(It.prototype);return e.ptr=t,s1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,s1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rewardaddress_free(t)}static new(t,e){p(e,q);const i=r.enterpriseaddress_new(t,e.ptr);return It.__wrap(i)}payment_cred(){const t=r.baseaddress_payment_cred(this.ptr);return q.__wrap(t)}to_address(){const t=r.rewardaddress_to_address(this.ptr);return jt.__wrap(t)}static from_address(t){p(t,jt);const e=r.address_as_reward(t.ptr);return e===0?void 0:It.__wrap(e)}}const o1=new FinalizationRegistry(n=>r.__wbg_rewardaddresses_free(n));class Ki{static __wrap(t){const e=Object.create(Ki.prototype);return e.ptr=t,o1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,o1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rewardaddresses_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.rewardaddresses_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.rewardaddresses_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ki.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.rewardaddresses_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.rewardaddresses_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.rewardaddresses_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ki.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return Ki.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.rewardaddresses_get(this.ptr,t);return It.__wrap(e)}add(t){p(t,It),r.rewardaddresses_add(this.ptr,t.ptr)}}const _1=new FinalizationRegistry(n=>r.__wbg_script_free(n));class De{static __wrap(t){const e=Object.create(De.prototype);return e.ptr=t,_1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_script_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.script_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return De.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.script_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return De.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_native(t){p(t,Nt);const e=r.script_new_native(t.ptr);return De.__wrap(e)}static new_plutus_v1(t){p(t,bt);const e=r.script_new_plutus_v1(t.ptr);return De.__wrap(e)}static new_plutus_v2(t){p(t,bt);const e=r.script_new_plutus_v2(t.ptr);return De.__wrap(e)}static new_plutus_v3(t){p(t,bt);const e=r.script_new_plutus_v3(t.ptr);return De.__wrap(e)}kind(){return r.script_kind(this.ptr)>>>0}as_native(){const t=r.script_as_native(this.ptr);return t===0?void 0:Nt.__wrap(t)}as_plutus_v1(){const t=r.script_as_plutus_v1(this.ptr);return t===0?void 0:bt.__wrap(t)}as_plutus_v2(){const t=r.script_as_plutus_v2(this.ptr);return t===0?void 0:bt.__wrap(t)}as_plutus_v3(){const t=r.script_as_plutus_v3(this.ptr);return t===0?void 0:bt.__wrap(t)}}const c1=new FinalizationRegistry(n=>r.__wbg_scriptall_free(n));class Ua{static __wrap(t){const e=Object.create(Ua.prototype);return e.ptr=t,c1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,c1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptall_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scriptall_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ua.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptall_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ua.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}native_scripts(){const t=r.scriptall_native_scripts(this.ptr);return Ce.__wrap(t)}static new(t){p(t,Ce);const e=r.scriptall_new(t.ptr);return Ua.__wrap(e)}}const l1=new FinalizationRegistry(n=>r.__wbg_scriptany_free(n));class La{static __wrap(t){const e=Object.create(La.prototype);return e.ptr=t,l1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,l1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptany_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptany_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scriptany_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return La.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptany_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return La.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}native_scripts(){const t=r.scriptall_native_scripts(this.ptr);return Ce.__wrap(t)}static new(t){p(t,Ce);const e=r.scriptall_new(t.ptr);return La.__wrap(e)}}const d1=new FinalizationRegistry(n=>r.__wbg_scriptdatahash_free(n));class ir{static __wrap(t){const e=Object.create(ir.prototype);return e.ptr=t,d1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,d1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptdatahash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scriptdatahash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptdatahash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptdatahash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const u1=new FinalizationRegistry(n=>r.__wbg_scripthash_free(n));class dt{static __wrap(t){const e=Object.create(dt.prototype);return e.ptr=t,u1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,u1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scripthash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scripthash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return dt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.ed25519keyhash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scripthash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return dt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scripthash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return dt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const p1=new FinalizationRegistry(n=>r.__wbg_scripthashes_free(n));class $a{static __wrap(t){const e=Object.create($a.prototype);return e.ptr=t,p1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,p1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scripthashes_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scripthashes_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scripthashes_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return $a.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scripthashes_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return $a.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return $a.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.scripthashes_get(this.ptr,t);return dt.__wrap(e)}add(t){p(t,dt),r.ed25519keyhashes_add(this.ptr,t.ptr)}}const f1=new FinalizationRegistry(n=>r.__wbg_scriptnofk_free(n));class Ha{static __wrap(t){const e=Object.create(Ha.prototype);return e.ptr=t,f1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,f1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptnofk_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptnofk_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scriptnofk_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptnofk_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptnofk_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptnofk_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}n(){return r.networkinfo_protocol_magic(this.ptr)>>>0}native_scripts(){const t=r.scriptnofk_native_scripts(this.ptr);return Ce.__wrap(t)}static new(t,e){p(e,Ce);const i=r.scriptnofk_new(t,e.ptr);return Ha.__wrap(i)}}const w1=new FinalizationRegistry(n=>r.__wbg_scriptpubkey_free(n));class Wa{static __wrap(t){const e=Object.create(Wa.prototype);return e.ptr=t,w1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,w1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptpubkey_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptpubkey_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scriptpubkey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Wa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptpubkey_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptpubkey_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptpubkey_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Wa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}addr_keyhash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return et.__wrap(t)}static new(t){p(t,et);const e=r.scriptpubkey_new(t.ptr);return Wa.__wrap(e)}}const h1=new FinalizationRegistry(n=>r.__wbg_scriptref_free(n));class Un{static __wrap(t){const e=Object.create(Un.prototype);return e.ptr=t,h1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,h1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptref_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptref_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scriptref_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Un.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptref_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Un.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,De);const e=r.scriptref_new(t.ptr);return Un.__wrap(e)}get(){const t=r.scriptref_get(this.ptr);return De.__wrap(t)}}const g1=new FinalizationRegistry(n=>r.__wbg_scriptwitness_free(n));class Ee{static __wrap(t){const e=Object.create(Ee.prototype);return e.ptr=t,g1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,g1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptwitness_free(t)}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptwitness_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptwitness_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptwitness_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ee.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_native_witness(t){p(t,Nt);const e=r.scriptwitness_new_native_witness(t.ptr);return Ee.__wrap(e)}static new_plutus_witness(t){p(t,mn);const e=r.scriptwitness_new_plutus_witness(t.ptr);return Ee.__wrap(e)}kind(){return r.scriptwitness_kind(this.ptr)>>>0}as_native_witness(){const t=r.scriptwitness_as_native_witness(this.ptr);return t===0?void 0:Nt.__wrap(t)}as_plutus_witness(){const t=r.scriptwitness_as_plutus_witness(this.ptr);return t===0?void 0:mn.__wrap(t)}}const b1=new FinalizationRegistry(n=>r.__wbg_singlehostaddr_free(n));class Mr{static __wrap(t){const e=Object.create(Mr.prototype);return e.ptr=t,b1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,b1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_singlehostaddr_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostaddr_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.singlehostaddr_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostaddr_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostaddr_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.singlehostaddr_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}port(){const t=r.singlehostaddr_port(this.ptr);return t===16777215?void 0:t}ipv4(){const t=r.singlehostaddr_ipv4(this.ptr);return t===0?void 0:xr.__wrap(t)}ipv6(){const t=r.singlehostaddr_ipv6(this.ptr);return t===0?void 0:jr.__wrap(t)}static new(t,e,i){let a=0;zt(e)||(p(e,xr),a=e.__destroy_into_raw());let s=0;zt(i)||(p(i,jr),s=i.__destroy_into_raw());const _=r.singlehostaddr_new(zt(t)?16777215:t,a,s);return Mr.__wrap(_)}}const y1=new FinalizationRegistry(n=>r.__wbg_singlehostname_free(n));class Dr{static __wrap(t){const e=Object.create(Dr.prototype);return e.ptr=t,y1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,y1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_singlehostname_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostname_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.singlehostname_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Dr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostname_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostname_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.singlehostname_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Dr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}port(){const t=r.singlehostname_port(this.ptr);return t===16777215?void 0:t}dns_name(){const t=r.anchor_anchor_url(this.ptr);return ba.__wrap(t)}static new(t,e){p(e,ba);const i=r.singlehostname_new(zt(t)?16777215:t,e.ptr);return Dr.__wrap(i)}}const m1=new FinalizationRegistry(n=>r.__wbg_stakecredential_free(n));class q{static __wrap(t){const e=Object.create(q.prototype);return e.ptr=t,m1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,m1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakecredential_free(t)}static from_keyhash(t){p(t,et);const e=r.drep_new_keyhash(t.ptr);return q.__wrap(e)}static from_scripthash(t){p(t,dt);const e=r.drep_new_scripthash(t.ptr);return q.__wrap(e)}to_keyhash(){const t=r.stakecredential_to_keyhash(this.ptr);return t===0?void 0:et.__wrap(t)}to_scripthash(){const t=r.stakecredential_to_scripthash(this.ptr);return t===0?void 0:dt.__wrap(t)}kind(){return r.networkid_kind(this.ptr)>>>0}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredential_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakecredential_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return q.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredential_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredential_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakecredential_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return q.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const v1=new FinalizationRegistry(n=>r.__wbg_stakecredentials_free(n));class qi{static __wrap(t){const e=Object.create(qi.prototype);return e.ptr=t,v1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,v1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakecredentials_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredentials_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakecredentials_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return qi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredentials_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredentials_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakecredentials_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return qi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return qi.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.stakecredentials_get(this.ptr,t);return q.__wrap(e)}add(t){p(t,q),r.stakecredentials_add(this.ptr,t.ptr)}}const k1=new FinalizationRegistry(n=>r.__wbg_stakedelegation_free(n));class Ar{static __wrap(t){const e=Object.create(Ar.prototype);return e.ptr=t,k1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,k1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakedelegation_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakedelegation_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakedelegation_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakedelegation_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakedelegation_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakedelegation_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return q.__wrap(t)}pool_keyhash(){const t=r.stakedelegation_pool_keyhash(this.ptr);return et.__wrap(t)}static new(t,e){p(t,q),p(e,et);const i=r.stakedelegation_new(t.ptr,e.ptr);return Ar.__wrap(i)}}const x1=new FinalizationRegistry(n=>r.__wbg_stakederegistration_free(n));class Br{static __wrap(t){const e=Object.create(Br.prototype);return e.ptr=t,x1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,x1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakederegistration_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakederegistration_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakederegistration_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return q.__wrap(t)}static new(t){p(t,q);const e=r.stakederegistration_new(t.ptr);return Br.__wrap(e)}}const j1=new FinalizationRegistry(n=>r.__wbg_stakeregdelegcert_free(n));class Qi{static __wrap(t){const e=Object.create(Qi.prototype);return e.ptr=t,j1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,j1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakeregdelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregdelegcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakeregdelegcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Qi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregdelegcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregdelegcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakeregdelegcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Qi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}pool_keyhash(){const t=r.stakeregdelegcert_pool_keyhash(this.ptr);return et.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e,i){p(t,q),p(e,et),p(i,O);const a=r.stakeregdelegcert_new(t.ptr,e.ptr,i.ptr);return Qi.__wrap(a)}}const S1=new FinalizationRegistry(n=>r.__wbg_stakeregistration_free(n));class Ur{static __wrap(t){const e=Object.create(Ur.prototype);return e.ptr=t,S1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,S1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakeregistration_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregistration_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakeregistration_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ur.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakeregistration_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ur.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return q.__wrap(t)}static new(t){p(t,q);const e=r.stakederegistration_new(t.ptr);return Ur.__wrap(e)}}const C1=new FinalizationRegistry(n=>r.__wbg_stakevotedelegcert_free(n));class Ji{static __wrap(t){const e=Object.create(Ji.prototype);return e.ptr=t,C1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,C1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakevotedelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakevotedelegcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakevotedelegcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ji.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakevotedelegcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakevotedelegcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakevotedelegcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ji.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return q.__wrap(t)}pool_keyhash(){const t=r.stakedelegation_pool_keyhash(this.ptr);return et.__wrap(t)}drep(){const t=r.stakevotedelegcert_drep(this.ptr);return oe.__wrap(t)}static new(t,e,i){p(t,q),p(e,et),p(i,oe);const a=r.stakevotedelegcert_new(t.ptr,e.ptr,i.ptr);return Ji.__wrap(a)}}const E1=new FinalizationRegistry(n=>r.__wbg_stakevoteregdelegcert_free(n));class Xi{static __wrap(t){const e=Object.create(Xi.prototype);return e.ptr=t,E1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,E1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakevoteregdelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakevoteregdelegcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakevoteregdelegcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Xi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakevoteregdelegcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakevoteregdelegcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakevoteregdelegcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Xi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}pool_keyhash(){const t=r.stakeregdelegcert_pool_keyhash(this.ptr);return et.__wrap(t)}drep(){const t=r.stakevoteregdelegcert_drep(this.ptr);return oe.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e,i,a){p(t,q),p(e,et),p(i,oe),p(a,O);const s=r.stakevoteregdelegcert_new(t.ptr,e.ptr,i.ptr,a.ptr);return Xi.__wrap(s)}}const O1=new FinalizationRegistry(n=>r.__wbg_strings_free(n));class Z_{static __wrap(t){const e=Object.create(Z_.prototype);return e.ptr=t,O1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,O1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_strings_free(t)}static new(){const t=r.assetnames_new();return Z_.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.strings_get(a,this.ptr,t);var e=o()[a/4+0],i=o()[a/4+1];return T(e,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(e,i)}}add(t){const e=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=h;r.strings_add(this.ptr,e,i)}}const N1=new FinalizationRegistry(n=>r.__wbg_timelockexpiry_free(n));class Va{static __wrap(t){const e=Object.create(Va.prototype);return e.ptr=t,N1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,N1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_timelockexpiry_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.timelockexpiry_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.timelockexpiry_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}slot(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t){p(t,O);const e=r.constrplutusdata_alternative(t.ptr);return Va.__wrap(e)}}const R1=new FinalizationRegistry(n=>r.__wbg_timelockstart_free(n));class Ka{static __wrap(t){const e=Object.create(Ka.prototype);return e.ptr=t,R1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,R1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_timelockstart_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.timelockstart_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.timelockstart_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ka.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.timelockstart_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ka.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}slot(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t){p(t,O);const e=r.constrplutusdata_alternative(t.ptr);return Ka.__wrap(e)}}const P1=new FinalizationRegistry(n=>r.__wbg_transaction_free(n));class xn{static __wrap(t){const e=Object.create(xn.prototype);return e.ptr=t,P1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,P1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transaction_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transaction_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transaction_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transaction_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transaction_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}body(){const t=r.transaction_body(this.ptr);return Ze.__wrap(t)}witness_set(){const t=r.transaction_witness_set(this.ptr);return Be.__wrap(t)}is_valid(){return r.transaction_is_valid(this.ptr)!==0}auxiliary_data(){const t=r.transaction_auxiliary_data(this.ptr);return t===0?void 0:Fe.__wrap(t)}set_is_valid(t){r.transaction_set_is_valid(this.ptr,t)}static new(t,e,i){p(t,Ze),p(e,Be);let a=0;zt(i)||(p(i,Fe),a=i.__destroy_into_raw());const s=r.transaction_new(t.ptr,e.ptr,a);return xn.__wrap(s)}}const I1=new FinalizationRegistry(n=>r.__wbg_transactionbodies_free(n));class qa{static __wrap(t){const e=Object.create(qa.prototype);return e.ptr=t,I1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,I1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbodies_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbodies_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionbodies_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbodies_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbodies_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionbodies_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return qa.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionbodies_get(this.ptr,t);return Ze.__wrap(e)}add(t){p(t,Ze),r.transactionbodies_add(this.ptr,t.ptr)}}const T1=new FinalizationRegistry(n=>r.__wbg_transactionbody_free(n));class Ze{static __wrap(t){const e=Object.create(Ze.prototype);return e.ptr=t,T1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,T1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbody_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionbody_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ze.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionbody_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ze.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}inputs(){const t=r.transactionbody_inputs(this.ptr);return en.__wrap(t)}outputs(){const t=r.transactionbody_outputs(this.ptr);return Lr.__wrap(t)}fee(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}ttl(){const t=r.transactionbody_ttl(this.ptr);return t===0?void 0:O.__wrap(t)}set_certs(t){p(t,vr),r.transactionbody_set_certs(this.ptr,t.ptr)}certs(){const t=r.transactionbody_certs(this.ptr);return t===0?void 0:vr.__wrap(t)}set_withdrawals(t){p(t,Hr),r.transactionbody_set_withdrawals(this.ptr,t.ptr)}withdrawals(){const t=r.transactionbody_withdrawals(this.ptr);return t===0?void 0:Hr.__wrap(t)}set_update(t){p(t,ti),r.transactionbody_set_update(this.ptr,t.ptr)}update(){const t=r.transactionbody_update(this.ptr);return t===0?void 0:ti.__wrap(t)}voting_procedures(){const t=r.transactionbody_voting_procedures(this.ptr);return t===0?void 0:ns.__wrap(t)}proposal_procedures(){const t=r.transactionbody_proposal_procedures(this.ptr);return t===0?void 0:$i.__wrap(t)}set_auxiliary_data_hash(t){p(t,mr),r.transactionbody_set_auxiliary_data_hash(this.ptr,t.ptr)}auxiliary_data_hash(){const t=r.transactionbody_auxiliary_data_hash(this.ptr);return t===0?void 0:mr.__wrap(t)}set_validity_start_interval(t){p(t,O),r.transactionbody_set_validity_start_interval(this.ptr,t.ptr)}validity_start_interval(){const t=r.transactionbody_validity_start_interval(this.ptr);return t===0?void 0:O.__wrap(t)}set_mint(t){p(t,ar),r.transactionbody_set_mint(this.ptr,t.ptr)}mint(){const t=r.transactionbody_mint(this.ptr);return t===0?void 0:ar.__wrap(t)}set_script_data_hash(t){p(t,ir),r.transactionbody_set_script_data_hash(this.ptr,t.ptr)}script_data_hash(){const t=r.transactionbody_script_data_hash(this.ptr);return t===0?void 0:ir.__wrap(t)}set_collateral(t){p(t,en),r.transactionbody_set_collateral(this.ptr,t.ptr)}collateral(){const t=r.transactionbody_collateral(this.ptr);return t===0?void 0:en.__wrap(t)}set_required_signers(t){p(t,ee),r.transactionbody_set_required_signers(this.ptr,t.ptr)}required_signers(){const t=r.transactionbody_required_signers(this.ptr);return t===0?void 0:ee.__wrap(t)}set_network_id(t){p(t,yn),r.transactionbody_set_network_id(this.ptr,t.ptr)}network_id(){const t=r.transactionbody_network_id(this.ptr);return t===0?void 0:yn.__wrap(t)}set_collateral_return(t){p(t,Yt),r.transactionbody_set_collateral_return(this.ptr,t.ptr)}collateral_return(){const t=r.transactionbody_collateral_return(this.ptr);return t===0?void 0:Yt.__wrap(t)}set_total_collateral(t){p(t,O),r.transactionbody_set_total_collateral(this.ptr,t.ptr)}total_collateral(){const t=r.transactionbody_total_collateral(this.ptr);return t===0?void 0:O.__wrap(t)}set_reference_inputs(t){p(t,en),r.transactionbody_set_reference_inputs(this.ptr,t.ptr)}reference_inputs(){const t=r.transactionbody_reference_inputs(this.ptr);return t===0?void 0:en.__wrap(t)}set_voting_procedures(t){p(t,ns),r.transactionbody_set_voting_procedures(this.ptr,t.ptr)}set_proposal_procedures(t){p(t,$i),r.transactionbody_set_proposal_procedures(this.ptr,t.ptr)}static new(t,e,i,a){p(t,en),p(e,Lr),p(i,O);let s=0;zt(a)||(p(a,O),s=a.__destroy_into_raw());const _=r.transactionbody_new(t.ptr,e.ptr,i.ptr,s);return Ze.__wrap(_)}raw(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_raw(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];let a;return t!==0&&(a=E(t,e).slice(),r.__wbindgen_free(t,e*1)),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const F1=new FinalizationRegistry(n=>r.__wbg_transactionbuilder_free(n));class Do{static __wrap(t){const e=Object.create(Do.prototype);return e.ptr=t,F1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,F1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbuilder_free(t)}add_inputs_from(t,e,i){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(t,sr),p(e,jt);const c=Pj(i,r.__wbindgen_malloc),d=h;r.transactionbuilder_add_inputs_from(_,this.ptr,t.ptr,e.ptr,c,d);var a=o()[_/4+0],s=o()[_/4+1];if(s)throw l(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_input(t,e){p(t,Ae);let i=0;zt(e)||(p(e,Ee),i=e.__destroy_into_raw()),r.transactionbuilder_add_input(this.ptr,t.ptr,i)}add_reference_input(t){p(t,Ae),r.transactionbuilder_add_reference_input(this.ptr,t.ptr)}fee_for_input(t,e,i){try{const c=r.__wbindgen_add_to_stack_pointer(-16);p(t,jt),p(e,tn),p(i,Rt),r.transactionbuilder_fee_for_input(c,this.ptr,t.ptr,e.ptr,i.ptr);var a=o()[c/4+0],s=o()[c/4+1],_=o()[c/4+2];if(_)throw l(s);return O.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_output(t){try{const a=r.__wbindgen_add_to_stack_pointer(-16);p(t,Yt),r.transactionbuilder_add_output(a,this.ptr,t.ptr);var e=o()[a/4+0],i=o()[a/4+1];if(i)throw l(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_plutus_script(t){p(t,bt),r.transactionbuilder_add_plutus_script(this.ptr,t.ptr)}add_plutus_v2_script(t){p(t,bt),r.transactionbuilder_add_plutus_v2_script(this.ptr,t.ptr)}add_plutus_data(t){p(t,st),r.transactionbuilder_add_plutus_data(this.ptr,t.ptr)}add_native_script(t){p(t,Nt),r.transactionbuilder_add_native_script(this.ptr,t.ptr)}add_certificate(t,e){p(t,Ht);let i=0;zt(e)||(p(e,Ee),i=e.__destroy_into_raw()),r.transactionbuilder_add_certificate(this.ptr,t.ptr,i)}fee_for_output(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,Yt),r.transactionbuilder_fee_for_output(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return O.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_ttl(t){p(t,O),r.transactionbuilder_set_ttl(this.ptr,t.ptr)}set_validity_start_interval(t){p(t,O),r.transactionbuilder_set_validity_start_interval(this.ptr,t.ptr)}add_withdrawal(t,e,i){p(t,It),p(e,O);let a=0;zt(i)||(p(i,Ee),a=i.__destroy_into_raw()),r.transactionbuilder_add_withdrawal(this.ptr,t.ptr,e.ptr,a)}auxiliary_data(){const t=r.transactionbuilder_auxiliary_data(this.ptr);return t===0?void 0:Fe.__wrap(t)}set_auxiliary_data(t){p(t,Fe),r.transactionbuilder_set_auxiliary_data(this.ptr,t.ptr)}set_metadata(t){p(t,kr),r.transactionbuilder_set_metadata(this.ptr,t.ptr)}add_metadatum(t,e){p(t,O),p(e,xt),r.transactionbuilder_add_metadatum(this.ptr,t.ptr,e.ptr)}add_json_metadatum(t,e){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,O);const _=N(e,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionbuilder_add_json_metadatum(s,this.ptr,t.ptr,_,c);var i=o()[s/4+0],a=o()[s/4+1];if(a)throw l(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_json_metadatum_with_schema(t,e,i){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(t,O);const c=N(e,r.__wbindgen_malloc,r.__wbindgen_realloc),d=h;r.transactionbuilder_add_json_metadatum_with_schema(_,this.ptr,t.ptr,c,d,i);var a=o()[_/4+0],s=o()[_/4+1];if(s)throw l(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}mint(){const t=r.transactionbuilder_mint(this.ptr);return t===0?void 0:ar.__wrap(t)}certificates(){const t=r.transactionbuilder_certificates(this.ptr);return t===0?void 0:vr.__wrap(t)}withdrawals(){const t=r.transactionbuilder_withdrawals(this.ptr);return t===0?void 0:Hr.__wrap(t)}native_scripts(){const t=r.transactionbuilder_native_scripts(this.ptr);return t===0?void 0:Ce.__wrap(t)}add_mint(t,e,i){p(t,dt),p(e,An);let a=0;zt(i)||(p(i,Ee),a=i.__destroy_into_raw()),r.transactionbuilder_add_mint(this.ptr,t.ptr,e.ptr,a)}static new(t){p(t,Ao);const e=r.transactionbuilder_new(t.ptr);return Do.__wrap(e)}script_data_hash(){const t=r.transactionbuilder_script_data_hash(this.ptr);return t===0?void 0:ir.__wrap(t)}add_collateral(t){try{const a=r.__wbindgen_add_to_stack_pointer(-16);p(t,Ae),r.transactionbuilder_add_collateral(a,this.ptr,t.ptr);var e=o()[a/4+0],i=o()[a/4+1];if(i)throw l(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_collateral(){const t=r.transactionbuilder_get_collateral(this.ptr);return t===0?void 0:en.__wrap(t)}add_required_signer(t){p(t,et),r.transactionbuilder_add_required_signer(this.ptr,t.ptr)}required_signers(){const t=r.transactionbuilder_required_signers(this.ptr);return t===0?void 0:ee.__wrap(t)}set_network_id(t){p(t,yn);var e=t.__destroy_into_raw();r.transactionbuilder_set_network_id(this.ptr,e)}network_id(){const t=r.transactionbuilder_network_id(this.ptr);return t===0?void 0:yn.__wrap(t)}redeemers(){const t=r.transactionbuilder_redeemers(this.ptr);return t===0?void 0:Fr.__wrap(t)}get_explicit_input(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_explicit_input(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Rt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_implicit_input(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_implicit_input(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Rt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_total_input(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_total_input(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Rt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_total_output(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_total_output(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Rt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_explicit_output(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_explicit_output(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Rt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_deposit(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_deposit(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return O.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_fee_if_set(){const t=r.transactionbuilder_get_fee_if_set(this.ptr);return t===0?void 0:O.__wrap(t)}balance(t,e){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,jt);let _=0;zt(e)||(p(e,Gt),_=e.__destroy_into_raw()),r.transactionbuilder_balance(s,this.ptr,t.ptr,_);var i=o()[s/4+0],a=o()[s/4+1];if(a)throw l(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_to_bytes(_,this.ptr);var t=o()[_/4+0],e=o()[_/4+1],i=o()[_/4+2],a=o()[_/4+3];if(a)throw l(i);var s=E(t,e).slice();return r.__wbindgen_free(t,e*1),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}full_size(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_full_size(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return t>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}output_sizes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_output_sizes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=Ij(t,e).slice();return r.__wbindgen_free(t,e*4),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}outputs(){const t=r.transactionbuilder_outputs(this.ptr);return Lr.__wrap(t)}construct(t,e,i){const a=this.__destroy_into_raw();let s=0;zt(t)||(p(t,sr),s=t.__destroy_into_raw());let _=0;zt(e)||(p(e,jt),_=e.__destroy_into_raw());const c=r.transactionbuilder_construct(a,s,_,zt(i)?16777215:i?1:0);return l(c)}build_tx(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_build_tx(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return xn.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}min_fee(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_min_fee(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return O.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const z1=new FinalizationRegistry(n=>r.__wbg_transactionbuilderconfig_free(n));class Ao{static __wrap(t){const e=Object.create(Ao.prototype);return e.ptr=t,z1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,z1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbuilderconfig_free(t)}}const M1=new FinalizationRegistry(n=>r.__wbg_transactionbuilderconfigbuilder_free(n));class ne{static __wrap(t){const e=Object.create(ne.prototype);return e.ptr=t,M1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,M1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbuilderconfigbuilder_free(t)}static new(){const t=r.transactionbuilderconfigbuilder_new();return ne.__wrap(t)}fee_algo(t){p(t,Bi);const e=r.transactionbuilderconfigbuilder_fee_algo(this.ptr,t.ptr);return ne.__wrap(e)}coins_per_utxo_byte(t){p(t,O);const e=r.transactionbuilderconfigbuilder_coins_per_utxo_byte(this.ptr,t.ptr);return ne.__wrap(e)}pool_deposit(t){p(t,O);const e=r.transactionbuilderconfigbuilder_pool_deposit(this.ptr,t.ptr);return ne.__wrap(e)}key_deposit(t){p(t,O);const e=r.transactionbuilderconfigbuilder_key_deposit(this.ptr,t.ptr);return ne.__wrap(e)}max_value_size(t){const e=r.transactionbuilderconfigbuilder_max_value_size(this.ptr,t);return ne.__wrap(e)}max_tx_size(t){const e=r.transactionbuilderconfigbuilder_max_tx_size(this.ptr,t);return ne.__wrap(e)}ex_unit_prices(t){p(t,Dn);const e=r.transactionbuilderconfigbuilder_ex_unit_prices(this.ptr,t.ptr);return ne.__wrap(e)}max_tx_ex_units(t){p(t,Je);const e=r.transactionbuilderconfigbuilder_max_tx_ex_units(this.ptr,t.ptr);return ne.__wrap(e)}costmdls(t){p(t,rr);const e=r.transactionbuilderconfigbuilder_costmdls(this.ptr,t.ptr);return ne.__wrap(e)}collateral_percentage(t){const e=r.transactionbuilderconfigbuilder_collateral_percentage(this.ptr,t);return ne.__wrap(e)}max_collateral_inputs(t){const e=r.transactionbuilderconfigbuilder_max_collateral_inputs(this.ptr,t);return ne.__wrap(e)}slot_config(t,e,i){p(t,O),p(e,O);const a=r.transactionbuilderconfigbuilder_slot_config(this.ptr,t.ptr,e.ptr,i);return ne.__wrap(a)}blockfrost(t){p(t,Rs);const e=r.transactionbuilderconfigbuilder_blockfrost(this.ptr,t.ptr);return ne.__wrap(e)}build(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilderconfigbuilder_build(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Ao.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const D1=new FinalizationRegistry(n=>r.__wbg_transactionhash_free(n));class ye{static __wrap(t){const e=Object.create(ye.prototype);return e.ptr=t,D1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,D1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionhash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionhash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ye.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionhash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ye.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionhash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ye.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const A1=new FinalizationRegistry(n=>r.__wbg_transactionindexes_free(n));class Qa{static __wrap(t){const e=Object.create(Qa.prototype);return e.ptr=t,A1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,A1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionindexes_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionindexes_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionindexes_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Qa.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionindexes_get(this.ptr,t);return O.__wrap(e)}add(t){p(t,O),r.transactionindexes_add(this.ptr,t.ptr)}}const B1=new FinalizationRegistry(n=>r.__wbg_transactioninput_free(n));class tn{static __wrap(t){const e=Object.create(tn.prototype);return e.ptr=t,B1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,B1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactioninput_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninput_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactioninput_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return tn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninput_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninput_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactioninput_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return tn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}transaction_id(){const t=r.governanceactionid_transaction_id(this.ptr);return ye.__wrap(t)}index(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,ye),p(e,O);const i=r.governanceactionid_new(t.ptr,e.ptr);return tn.__wrap(i)}}const U1=new FinalizationRegistry(n=>r.__wbg_transactioninputs_free(n));class en{static __wrap(t){const e=Object.create(en.prototype);return e.ptr=t,U1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,U1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactioninputs_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninputs_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactioninputs_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return en.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninputs_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninputs_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactioninputs_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return en.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return en.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactioninputs_get(this.ptr,t);return tn.__wrap(e)}add(t){p(t,tn),r.transactioninputs_add(this.ptr,t.ptr)}sort(){r.transactioninputs_sort(this.ptr)}}const L1=new FinalizationRegistry(n=>r.__wbg_transactionmetadatum_free(n));class xt{static __wrap(t){const e=Object.create(xt.prototype);return e.ptr=t,L1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,L1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionmetadatum_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionmetadatum_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_map(t){p(t,Ui);const e=r.transactionmetadatum_new_map(t.ptr);return xt.__wrap(e)}static new_list(t){p(t,Na);const e=r.transactionmetadatum_new_list(t.ptr);return xt.__wrap(e)}static new_int(t){p(t,_e);const e=r.transactionmetadatum_new_int(t.ptr);return xt.__wrap(e)}static new_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionmetadatum_new_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_text(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionmetadatum_new_text(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}kind(){return r.transactionmetadatum_kind(this.ptr)>>>0}as_map(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_map(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Ui.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_list(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_list(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Na.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_int(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_int(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return _e.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_bytes(_,this.ptr);var t=o()[_/4+0],e=o()[_/4+1],i=o()[_/4+2],a=o()[_/4+3];if(a)throw l(i);var s=E(t,e).slice();return r.__wbindgen_free(t,e*1),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_text(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_text(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}}const $1=new FinalizationRegistry(n=>r.__wbg_transactionmetadatumlabels_free(n));class zs{static __wrap(t){const e=Object.create(zs.prototype);return e.ptr=t,$1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionmetadatumlabels_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatumlabels_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionmetadatumlabels_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return zs.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return zs.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionmetadatumlabels_get(this.ptr,t);return O.__wrap(e)}add(t){p(t,O),r.transactionindexes_add(this.ptr,t.ptr)}}const H1=new FinalizationRegistry(n=>r.__wbg_transactionoutput_free(n));class Yt{static __wrap(t){const e=Object.create(Yt.prototype);return e.ptr=t,H1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,H1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutput_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionoutput_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Yt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionoutput_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Yt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}address(){const t=r.transactionoutput_address(this.ptr);return jt.__wrap(t)}amount(){const t=r.transactionoutput_amount(this.ptr);return Rt.__wrap(t)}datum(){const t=r.transactionoutput_datum(this.ptr);return t===0?void 0:Gt.__wrap(t)}script_ref(){const t=r.transactionoutput_script_ref(this.ptr);return t===0?void 0:Un.__wrap(t)}set_datum(t){p(t,Gt),r.transactionoutput_set_datum(this.ptr,t.ptr)}set_script_ref(t){p(t,Un),r.transactionoutput_set_script_ref(this.ptr,t.ptr)}static new(t,e){p(t,jt),p(e,Rt);const i=r.transactionoutput_new(t.ptr,e.ptr);return Yt.__wrap(i)}format(){return r.transactionoutput_format(this.ptr)}to_legacy_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_legacy_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const W1=new FinalizationRegistry(n=>r.__wbg_transactionoutputamountbuilder_free(n));class Ja{static __wrap(t){const e=Object.create(Ja.prototype);return e.ptr=t,W1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,W1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutputamountbuilder_free(t)}with_value(t){p(t,Rt);const e=r.transactionoutputamountbuilder_with_value(this.ptr,t.ptr);return Ja.__wrap(e)}with_coin(t){p(t,O);const e=r.transactionoutputamountbuilder_with_coin(this.ptr,t.ptr);return Ja.__wrap(e)}with_coin_and_asset(t,e){p(t,O),p(e,be);const i=r.transactionoutputamountbuilder_with_coin_and_asset(this.ptr,t.ptr,e.ptr);return Ja.__wrap(i)}with_asset_and_min_required_coin(t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(t,be),p(e,O),r.transactionoutputamountbuilder_with_asset_and_min_required_coin(_,this.ptr,t.ptr,e.ptr);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return Ja.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}build(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputamountbuilder_build(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Yt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const V1=new FinalizationRegistry(n=>r.__wbg_transactionoutputbuilder_free(n));class Ms{static __wrap(t){const e=Object.create(Ms.prototype);return e.ptr=t,V1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,V1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutputbuilder_free(t)}static new(){const t=r.transactionoutputbuilder_new();return Ms.__wrap(t)}with_address(t){p(t,jt);const e=r.transactionoutputbuilder_with_address(this.ptr,t.ptr);return Ms.__wrap(e)}with_datum(t){p(t,Gt);const e=r.transactionoutputbuilder_with_datum(this.ptr,t.ptr);return Ms.__wrap(e)}next(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputbuilder_next(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Ja.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const K1=new FinalizationRegistry(n=>r.__wbg_transactionoutputs_free(n));class Lr{static __wrap(t){const e=Object.create(Lr.prototype);return e.ptr=t,K1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,K1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutputs_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputs_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionoutputs_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Lr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputs_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputs_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionoutputs_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Lr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Lr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionoutputs_get(this.ptr,t);return Yt.__wrap(e)}add(t){p(t,Yt),r.transactionoutputs_add(this.ptr,t.ptr)}}const q1=new FinalizationRegistry(n=>r.__wbg_transactionunspentoutput_free(n));class Ae{static __wrap(t){const e=Object.create(Ae.prototype);return e.ptr=t,q1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,q1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionunspentoutput_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionunspentoutput_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionunspentoutput_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ae.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){p(t,tn),p(e,Yt);const i=r.transactionunspentoutput_new(t.ptr,e.ptr);return Ae.__wrap(i)}input(){const t=r.transactionunspentoutput_input(this.ptr);return tn.__wrap(t)}output(){const t=r.transactionunspentoutput_output(this.ptr);return Yt.__wrap(t)}to_legacy_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionunspentoutput_to_legacy_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Q1=new FinalizationRegistry(n=>r.__wbg_transactionunspentoutputs_free(n));class sr{static __wrap(t){const e=Object.create(sr.prototype);return e.ptr=t,Q1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Q1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionunspentoutputs_free(t)}static new(){const t=r.certificates_new();return sr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionunspentoutputs_get(this.ptr,t);return Ae.__wrap(e)}add(t){p(t,Ae),r.transactionunspentoutputs_add(this.ptr,t.ptr)}}const J1=new FinalizationRegistry(n=>r.__wbg_transactionwitnessset_free(n));class Be{static __wrap(t){const e=Object.create(Be.prototype);return e.ptr=t,J1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,J1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionwitnessset_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnessset_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionwitnessset_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Be.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnessset_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnessset_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionwitnessset_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Be.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_vkeys(t){p(t,As),r.transactionwitnessset_set_vkeys(this.ptr,t.ptr)}vkeys(){const t=r.transactionwitnessset_vkeys(this.ptr);return t===0?void 0:As.__wrap(t)}set_native_scripts(t){p(t,Ce),r.transactionwitnessset_set_native_scripts(this.ptr,t.ptr)}native_scripts(){const t=r.transactionwitnessset_native_scripts(this.ptr);return t===0?void 0:Ce.__wrap(t)}set_bootstraps(t){p(t,Ps),r.transactionwitnessset_set_bootstraps(this.ptr,t.ptr)}bootstraps(){const t=r.transactionwitnessset_bootstraps(this.ptr);return t===0?void 0:Ps.__wrap(t)}set_plutus_scripts(t){p(t,le),r.transactionwitnessset_set_plutus_scripts(this.ptr,t.ptr)}plutus_scripts(){const t=r.transactionwitnessset_plutus_scripts(this.ptr);return t===0?void 0:le.__wrap(t)}set_plutus_data(t){p(t,ce),r.transactionwitnessset_set_plutus_data(this.ptr,t.ptr)}plutus_data(){const t=r.transactionwitnessset_plutus_data(this.ptr);return t===0?void 0:ce.__wrap(t)}set_redeemers(t){p(t,Fr),r.transactionwitnessset_set_redeemers(this.ptr,t.ptr)}set_plutus_v2_scripts(t){p(t,le),r.transactionwitnessset_set_plutus_v2_scripts(this.ptr,t.ptr)}set_plutus_v3_scripts(t){p(t,le),r.transactionwitnessset_set_plutus_v3_scripts(this.ptr,t.ptr)}redeemers(){const t=r.transactionwitnessset_redeemers(this.ptr);return t===0?void 0:Fr.__wrap(t)}plutus_v2_scripts(){const t=r.transactionwitnessset_plutus_v2_scripts(this.ptr);return t===0?void 0:le.__wrap(t)}plutus_v3_scripts(){const t=r.transactionwitnessset_plutus_v3_scripts(this.ptr);return t===0?void 0:le.__wrap(t)}static new(){const t=r.transactionwitnessset_new();return Be.__wrap(t)}}const X1=new FinalizationRegistry(n=>r.__wbg_transactionwitnesssetbuilder_free(n));class Xa{static __wrap(t){const e=Object.create(Xa.prototype);return e.ptr=t,X1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,X1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionwitnesssetbuilder_free(t)}add_vkey(t){p(t,Ln),r.transactionwitnesssetbuilder_add_vkey(this.ptr,t.ptr)}add_bootstrap(t){p(t,hn),r.transactionwitnesssetbuilder_add_bootstrap(this.ptr,t.ptr)}add_native_script(t){p(t,Nt),r.transactionwitnesssetbuilder_add_native_script(this.ptr,t.ptr)}add_plutus_script(t){p(t,bt),r.transactionwitnesssetbuilder_add_plutus_script(this.ptr,t.ptr)}add_plutus_v2_script(t){p(t,bt),r.transactionwitnesssetbuilder_add_plutus_v2_script(this.ptr,t.ptr)}add_plutus_datum(t){p(t,st),r.transactionwitnesssetbuilder_add_plutus_datum(this.ptr,t.ptr)}add_redeemer(t){p(t,Tr),r.transactionwitnesssetbuilder_add_redeemer(this.ptr,t.ptr)}add_required_wits(t){p(t,Fs),r.transactionwitnesssetbuilder_add_required_wits(this.ptr,t.ptr)}static new(){const t=r.transactionwitnesssetbuilder_new();return Xa.__wrap(t)}add_existing(t){p(t,Be),r.transactionwitnesssetbuilder_add_existing(this.ptr,t.ptr)}build(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssetbuilder_build(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Be.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const G1=new FinalizationRegistry(n=>r.__wbg_transactionwitnesssets_free(n));class Ga{static __wrap(t){const e=Object.create(Ga.prototype);return e.ptr=t,G1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,G1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionwitnesssets_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssets_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionwitnesssets_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssets_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssets_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionwitnesssets_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return Ga.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionwitnesssets_get(this.ptr,t);return Be.__wrap(e)}add(t){p(t,Be),r.transactionwitnesssets_add(this.ptr,t.ptr)}}const Y1=new FinalizationRegistry(n=>r.__wbg_treasurywithdrawals_free(n));class Ya{static __wrap(t){const e=Object.create(Ya.prototype);return e.ptr=t,Y1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Y1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_treasurywithdrawals_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawals_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.treasurywithdrawals_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawals_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawals_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.treasurywithdrawals_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return Ya.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,et),p(e,O);const i=r.treasurywithdrawals_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:O.__wrap(i)}get(t){p(t,et);const e=r.treasurywithdrawals_get(this.ptr,t.ptr);return e===0?void 0:O.__wrap(e)}keys(){const t=r.treasurywithdrawals_keys(this.ptr);return ee.__wrap(t)}}const Z1=new FinalizationRegistry(n=>r.__wbg_treasurywithdrawalsaction_free(n));class Za{static __wrap(t){const e=Object.create(Za.prototype);return e.ptr=t,Z1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Z1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_treasurywithdrawalsaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawalsaction_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.treasurywithdrawalsaction_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawalsaction_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawalsaction_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.treasurywithdrawalsaction_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}withdrawals(){const t=r.treasurywithdrawalsaction_withdrawals(this.ptr);return Ya.__wrap(t)}static new(t){p(t,Ya);const e=r.treasurywithdrawalsaction_new(t.ptr);return Za.__wrap(e)}}const t0=new FinalizationRegistry(n=>r.__wbg_unitinterval_free(n));class ot{static __wrap(t){const e=Object.create(ot.prototype);return e.ptr=t,t0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unitinterval_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unitinterval_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.unitinterval_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ot.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.unitinterval_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unitinterval_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.unitinterval_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ot.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}numerator(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}denominator(){const t=r.exunits_steps(this.ptr);return O.__wrap(t)}static new(t,e){p(t,O),p(e,O);const i=r.exunits_new(t.ptr,e.ptr);return ot.__wrap(i)}static from_float(t){const e=r.unitinterval_from_float(t);return ot.__wrap(e)}}const e0=new FinalizationRegistry(n=>r.__wbg_unregcert_free(n));class Gi{static __wrap(t){const e=Object.create(Gi.prototype);return e.ptr=t,e0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,e0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unregcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unregcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.unregcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Gi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.unregcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Gi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,q),p(e,O);const i=r.regcert_new(t.ptr,e.ptr);return Gi.__wrap(i)}}const n0=new FinalizationRegistry(n=>r.__wbg_unregcommitteehotkeycert_free(n));class Yi{static __wrap(t){const e=Object.create(Yi.prototype);return e.ptr=t,n0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,n0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unregcommitteehotkeycert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unregcommitteehotkeycert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.unregcommitteehotkeycert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Yi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.unregcommitteehotkeycert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unregcommitteehotkeycert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.unregcommitteehotkeycert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Yi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}committee_cold_keyhash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return et.__wrap(t)}static new(t){p(t,et);const e=r.scriptpubkey_new(t.ptr);return Yi.__wrap(e)}}const r0=new FinalizationRegistry(n=>r.__wbg_unregdrepcert_free(n));class Zi{static __wrap(t){const e=Object.create(Zi.prototype);return e.ptr=t,r0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,r0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unregdrepcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unregdrepcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.unregdrepcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Zi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.unregdrepcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Zi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}voting_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,q),p(e,O);const i=r.regcert_new(t.ptr,e.ptr);return Zi.__wrap(i)}}const a0=new FinalizationRegistry(n=>r.__wbg_update_free(n));class ti{static __wrap(t){const e=Object.create(ti.prototype);return e.ptr=t,a0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,a0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_update_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.update_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.update_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ti.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.update_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.update_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.update_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ti.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}proposed_protocol_parameter_updates(){const t=r.update_proposed_protocol_parameter_updates(this.ptr);return Ba.__wrap(t)}epoch(){return r.update_epoch(this.ptr)>>>0}static new(t,e){p(t,Ba);const i=r.update_new(t.ptr,e);return ti.__wrap(i)}}const i0=new FinalizationRegistry(n=>r.__wbg_url_free(n));class or{static __wrap(t){const e=Object.create(or.prototype);return e.ptr=t,i0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,i0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_url_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.url_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.url_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return or.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.url_new(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return or.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}url(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const s0=new FinalizationRegistry(n=>r.__wbg_vrfcert_free(n));class _r{static __wrap(t){const e=Object.create(_r.prototype);return e.ptr=t,s0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,s0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vrfcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vrfcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.vrfcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return _r.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.vrfcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vrfcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.vrfcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return _r.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}output(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}proof(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_attributes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16),c=R(t,r.__wbindgen_malloc),d=h,f=R(e,r.__wbindgen_malloc),g=h;r.vrfcert_new(_,c,d,f,g);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return _r.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const o0=new FinalizationRegistry(n=>r.__wbg_vrfkeyhash_free(n));class jn{static __wrap(t){const e=Object.create(jn.prototype);return e.ptr=t,o0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,o0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vrfkeyhash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.vrfkeyhash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return T(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.vrfkeyhash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return T(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.vrfkeyhash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const _0=new FinalizationRegistry(n=>r.__wbg_vrfvkey_free(n));class Ds{static __wrap(t){const e=Object.create(Ds.prototype);return e.ptr=t,_0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vrfvkey_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vrfvkey_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.plutusscript_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ds.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(){const t=r.vrfvkey_hash(this.ptr);return jn.__wrap(t)}to_raw_key(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const c0=new FinalizationRegistry(n=>r.__wbg_value_free(n));class Rt{static __wrap(t){const e=Object.create(Rt.prototype);return e.ptr=t,c0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,c0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_value_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.value_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.value_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Rt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.value_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.value_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.value_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Rt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,O);const e=r.value_new(t.ptr);return Rt.__wrap(e)}static new_from_assets(t){p(t,be);const e=r.value_new_from_assets(t.ptr);return Rt.__wrap(e)}static zero(){const t=r.value_zero();return Rt.__wrap(t)}is_zero(){return r.value_is_zero(this.ptr)!==0}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}set_coin(t){p(t,O),r.value_set_coin(this.ptr,t.ptr)}multiasset(){const t=r.value_multiasset(this.ptr);return t===0?void 0:be.__wrap(t)}set_multiasset(t){p(t,be),r.value_set_multiasset(this.ptr,t.ptr)}checked_add(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,Rt),r.value_checked_add(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Rt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,Rt),r.value_checked_sub(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Rt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}clamped_sub(t){p(t,Rt);const e=r.value_clamped_sub(this.ptr,t.ptr);return Rt.__wrap(e)}compare(t){p(t,Rt);const e=r.value_compare(this.ptr,t.ptr);return e===16777215?void 0:e}}const l0=new FinalizationRegistry(n=>r.__wbg_vkey_free(n));class Oe{static __wrap(t){const e=Object.create(Oe.prototype);return e.ptr=t,l0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,l0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkey_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vkey_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.vkey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Oe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,kn);const e=r.vkey_new(t.ptr);return Oe.__wrap(e)}public_key(){const t=r.vkey_public_key(this.ptr);return kn.__wrap(t)}}const d0=new FinalizationRegistry(n=>r.__wbg_vkeys_free(n));class tc{static __wrap(t){const e=Object.create(tc.prototype);return e.ptr=t,d0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,d0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkeys_free(t)}static new(){const t=r.ed25519keyhashes_new();return tc.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.vkeys_get(this.ptr,t);return Oe.__wrap(e)}add(t){p(t,Oe),r.vkeys_add(this.ptr,t.ptr)}}const u0=new FinalizationRegistry(n=>r.__wbg_vkeywitness_free(n));class Ln{static __wrap(t){const e=Object.create(Ln.prototype);return e.ptr=t,u0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,u0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkeywitness_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vkeywitness_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.vkeywitness_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ln.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.vkeywitness_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vkeywitness_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.vkeywitness_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ln.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){p(t,Oe),p(e,Se);const i=r.vkeywitness_new(t.ptr,e.ptr);return Ln.__wrap(i)}vkey(){const t=r.vkey_new(this.ptr);return Oe.__wrap(t)}signature(){const t=r.vkeywitness_signature(this.ptr);return Se.__wrap(t)}}const p0=new FinalizationRegistry(n=>r.__wbg_vkeywitnesses_free(n));class As{static __wrap(t){const e=Object.create(As.prototype);return e.ptr=t,p0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,p0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkeywitnesses_free(t)}static new(){const t=r.ed25519keyhashes_new();return As.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.vkeywitnesses_get(this.ptr,t);return Ln.__wrap(e)}add(t){p(t,Ln),r.vkeywitnesses_add(this.ptr,t.ptr)}}const f0=new FinalizationRegistry(n=>r.__wbg_vote_free(n));class $r{static __wrap(t){const e=Object.create($r.prototype);return e.ptr=t,f0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,f0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vote_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vote_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.vote_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return $r.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.vote_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vote_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.vote_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return $r.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_no(){const t=r.language_new_plutus_v1();return $r.__wrap(t)}static new_yes(){const t=r.language_new_plutus_v2();return $r.__wrap(t)}static new_abstain(){const t=r.language_new_plutus_v3();return $r.__wrap(t)}kind(){return r.vote_kind(this.ptr)>>>0}}const w0=new FinalizationRegistry(n=>r.__wbg_votedelegcert_free(n));class ts{static __wrap(t){const e=Object.create(ts.prototype);return e.ptr=t,w0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,w0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_votedelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votedelegcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.votedelegcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ts.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.votedelegcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votedelegcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.votedelegcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ts.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return q.__wrap(t)}drep(){const t=r.votedelegcert_drep(this.ptr);return oe.__wrap(t)}static new(t,e){p(t,q),p(e,oe);const i=r.votedelegcert_new(t.ptr,e.ptr);return ts.__wrap(i)}}const h0=new FinalizationRegistry(n=>r.__wbg_voteregdelegcert_free(n));class es{static __wrap(t){const e=Object.create(es.prototype);return e.ptr=t,h0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,h0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_voteregdelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.voteregdelegcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.voteregdelegcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return es.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.voteregdelegcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.voteregdelegcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.voteregdelegcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return es.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}drep(){const t=r.voteregdelegcert_drep(this.ptr);return oe.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e,i){p(t,q),p(e,oe),p(i,O);const a=r.voteregdelegcert_new(t.ptr,e.ptr,i.ptr);return es.__wrap(a)}}const g0=new FinalizationRegistry(n=>r.__wbg_voter_free(n));class Sn{static __wrap(t){const e=Object.create(Sn.prototype);return e.ptr=t,g0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,g0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_voter_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.voter_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.voter_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Sn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.voter_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.voter_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.voter_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Sn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_committee_hot_keyhash(t){p(t,et);const e=r.drep_new_keyhash(t.ptr);return Sn.__wrap(e)}static new_committee_hot_scripthash(t){p(t,dt);const e=r.drep_new_scripthash(t.ptr);return Sn.__wrap(e)}static new_drep_keyhash(t){p(t,et);const e=r.voter_new_drep_keyhash(t.ptr);return Sn.__wrap(e)}static new_drep_scripthash(t){p(t,dt);const e=r.voter_new_drep_scripthash(t.ptr);return Sn.__wrap(e)}static new_staking_pool_keyhash(t){p(t,et);const e=r.voter_new_staking_pool_keyhash(t.ptr);return Sn.__wrap(e)}kind(){return r.voter_kind(this.ptr)>>>0}as_committee_hot_keyhash(){const t=r.voter_as_committee_hot_keyhash(this.ptr);return t===0?void 0:et.__wrap(t)}as_committee_hot_scripthash(){const t=r.voter_as_committee_hot_scripthash(this.ptr);return t===0?void 0:dt.__wrap(t)}as_drep_keyhash(){const t=r.voter_as_drep_keyhash(this.ptr);return t===0?void 0:et.__wrap(t)}as_drep_scripthash(){const t=r.voter_as_drep_scripthash(this.ptr);return t===0?void 0:dt.__wrap(t)}as_staking_pool_keyhash(){const t=r.voter_as_staking_pool_keyhash(this.ptr);return t===0?void 0:et.__wrap(t)}}const b0=new FinalizationRegistry(n=>r.__wbg_votingprocedure_free(n));class ei{static __wrap(t){const e=Object.create(ei.prototype);return e.ptr=t,b0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,b0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_votingprocedure_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedure_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.votingprocedure_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ei.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedure_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedure_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.votingprocedure_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ei.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}governance_action_id(){const t=r.transactionunspentoutput_input(this.ptr);return xa.__wrap(t)}voter(){const t=r.votingprocedure_voter(this.ptr);return Sn.__wrap(t)}vote(){return r.votingprocedure_vote(this.ptr)>>>0}anchor(){const t=r.votingprocedure_anchor(this.ptr);return Zn.__wrap(t)}static new(t,e,i,a){p(t,xa),p(e,Sn),p(i,$r),p(a,Zn);const s=r.votingprocedure_new(t.ptr,e.ptr,i.ptr,a.ptr);return ei.__wrap(s)}}const y0=new FinalizationRegistry(n=>r.__wbg_votingprocedures_free(n));class ns{static __wrap(t){const e=Object.create(ns.prototype);return e.ptr=t,y0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,y0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_votingprocedures_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedures_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.votingprocedures_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ns.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return ns.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.votingprocedures_get(this.ptr,t);return ei.__wrap(e)}add(t){p(t,ei),r.votingprocedures_add(this.ptr,t.ptr)}}const m0=new FinalizationRegistry(n=>r.__wbg_withdrawals_free(n));class Hr{static __wrap(t){const e=Object.create(Hr.prototype);return e.ptr=t,m0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,m0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_withdrawals_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.withdrawals_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.withdrawals_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Hr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.withdrawals_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return T(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.withdrawals_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.withdrawals_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Hr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return Hr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,It),p(e,O);const i=r.withdrawals_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:O.__wrap(i)}get(t){p(t,It);const e=r.withdrawals_get(this.ptr,t.ptr);return e===0?void 0:O.__wrap(e)}keys(){const t=r.withdrawals_keys(this.ptr);return Ki.__wrap(t)}}const Gl={__wbindgen_placeholder__:{__wbindgen_string_new:function(n,t){const e=T(n,t);return wt(e)},__wbindgen_object_drop_ref:function(n){l(n)},__wbindgen_json_parse:function(n,t){const e=JSON.parse(T(n,t));return wt(e)},__wbindgen_json_serialize:function(n,t){const e=it(t),i=JSON.stringify(e===void 0?null:e),a=N(i,r.__wbindgen_malloc,r.__wbindgen_realloc),s=h;o()[n/4+1]=s,o()[n/4+0]=a},__wbg_transaction_new:function(n){const t=xn.__wrap(n);return wt(t)},__wbg_fetch_16f5dddfc5a913a4:function(n,t){const e=it(n).fetch(it(t));return wt(e)},__wbindgen_string_get:function(n,t){const e=it(t),i=typeof e=="string"?e:void 0;var a=zt(i)?0:N(i,r.__wbindgen_malloc,r.__wbindgen_realloc),s=h;o()[n/4+1]=s,o()[n/4+0]=a},__wbindgen_object_clone_ref:function(n){const t=it(n);return wt(t)},__wbg_set_a5d34c36a1a4ebd1:function(){return fn(function(n,t,e,i,a){it(n).set(T(t,e),T(i,a))},arguments)},__wbg_headers_ab5251d2727ac41e:function(n){const t=it(n).headers;return wt(t)},__wbg_newwithstrandinit_c45f0dc6da26fd03:function(){return fn(function(n,t,e){const i=new Request(T(n,t),it(e));return wt(i)},arguments)},__wbg_instanceof_Response_fb3a4df648c1859b:function(n){let t;try{t=it(n)instanceof Response}catch{t=!1}return t},__wbg_json_b9414eb18cb751d0:function(){return fn(function(n){const t=it(n).json();return wt(t)},arguments)},__wbindgen_cb_drop:function(n){const t=l(n).original;return t.cnt--==1?(t.a=0,!0):!1},__wbg_randomFillSync_2f6909f8132a175d:function(){return fn(function(n,t,e){it(n).randomFillSync(E(t,e))},arguments)},__wbg_getRandomValues_11a236fbf9914290:function(){return fn(function(n,t){it(n).getRandomValues(it(t))},arguments)},__wbg_process_5615a087a47ba544:function(n){const t=it(n).process;return wt(t)},__wbindgen_is_object:function(n){const t=it(n);return typeof t=="object"&&t!==null},__wbg_versions_8404a8b21b9337ae:function(n){const t=it(n).versions;return wt(t)},__wbg_node_8b504e170b6380b9:function(n){const t=it(n).node;return wt(t)},__wbindgen_is_string:function(n){return typeof it(n)=="string"},__wbg_require_0430b68b38d1a77e:function(){return fn(function(n,t,e){const i=it(n).require(T(t,e));return wt(i)},arguments)},__wbg_crypto_ca5197b41df5e2bd:function(n){const t=it(n).crypto;return wt(t)},__wbg_msCrypto_1088c21440b2d7e4:function(n){const t=it(n).msCrypto;return wt(t)},__wbg_static_accessor_NODE_MODULE_06b864c18e8ae506:function(){const n=module;return wt(n)},__wbg_self_e7c1f827057f6584:function(){return fn(function(){const n=self.self;return wt(n)},arguments)},__wbg_window_a09ec664e14b1b81:function(){return fn(function(){const n=globalThis.window;return wt(n)},arguments)},__wbg_globalThis_87cbb8506fecf3a9:function(){return fn(function(){const n=globalThis.globalThis;return wt(n)},arguments)},__wbg_global_c85a9259e621f3db:function(){return fn(function(){const n=global.global;return wt(n)},arguments)},__wbindgen_is_undefined:function(n){return it(n)===void 0},__wbg_newnoargs_2b8b6bd7753c76ba:function(n,t){const e=new Function(T(n,t));return wt(e)},__wbg_call_95d1ea488d03e4e8:function(){return fn(function(n,t){const e=it(n).call(it(t));return wt(e)},arguments)},__wbg_new_f9876326328f45ed:function(){const n=new Object;return wt(n)},__wbg_call_9495de66fdbe016b:function(){return fn(function(n,t,e){const i=it(n).call(it(t),it(e));return wt(i)},arguments)},__wbg_set_6aa458a4ebdb65cb:function(){return fn(function(n,t,e){return Reflect.set(it(n),it(t),it(e))},arguments)},__wbg_buffer_cf65c07de34b9a08:function(n){const t=it(n).buffer;return wt(t)},__wbg_new_9d3a9ce4282a18a8:function(n,t){try{var e={a:n,b:t},i=(s,_)=>{const c=e.a;e.a=0;try{return Tj(c,e.b,s,_)}finally{e.a=c}};const a=new Promise(i);return wt(a)}finally{e.a=e.b=0}},__wbg_resolve_fd40f858d9db1a04:function(n){const t=Promise.resolve(it(n));return wt(t)},__wbg_then_ec5db6d509eb475f:function(n,t){const e=it(n).then(it(t));return wt(e)},__wbg_then_f753623316e2873a:function(n,t,e){const i=it(n).then(it(t),it(e));return wt(i)},__wbg_new_537b7341ce90bb31:function(n){const t=new Uint8Array(it(n));return wt(t)},__wbg_set_17499e8aa4003ebd:function(n,t,e){it(n).set(it(t),e>>>0)},__wbg_length_27a2afe8ab42b09f:function(n){return it(n).length},__wbg_newwithlength_b56c882b57805732:function(n){const t=new Uint8Array(n>>>0);return wt(t)},__wbg_subarray_7526649b91a252a6:function(n,t,e){const i=it(n).subarray(t>>>0,e>>>0);return wt(i)},__wbg_new_d87f272aec784ec0:function(n,t){const e=new Function(T(n,t));return wt(e)},__wbg_call_eae29933372a39be:function(n,t){const e=it(n).call(it(t));return wt(e)},__wbindgen_jsval_eq:function(n,t){return it(n)===it(t)},__wbg_self_e0b3266d2d9eba1a:function(n){const t=it(n).self;return wt(t)},__wbg_crypto_e95a6e54c5c2e37f:function(n){const t=it(n).crypto;return wt(t)},__wbg_getRandomValues_dc67302a7bd1aec5:function(n){const t=it(n).getRandomValues;return wt(t)},__wbg_require_0993fe224bf8e202:function(n,t){const e=require(T(n,t));return wt(e)},__wbg_randomFillSync_dd2297de5917c74e:function(n,t,e){it(n).randomFillSync(E(t,e))},__wbg_getRandomValues_02639197c8166a96:function(n,t,e){it(n).getRandomValues(E(t,e))},__wbindgen_debug_string:function(n,t){const e=Kp(it(t)),i=N(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=h;o()[n/4+1]=a,o()[n/4+0]=i},__wbindgen_throw:function(n,t){throw new Error(T(n,t))},__wbindgen_memory:function(){const n=r.memory;return wt(n)},__wbindgen_closure_wrapper7018:function(n,t,e){const i=Nj(n,t,216,Rj);return wt(i)}}};async function Zj(n){return(await v0(n)).exports}let ec,Yl;function v0(n){return ec!=null?Promise.resolve(ec):(Yl==null&&(Yl=(async()=>{try{const t=(await nS(n??{})).instance;return r=t.exports,X_=new Int32Array(r.memory.buffer),Q_=new Uint8Array(r.memory.buffer),ec={instance:t,exports:tS()},ec}finally{Yl=null}})()),Yl)}function tS(){return{encrypt_with_password:$b,decrypt_with_password:Hb,min_fee:Wb,encode_arbitrary_bytes_as_metadatum:Vb,decode_arbitrary_bytes_from_metadatum:Kb,encode_json_str_to_metadatum:qb,decode_metadatum_to_json_str:Qb,encode_json_str_to_plutus_datum:Jb,decode_plutus_datum_to_json_str:Xb,make_daedalus_bootstrap_witness:Yb,make_icarus_bootstrap_witness:Zb,make_vkey_witness:Io,hash_auxiliary_data:ty,hash_transaction:fa,hash_plutus_data:To,hash_blake2b256:qp,hash_blake2b224:ey,hash_script_data:ny,get_implicit_input:ry,get_deposit:ay,min_ada_required:iy,encode_json_str_to_native_script:Qp,apply_params_to_plutus_script:Jp,Address:jt,Anchor:Zn,AssetName:ie,AssetNames:wa,Assets:tr,AuxiliaryData:Fe,AuxiliaryDataHash:mr,AuxiliaryDataSet:Os,BaseAddress:er,BigInt:G_,BigNum:O,Bip32PrivateKey:Fn,Bip32PublicKey:ha,Block:Ns,BlockHash:nr,Blockfrost:Rs,BootstrapWitness:hn,BootstrapWitnesses:Ps,ByronAddress:ze,Certificate:Ht,Certificates:vr,ConstrPlutusData:ga,CostModel:gn,Costmdls:rr,DNSRecordAorAAAA:ba,DNSRecordSRV:ya,Data:zn,DataHash:se,Datum:Gt,Drep:oe,DrepVotingThresholds:ma,Ed25519KeyHash:et,Ed25519KeyHashes:ee,Ed25519Signature:Se,EnterpriseAddress:Mn,ExUnitPrices:Dn,ExUnits:Je,GeneralTransactionMetadata:kr,GenesisDelegateHash:va,GenesisHash:bn,GenesisHashes:Ai,GenesisKeyDelegation:ka,GovernanceAction:Me,GovernanceActionId:xa,HardForkInitiationAction:ja,Header:Sa,HeaderBody:Ca,Int:_e,Ipv4:xr,Ipv6:jr,KESSignature:Is,KESVKey:Ea,Language:Xe,Languages:Fo,LegacyDaedalusPrivateKey:zo,LinearFee:Bi,MIRToStakeCredentials:Oa,MetadataList:Na,MetadataMap:Ui,Mint:ar,MintAssets:An,MoveInstantaneousReward:Sr,MoveInstantaneousRewardsCert:Ra,MultiAsset:be,MultiHostName:Cr,NativeScript:Nt,NativeScripts:Ce,NetworkId:yn,NetworkInfo:Er,NewCommittee:Pa,NewConstitution:Ia,Nonce:Ta,OperationalCert:Fa,ParameterChangeAction:za,PlutusData:st,PlutusList:ce,PlutusMap:Ma,PlutusScript:bt,PlutusScripts:le,PlutusWitness:mn,Pointer:Ts,PointerAddress:Li,PoolMetadata:Or,PoolMetadataHash:Nr,PoolParams:Rr,PoolRegistration:Pr,PoolRetirement:Ir,PoolVotingThresholds:Da,PrivateKey:Kt,ProposalProcedure:Aa,ProposalProcedures:$i,ProposedProtocolParameterUpdates:Ba,ProtocolParamUpdate:Bn,ProtocolVersion:vn,PublicKey:kn,PublicKeys:Y_,Redeemer:Tr,RedeemerTag:Ge,RedeemerWitnessKey:Mo,Redeemers:Fr,RegCert:Hi,RegCommitteeHotKeyCert:Wi,RegDrepCert:Vi,Relay:Ye,Relays:zr,RequiredWitnessSet:Fs,RewardAddress:It,RewardAddresses:Ki,Script:De,ScriptAll:Ua,ScriptAny:La,ScriptDataHash:ir,ScriptHash:dt,ScriptHashes:$a,ScriptNOfK:Ha,ScriptPubkey:Wa,ScriptRef:Un,ScriptWitness:Ee,SingleHostAddr:Mr,SingleHostName:Dr,StakeCredential:q,StakeCredentials:qi,StakeDelegation:Ar,StakeDeregistration:Br,StakeRegDelegCert:Qi,StakeRegistration:Ur,StakeVoteDelegCert:Ji,StakeVoteRegDelegCert:Xi,Strings:Z_,TimelockExpiry:Va,TimelockStart:Ka,Transaction:xn,TransactionBodies:qa,TransactionBody:Ze,TransactionBuilder:Do,TransactionBuilderConfig:Ao,TransactionBuilderConfigBuilder:ne,TransactionHash:ye,TransactionIndexes:Qa,TransactionInput:tn,TransactionInputs:en,TransactionMetadatum:xt,TransactionMetadatumLabels:zs,TransactionOutput:Yt,TransactionOutputAmountBuilder:Ja,TransactionOutputBuilder:Ms,TransactionOutputs:Lr,TransactionUnspentOutput:Ae,TransactionUnspentOutputs:sr,TransactionWitnessSet:Be,TransactionWitnessSetBuilder:Xa,TransactionWitnessSets:Ga,TreasuryWithdrawals:Ya,TreasuryWithdrawalsAction:Za,UnitInterval:ot,UnregCert:Gi,UnregCommitteeHotKeyCert:Yi,UnregDrepCert:Zi,Update:ti,Url:or,VRFCert:_r,VRFKeyHash:jn,VRFVKey:Ds,Value:Rt,Vkey:Oe,Vkeys:tc,Vkeywitness:Ln,Vkeywitnesses:As,Vote:$r,VoteDelegCert:ts,VoteRegDelegCert:es,Voter:Sn,VotingProcedure:ei,VotingProcedures:ns,Withdrawals:Hr}}function eS(){return ec!=null}async function nS(n){var a,s,_;const t=import.meta.url.includes("_frsh")?n.url:new URL("/aiken-ide/assets/cardano_multiplatform_lib_bg-1FNGSMI0.wasm",import.meta.url),e=n.decompress,i=t.protocol==="file:";if(((s=(a=globalThis.process)==null?void 0:a.versions)==null?void 0:s.node)!=null&&i){const c=fs.readFileSync(t);return WebAssembly.instantiate(e?e(c):c,Gl)}switch(t.protocol){case"":case"chrome-extension:":case"file:":case"https:":case"http:":{if(i){if(typeof Deno!="object")throw new Error("file urls are not supported in this environment");"permissions"in Deno&&await Deno.permissions.request({name:"read",path:t})}else typeof Deno=="object"&&"permissions"in Deno&&await Deno.permissions.request({name:"net",host:t.host});const c=await fetch(t);if(e){const d=new Uint8Array(await c.arrayBuffer());return WebAssembly.instantiate(e(d),Gl)}return i||(_=c.headers.get("content-type"))!=null&&_.toLowerCase().startsWith("application/wasm")?WebAssembly.instantiateStreaming(c,Gl):WebAssembly.instantiate(await c.arrayBuffer(),Gl)}default:throw new Error(`Unsupported protocol: ${t.protocol}`)}}const rS=Object.freeze(Object.defineProperty({__proto__:null,Address:jt,Anchor:Zn,AssetName:ie,AssetNames:wa,Assets:tr,AuxiliaryData:Fe,AuxiliaryDataHash:mr,AuxiliaryDataSet:Os,BaseAddress:er,BigInt:G_,BigNum:O,Bip32PrivateKey:Fn,Bip32PublicKey:ha,Block:Ns,BlockHash:nr,Blockfrost:Rs,BootstrapWitness:hn,BootstrapWitnesses:Ps,ByronAddress:ze,Certificate:Ht,CertificateKind:qj,Certificates:vr,ConstrPlutusData:ga,CostModel:gn,Costmdls:rr,DNSRecordAorAAAA:ba,DNSRecordSRV:ya,Data:zn,DataHash:se,Datum:Gt,DatumKind:Vj,Drep:oe,DrepKind:Aj,DrepVotingThresholds:ma,Ed25519KeyHash:et,Ed25519KeyHashes:ee,Ed25519Signature:Se,EnterpriseAddress:Mn,ExUnitPrices:Dn,ExUnits:Je,GeneralTransactionMetadata:kr,GenesisDelegateHash:va,GenesisHash:bn,GenesisHashes:Ai,GenesisKeyDelegation:ka,GovernanceAction:Me,GovernanceActionId:xa,GovernanceActionKind:zj,HardForkInitiationAction:ja,Header:Sa,HeaderBody:Ca,Int:_e,Ipv4:xr,Ipv6:jr,KESSignature:Is,KESVKey:Ea,Language:Xe,LanguageKind:Uj,Languages:Fo,LegacyDaedalusPrivateKey:zo,LinearFee:Bi,MIRKind:Jj,MIRPot:Qj,MIRToStakeCredentials:Oa,MetadataJsonSchema:sy,MetadataList:Na,MetadataMap:Ui,Mint:ar,MintAssets:An,MoveInstantaneousReward:Sr,MoveInstantaneousRewardsCert:Ra,MultiAsset:be,MultiHostName:Cr,NativeScript:Nt,NativeScriptKind:Gj,NativeScripts:Ce,NetworkId:yn,NetworkIdKind:Yj,NetworkInfo:Er,NewCommittee:Pa,NewConstitution:Ia,Nonce:Ta,OperationalCert:Fa,ParameterChangeAction:za,PlutusData:st,PlutusDataKind:Lj,PlutusDatumSchema:Hj,PlutusList:ce,PlutusMap:Ma,PlutusScript:bt,PlutusScripts:le,PlutusWitness:mn,Pointer:Ts,PointerAddress:Li,PoolMetadata:Or,PoolMetadataHash:Nr,PoolParams:Rr,PoolRegistration:Pr,PoolRetirement:Ir,PoolVotingThresholds:Da,PrivateKey:Kt,ProposalProcedure:Aa,ProposalProcedures:$i,ProposedProtocolParameterUpdates:Ba,ProtocolParamUpdate:Bn,ProtocolVersion:vn,PublicKey:kn,PublicKeys:Y_,Redeemer:Tr,RedeemerTag:Ge,RedeemerTagKind:$j,RedeemerWitnessKey:Mo,Redeemers:Fr,RegCert:Hi,RegCommitteeHotKeyCert:Wi,RegDrepCert:Vi,Relay:Ye,RelayKind:Xj,Relays:zr,RequiredWitnessSet:Fs,RewardAddress:It,RewardAddresses:Ki,Script:De,ScriptAll:Ua,ScriptAny:La,ScriptDataHash:ir,ScriptHash:dt,ScriptHashNamespace:wn,ScriptHashes:$a,ScriptKind:Wj,ScriptNOfK:Ha,ScriptPubkey:Wa,ScriptRef:Un,ScriptSchema:oy,ScriptWitness:Ee,ScriptWitnessKind:Kj,SingleHostAddr:Mr,SingleHostName:Dr,StakeCredKind:Fj,StakeCredential:q,StakeCredentials:qi,StakeDelegation:Ar,StakeDeregistration:Br,StakeRegDelegCert:Qi,StakeRegistration:Ur,StakeVoteDelegCert:Ji,StakeVoteRegDelegCert:Xi,Strings:Z_,TimelockExpiry:Va,TimelockStart:Ka,Transaction:xn,TransactionBodies:qa,TransactionBody:Ze,TransactionBuilder:Do,TransactionBuilderConfig:Ao,TransactionBuilderConfigBuilder:ne,TransactionHash:ye,TransactionIndexes:Qa,TransactionInput:tn,TransactionInputs:en,TransactionMetadatum:xt,TransactionMetadatumKind:Bj,TransactionMetadatumLabels:zs,TransactionOutput:Yt,TransactionOutputAmountBuilder:Ja,TransactionOutputBuilder:Ms,TransactionOutputs:Lr,TransactionUnspentOutput:Ae,TransactionUnspentOutputs:sr,TransactionWitnessSet:Be,TransactionWitnessSetBuilder:Xa,TransactionWitnessSets:Ga,TreasuryWithdrawals:Ya,TreasuryWithdrawalsAction:Za,UnitInterval:ot,UnregCert:Gi,UnregCommitteeHotKeyCert:Yi,UnregDrepCert:Zi,Update:ti,Url:or,VRFCert:_r,VRFKeyHash:jn,VRFVKey:Ds,Value:Rt,Vkey:Oe,Vkeys:tc,Vkeywitness:Ln,Vkeywitnesses:As,Vote:$r,VoteDelegCert:ts,VoteKind:Dj,VoteRegDelegCert:es,Voter:Sn,VoterKind:Mj,VotingProcedure:ei,VotingProcedures:ns,Withdrawals:Hr,apply_params_to_plutus_script:Jp,decode_arbitrary_bytes_from_metadatum:Kb,decode_metadatum_to_json_str:Qb,decode_plutus_datum_to_json_str:Xb,decrypt_with_password:Hb,encode_arbitrary_bytes_as_metadatum:Vb,encode_json_str_to_metadatum:qb,encode_json_str_to_native_script:Qp,encode_json_str_to_plutus_datum:Jb,encrypt_with_password:$b,get_deposit:ay,get_implicit_input:ry,hash_auxiliary_data:ty,hash_blake2b224:ey,hash_blake2b256:qp,hash_plutus_data:To,hash_script_data:ny,hash_transaction:fa,instantiate:Zj,instantiateWithInstance:v0,isInstantiated:eS,make_daedalus_bootstrap_witness:Yb,make_icarus_bootstrap_witness:Zb,make_vkey_witness:Io,min_ada_required:iy,min_fee:Wb},Symbol.toStringTag,{value:"Module"}));let u;const ni=new Array(128).fill(void 0);ni.push(void 0,null,!0,!1);function k0(n){return ni[n]}let nc=ni.length;function aS(n){n<132||(ni[n]=nc,nc=n)}function vt(n){const t=k0(n);return aS(n),t}const x0=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});x0.decode();let rc=null;function Bo(){return(rc===null||rc.byteLength===0)&&(rc=new Uint8Array(u.memory.buffer)),rc}function Uo(n,t){return x0.decode(Bo().subarray(n,n+t))}function iS(n){nc===ni.length&&ni.push(ni.length+1);const t=nc;return nc=ni[t],ni[t]=n,t}function Xp(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const a=n.description;return a==null?"Symbol":`Symbol(${a})`}if(t=="function"){const a=n.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(n)){const a=n.length;let s="[";a>0&&(s+=Xp(n[0]));for(let _=1;_1)i=e[1];else return toString.call(n);if(i=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message} -${n.stack}`:i}let nt=0;const j0=new TextEncoder("utf-8"),sS=function(n,t){return j0.encodeInto(n,t)};function ac(n,t,e){if(e===void 0){const c=j0.encode(n),d=t(c.length);return Bo().subarray(d,d+c.length).set(c),nt=c.length,d}let i=n.length,a=t(i);const s=Bo();let _=0;for(;_127)break;s[a+_]=c}if(_!==i){_!==0&&(n=n.slice(_)),a=e(a,i,i=_+n.length*3);const c=Bo().subarray(a+_,a+i),d=sS(n,c);_+=d.written}return nt=_,a}let ic=null;function C(){return(ic===null||ic.byteLength===0)&&(ic=new Int32Array(u.memory.buffer)),ic}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`);return n.ptr}function lt(n,t){const e=t(n.length*1);return Bo().set(n,e/1),nt=n.length,e}function gt(n,t){return Bo().subarray(n/1,n/1+t)}let Zl=null;function oS(){return(Zl===null||Zl.byteLength===0)&&(Zl=new Float64Array(u.memory.buffer)),Zl}function Bs(n){return n==null}const td=Object.freeze({EdDSA:0,0:"EdDSA",ChaCha20Poly1305:1,1:"ChaCha20Poly1305"}),S0=Object.freeze({OKP:0,0:"OKP",EC2:1,1:"EC2",Symmetric:2,2:"Symmetric"}),_S=Object.freeze({CRV:0,0:"CRV",X:1,1:"X",Y:2,2:"Y",D:3,3:"D"}),cS=Object.freeze({P256:0,0:"P256",P384:1,1:"P384",P521:2,2:"P521",X25519:3,3:"X25519",X448:4,4:"X448",Ed25519:5,5:"Ed25519",Ed448:6,6:"Ed448"}),lS=Object.freeze({Sign:0,0:"Sign",Verify:1,1:"Verify",Encrypt:2,2:"Encrypt",Decrypt:3,3:"Decrypt",WrapKey:4,4:"WrapKey",UnwrapKey:5,5:"UnwrapKey",DeriveKey:6,6:"DeriveKey",DeriveBits:7,7:"DeriveBits"}),dS=Object.freeze({Bool:0,0:"Bool",Float:1,1:"Float",Unassigned:2,2:"Unassigned",Break:3,3:"Break",Undefined:4,4:"Undefined",Null:5,5:"Null"}),uS=Object.freeze({Int:0,0:"Int",Bytes:1,1:"Bytes",Text:2,2:"Text",Array:3,3:"Array",Object:4,4:"Object",TaggedCBOR:5,5:"TaggedCBOR",Special:6,6:"Special"}),pS=Object.freeze({Int:0,0:"Int",Text:1,1:"Text"}),fS=Object.freeze({COSESIGN:0,0:"COSESIGN",COSESIGN1:1,1:"COSESIGN1"}),wS=Object.freeze({Signature:0,0:"Signature",Signature1:1,1:"Signature1",CounterSignature:2,2:"CounterSignature"}),C0=new FinalizationRegistry(n=>u.__wbg_bignum_free(n));class Wt{static __wrap(t){const e=Object.create(Wt.prototype);return e.ptr=t,C0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,C0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_bignum_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.bignum_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.bignum_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Wt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_str(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=ac(t,u.__wbindgen_malloc,u.__wbindgen_realloc),c=nt;u.bignum_from_str(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Wt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.bignum_to_str(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];return Uo(t,e)}finally{u.__wbindgen_add_to_stack_pointer(16),u.__wbindgen_free(t,e)}}checked_mul(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16);rt(t,Wt),u.bignum_checked_mul(s,this.ptr,t.ptr);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Wt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}checked_add(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16);rt(t,Wt),u.bignum_checked_add(s,this.ptr,t.ptr);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Wt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16);rt(t,Wt),u.bignum_checked_sub(s,this.ptr,t.ptr);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Wt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}}const E0=new FinalizationRegistry(n=>u.__wbg_cborarray_free(n));class ri{static __wrap(t){const e=Object.create(ri.prototype);return e.ptr=t,E0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,E0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborarray_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborarray_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cborarray_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return ri.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.cborarray_new();return ri.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.cborarray_get(this.ptr,t);return Ot.__wrap(e)}add(t){rt(t,Ot),u.cborarray_add(this.ptr,t.ptr)}set_definite_encoding(t){u.cborarray_set_definite_encoding(this.ptr,t)}is_definite(){return u.cborarray_is_definite(this.ptr)!==0}}const O0=new FinalizationRegistry(n=>u.__wbg_cborobject_free(n));class rs{static __wrap(t){const e=Object.create(rs.prototype);return e.ptr=t,O0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,O0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborobject_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborobject_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cborobject_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return rs.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.cborobject_new();return rs.__wrap(t)}len(){return u.cborobject_len(this.ptr)>>>0}insert(t,e){rt(t,Ot),rt(e,Ot);const i=u.cborobject_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:Ot.__wrap(i)}get(t){rt(t,Ot);const e=u.cborobject_get(this.ptr,t.ptr);return e===0?void 0:Ot.__wrap(e)}keys(){const t=u.cborobject_keys(this.ptr);return ri.__wrap(t)}set_definite_encoding(t){u.cborobject_set_definite_encoding(this.ptr,t)}is_definite(){return u.cborobject_is_definite(this.ptr)!==0}}const N0=new FinalizationRegistry(n=>u.__wbg_cborspecial_free(n));class $n{static __wrap(t){const e=Object.create($n.prototype);return e.ptr=t,N0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,N0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborspecial_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborspecial_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cborspecial_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return $n.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_bool(t){const e=u.cborspecial_new_bool(t);return $n.__wrap(e)}static new_unassigned(t){const e=u.cborspecial_new_unassigned(t);return $n.__wrap(e)}static new_break(){const t=u.cborspecial_new_break();return $n.__wrap(t)}static new_null(){const t=u.cborspecial_new_null();return $n.__wrap(t)}static new_undefined(){const t=u.cborspecial_new_undefined();return $n.__wrap(t)}kind(){return u.cborspecial_kind(this.ptr)>>>0}as_bool(){const t=u.cborspecial_as_bool(this.ptr);return t===16777215?void 0:t!==0}as_float(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.cborspecial_as_float(i,this.ptr);var t=C()[i/4+0],e=oS()[i/8+1];return t===0?void 0:e}finally{u.__wbindgen_add_to_stack_pointer(16)}}as_unassigned(){const t=u.cborspecial_as_unassigned(this.ptr);return t===16777215?void 0:t}}const R0=new FinalizationRegistry(n=>u.__wbg_cborvalue_free(n));class Ot{static __wrap(t){const e=Object.create(Ot.prototype);return e.ptr=t,R0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,R0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborvalue_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborvalue_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cborvalue_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Ot.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_int(t){rt(t,Ne);const e=u.cborvalue_new_int(t.ptr);return Ot.__wrap(e)}static new_bytes(t){const e=lt(t,u.__wbindgen_malloc),i=nt,a=u.cborvalue_new_bytes(e,i);return Ot.__wrap(a)}static new_text(t){const e=ac(t,u.__wbindgen_malloc,u.__wbindgen_realloc),i=nt,a=u.cborvalue_new_text(e,i);return Ot.__wrap(a)}static new_array(t){rt(t,ri);const e=u.cborvalue_new_array(t.ptr);return Ot.__wrap(e)}static new_object(t){rt(t,rs);const e=u.cborvalue_new_object(t.ptr);return Ot.__wrap(e)}static new_tagged(t){rt(t,os);const e=u.cborvalue_new_tagged(t.ptr);return Ot.__wrap(e)}static new_special(t){rt(t,$n);const e=u.cborvalue_new_special(t.ptr);return Ot.__wrap(e)}static from_label(t){rt(t,yt);const e=u.cborvalue_from_label(t.ptr);return Ot.__wrap(e)}kind(){return u.cborvalue_kind(this.ptr)>>>0}as_int(){const t=u.cborvalue_as_int(this.ptr);return t===0?void 0:Ne.__wrap(t)}as_bytes(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.cborvalue_as_bytes(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}as_text(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.cborvalue_as_text(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=Uo(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}as_array(){const t=u.cborvalue_as_array(this.ptr);return t===0?void 0:ri.__wrap(t)}as_object(){const t=u.cborvalue_as_object(this.ptr);return t===0?void 0:rs.__wrap(t)}as_tagged(){const t=u.cborvalue_as_tagged(this.ptr);return t===0?void 0:os.__wrap(t)}as_special(){const t=u.cborvalue_as_special(this.ptr);return t===0?void 0:$n.__wrap(t)}}const P0=new FinalizationRegistry(n=>u.__wbg_coseencrypt_free(n));class Us{static __wrap(t){const e=Object.create(Us.prototype);return e.ptr=t,P0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,P0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coseencrypt_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.coseencrypt_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Us.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return qt.__wrap(t)}ciphertext(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}recipients(){const t=u.coseencrypt_recipients(this.ptr);return is.__wrap(t)}static new(t,e,i){rt(t,qt);var a=Bs(e)?0:lt(e,u.__wbindgen_malloc),s=nt;rt(i,is);const _=u.coseencrypt_new(t.ptr,a,s,i.ptr);return Us.__wrap(_)}}const I0=new FinalizationRegistry(n=>u.__wbg_coseencrypt0_free(n));class Ls{static __wrap(t){const e=Object.create(Ls.prototype);return e.ptr=t,I0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,I0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coseencrypt0_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.coseencrypt0_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Ls.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return qt.__wrap(t)}ciphertext(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){rt(t,qt);var i=Bs(e)?0:lt(e,u.__wbindgen_malloc),a=nt;const s=u.coseencrypt0_new(t.ptr,i,a);return Ls.__wrap(s)}}const T0=new FinalizationRegistry(n=>u.__wbg_cosekey_free(n));class ai{static __wrap(t){const e=Object.create(ai.prototype);return e.ptr=t,T0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,T0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosekey_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cosekey_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return ai.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_key_type(t){rt(t,yt),u.cosekey_set_key_type(this.ptr,t.ptr)}key_type(){const t=u.cosekey_key_type(this.ptr);return yt.__wrap(t)}set_key_id(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.cosekey_set_key_id(this.ptr,e,i)}key_id(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_key_id(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_algorithm_id(t){rt(t,yt),u.cosekey_set_algorithm_id(this.ptr,t.ptr)}algorithm_id(){const t=u.cosekey_algorithm_id(this.ptr);return t===0?void 0:yt.__wrap(t)}set_key_ops(t){rt(t,lr),u.cosekey_set_key_ops(this.ptr,t.ptr)}key_ops(){const t=u.cosekey_key_ops(this.ptr);return t===0?void 0:lr.__wrap(t)}set_base_init_vector(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.cosekey_set_base_init_vector(this.ptr,e,i)}base_init_vector(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_base_init_vector(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}header(t){rt(t,yt);const e=u.cosekey_header(this.ptr,t.ptr);return e===0?void 0:Ot.__wrap(e)}set_header(t,e){try{const s=u.__wbindgen_add_to_stack_pointer(-16);rt(t,yt),rt(e,Ot),u.cosekey_set_header(s,this.ptr,t.ptr,e.ptr);var i=C()[s/4+0],a=C()[s/4+1];if(a)throw vt(i)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t){rt(t,yt);const e=u.cosekey_new(t.ptr);return ai.__wrap(e)}}const F0=new FinalizationRegistry(n=>u.__wbg_coserecipient_free(n));class as{static __wrap(t){const e=Object.create(as.prototype);return e.ptr=t,F0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,F0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coserecipient_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coserecipient_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.coserecipient_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return as.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return qt.__wrap(t)}ciphertext(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){rt(t,qt);var i=Bs(e)?0:lt(e,u.__wbindgen_malloc),a=nt;const s=u.coseencrypt0_new(t.ptr,i,a);return as.__wrap(s)}}const z0=new FinalizationRegistry(n=>u.__wbg_coserecipients_free(n));class is{static __wrap(t){const e=Object.create(is.prototype);return e.ptr=t,z0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,z0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coserecipients_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coserecipients_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.coserecipients_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return is.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.coserecipients_new();return is.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.coserecipients_get(this.ptr,t);return as.__wrap(e)}add(t){rt(t,as),u.coserecipients_add(this.ptr,t.ptr)}}const M0=new FinalizationRegistry(n=>u.__wbg_cosesign_free(n));class ii{static __wrap(t){const e=Object.create(ii.prototype);return e.ptr=t,M0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,M0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesign_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesign_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cosesign_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return ii.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return qt.__wrap(t)}payload(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}signatures(){const t=u.cosesign_signatures(this.ptr);return cr.__wrap(t)}static new(t,e,i){rt(t,qt);var a=Bs(e)?0:lt(e,u.__wbindgen_malloc),s=nt;rt(i,cr);const _=u.cosesign_new(t.ptr,a,s,i.ptr);return ii.__wrap(_)}}const D0=new FinalizationRegistry(n=>u.__wbg_cosesign1_free(n));class Wr{static __wrap(t){const e=Object.create(Wr.prototype);return e.ptr=t,D0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,D0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesign1_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesign1_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cosesign1_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Wr.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return qt.__wrap(t)}payload(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}signature(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesign1_signature(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}signed_data(t,e){try{const g=u.__wbindgen_add_to_stack_pointer(-16);var i=Bs(t)?0:lt(t,u.__wbindgen_malloc),a=nt,s=Bs(e)?0:lt(e,u.__wbindgen_malloc),_=nt;u.cosesign1_signed_data(g,this.ptr,i,a,s,_);var c=C()[g/4+0],d=C()[g/4+1],f=C()[g/4+2];if(f)throw vt(d);return _i.__wrap(c)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e,i){rt(t,qt);var a=Bs(e)?0:lt(e,u.__wbindgen_malloc),s=nt;const _=lt(i,u.__wbindgen_malloc),c=nt,d=u.cosesign1_new(t.ptr,a,s,_,c);return Wr.__wrap(d)}}const A0=new FinalizationRegistry(n=>u.__wbg_cosesign1builder_free(n));class Lo{static __wrap(t){const e=Object.create(Lo.prototype);return e.ptr=t,A0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,A0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesign1builder_free(t)}static new(t,e,i){rt(t,qt);const a=lt(e,u.__wbindgen_malloc),s=nt,_=u.cosesign1builder_new(t.ptr,a,s,i);return Lo.__wrap(_)}hash_payload(){u.cosesign1builder_hash_payload(this.ptr)}set_external_aad(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.cosesign1builder_set_external_aad(this.ptr,e,i)}make_data_to_sign(){const t=u.cosesign1builder_make_data_to_sign(this.ptr);return _i.__wrap(t)}build(t){const e=lt(t,u.__wbindgen_malloc),i=nt,a=u.cosesign1builder_build(this.ptr,e,i);return Wr.__wrap(a)}}const B0=new FinalizationRegistry(n=>u.__wbg_cosesignbuilder_free(n));class sc{static __wrap(t){const e=Object.create(sc.prototype);return e.ptr=t,B0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,B0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesignbuilder_free(t)}static new(t,e,i){rt(t,qt);const a=lt(e,u.__wbindgen_malloc),s=nt,_=u.cosesignbuilder_new(t.ptr,a,s,i);return sc.__wrap(_)}hash_payload(){u.cosesign1builder_hash_payload(this.ptr)}set_external_aad(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.cosesign1builder_set_external_aad(this.ptr,e,i)}make_data_to_sign(){const t=u.cosesignbuilder_make_data_to_sign(this.ptr);return _i.__wrap(t)}build(t){rt(t,cr);const e=u.cosesignbuilder_build(this.ptr,t.ptr);return ii.__wrap(e)}}const U0=new FinalizationRegistry(n=>u.__wbg_cosesignature_free(n));class si{static __wrap(t){const e=Object.create(si.prototype);return e.ptr=t,U0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,U0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesignature_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesignature_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cosesignature_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return si.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return qt.__wrap(t)}signature(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesignature_signature(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){rt(t,qt);const i=lt(e,u.__wbindgen_malloc),a=nt,s=u.cosesignature_new(t.ptr,i,a);return si.__wrap(s)}}const L0=new FinalizationRegistry(n=>u.__wbg_cosesignatures_free(n));class cr{static __wrap(t){const e=Object.create(cr.prototype);return e.ptr=t,L0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,L0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesignatures_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesignatures_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cosesignatures_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return cr.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.coserecipients_new();return cr.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.cosesignatures_get(this.ptr,t);return si.__wrap(e)}add(t){rt(t,si),u.cosesignatures_add(this.ptr,t.ptr)}}const $0=new FinalizationRegistry(n=>u.__wbg_countersignature_free(n));class oi{static __wrap(t){const e=Object.create(oi.prototype);return e.ptr=t,$0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_countersignature_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.countersignature_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.countersignature_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return oi.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_single(t){rt(t,si);const e=u.countersignature_new_single(t.ptr);return oi.__wrap(e)}static new_multi(t){rt(t,cr);const e=u.countersignature_new_multi(t.ptr);return oi.__wrap(e)}signatures(){const t=u.countersignature_signatures(this.ptr);return cr.__wrap(t)}}const H0=new FinalizationRegistry(n=>u.__wbg_eddsa25519key_free(n));class oc{static __wrap(t){const e=Object.create(oc.prototype);return e.ptr=t,H0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,H0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_eddsa25519key_free(t)}static new(t){const e=lt(t,u.__wbindgen_malloc),i=nt,a=u.eddsa25519key_new(e,i);return oc.__wrap(a)}set_private_key(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.eddsa25519key_set_private_key(this.ptr,e,i)}is_for_signing(){u.eddsa25519key_is_for_signing(this.ptr)}is_for_verifying(){u.eddsa25519key_is_for_verifying(this.ptr)}build(){const t=u.eddsa25519key_build(this.ptr);return ai.__wrap(t)}}const W0=new FinalizationRegistry(n=>u.__wbg_headermap_free(n));class Hn{static __wrap(t){const e=Object.create(Hn.prototype);return e.ptr=t,W0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,W0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_headermap_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.headermap_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.headermap_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Hn.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_algorithm_id(t){rt(t,yt),u.headermap_set_algorithm_id(this.ptr,t.ptr)}algorithm_id(){const t=u.headermap_algorithm_id(this.ptr);return t===0?void 0:yt.__wrap(t)}set_criticality(t){rt(t,lr),u.headermap_set_criticality(this.ptr,t.ptr)}criticality(){const t=u.headermap_criticality(this.ptr);return t===0?void 0:lr.__wrap(t)}set_content_type(t){rt(t,yt),u.headermap_set_content_type(this.ptr,t.ptr)}content_type(){const t=u.headermap_content_type(this.ptr);return t===0?void 0:yt.__wrap(t)}set_key_id(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.headermap_set_key_id(this.ptr,e,i)}key_id(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.headermap_key_id(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_init_vector(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.cosekey_set_base_init_vector(this.ptr,e,i)}init_vector(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_base_init_vector(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_partial_init_vector(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.headermap_set_partial_init_vector(this.ptr,e,i)}partial_init_vector(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.headermap_partial_init_vector(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_counter_signature(t){rt(t,oi),u.headermap_set_counter_signature(this.ptr,t.ptr)}counter_signature(){const t=u.headermap_counter_signature(this.ptr);return t===0?void 0:oi.__wrap(t)}header(t){rt(t,yt);const e=u.headermap_header(this.ptr,t.ptr);return e===0?void 0:Ot.__wrap(e)}set_header(t,e){try{const s=u.__wbindgen_add_to_stack_pointer(-16);rt(t,yt),rt(e,Ot),u.headermap_set_header(s,this.ptr,t.ptr,e.ptr);var i=C()[s/4+0],a=C()[s/4+1];if(a)throw vt(i)}finally{u.__wbindgen_add_to_stack_pointer(16)}}keys(){const t=u.headermap_keys(this.ptr);return lr.__wrap(t)}static new(){const t=u.headermap_new();return Hn.__wrap(t)}}const V0=new FinalizationRegistry(n=>u.__wbg_headers_free(n));class qt{static __wrap(t){const e=Object.create(qt.prototype);return e.ptr=t,V0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,V0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_headers_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.headers_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.headers_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return qt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}protected(){const t=u.headers_protected(this.ptr);return nn.__wrap(t)}unprotected(){const t=u.headers_unprotected(this.ptr);return Hn.__wrap(t)}static new(t,e){rt(t,nn),rt(e,Hn);const i=u.headers_new(t.ptr,e.ptr);return qt.__wrap(i)}}const K0=new FinalizationRegistry(n=>u.__wbg_int_free(n));class Ne{static __wrap(t){const e=Object.create(Ne.prototype);return e.ptr=t,K0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,K0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_int_free(t)}static new(t){rt(t,Wt);var e=t.__destroy_into_raw();const i=u.int_new(e);return Ne.__wrap(i)}static new_negative(t){rt(t,Wt);var e=t.__destroy_into_raw();const i=u.int_new_negative(e);return Ne.__wrap(i)}static new_i32(t){const e=u.int_new_i32(t);return Ne.__wrap(e)}is_positive(){return u.int_is_positive(this.ptr)!==0}as_positive(){const t=u.int_as_positive(this.ptr);return t===0?void 0:Wt.__wrap(t)}as_negative(){const t=u.int_as_negative(this.ptr);return t===0?void 0:Wt.__wrap(t)}as_i32(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.int_as_i32(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];return t===0?void 0:e}finally{u.__wbindgen_add_to_stack_pointer(16)}}}const q0=new FinalizationRegistry(n=>u.__wbg_label_free(n));class yt{static __wrap(t){const e=Object.create(yt.prototype);return e.ptr=t,q0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,q0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_label_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.label_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.label_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return yt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_int(t){rt(t,Ne);const e=u.label_new_int(t.ptr);return yt.__wrap(e)}static new_text(t){const e=ac(t,u.__wbindgen_malloc,u.__wbindgen_realloc),i=nt,a=u.label_new_text(e,i);return yt.__wrap(a)}kind(){return u.label_kind(this.ptr)>>>0}as_int(){const t=u.label_as_int(this.ptr);return t===0?void 0:Ne.__wrap(t)}as_text(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.label_as_text(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=Uo(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_algorithm_id(t){const e=u.label_from_algorithm_id(t);return yt.__wrap(e)}static from_key_type(t){const e=u.label_from_key_type(t);return yt.__wrap(e)}static from_ec_key(t){const e=u.label_from_ec_key(t);return yt.__wrap(e)}static from_curve_type(t){const e=u.label_from_curve_type(t);return yt.__wrap(e)}static from_key_operation(t){const e=u.label_from_key_operation(t);return yt.__wrap(e)}}const Q0=new FinalizationRegistry(n=>u.__wbg_labels_free(n));class lr{static __wrap(t){const e=Object.create(lr.prototype);return e.ptr=t,Q0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Q0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_labels_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.labels_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.labels_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return lr.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.coserecipients_new();return lr.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.labels_get(this.ptr,t);return yt.__wrap(e)}add(t){rt(t,yt),u.labels_add(this.ptr,t.ptr)}}const J0=new FinalizationRegistry(n=>u.__wbg_passwordencryption_free(n));class $o{static __wrap(t){const e=Object.create($o.prototype);return e.ptr=t,J0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,J0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_passwordencryption_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.passwordencryption_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.passwordencryption_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return $o.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t){rt(t,Ls);const e=u.passwordencryption_new(t.ptr);return $o.__wrap(e)}}const X0=new FinalizationRegistry(n=>u.__wbg_protectedheadermap_free(n));class nn{static __wrap(t){const e=Object.create(nn.prototype);return e.ptr=t,X0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,X0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_protectedheadermap_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.protectedheadermap_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.protectedheadermap_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return nn.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_empty(){const t=u.protectedheadermap_new_empty();return nn.__wrap(t)}static new(t){rt(t,Hn);const e=u.protectedheadermap_new(t.ptr);return nn.__wrap(e)}deserialized_headers(){const t=u.protectedheadermap_deserialized_headers(this.ptr);return Hn.__wrap(t)}}const G0=new FinalizationRegistry(n=>u.__wbg_pubkeyencryption_free(n));class Ho{static __wrap(t){const e=Object.create(Ho.prototype);return e.ptr=t,G0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,G0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_pubkeyencryption_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.pubkeyencryption_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.pubkeyencryption_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Ho.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t){rt(t,Us);const e=u.pubkeyencryption_new(t.ptr);return Ho.__wrap(e)}}const Y0=new FinalizationRegistry(n=>u.__wbg_sigstructure_free(n));class _i{static __wrap(t){const e=Object.create(_i.prototype);return e.ptr=t,Y0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Y0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_sigstructure_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.sigstructure_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.sigstructure_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return _i.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}context(){return u.sigstructure_context(this.ptr)>>>0}body_protected(){const t=u.sigstructure_body_protected(this.ptr);return nn.__wrap(t)}sign_protected(){const t=u.sigstructure_sign_protected(this.ptr);return t===0?void 0:nn.__wrap(t)}external_aad(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.sigstructure_external_aad(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}payload(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.sigstructure_payload(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_sign_protected(t){rt(t,nn),u.sigstructure_set_sign_protected(this.ptr,t.ptr)}static new(t,e,i,a){rt(e,nn);const s=lt(i,u.__wbindgen_malloc),_=nt,c=lt(a,u.__wbindgen_malloc),d=nt,f=u.sigstructure_new(t,e.ptr,s,_,c,d);return _i.__wrap(f)}}const Z0=new FinalizationRegistry(n=>u.__wbg_signedmessage_free(n));class ss{static __wrap(t){const e=Object.create(ss.prototype);return e.ptr=t,Z0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Z0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_signedmessage_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.signedmessage_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.signedmessage_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return ss.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_cose_sign(t){rt(t,ii);const e=u.signedmessage_new_cose_sign(t.ptr);return ss.__wrap(e)}static new_cose_sign1(t){rt(t,Wr);const e=u.signedmessage_new_cose_sign1(t.ptr);return ss.__wrap(e)}static from_user_facing_encoding(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=ac(t,u.__wbindgen_malloc,u.__wbindgen_realloc),c=nt;u.signedmessage_from_user_facing_encoding(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return ss.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}to_user_facing_encoding(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.signedmessage_to_user_facing_encoding(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];return Uo(t,e)}finally{u.__wbindgen_add_to_stack_pointer(16),u.__wbindgen_free(t,e)}}kind(){return u.signedmessage_kind(this.ptr)>>>0}as_cose_sign(){const t=u.signedmessage_as_cose_sign(this.ptr);return t===0?void 0:ii.__wrap(t)}as_cose_sign1(){const t=u.signedmessage_as_cose_sign1(this.ptr);return t===0?void 0:Wr.__wrap(t)}}const tv=new FinalizationRegistry(n=>u.__wbg_taggedcbor_free(n));class os{static __wrap(t){const e=Object.create(os.prototype);return e.ptr=t,tv.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,tv.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_taggedcbor_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.taggedcbor_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.taggedcbor_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return os.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}tag(){const t=u.taggedcbor_tag(this.ptr);return Wt.__wrap(t)}value(){const t=u.taggedcbor_value(this.ptr);return Ot.__wrap(t)}static new(t,e){rt(t,Wt);var i=t.__destroy_into_raw();rt(e,Ot);const a=u.taggedcbor_new(i,e.ptr);return os.__wrap(a)}}const ed={__wbindgen_placeholder__:{__wbindgen_object_drop_ref:function(n){vt(n)},__wbindgen_string_new:function(n,t){const e=Uo(n,t);return iS(e)},__wbindgen_debug_string:function(n,t){const e=Xp(k0(t)),i=ac(e,u.__wbindgen_malloc,u.__wbindgen_realloc),a=nt;C()[n/4+1]=a,C()[n/4+0]=i},__wbindgen_throw:function(n,t){throw new Error(Uo(n,t))}}};async function hS(n){return(await ev(n)).exports}let _c,nd;function ev(n){return _c!=null?Promise.resolve(_c):(nd==null&&(nd=(async()=>{try{const t=(await yS(n??{})).instance;return u=t.exports,ic=new Int32Array(u.memory.buffer),rc=new Uint8Array(u.memory.buffer),_c={instance:t,exports:gS()},_c}finally{nd=null}})()),nd)}function gS(){return{BigNum:Wt,CBORArray:ri,CBORObject:rs,CBORSpecial:$n,CBORValue:Ot,COSEEncrypt:Us,COSEEncrypt0:Ls,COSEKey:ai,COSERecipient:as,COSERecipients:is,COSESign:ii,COSESign1:Wr,COSESign1Builder:Lo,COSESignBuilder:sc,COSESignature:si,COSESignatures:cr,CounterSignature:oi,EdDSA25519Key:oc,HeaderMap:Hn,Headers:qt,Int:Ne,Label:yt,Labels:lr,PasswordEncryption:$o,ProtectedHeaderMap:nn,PubKeyEncryption:Ho,SigStructure:_i,SignedMessage:ss,TaggedCBOR:os}}function bS(){return _c!=null}async function yS(n){var a,s,_;const t=import.meta.url.includes("_frsh")?n.url:new URL("/aiken-ide/assets/cardano_message_signing_bg-BCvojIzl.wasm",import.meta.url),e=n.decompress,i=t.protocol==="file:";if(((s=(a=globalThis.process)==null?void 0:a.versions)==null?void 0:s.node)!=null&&i){const c=fs.readFileSync(t);return WebAssembly.instantiate(e?e(c):c,ed)}switch(t.protocol){case"":case"chrome-extension:":case"file:":case"https:":case"http:":{if(i){if(typeof Deno!="object")throw new Error("file urls are not supported in this environment");"permissions"in Deno&&await Deno.permissions.request({name:"read",path:t})}else typeof Deno=="object"&&"permissions"in Deno&&await Deno.permissions.request({name:"net",host:t.host});const c=await fetch(t);if(e){const d=new Uint8Array(await c.arrayBuffer());return WebAssembly.instantiate(e(d),ed)}return i||(_=c.headers.get("content-type"))!=null&&_.toLowerCase().startsWith("application/wasm")?WebAssembly.instantiateStreaming(c,ed):WebAssembly.instantiate(await c.arrayBuffer(),ed)}default:throw new Error(`Unsupported protocol: ${t.protocol}`)}}const mS=Object.freeze(Object.defineProperty({__proto__:null,AlgorithmId:td,BigNum:Wt,CBORArray:ri,CBORObject:rs,CBORSpecial:$n,CBORSpecialType:dS,CBORValue:Ot,CBORValueKind:uS,COSEEncrypt:Us,COSEEncrypt0:Ls,COSEKey:ai,COSERecipient:as,COSERecipients:is,COSESign:ii,COSESign1:Wr,COSESign1Builder:Lo,COSESignBuilder:sc,COSESignature:si,COSESignatures:cr,CounterSignature:oi,CurveType:cS,ECKey:_S,EdDSA25519Key:oc,HeaderMap:Hn,Headers:qt,Int:Ne,KeyOperation:lS,KeyType:S0,Label:yt,LabelKind:pS,Labels:lr,PasswordEncryption:$o,ProtectedHeaderMap:nn,PubKeyEncryption:Ho,SigContext:wS,SigStructure:_i,SignedMessage:ss,SignedMessageKind:fS,TaggedCBOR:os,instantiate:hS,instantiateWithInstance:ev,isInstantiated:bS},Symbol.toStringTag,{value:"Module"}));Object.hasOwn||Object.defineProperty(Object,"hasOwn",{value:function(n,t){if(n==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(n),t)},configurable:!0,enumerable:!1,writable:!0});var nv={name:"lucid-cardano",version:"0.10.7",license:"MIT",author:"Alessandro Konrad",description:"Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.",repository:"https://github.com/spacebudz/lucid"};async function rv(n,t){try{await n.instantiate({url:new URL(t,`https://deno.land/x/lucid@${nv.version}/src/core/libs/`)})}catch{}}await Promise.all([rv(rS,"cardano_multiplatform_lib/cardano_multiplatform_lib_bg.wasm"),rv(mS,"cardano_message_signing/cardano_message_signing_bg.wasm")]);function vS(n){let t=rr.new(),e=gn.new();Object.values(n.PlutusV1).forEach((a,s)=>{e.set(s,_e.new(O.from_str(a.toString())))}),t.insert(Xe.new_plutus_v1(),e);let i=gn.new_plutus_v2();return Object.values(n.PlutusV2||[]).forEach((a,s)=>{i.set(s,_e.new(O.from_str(a.toString())))}),t.insert(Xe.new_plutus_v2(),i),t}var kS={minFeeA:44,minFeeB:155381,maxTxSize:16384,maxValSize:5e3,keyDeposit:2000000n,poolDeposit:500000000n,priceMem:.0577,priceStep:721e-7,maxTxExMem:14000000n,maxTxExSteps:10000000000n,coinsPerUtxoByte:4310n,collateralPercentage:150,maxCollateralInputs:3,costModels:{PlutusV1:{"addInteger-cpu-arguments-intercept":205665,"addInteger-cpu-arguments-slope":812,"addInteger-memory-arguments-intercept":1,"addInteger-memory-arguments-slope":1,"appendByteString-cpu-arguments-intercept":1e3,"appendByteString-cpu-arguments-slope":571,"appendByteString-memory-arguments-intercept":0,"appendByteString-memory-arguments-slope":1,"appendString-cpu-arguments-intercept":1e3,"appendString-cpu-arguments-slope":24177,"appendString-memory-arguments-intercept":4,"appendString-memory-arguments-slope":1,"bData-cpu-arguments":1e3,"bData-memory-arguments":32,"blake2b_256-cpu-arguments-intercept":117366,"blake2b_256-cpu-arguments-slope":10475,"blake2b_256-memory-arguments":4,"cekApplyCost-exBudgetCPU":23e3,"cekApplyCost-exBudgetMemory":100,"cekBuiltinCost-exBudgetCPU":23e3,"cekBuiltinCost-exBudgetMemory":100,"cekConstCost-exBudgetCPU":23e3,"cekConstCost-exBudgetMemory":100,"cekDelayCost-exBudgetCPU":23e3,"cekDelayCost-exBudgetMemory":100,"cekForceCost-exBudgetCPU":23e3,"cekForceCost-exBudgetMemory":100,"cekLamCost-exBudgetCPU":23e3,"cekLamCost-exBudgetMemory":100,"cekStartupCost-exBudgetCPU":100,"cekStartupCost-exBudgetMemory":100,"cekVarCost-exBudgetCPU":23e3,"cekVarCost-exBudgetMemory":100,"chooseData-cpu-arguments":19537,"chooseData-memory-arguments":32,"chooseList-cpu-arguments":175354,"chooseList-memory-arguments":32,"chooseUnit-cpu-arguments":46417,"chooseUnit-memory-arguments":4,"consByteString-cpu-arguments-intercept":221973,"consByteString-cpu-arguments-slope":511,"consByteString-memory-arguments-intercept":0,"consByteString-memory-arguments-slope":1,"constrData-cpu-arguments":89141,"constrData-memory-arguments":32,"decodeUtf8-cpu-arguments-intercept":497525,"decodeUtf8-cpu-arguments-slope":14068,"decodeUtf8-memory-arguments-intercept":4,"decodeUtf8-memory-arguments-slope":2,"divideInteger-cpu-arguments-constant":196500,"divideInteger-cpu-arguments-model-arguments-intercept":453240,"divideInteger-cpu-arguments-model-arguments-slope":220,"divideInteger-memory-arguments-intercept":0,"divideInteger-memory-arguments-minimum":1,"divideInteger-memory-arguments-slope":1,"encodeUtf8-cpu-arguments-intercept":1e3,"encodeUtf8-cpu-arguments-slope":28662,"encodeUtf8-memory-arguments-intercept":4,"encodeUtf8-memory-arguments-slope":2,"equalsByteString-cpu-arguments-constant":245e3,"equalsByteString-cpu-arguments-intercept":216773,"equalsByteString-cpu-arguments-slope":62,"equalsByteString-memory-arguments":1,"equalsData-cpu-arguments-intercept":1060367,"equalsData-cpu-arguments-slope":12586,"equalsData-memory-arguments":1,"equalsInteger-cpu-arguments-intercept":208512,"equalsInteger-cpu-arguments-slope":421,"equalsInteger-memory-arguments":1,"equalsString-cpu-arguments-constant":187e3,"equalsString-cpu-arguments-intercept":1e3,"equalsString-cpu-arguments-slope":52998,"equalsString-memory-arguments":1,"fstPair-cpu-arguments":80436,"fstPair-memory-arguments":32,"headList-cpu-arguments":43249,"headList-memory-arguments":32,"iData-cpu-arguments":1e3,"iData-memory-arguments":32,"ifThenElse-cpu-arguments":80556,"ifThenElse-memory-arguments":1,"indexByteString-cpu-arguments":57667,"indexByteString-memory-arguments":4,"lengthOfByteString-cpu-arguments":1e3,"lengthOfByteString-memory-arguments":10,"lessThanByteString-cpu-arguments-intercept":197145,"lessThanByteString-cpu-arguments-slope":156,"lessThanByteString-memory-arguments":1,"lessThanEqualsByteString-cpu-arguments-intercept":197145,"lessThanEqualsByteString-cpu-arguments-slope":156,"lessThanEqualsByteString-memory-arguments":1,"lessThanEqualsInteger-cpu-arguments-intercept":204924,"lessThanEqualsInteger-cpu-arguments-slope":473,"lessThanEqualsInteger-memory-arguments":1,"lessThanInteger-cpu-arguments-intercept":208896,"lessThanInteger-cpu-arguments-slope":511,"lessThanInteger-memory-arguments":1,"listData-cpu-arguments":52467,"listData-memory-arguments":32,"mapData-cpu-arguments":64832,"mapData-memory-arguments":32,"mkCons-cpu-arguments":65493,"mkCons-memory-arguments":32,"mkNilData-cpu-arguments":22558,"mkNilData-memory-arguments":32,"mkNilPairData-cpu-arguments":16563,"mkNilPairData-memory-arguments":32,"mkPairData-cpu-arguments":76511,"mkPairData-memory-arguments":32,"modInteger-cpu-arguments-constant":196500,"modInteger-cpu-arguments-model-arguments-intercept":453240,"modInteger-cpu-arguments-model-arguments-slope":220,"modInteger-memory-arguments-intercept":0,"modInteger-memory-arguments-minimum":1,"modInteger-memory-arguments-slope":1,"multiplyInteger-cpu-arguments-intercept":69522,"multiplyInteger-cpu-arguments-slope":11687,"multiplyInteger-memory-arguments-intercept":0,"multiplyInteger-memory-arguments-slope":1,"nullList-cpu-arguments":60091,"nullList-memory-arguments":32,"quotientInteger-cpu-arguments-constant":196500,"quotientInteger-cpu-arguments-model-arguments-intercept":453240,"quotientInteger-cpu-arguments-model-arguments-slope":220,"quotientInteger-memory-arguments-intercept":0,"quotientInteger-memory-arguments-minimum":1,"quotientInteger-memory-arguments-slope":1,"remainderInteger-cpu-arguments-constant":196500,"remainderInteger-cpu-arguments-model-arguments-intercept":453240,"remainderInteger-cpu-arguments-model-arguments-slope":220,"remainderInteger-memory-arguments-intercept":0,"remainderInteger-memory-arguments-minimum":1,"remainderInteger-memory-arguments-slope":1,"sha2_256-cpu-arguments-intercept":806990,"sha2_256-cpu-arguments-slope":30482,"sha2_256-memory-arguments":4,"sha3_256-cpu-arguments-intercept":1927926,"sha3_256-cpu-arguments-slope":82523,"sha3_256-memory-arguments":4,"sliceByteString-cpu-arguments-intercept":265318,"sliceByteString-cpu-arguments-slope":0,"sliceByteString-memory-arguments-intercept":4,"sliceByteString-memory-arguments-slope":0,"sndPair-cpu-arguments":85931,"sndPair-memory-arguments":32,"subtractInteger-cpu-arguments-intercept":205665,"subtractInteger-cpu-arguments-slope":812,"subtractInteger-memory-arguments-intercept":1,"subtractInteger-memory-arguments-slope":1,"tailList-cpu-arguments":41182,"tailList-memory-arguments":32,"trace-cpu-arguments":212342,"trace-memory-arguments":32,"unBData-cpu-arguments":31220,"unBData-memory-arguments":32,"unConstrData-cpu-arguments":32696,"unConstrData-memory-arguments":32,"unIData-cpu-arguments":43357,"unIData-memory-arguments":32,"unListData-cpu-arguments":32247,"unListData-memory-arguments":32,"unMapData-cpu-arguments":38314,"unMapData-memory-arguments":32,"verifyEd25519Signature-cpu-arguments-intercept":9462713,"verifyEd25519Signature-cpu-arguments-slope":1021,"verifyEd25519Signature-memory-arguments":10},PlutusV2:{"addInteger-cpu-arguments-intercept":205665,"addInteger-cpu-arguments-slope":812,"addInteger-memory-arguments-intercept":1,"addInteger-memory-arguments-slope":1,"appendByteString-cpu-arguments-intercept":1e3,"appendByteString-cpu-arguments-slope":571,"appendByteString-memory-arguments-intercept":0,"appendByteString-memory-arguments-slope":1,"appendString-cpu-arguments-intercept":1e3,"appendString-cpu-arguments-slope":24177,"appendString-memory-arguments-intercept":4,"appendString-memory-arguments-slope":1,"bData-cpu-arguments":1e3,"bData-memory-arguments":32,"blake2b_256-cpu-arguments-intercept":117366,"blake2b_256-cpu-arguments-slope":10475,"blake2b_256-memory-arguments":4,"cekApplyCost-exBudgetCPU":23e3,"cekApplyCost-exBudgetMemory":100,"cekBuiltinCost-exBudgetCPU":23e3,"cekBuiltinCost-exBudgetMemory":100,"cekConstCost-exBudgetCPU":23e3,"cekConstCost-exBudgetMemory":100,"cekDelayCost-exBudgetCPU":23e3,"cekDelayCost-exBudgetMemory":100,"cekForceCost-exBudgetCPU":23e3,"cekForceCost-exBudgetMemory":100,"cekLamCost-exBudgetCPU":23e3,"cekLamCost-exBudgetMemory":100,"cekStartupCost-exBudgetCPU":100,"cekStartupCost-exBudgetMemory":100,"cekVarCost-exBudgetCPU":23e3,"cekVarCost-exBudgetMemory":100,"chooseData-cpu-arguments":19537,"chooseData-memory-arguments":32,"chooseList-cpu-arguments":175354,"chooseList-memory-arguments":32,"chooseUnit-cpu-arguments":46417,"chooseUnit-memory-arguments":4,"consByteString-cpu-arguments-intercept":221973,"consByteString-cpu-arguments-slope":511,"consByteString-memory-arguments-intercept":0,"consByteString-memory-arguments-slope":1,"constrData-cpu-arguments":89141,"constrData-memory-arguments":32,"decodeUtf8-cpu-arguments-intercept":497525,"decodeUtf8-cpu-arguments-slope":14068,"decodeUtf8-memory-arguments-intercept":4,"decodeUtf8-memory-arguments-slope":2,"divideInteger-cpu-arguments-constant":196500,"divideInteger-cpu-arguments-model-arguments-intercept":453240,"divideInteger-cpu-arguments-model-arguments-slope":220,"divideInteger-memory-arguments-intercept":0,"divideInteger-memory-arguments-minimum":1,"divideInteger-memory-arguments-slope":1,"encodeUtf8-cpu-arguments-intercept":1e3,"encodeUtf8-cpu-arguments-slope":28662,"encodeUtf8-memory-arguments-intercept":4,"encodeUtf8-memory-arguments-slope":2,"equalsByteString-cpu-arguments-constant":245e3,"equalsByteString-cpu-arguments-intercept":216773,"equalsByteString-cpu-arguments-slope":62,"equalsByteString-memory-arguments":1,"equalsData-cpu-arguments-intercept":1060367,"equalsData-cpu-arguments-slope":12586,"equalsData-memory-arguments":1,"equalsInteger-cpu-arguments-intercept":208512,"equalsInteger-cpu-arguments-slope":421,"equalsInteger-memory-arguments":1,"equalsString-cpu-arguments-constant":187e3,"equalsString-cpu-arguments-intercept":1e3,"equalsString-cpu-arguments-slope":52998,"equalsString-memory-arguments":1,"fstPair-cpu-arguments":80436,"fstPair-memory-arguments":32,"headList-cpu-arguments":43249,"headList-memory-arguments":32,"iData-cpu-arguments":1e3,"iData-memory-arguments":32,"ifThenElse-cpu-arguments":80556,"ifThenElse-memory-arguments":1,"indexByteString-cpu-arguments":57667,"indexByteString-memory-arguments":4,"lengthOfByteString-cpu-arguments":1e3,"lengthOfByteString-memory-arguments":10,"lessThanByteString-cpu-arguments-intercept":197145,"lessThanByteString-cpu-arguments-slope":156,"lessThanByteString-memory-arguments":1,"lessThanEqualsByteString-cpu-arguments-intercept":197145,"lessThanEqualsByteString-cpu-arguments-slope":156,"lessThanEqualsByteString-memory-arguments":1,"lessThanEqualsInteger-cpu-arguments-intercept":204924,"lessThanEqualsInteger-cpu-arguments-slope":473,"lessThanEqualsInteger-memory-arguments":1,"lessThanInteger-cpu-arguments-intercept":208896,"lessThanInteger-cpu-arguments-slope":511,"lessThanInteger-memory-arguments":1,"listData-cpu-arguments":52467,"listData-memory-arguments":32,"mapData-cpu-arguments":64832,"mapData-memory-arguments":32,"mkCons-cpu-arguments":65493,"mkCons-memory-arguments":32,"mkNilData-cpu-arguments":22558,"mkNilData-memory-arguments":32,"mkNilPairData-cpu-arguments":16563,"mkNilPairData-memory-arguments":32,"mkPairData-cpu-arguments":76511,"mkPairData-memory-arguments":32,"modInteger-cpu-arguments-constant":196500,"modInteger-cpu-arguments-model-arguments-intercept":453240,"modInteger-cpu-arguments-model-arguments-slope":220,"modInteger-memory-arguments-intercept":0,"modInteger-memory-arguments-minimum":1,"modInteger-memory-arguments-slope":1,"multiplyInteger-cpu-arguments-intercept":69522,"multiplyInteger-cpu-arguments-slope":11687,"multiplyInteger-memory-arguments-intercept":0,"multiplyInteger-memory-arguments-slope":1,"nullList-cpu-arguments":60091,"nullList-memory-arguments":32,"quotientInteger-cpu-arguments-constant":196500,"quotientInteger-cpu-arguments-model-arguments-intercept":453240,"quotientInteger-cpu-arguments-model-arguments-slope":220,"quotientInteger-memory-arguments-intercept":0,"quotientInteger-memory-arguments-minimum":1,"quotientInteger-memory-arguments-slope":1,"remainderInteger-cpu-arguments-constant":196500,"remainderInteger-cpu-arguments-model-arguments-intercept":453240,"remainderInteger-cpu-arguments-model-arguments-slope":220,"remainderInteger-memory-arguments-intercept":0,"remainderInteger-memory-arguments-minimum":1,"remainderInteger-memory-arguments-slope":1,"serialiseData-cpu-arguments-intercept":1159724,"serialiseData-cpu-arguments-slope":392670,"serialiseData-memory-arguments-intercept":0,"serialiseData-memory-arguments-slope":2,"sha2_256-cpu-arguments-intercept":806990,"sha2_256-cpu-arguments-slope":30482,"sha2_256-memory-arguments":4,"sha3_256-cpu-arguments-intercept":1927926,"sha3_256-cpu-arguments-slope":82523,"sha3_256-memory-arguments":4,"sliceByteString-cpu-arguments-intercept":265318,"sliceByteString-cpu-arguments-slope":0,"sliceByteString-memory-arguments-intercept":4,"sliceByteString-memory-arguments-slope":0,"sndPair-cpu-arguments":85931,"sndPair-memory-arguments":32,"subtractInteger-cpu-arguments-intercept":205665,"subtractInteger-cpu-arguments-slope":812,"subtractInteger-memory-arguments-intercept":1,"subtractInteger-memory-arguments-slope":1,"tailList-cpu-arguments":41182,"tailList-memory-arguments":32,"trace-cpu-arguments":212342,"trace-memory-arguments":32,"unBData-cpu-arguments":31220,"unBData-memory-arguments":32,"unConstrData-cpu-arguments":32696,"unConstrData-memory-arguments":32,"unIData-cpu-arguments":43357,"unIData-memory-arguments":32,"unListData-cpu-arguments":32247,"unListData-memory-arguments":32,"unMapData-cpu-arguments":38314,"unMapData-memory-arguments":32,"verifyEcdsaSecp256k1Signature-cpu-arguments":35892428,"verifyEcdsaSecp256k1Signature-memory-arguments":10,"verifyEd25519Signature-cpu-arguments-intercept":57996947,"verifyEd25519Signature-cpu-arguments-slope":18975,"verifyEd25519Signature-memory-arguments":10,"verifySchnorrSecp256k1Signature-cpu-arguments-intercept":38887044,"verifySchnorrSecp256k1Signature-cpu-arguments-slope":32947,"verifySchnorrSecp256k1Signature-memory-arguments":10}}},av=new TextEncoder().encode("0123456789abcdef");function xS(n){return new Error("encoding/hex: invalid byte: "+new TextDecoder().decode(new Uint8Array([n])))}function jS(){return new Error("encoding/hex: odd length hex string")}function Gp(n){if(48<=n&&n<=57)return n-48;if(97<=n&&n<=102)return n-97+10;if(65<=n&&n<=70)return n-65+10;throw xS(n)}function SS(n){return n*2}function CS(n){let t=new Uint8Array(SS(n.length));for(let e=0;e>4],t[e*2+1]=av[i&15]}return t}function ES(n){return new TextDecoder().decode(CS(n))}function iv(n){let t=new Uint8Array(OS(n.length));for(let e=0;e>>1}function NS(n){return iv(new TextEncoder().encode(n))}var ut=function(n,t,e,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?n!==t||!a:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(n,e):a?a.value=e:t.set(n,e),e},X=function(n,t,e,i){if(e==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!i:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?i:e==="a"?i.call(n):i?i.value:t.get(n)},_s,$s,dr,Wo,cc,Vr,Kr,qr,Qr,Jr,Xr,Gr,Yr,Hs,Vo,cs,rd,ls,tt="0123456789abcdef".split(""),RS=[-2147483648,8388608,32768,128],ur=[24,16,8,0],ad=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],de=[],PS=class{constructor(n=!1,t=!1){_s.set(this,void 0),$s.set(this,void 0),dr.set(this,void 0),Wo.set(this,void 0),cc.set(this,void 0),Vr.set(this,void 0),Kr.set(this,void 0),qr.set(this,void 0),Qr.set(this,void 0),Jr.set(this,void 0),Xr.set(this,void 0),Gr.set(this,void 0),Yr.set(this,void 0),Hs.set(this,void 0),Vo.set(this,void 0),cs.set(this,void 0),rd.set(this,0),ls.set(this,void 0),this.init(n,t)}init(n,t){t?(de[0]=de[16]=de[1]=de[2]=de[3]=de[4]=de[5]=de[6]=de[7]=de[8]=de[9]=de[10]=de[11]=de[12]=de[13]=de[14]=de[15]=0,ut(this,$s,de,"f")):ut(this,$s,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"f"),n?(ut(this,Vr,3238371032,"f"),ut(this,Kr,914150663,"f"),ut(this,qr,812702999,"f"),ut(this,Qr,4144912697,"f"),ut(this,Jr,4290775857,"f"),ut(this,Xr,1750603025,"f"),ut(this,Gr,1694076839,"f"),ut(this,Yr,3204075428,"f")):(ut(this,Vr,1779033703,"f"),ut(this,Kr,3144134277,"f"),ut(this,qr,1013904242,"f"),ut(this,Qr,2773480762,"f"),ut(this,Jr,1359893119,"f"),ut(this,Xr,2600822924,"f"),ut(this,Gr,528734635,"f"),ut(this,Yr,1541459225,"f")),ut(this,_s,ut(this,ls,ut(this,dr,ut(this,Vo,0,"f"),"f"),"f"),"f"),ut(this,Wo,ut(this,Hs,!1,"f"),"f"),ut(this,cc,!0,"f"),ut(this,cs,n,"f")}update(n){if(X(this,Wo,"f"))return this;let t;n instanceof ArrayBuffer?t=new Uint8Array(n):t=n;let e=0,i=t.length,a=X(this,$s,"f");for(;e>2]|=t[e]<>2]|=_<>2]|=(192|_>>6)<>2]|=(128|_&63)<=57344?(a[s>>2]|=(224|_>>12)<>2]|=(128|_>>6&63)<>2]|=(128|_&63)<>2]|=(240|_>>18)<>2]|=(128|_>>12&63)<>2]|=(128|_>>6&63)<>2]|=(128|_&63)<=64?(ut(this,_s,a[16],"f"),ut(this,ls,s-64,"f"),this.hash(),ut(this,Hs,!0,"f")):ut(this,ls,s,"f")}return X(this,dr,"f")>4294967295&&(ut(this,Vo,X(this,Vo,"f")+(X(this,dr,"f")/4294967296<<0),"f"),ut(this,dr,X(this,dr,"f")%4294967296,"f")),this}finalize(){if(X(this,Wo,"f"))return;ut(this,Wo,!0,"f");let n=X(this,$s,"f"),t=X(this,rd,"f");n[16]=X(this,_s,"f"),n[t>>2]|=RS[t&3],ut(this,_s,n[16],"f"),t>=56&&(X(this,Hs,"f")||this.hash(),n[0]=X(this,_s,"f"),n[16]=n[1]=n[2]=n[3]=n[4]=n[5]=n[6]=n[7]=n[8]=n[9]=n[10]=n[11]=n[12]=n[13]=n[14]=n[15]=0),n[14]=X(this,Vo,"f")<<3|X(this,dr,"f")>>>29,n[15]=X(this,dr,"f")<<3,this.hash()}hash(){let n=X(this,Vr,"f"),t=X(this,Kr,"f"),e=X(this,qr,"f"),i=X(this,Qr,"f"),a=X(this,Jr,"f"),s=X(this,Xr,"f"),_=X(this,Gr,"f"),c=X(this,Yr,"f"),d=X(this,$s,"f"),f,g,k,m,x,S,j,P,v,y;for(let b=16;b<64;++b)m=d[b-15],f=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=d[b-2],g=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,d[b]=d[b-16]+f+d[b-7]+g<<0;y=t&e;for(let b=0;b<64;b+=4)X(this,cc,"f")?(X(this,cs,"f")?(j=300032,m=d[0]-1413257819,c=m-150054599<<0,i=m+24177077<<0):(j=704751109,m=d[0]-210244248,c=m-1521486534<<0,i=m+143694565<<0),ut(this,cc,!1,"f")):(f=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),g=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),j=n&t,k=j^n&e^y,S=a&s^~a&_,m=c+g+S+ad[b]+d[b],x=f+k,c=i+m<<0,i=m+x<<0),f=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10),g=(c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7),P=i&n,k=P^i&t^j,S=c&a^~c&s,m=_+g+S+ad[b+1]+d[b+1],x=f+k,_=e+m<<0,e=m+x<<0,f=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),g=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),v=e&i,k=v^e&n^P,S=_&c^~_&a,m=s+g+S+ad[b+2]+d[b+2],x=f+k,s=t+m<<0,t=m+x<<0,f=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),g=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),y=t&e,k=y^t&i^v,S=s&_^~s&c,m=a+g+S+ad[b+3]+d[b+3],x=f+k,a=n+m<<0,n=m+x<<0;ut(this,Vr,X(this,Vr,"f")+n<<0,"f"),ut(this,Kr,X(this,Kr,"f")+t<<0,"f"),ut(this,qr,X(this,qr,"f")+e<<0,"f"),ut(this,Qr,X(this,Qr,"f")+i<<0,"f"),ut(this,Jr,X(this,Jr,"f")+a<<0,"f"),ut(this,Xr,X(this,Xr,"f")+s<<0,"f"),ut(this,Gr,X(this,Gr,"f")+_<<0,"f"),ut(this,Yr,X(this,Yr,"f")+c<<0,"f")}hex(){this.finalize();let n=X(this,Vr,"f"),t=X(this,Kr,"f"),e=X(this,qr,"f"),i=X(this,Qr,"f"),a=X(this,Jr,"f"),s=X(this,Xr,"f"),_=X(this,Gr,"f"),c=X(this,Yr,"f"),d=tt[n>>28&15]+tt[n>>24&15]+tt[n>>20&15]+tt[n>>16&15]+tt[n>>12&15]+tt[n>>8&15]+tt[n>>4&15]+tt[n&15]+tt[t>>28&15]+tt[t>>24&15]+tt[t>>20&15]+tt[t>>16&15]+tt[t>>12&15]+tt[t>>8&15]+tt[t>>4&15]+tt[t&15]+tt[e>>28&15]+tt[e>>24&15]+tt[e>>20&15]+tt[e>>16&15]+tt[e>>12&15]+tt[e>>8&15]+tt[e>>4&15]+tt[e&15]+tt[i>>28&15]+tt[i>>24&15]+tt[i>>20&15]+tt[i>>16&15]+tt[i>>12&15]+tt[i>>8&15]+tt[i>>4&15]+tt[i&15]+tt[a>>28&15]+tt[a>>24&15]+tt[a>>20&15]+tt[a>>16&15]+tt[a>>12&15]+tt[a>>8&15]+tt[a>>4&15]+tt[a&15]+tt[s>>28&15]+tt[s>>24&15]+tt[s>>20&15]+tt[s>>16&15]+tt[s>>12&15]+tt[s>>8&15]+tt[s>>4&15]+tt[s&15]+tt[_>>28&15]+tt[_>>24&15]+tt[_>>20&15]+tt[_>>16&15]+tt[_>>12&15]+tt[_>>8&15]+tt[_>>4&15]+tt[_&15];return X(this,cs,"f")||(d+=tt[c>>28&15]+tt[c>>24&15]+tt[c>>20&15]+tt[c>>16&15]+tt[c>>12&15]+tt[c>>8&15]+tt[c>>4&15]+tt[c&15]),d}toString(){return this.hex()}digest(){this.finalize();let n=X(this,Vr,"f"),t=X(this,Kr,"f"),e=X(this,qr,"f"),i=X(this,Qr,"f"),a=X(this,Jr,"f"),s=X(this,Xr,"f"),_=X(this,Gr,"f"),c=X(this,Yr,"f"),d=[n>>24&255,n>>16&255,n>>8&255,n&255,t>>24&255,t>>16&255,t>>8&255,t&255,e>>24&255,e>>16&255,e>>8&255,e&255,i>>24&255,i>>16&255,i>>8&255,i&255,a>>24&255,a>>16&255,a>>8&255,a&255,s>>24&255,s>>16&255,s>>8&255,s&255,_>>24&255,_>>16&255,_>>8&255,_&255];return X(this,cs,"f")||d.push(c>>24&255,c>>16&255,c>>8&255,c&255),d}array(){return this.digest()}arrayBuffer(){this.finalize();let n=new ArrayBuffer(X(this,cs,"f")?28:32),t=new DataView(n);return t.setUint32(0,X(this,Vr,"f")),t.setUint32(4,X(this,Kr,"f")),t.setUint32(8,X(this,qr,"f")),t.setUint32(12,X(this,Qr,"f")),t.setUint32(16,X(this,Jr,"f")),t.setUint32(20,X(this,Xr,"f")),t.setUint32(24,X(this,Gr,"f")),X(this,cs,"f")||t.setUint32(28,X(this,Yr,"f")),n}};_s=new WeakMap,$s=new WeakMap,dr=new WeakMap,Wo=new WeakMap,cc=new WeakMap,Vr=new WeakMap,Kr=new WeakMap,qr=new WeakMap,Qr=new WeakMap,Jr=new WeakMap,Xr=new WeakMap,Gr=new WeakMap,Yr=new WeakMap,Hs=new WeakMap,Vo=new WeakMap,cs=new WeakMap,rd=new WeakMap,ls=new WeakMap;var sv="Invalid mnemonic",Ws="Invalid entropy",IS="Invalid mnemonic checksum",ov=`A wordlist is required but a default could not be found. -Please pass a 2048 word array explicitly.`;function TS(n,t){if(t=t||uv,!t)throw new Error(ov);let e=DS(n).split(" ");if(e.length%3!==0)throw new Error(sv);let i=e.map(f=>{let g=t.indexOf(f);if(g===-1)throw new Error(sv);return cv(g.toString(2),"0",11)}).join(""),a=Math.floor(i.length/33)*32,s=i.slice(0,a),_=i.slice(a),c=s.match(/(.{1,8})/g).map(dv);if(c.length<16)throw new Error(Ws);if(c.length>32)throw new Error(Ws);if(c.length%4!==0)throw new Error(Ws);let d=new Uint8Array(c);if(_v(d)!==_)throw new Error(IS);return _t(d)}function FS(n){let t=new Uint8Array(n);if(n>4294967295)throw new RangeError("requested too many random bytes");if(n>0)if(n>65536)for(let e=0;e32)throw new TypeError(Ws);if(n.length%4!==0)throw new TypeError(Ws);let e=lv(Array.from(n)),i=_v(n),a=(e+i).match(/(.{1,11})/g).map(s=>{let _=dv(s);return t[_]});return t[0]==="\u3042\u3044\u3053\u304F\u3057\u3093"?a.join("\u3000"):a.join(" ")}function _v(n){let t=n.length*8/32,e=new PS().update(n).digest();return lv(Array.from(e)).slice(0,t)}function cv(n,t,e){for(;n.lengthcv(t.toString(2),"0",8)).join("")}function DS(n){return(n||"").normalize("NFKD")}function dv(n){return parseInt(n,2)}var uv=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"],Yp=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];typeof Int32Array<"u"&&(Yp=new Int32Array(Yp));function AS(n,t=0){let e=~~t;for(let i=0;iisNaN(i)).map(i=>n[i]).map(i=>typeof i=="string"?{[ft]:"Literal",type:"string",const:i}:{[ft]:"Literal",type:"number",const:i});return this.Create({...t,[ft]:"Union",[Vs]:"Enum",anyOf:e})}Function(n,t,e={}){if(n[ft]==="Tuple"){let i=n.items===void 0?[]:n.items;return this.Create({...e,[ft]:"Function",type:"object",instanceOf:"Function",parameters:i,returns:t})}else{if(globalThis.Array.isArray(n))return this.Create({...e,[ft]:"Function",type:"object",instanceOf:"Function",parameters:n,returns:t});throw new Error("TypeBuilder.Function: Invalid parameters")}}InstanceType(n,t={}){return{...t,...this.Clone(n.returns)}}Integer(n={}){return this.Create({...n,[ft]:"Integer",type:"integer"})}Intersect(n,t={}){let e=_=>_[me]&&_[me]==="Optional"||_[me]==="ReadonlyOptional",[i,a]=[new Set,new Set];for(let _ of n)for(let[c,d]of Object.entries(_.properties))e(d)&&a.add(c);for(let _ of n)for(let c of Object.keys(_.properties))a.has(c)||i.add(c);let s={};for(let _ of n)for(let[c,d]of Object.entries(_.properties))s[c]=s[c]===void 0?d:{[ft]:"Union",anyOf:[s[c],{...d}]};return i.size>0?this.Create({...t,[ft]:"Object",type:"object",properties:s,required:[...i]}):this.Create({...t,[ft]:"Object",type:"object",properties:s})}KeyOf(n,t={}){let e=Object.keys(n.properties).map(i=>this.Create({...t,[ft]:"Literal",type:"string",const:i}));return this.Create({...t,[ft]:"Union",[Vs]:"KeyOf",anyOf:e})}Literal(n,t={}){return this.Create({...t,[ft]:"Literal",const:n,type:typeof n})}Never(n={}){return this.Create({...n,[ft]:"Never",allOf:[{type:"boolean",const:!1},{type:"boolean",const:!0}]})}Null(n={}){return this.Create({...n,[ft]:"Null",type:"null"})}Number(n={}){return this.Create({...n,[ft]:"Number",type:"number"})}Object(n,t={}){let e=Object.keys(n),i=e.filter(s=>{let _=n[s][me];return _&&(_==="Optional"||_==="ReadonlyOptional")}),a=e.filter(s=>!i.includes(s));return a.length>0?this.Create({...t,[ft]:"Object",type:"object",properties:n,required:a}):this.Create({...t,[ft]:"Object",type:"object",properties:n})}Omit(n,t,e={}){let i=t[ft]==="Union"?t.anyOf.map(s=>s.const):t,a={...this.Clone(n),...e,[Vs]:"Omit"};a.required&&(a.required=a.required.filter(s=>!i.includes(s)),a.required.length===0&&delete a.required);for(let s of Object.keys(a.properties))i.includes(s)&&delete a.properties[s];return this.Create(a)}Parameters(n,t={}){return Cn.Tuple(n.parameters,{...t})}Partial(n,t={}){let e={...this.Clone(n),...t,[Vs]:"Partial"};delete e.required;for(let i of Object.keys(e.properties)){let a=e.properties[i];switch(a[me]){case"ReadonlyOptional":a[me]="ReadonlyOptional";break;case"Readonly":a[me]="ReadonlyOptional";break;case"Optional":a[me]="Optional";break;default:a[me]="Optional";break}}return this.Create(e)}Pick(n,t,e={}){let i=t[ft]==="Union"?t.anyOf.map(s=>s.const):t,a={...this.Clone(n),...e,[Vs]:"Pick"};a.required&&(a.required=a.required.filter(s=>i.includes(s)),a.required.length===0&&delete a.required);for(let s of Object.keys(a.properties))i.includes(s)||delete a.properties[s];return this.Create(a)}Promise(n,t={}){return this.Create({...t,[ft]:"Promise",type:"object",instanceOf:"Promise",item:n})}Record(n,t,e={}){if(n[ft]==="Union")return this.Object(n.anyOf.reduce((a,s)=>({...a,[s.const]:t}),{}),{...e,[Vs]:"Record"});let i=["Integer","Number"].includes(n[ft])?"^(0|[1-9][0-9]*)$":n[ft]==="String"&&n.pattern?n.pattern:"^.*$";return this.Create({...e,[ft]:"Record",type:"object",patternProperties:{[i]:t},additionalProperties:!1})}Recursive(n,t={}){t.$id===void 0&&(t.$id=`T${LS++}`);let e=n({[ft]:"Self",$ref:`${t.$id}`});return e.$id=t.$id,this.Create({...t,...e})}Ref(n,t={}){if(n.$id===void 0)throw Error("TypeBuilder.Ref: Referenced schema must specify an $id");return this.Create({...t,[ft]:"Ref",$ref:n.$id})}RegEx(n,t={}){return this.Create({...t,[ft]:"String",type:"string",pattern:n.source})}Required(n,t={}){let e={...this.Clone(n),...t,[Vs]:"Required"};e.required=Object.keys(e.properties);for(let i of Object.keys(e.properties)){let a=e.properties[i];switch(a[me]){case"ReadonlyOptional":a[me]="Readonly";break;case"Readonly":a[me]="Readonly";break;case"Optional":delete a[me];break;default:delete a[me];break}}return this.Create(e)}ReturnType(n,t={}){return{...t,...this.Clone(n.returns)}}Strict(n){return JSON.parse(JSON.stringify(n))}String(n={}){return this.Create({...n,[ft]:"String",type:"string"})}Tuple(n,t={}){let e=n.length,i=n.length,a=n.length>0?{...t,[ft]:"Tuple",type:"array",items:n,additionalItems:!1,minItems:e,maxItems:i}:{...t,[ft]:"Tuple",type:"array",minItems:e,maxItems:i};return this.Create(a)}Undefined(n={}){return this.Create({...n,[ft]:"Undefined",type:"null",typeOf:"Undefined"})}Union(n,t={}){return n.length===0?Cn.Never({...t}):this.Create({...t,[ft]:"Union",anyOf:n})}Uint8Array(n={}){return this.Create({...n,[ft]:"Uint8Array",type:"object",instanceOf:"Uint8Array"})}Unknown(n={}){return this.Create({...n,[ft]:"Unknown"})}Unsafe(n={}){return this.Create({...n,[ft]:n[ft]||"Unsafe"})}Void(n={}){return this.Create({...n,[ft]:"Void",type:"null",typeOf:"Void"})}Create(n){return n}Clone(n){let t=i=>typeof i=="object"&&i!==null&&!Array.isArray(i),e=i=>typeof i=="object"&&i!==null&&Array.isArray(i);return t(n)?Object.keys(n).reduce((i,a)=>({...i,[a]:this.Clone(n[a])}),Object.getOwnPropertySymbols(n).reduce((i,a)=>({...i,[a]:this.Clone(n[a])}),{})):e(n)?n.map(i=>this.Clone(i)):n}},Cn=new $S,Ue=class{constructor(n,t){Object.defineProperty(this,"index",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.index=n,this.fields=t}},ci={Integer:function(n){let t=Cn.Unsafe({dataType:"integer"});return n&&Object.entries(n).forEach(([e,i])=>{t[e]=i}),t},Bytes:function(n){let t=Cn.Unsafe({dataType:"bytes"});return n&&Object.entries(n).forEach(([e,i])=>{t[e]=i}),t},Boolean:function(){return Cn.Unsafe({anyOf:[{title:"False",dataType:"constructor",index:0,fields:[]},{title:"True",dataType:"constructor",index:1,fields:[]}]})},Any:function(){return Cn.Unsafe({description:"Any Data."})},Array:function(n,t){let e=Cn.Array(n);return lc(e,{dataType:"list",items:n}),t&&Object.entries(t).forEach(([i,a])=>{e[i]=a}),e},Map:function(n,t,e){let i=Cn.Unsafe({dataType:"map",keys:n,values:t});return e&&Object.entries(e).forEach(([a,s])=>{i[a]=s}),i},Object:function(n,t){let e=Cn.Object(n);return lc(e,{anyOf:[{dataType:"constructor",index:0,fields:Object.entries(n).map(([i,a])=>({...a,title:i}))}]}),e.anyOf[0].hasConstr=typeof(t==null?void 0:t.hasConstr)>"u"||t.hasConstr,e},Enum:function(n){let t=Cn.Union(n);return lc(t,{anyOf:n.map((e,i)=>e.anyOf[0].fields.length===0?{...e.anyOf[0],index:i}:{dataType:"constructor",title:(()=>{let a=e.anyOf[0].fields[0].title;if(a.charAt(0)!==a.charAt(0).toUpperCase())throw new Error(`Enum '${a}' needs to start with an uppercase letter.`);return e.anyOf[0].fields[0].title})(),index:i,fields:e.anyOf[0].fields[0].items||e.anyOf[0].fields[0].anyOf[0].fields})}),t},Tuple:function(n,t){let e=Cn.Tuple(n);return lc(e,{dataType:"list",items:n}),t&&Object.entries(t).forEach(([i,a])=>{e[i]=a}),e},Literal:function(n){if(n.charAt(0)!==n.charAt(0).toUpperCase())throw new Error(`Enum '${n}' needs to start with an uppercase letter.`);let t=Cn.Literal(n);return lc(t,{anyOf:[{dataType:"constructor",title:n,index:0,fields:[]}]}),t},Nullable:function(n){return Cn.Unsafe({anyOf:[{title:"Some",description:"An optional value.",dataType:"constructor",index:0,fields:[n]},{title:"None",description:"Nothing.",dataType:"constructor",index:1,fields:[]}]})},to:HS,from:WS,fromJson:VS,toJson:KS,void:function(){return"d87980"},castFrom:En,castTo:pr};function HS(n,t){function e(a){try{if(typeof a=="bigint")return st.new_integer(G_.from_str(a.toString()));if(typeof a=="string")return st.new_bytes(J(a));if(a instanceof Ue){let{index:s,fields:_}=a,c=ce.new();return _.forEach(d=>c.add(e(d))),st.new_constr_plutus_data(ga.new(O.from_str(s.toString()),c))}else if(a instanceof Array){let s=ce.new();return a.forEach(_=>s.add(e(_))),st.new_list(s)}else if(a instanceof Map){let s=Ma.new();for(let[_,c]of a.entries())s.insert(e(_),e(c));return st.new_map(s)}throw new Error("Unsupported type")}catch(s){throw new Error("Could not serialize the data: "+s)}}let i=t?pr(n,t):n;return _t(e(i).to_bytes())}function WS(n,t){function e(a){if(a.kind()===0){let s=a.as_constr_plutus_data(),_=s.data(),c=[];for(let d=0;d<_.len();d++)c.push(e(_.get(d)));return new Ue(parseInt(s.alternative().to_str()),c)}else if(a.kind()===1){let s=a.as_map(),_=new Map,c=s.keys();for(let d=0;dt(i));if(e instanceof Object){let i=new Map;return Object.entries(e).forEach(([a,s])=>{i.set(t(a),t(s))}),i}throw new Error("Unsupported type")}return t(n)}function KS(n){function t(e){if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&!isNaN(parseInt(e))&&e.slice(-1)==="n"){let i=typeof e=="string"?BigInt(e.slice(0,-1)):e;return parseInt(i.toString())}if(typeof e=="string")try{return new TextDecoder(void 0,{fatal:!0}).decode(J(e))}catch{return"0x"+_t(J(e))}if(e instanceof Array)return e.map(i=>t(i));if(e instanceof Map){let i={};return e.forEach((a,s)=>{let _=t(s);if(typeof _!="string"&&typeof _!="number")throw new Error("Unsupported type (Note: Only bytes or integers can be keys of a JSON object)");i[_]=t(a)}),i}throw new Error("Unsupported type (Note: Constructor cannot be converted to JSON)")}return t(n)}function En(n,t){let e=t;if(!e)throw new Error("Could not type cast data.");switch((e.anyOf?"enum":"")||e.dataType){case"integer":{if(typeof n!="bigint")throw new Error("Could not type cast to integer.");return pv(n,e),n}case"bytes":{if(typeof n!="string")throw new Error("Could not type cast to bytes.");return fv(n,e),n}case"constructor":{if(bv(e)){if(!(n instanceof Ue)||n.index!==0||n.fields.length!==0)throw new Error("Could not type cast to void.");return}else if(n instanceof Ue&&n.index===e.index&&(e.hasConstr||e.hasConstr===void 0)){let i={};if(e.fields.length!==n.fields.length)throw new Error("Could not type cast to object. Fields do not match.");return e.fields.forEach((a,s)=>{let _=a.title||"wrapper";if(/[A-Z]/.test(_[0]))throw new Error("Could not type cast to object. Object properties need to start with a lowercase letter.");i[_]=En(n.fields[s],a)}),i}else if(n instanceof Array&&!e.hasConstr&&e.hasConstr!==void 0){let i={};if(e.fields.length!==n.length)throw new Error("Could not ype cast to object. Fields do not match.");return e.fields.forEach((a,s)=>{let _=a.title||"wrapper";if(/[A-Z]/.test(_[0]))throw new Error("Could not type cast to object. Object properties need to start with a lowercase letter.");i[_]=En(n[s],a)}),i}throw new Error("Could not type cast to object.")}case"enum":{if(e.anyOf.length===1)return En(n,e.anyOf[0]);if(!(n instanceof Ue))throw new Error("Could not type cast to enum.");let i=e.anyOf.find(a=>a.index===n.index);if(!i||i.fields.length!==n.fields.length)throw new Error("Could not type cast to enum.");if(gv(e)){if(n.fields.length!==0)throw new Error("Could not type cast to boolean.");switch(n.index){case 0:return!1;case 1:return!0}throw new Error("Could not type cast to boolean.")}else if(yv(e)){switch(n.index){case 0:{if(n.fields.length!==1)throw new Error("Could not type cast to nullable object.");return En(n.fields[0],e.anyOf[0].fields[0])}case 1:{if(n.fields.length!==0)throw new Error("Could not type cast to nullable object.");return null}}throw new Error("Could not type cast to nullable object.")}switch(i.dataType){case"constructor":if(i.fields.length===0){if(/[A-Z]/.test(i.title[0]))return i.title;throw new Error("Could not type cast to enum.")}else{if(!/[A-Z]/.test(i.title))throw new Error("Could not type cast to enum. Enums need to start with an uppercase letter.");if(i.fields.length!==n.fields.length)throw new Error("Could not type cast to enum.");let a=i.fields[0].title?Object.fromEntries(i.fields.map((s,_)=>[s.title,En(n.fields[_],s)])):i.fields.map((s,_)=>En(n.fields[_],s));return{[i.title]:a}}}throw new Error("Could not type cast to enum.")}case"list":if(e.items instanceof Array){if(n instanceof Ue&&n.index===0&&e.hasConstr)return n.fields.map((i,a)=>En(i,e.items[a]));if(n instanceof Array&&!e.hasConstr)return n.map((i,a)=>En(i,e.items[a]));throw new Error("Could not type cast to tuple.")}else{if(!(n instanceof Array))throw new Error("Could not type cast to array.");return wv(n,e),n.map(i=>En(i,e.items))}case"map":{if(!(n instanceof Map))throw new Error("Could not type cast to map.");hv(n,e);let i=new Map;for(let[a,s]of n.entries())i.set(En(a,e.keys),En(s,e.values));return i}case void 0:return n}throw new Error("Could not type cast data.")}function pr(n,t){let e=t;if(!e)throw new Error("Could not type cast struct.");switch((e.anyOf?"enum":"")||e.dataType){case"integer":{if(typeof n!="bigint")throw new Error("Could not type cast to integer.");return pv(n,e),n}case"bytes":{if(typeof n!="string")throw new Error("Could not type cast to bytes.");return fv(n,e),n}case"constructor":{if(bv(e)){if(n!==void 0)throw new Error("Could not type cast to void.");return new Ue(0,[])}else if(typeof n!="object"||n===null||e.fields.length!==Object.keys(n).length)throw new Error("Could not type cast to constructor.");let i=e.fields.map(a=>pr(n[a.title||"wrapper"],a));return e.hasConstr||e.hasConstr===void 0?new Ue(e.index,i):i}case"enum":{if(e.anyOf.length===1)return pr(n,e.anyOf[0]);if(gv(e)){if(typeof n!="boolean")throw new Error("Could not type cast to boolean.");return new Ue(n?1:0,[])}else if(yv(e)){if(n===null)return new Ue(1,[]);{let i=e.anyOf[0].fields;if(i.length!==1)throw new Error("Could not type cast to nullable object.");return new Ue(0,[pr(n,i[0])])}}switch(typeof n){case"string":{if(!/[A-Z]/.test(n[0]))throw new Error("Could not type cast to enum. Enum needs to start with an uppercase letter.");let i=e.anyOf.findIndex(a=>a.dataType==="constructor"&&a.fields.length===0&&a.title===n);if(i===-1)throw new Error("Could not type cast to enum.");return new Ue(i,[])}case"object":{if(n===null)throw new Error("Could not type cast to enum.");let i=Object.keys(n)[0];if(!/[A-Z]/.test(i))throw new Error("Could not type cast to enum. Enum needs to start with an uppercase letter.");let a=e.anyOf.find(_=>_.dataType==="constructor"&&_.title===i);if(!a)throw new Error("Could not type cast to enum.");let s=n[i];return new Ue(a.index,s instanceof Array?s.map((_,c)=>pr(_,a.fields[c])):a.fields.map(_=>{let[c,d]=Object.entries(s).find(([f])=>f===_.title);return pr(d,_)}))}}throw new Error("Could not type cast to enum.")}case"list":{if(!(n instanceof Array))throw new Error("Could not type cast to array/tuple.");if(e.items instanceof Array){let i=n.map((a,s)=>pr(a,e.items[s]));return e.hasConstr?new Ue(0,i):i}else return wv(n,e),n.map(i=>pr(i,e.items))}case"map":{if(!(n instanceof Map))throw new Error("Could not type cast to map.");hv(n,e);let i=new Map;for(let[a,s]of n.entries())i.set(pr(a,e.keys),pr(s,e.values));return i}case void 0:return n}throw new Error("Could not type cast struct.")}function pv(n,t){if(t.minimum&&nBigInt(t.maximum))throw new Error(`Integer ${n} is above the maxiumum ${t.maximum}.`);if(t.exclusiveMinimum&&n<=BigInt(t.exclusiveMinimum))throw new Error(`Integer ${n} is below the exclusive minimum ${t.exclusiveMinimum}.`);if(t.exclusiveMaximum&&n>=BigInt(t.exclusiveMaximum))throw new Error(`Integer ${n} is above the exclusive maximum ${t.exclusiveMaximum}.`)}function fv(n,t){if(t.enum&&!t.enum.some(e=>e===n))throw new Error(`None of the keywords match with '${n}'.`);if(t.minLength&&n.length/2t.maxLength)throw new Error(`Bytes can have a length of at most ${t.minLength} bytes.`)}function wv(n,t){if(t.minItems&&n.lengtht.maxItems)throw new Error(`Array can contain at most ${t.maxItems} items.`);if(t.uniqueItems&&new Set(n).size!==n.length)throw new Error("Array constains duplicates.")}function hv(n,t){if(t.minItems&&n.sizet.maxItems)throw new Error(`Map can contain at most ${t.maxItems} items.`)}function gv(n){var t,e;return n.anyOf&&((t=n.anyOf[0])==null?void 0:t.title)==="False"&&((e=n.anyOf[1])==null?void 0:e.title)==="True"}function bv(n){return n.index===0&&n.fields.length===0}function yv(n){var t,e;return n.anyOf&&((t=n.anyOf[0])==null?void 0:t.title)==="Some"&&((e=n.anyOf[1])==null?void 0:e.title)==="None"}function lc(n,t){Object.keys(n).forEach(e=>{delete n[e]}),Object.assign(n,t)}var qS=class{constructor(n){Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n}validatorToAddress(n,t){let e=this.validatorToScriptHash(n);return t?er.new(qs(this.lucid.network),q.from_scripthash(dt.from_hex(e)),t.type==="Key"?q.from_keyhash(et.from_hex(t.hash)):q.from_scripthash(dt.from_hex(t.hash))).to_address().to_bech32(void 0):Mn.new(qs(this.lucid.network),q.from_scripthash(dt.from_hex(e))).to_address().to_bech32(void 0)}credentialToAddress(n,t){return t?er.new(qs(this.lucid.network),n.type==="Key"?q.from_keyhash(et.from_hex(n.hash)):q.from_scripthash(dt.from_hex(n.hash)),t.type==="Key"?q.from_keyhash(et.from_hex(t.hash)):q.from_scripthash(dt.from_hex(t.hash))).to_address().to_bech32(void 0):Mn.new(qs(this.lucid.network),n.type==="Key"?q.from_keyhash(et.from_hex(n.hash)):q.from_scripthash(dt.from_hex(n.hash))).to_address().to_bech32(void 0)}validatorToRewardAddress(n){let t=this.validatorToScriptHash(n);return It.new(qs(this.lucid.network),q.from_scripthash(dt.from_hex(t))).to_address().to_bech32(void 0)}credentialToRewardAddress(n){return It.new(qs(this.lucid.network),n.type==="Key"?q.from_keyhash(et.from_hex(n.hash)):q.from_scripthash(dt.from_hex(n.hash))).to_address().to_bech32(void 0)}validatorToScriptHash(n){switch(n.type){case"Native":return Nt.from_bytes(J(n.script)).hash(wn.NativeScript).to_hex();case"PlutusV1":return bt.from_bytes(J(li(n.script))).hash(wn.PlutusV1).to_hex();case"PlutusV2":return bt.from_bytes(J(li(n.script))).hash(wn.PlutusV2).to_hex();default:throw new Error("No variant matched")}}mintingPolicyToId(n){return this.validatorToScriptHash(n)}datumToHash(n){return To(st.from_bytes(J(n))).to_hex()}scriptHashToCredential(n){return{type:"Script",hash:n}}keyHashToCredential(n){return{type:"Key",hash:n}}generatePrivateKey(){return JS()}generateSeedPhrase(){return Zp()}unixTimeToSlot(n){return US(n,id[this.lucid.network])}slotToUnixTime(n){return BS(n,id[this.lucid.network])}getAddressDetails(n){return Wn(n)}nativeScriptFromJson(n){return n3(n)}paymentCredentialOf(n){return Ks(n)}stakeCredentialOf(n){return QS(n)}};function sd(n){try{return jt.from_bytes(J(n))}catch{try{return jt.from_bech32(n)}catch{throw new Error("Could not deserialize address.")}}}function Wn(n){try{let t=er.from_address(sd(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:_t(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.payment_cred().to_scripthash().to_bytes())},i=t.stake_cred().kind()===0?{type:"Key",hash:_t(t.stake_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.stake_cred().to_scripthash().to_bytes())};return{type:"Base",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:_t(t.to_address().to_bytes())},paymentCredential:e,stakeCredential:i}}catch{}try{let t=Mn.from_address(sd(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:_t(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.payment_cred().to_scripthash().to_bytes())};return{type:"Enterprise",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:_t(t.to_address().to_bytes())},paymentCredential:e}}catch{}try{let t=Li.from_address(sd(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:_t(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.payment_cred().to_scripthash().to_bytes())};return{type:"Pointer",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:_t(t.to_address().to_bytes())},paymentCredential:e}}catch{}try{let t=It.from_address(sd(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:_t(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.payment_cred().to_scripthash().to_bytes())};return{type:"Reward",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:_t(t.to_address().to_bytes())},stakeCredential:e}}catch{}try{let t=(e=>{try{return ze.from_bytes(J(e))}catch{try{return ze.from_base58(e)}catch{throw new Error("Could not deserialize address.")}}})(n);return{type:"Byron",networkId:t.network_id(),address:{bech32:"",hex:_t(t.to_address().to_bytes())}}}catch{}throw new Error("No address type matched for: "+n)}function Ks(n){let{paymentCredential:t}=Wn(n);if(!t)throw new Error("The specified address does not contain a payment credential.");return t}function QS(n){let{stakeCredential:t}=Wn(n);if(!t)throw new Error("The specified address does not contain a stake credential.");return t}function JS(){return Kt.generate_ed25519().to_bech32()}function Zp(){return zS(256)}function XS(n){let t={};t.lovelace=BigInt(n.coin().to_str());let e=n.multiasset();if(e){let i=e.keys();for(let a=0;as!=="lovelace").map(s=>s.slice(0,56)))).forEach(s=>{let _=i.filter(d=>d.slice(0,56)===s),c=tr.new();_.forEach(d=>{c.insert(ie.new(J(d.slice(56))),O.from_str(n[d].toString()))}),t.insert(dt.from_bytes(J(s)),c)});let a=Rt.new(O.from_str(e?e.toString():"0"));return(i.length>1||!e)&&a.set_multiasset(t),a}function GS(n){switch(n.get().kind()){case 0:return{type:"Native",script:_t(n.get().as_native().to_bytes())};case 1:return{type:"PlutusV1",script:_t(n.get().as_plutus_v1().to_bytes())};case 2:return{type:"PlutusV2",script:_t(n.get().as_plutus_v2().to_bytes())};default:throw new Error("No variant matched.")}}function mv(n){switch(n.type){case"Native":return Un.new(De.new_native(Nt.from_bytes(J(n.script))));case"PlutusV1":return Un.new(De.new_plutus_v1(bt.from_bytes(J(li(n.script)))));case"PlutusV2":return Un.new(De.new_plutus_v2(bt.from_bytes(J(li(n.script)))));default:throw new Error("No variant matched.")}}function dc(n){let t=(()=>{try{return jt.from_bech32(n.address)}catch{return ze.from_base58(n.address).to_address()}})(),e=Yt.new(t,tf(n.assets));return n.datumHash&&e.set_datum(Gt.new_data_hash(se.from_bytes(J(n.datumHash)))),!n.datumHash&&n.datum&&e.set_datum(Gt.new_data(zn.new(st.from_bytes(J(n.datum))))),n.scriptRef&&e.set_script_ref(mv(n.scriptRef)),Ae.new(tn.new(ye.from_bytes(J(n.txHash)),O.from_str(n.outputIndex.toString())),e)}function vv(n){var t,e,i,a,s,_,c;return{txHash:_t(n.input().transaction_id().to_bytes()),outputIndex:parseInt(n.input().index().to_str()),assets:XS(n.output().amount()),address:n.output().address().as_byron()?(t=n.output().address().as_byron())==null?void 0:t.to_base58():n.output().address().to_bech32(void 0),datumHash:(a=(i=(e=n.output())==null?void 0:e.datum())==null?void 0:i.as_data_hash())==null?void 0:a.to_hex(),datum:((_=(s=n.output())==null?void 0:s.datum())==null?void 0:_.as_data())&&_t(n.output().datum().as_data().get().to_bytes()),scriptRef:((c=n.output())==null?void 0:c.script_ref())&&GS(n.output().script_ref())}}function qs(n){switch(n){case"Preview":return 0;case"Preprod":return 0;case"Custom":return 0;case"Mainnet":return 1;default:throw new Error("Network not found")}}function J(n){return NS(n)}function _t(n){return ES(n)}function Ko(n){return new TextDecoder().decode(iv(new TextEncoder().encode(n)))}function kv(n){return _t(new TextEncoder().encode(n))}function xv(n){return AS(J(n)).toString(16).padStart(2,"0")}function YS(n){if(n<0||n>65535)throw new Error(`Label ${n} out of range: min label 1 - max label 65535.`);let t=n.toString(16).padStart(4,"0");return"0"+t+xv(t)+"0"}function ZS(n){if(n.length!==8||!(n[0]==="0"&&n[7]==="0"))return null;let t=n.slice(1,5),e=parseInt(t,16);return n.slice(5,7)===xv(t)?e:null}function t3(n,t,e){let i=Number.isInteger(e)?YS(e):"",a=t||"";if((a+i).length>64)throw new Error("Asset name size exceeds 32 bytes.");if(n.length!==56)throw new Error(`Policy id invalid: ${n}.`);return n+i+a}function e3(n){let t=n.slice(0,56),e=n.slice(56)||null,i=ZS(n.slice(56,64)),a=(Number.isInteger(i)?n.slice(64):n.slice(56))||null;return{policyId:t,assetName:e,name:a,label:i}}function n3(n){return{type:"Native",script:_t(Qp(JSON.stringify(n),"",oy.Node).to_bytes())}}function r3(n,t,e){let i=e?ci.castTo(t,e):t;return _t(Jp(ce.from_bytes(J(ci.to(i))),bt.from_bytes(J(li(n)))).to_bytes())}function li(n){try{return bt.from_bytes(bt.from_bytes(J(n)).bytes()),n}catch{return _t(bt.new(J(n)).to_bytes())}}var a3=class{constructor(n,t){Object.defineProperty(this,"txSigned",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n,this.txSigned=t}async submit(){return await(this.lucid.wallet||this.lucid.provider).submitTx(_t(this.txSigned.to_bytes()))}toString(){return _t(this.txSigned.to_bytes())}toHash(){return fa(this.txSigned.body()).to_hex()}},jv=class{constructor(n,t){Object.defineProperty(this,"txComplete",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"witnessSetBuilder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tasks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fee",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exUnits",{enumerable:!0,configurable:!0,writable:!0,value:null}),this.lucid=n,this.txComplete=t,this.witnessSetBuilder=Xa.new(),this.tasks=[],this.fee=parseInt(t.body().fee().to_str());let e=t.witness_set().redeemers();if(e){let i={cpu:0,mem:0};for(let a=0;a{let n=await this.lucid.wallet.signTx(this.txComplete);this.witnessSetBuilder.add_existing(n)}),this}signWithPrivateKey(n){let t=Kt.from_bech32(n),e=Io(fa(this.txComplete.body()),t);return this.witnessSetBuilder.add_vkey(e),this}async partialSign(){let n=await this.lucid.wallet.signTx(this.txComplete);return this.witnessSetBuilder.add_existing(n),_t(n.to_bytes())}partialSignWithPrivateKey(n){let t=Kt.from_bech32(n),e=Io(fa(this.txComplete.body()),t);this.witnessSetBuilder.add_vkey(e);let i=Xa.new();return i.add_vkey(e),_t(i.build().to_bytes())}assemble(n){return n.forEach(t=>{let e=Be.from_bytes(J(t));this.witnessSetBuilder.add_existing(e)}),this}async complete(){for(let t of this.tasks)await t();this.witnessSetBuilder.add_existing(this.txComplete.witness_set());let n=xn.new(this.txComplete.body(),this.witnessSetBuilder.build(),this.txComplete.auxiliary_data());return new a3(this.lucid,n)}toString(){return _t(this.txComplete.to_bytes())}toHash(){return fa(this.txComplete.body()).to_hex()}},i3=class{constructor(n){Object.defineProperty(this,"txBuilder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tasks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n,this.txBuilder=Do.new(this.lucid.txBuilderConfig),this.tasks=[]}readFrom(n){return this.tasks.push(async t=>{for(let e of n){if(e.datumHash){e.datum=ci.to(await t.lucid.datumOf(e));let a=st.from_bytes(J(e.datum));t.txBuilder.add_plutus_data(a)}let i=dc(e);t.txBuilder.add_reference_input(i)}}),this}collectFrom(n,t){return this.tasks.push(async e=>{for(let i of n){i.datumHash&&!i.datum&&(i.datum=ci.to(await e.lucid.datumOf(i)));let a=dc(i);e.txBuilder.add_input(a,t&&Ee.new_plutus_witness(mn.new(st.from_bytes(J(t)),i.datumHash&&i.datum?st.from_bytes(J(i.datum)):void 0,void 0)))}}),this}mintAssets(n,t){return this.tasks.push(e=>{let i=Object.keys(n),a=i[0].slice(0,56),s=An.new();i.forEach(c=>{if(c.slice(0,56)!==a)throw new Error("Only one policy id allowed. You can chain multiple mintAssets functions together if you need to mint assets with different policy ids.");s.insert(ie.new(J(c.slice(56))),_e.from_str(n[c].toString()))});let _=dt.from_bytes(J(a));e.txBuilder.add_mint(_,s,t?Ee.new_plutus_witness(mn.new(st.from_bytes(J(t)),void 0,void 0)):void 0)}),this}payToAddress(n,t){return this.tasks.push(e=>{let i=Yt.new(uc(n,e.lucid),tf(t));e.txBuilder.add_output(i)}),this}payToAddressWithData(n,t,e){return this.tasks.push(i=>{if(typeof t=="string"&&(t={asHash:t}),[t.hash,t.asHash,t.inline].filter(_=>_).length>1)throw new Error("Not allowed to set hash, asHash and inline at the same time.");let a=Yt.new(uc(n,i.lucid),tf(e));if(t.hash)a.set_datum(Gt.new_data_hash(se.from_hex(t.hash)));else if(t.asHash){let _=st.from_bytes(J(t.asHash));a.set_datum(Gt.new_data_hash(To(_))),i.txBuilder.add_plutus_data(_)}else if(t.inline){let _=st.from_bytes(J(t.inline));a.set_datum(Gt.new_data(zn.new(_)))}let s=t.scriptRef;s&&a.set_script_ref(mv(s)),i.txBuilder.add_output(a)}),this}payToContract(n,t,e){if(typeof t=="string"&&(t={asHash:t}),!(t.hash||t.asHash||t.inline))throw new Error("No datum set. Script output becomes unspendable without datum.");return this.payToAddressWithData(n,t,e)}delegateTo(n,t,e){return this.tasks.push(i=>{let a=i.lucid.utils.getAddressDetails(n);if(a.type!=="Reward"||!a.stakeCredential)throw new Error("Not a reward address provided.");let s=a.stakeCredential.type==="Key"?q.from_keyhash(et.from_bytes(J(a.stakeCredential.hash))):q.from_scripthash(dt.from_bytes(J(a.stakeCredential.hash)));i.txBuilder.add_certificate(Ht.new_stake_delegation(Ar.new(s,et.from_bech32(t))),e?Ee.new_plutus_witness(mn.new(st.from_bytes(J(e)),void 0,void 0)):void 0)}),this}registerStake(n){return this.tasks.push(t=>{let e=t.lucid.utils.getAddressDetails(n);if(e.type!=="Reward"||!e.stakeCredential)throw new Error("Not a reward address provided.");let i=e.stakeCredential.type==="Key"?q.from_keyhash(et.from_bytes(J(e.stakeCredential.hash))):q.from_scripthash(dt.from_bytes(J(e.stakeCredential.hash)));t.txBuilder.add_certificate(Ht.new_stake_registration(Ur.new(i)),void 0)}),this}deregisterStake(n,t){return this.tasks.push(e=>{let i=e.lucid.utils.getAddressDetails(n);if(i.type!=="Reward"||!i.stakeCredential)throw new Error("Not a reward address provided.");let a=i.stakeCredential.type==="Key"?q.from_keyhash(et.from_bytes(J(i.stakeCredential.hash))):q.from_scripthash(dt.from_bytes(J(i.stakeCredential.hash)));e.txBuilder.add_certificate(Ht.new_stake_deregistration(Br.new(a)),t?Ee.new_plutus_witness(mn.new(st.from_bytes(J(t)),void 0,void 0)):void 0)}),this}registerPool(n){return this.tasks.push(async t=>{let e=await Sv(n,t.lucid),i=Ht.new_pool_registration(e);t.txBuilder.add_certificate(i,void 0)}),this}updatePool(n){return this.tasks.push(async t=>{let e=await Sv(n,t.lucid);e.set_is_update(!0);let i=Ht.new_pool_registration(e);t.txBuilder.add_certificate(i,void 0)}),this}retirePool(n,t){return this.tasks.push(e=>{let i=Ht.new_pool_retirement(Ir.new(et.from_bech32(n),t));e.txBuilder.add_certificate(i,void 0)}),this}withdraw(n,t,e){return this.tasks.push(i=>{i.txBuilder.add_withdrawal(It.from_address(uc(n,i.lucid)),O.from_str(t.toString()),e?Ee.new_plutus_witness(mn.new(st.from_bytes(J(e)),void 0,void 0)):void 0)}),this}addSigner(n){let t=this.lucid.utils.getAddressDetails(n);if(!t.paymentCredential&&!t.stakeCredential)throw new Error("Not a valid address.");let e=t.type==="Reward"?t.stakeCredential:t.paymentCredential;if(e.type==="Script")throw new Error("Only key hashes are allowed as signers.");return this.addSignerKey(e.hash)}addSignerKey(n){return this.tasks.push(t=>{t.txBuilder.add_required_signer(et.from_bytes(J(n)))}),this}validFrom(n){return this.tasks.push(t=>{let e=t.lucid.utils.unixTimeToSlot(n);t.txBuilder.set_validity_start_interval(O.from_str(e.toString()))}),this}validTo(n){return this.tasks.push(t=>{let e=t.lucid.utils.unixTimeToSlot(n);t.txBuilder.set_ttl(O.from_str(e.toString()))}),this}attachMetadata(n,t){return this.tasks.push(e=>{e.txBuilder.add_json_metadatum(O.from_str(n.toString()),JSON.stringify(t))}),this}attachMetadataWithConversion(n,t){return this.tasks.push(e=>{e.txBuilder.add_json_metadatum_with_schema(O.from_str(n.toString()),JSON.stringify(t),sy.BasicConversions)}),this}addNetworkId(n){return this.tasks.push(t=>{t.txBuilder.set_network_id(yn.from_bytes(J(n.toString(16).padStart(2,"0"))))}),this}attachSpendingValidator(n){return this.tasks.push(t=>{od(t,n)}),this}attachMintingPolicy(n){return this.tasks.push(t=>{od(t,n)}),this}attachCertificateValidator(n){return this.tasks.push(t=>{od(t,n)}),this}attachWithdrawalValidator(n){return this.tasks.push(t=>{od(t,n)}),this}compose(n){return n&&(this.tasks=this.tasks.concat(n.tasks)),this}async complete(n){var a,s,_,c,d,f,g,k,m,x,S,j,P;if([(s=(a=n==null?void 0:n.change)==null?void 0:a.outputData)==null?void 0:s.hash,(c=(_=n==null?void 0:n.change)==null?void 0:_.outputData)==null?void 0:c.asHash,(f=(d=n==null?void 0:n.change)==null?void 0:d.outputData)==null?void 0:f.inline].filter(v=>v).length>1)throw new Error("Not allowed to set hash, asHash and inline at the same time.");let t=this.tasks.shift();for(;t;)await t(this),t=this.tasks.shift();let e=await this.lucid.wallet.getUtxosCore(),i=uc(((g=n==null?void 0:n.change)==null?void 0:g.address)||await this.lucid.wallet.address(),this.lucid);return(n!=null&&n.coinSelection||(n==null?void 0:n.coinSelection)===void 0)&&this.txBuilder.add_inputs_from(e,i,Uint32Array.from([200,1e3,1500,800,800,5e3])),this.txBuilder.balance(i,(m=(k=n==null?void 0:n.change)==null?void 0:k.outputData)!=null&&m.hash?Gt.new_data_hash(se.from_hex(n.change.outputData.hash)):(S=(x=n==null?void 0:n.change)==null?void 0:x.outputData)!=null&&S.asHash?(this.txBuilder.add_plutus_data(st.from_bytes(J(n.change.outputData.asHash))),Gt.new_data_hash(To(st.from_bytes(J(n.change.outputData.asHash))))):(P=(j=n==null?void 0:n.change)==null?void 0:j.outputData)!=null&&P.inline?Gt.new_data(zn.new(st.from_bytes(J(n.change.outputData.inline)))):void 0),new jv(this.lucid,await this.txBuilder.construct(e,i,(n==null?void 0:n.nativeUplc)===void 0?!0:n==null?void 0:n.nativeUplc))}async toString(){let n=this.tasks.shift();for(;n;)await n(this),n=this.tasks.shift();return _t(this.txBuilder.to_bytes())}};function od(n,{type:t,script:e}){if(t==="Native")return n.txBuilder.add_native_script(Nt.from_bytes(J(e)));if(t==="PlutusV1")return n.txBuilder.add_plutus_script(bt.from_bytes(J(li(e))));if(t==="PlutusV2")return n.txBuilder.add_plutus_v2_script(bt.from_bytes(J(li(e))));throw new Error("No variant matched.")}async function Sv(n,t){let e=ee.new();n.owners.forEach(_=>{let{stakeCredential:c}=t.utils.getAddressDetails(_);if((c==null?void 0:c.type)==="Key")e.add(et.from_hex(c.hash));else throw new Error("Only key hashes allowed for pool owners.")});let i=n.metadataUrl?await fetch(n.metadataUrl).then(_=>_.arrayBuffer()):null,a=i?Nr.from_bytes(qp(new Uint8Array(i))):null,s=zr.new();return n.relays.forEach(_=>{switch(_.type){case"SingleHostIp":{let c=_.ipV4?xr.new(new Uint8Array(_.ipV4.split(".").map(f=>parseInt(f)))):void 0,d=_.ipV6?jr.new(J(_.ipV6.replaceAll(":",""))):void 0;s.add(Ye.new_single_host_addr(Mr.new(_.port,c,d)));break}case"SingleHostDomainName":{s.add(Ye.new_single_host_name(Dr.new(_.port,ba.new(_.domainName))));break}case"MultiHost":{s.add(Ye.new_multi_host_name(Cr.new(ya.new(_.domainName))));break}}}),Pr.new(Rr.new(et.from_bech32(n.poolId),jn.from_hex(n.vrfKeyHash),O.from_str(n.pledge.toString()),O.from_str(n.cost.toString()),ot.from_float(n.margin),It.from_address(uc(n.rewardAddress,t)),e,s,a?Or.new(or.new(n.metadataUrl),a):void 0))}function uc(n,t){let{type:e,networkId:i}=t.utils.getAddressDetails(n),a=qs(t.network);if(i!==a)throw new Error(`Invalid address: Expected address with network id ${a}, but got ${i}`);return e==="Byron"?ze.from_base58(n).to_address():jt.from_bech32(n)}function s3(n,t={addressType:"Base",accountIndex:0,network:"Mainnet"}){function e(m){if(typeof m!="number")throw new Error("Type number required here!");return 2147483648+m}let i=TS(n),a=Fn.from_bip39_entropy(J(i),t.password?new TextEncoder().encode(t.password):new Uint8Array).derive(e(1852)).derive(e(1815)).derive(e(t.accountIndex)),s=a.derive(0).derive(0).to_raw_key(),_=a.derive(2).derive(0).to_raw_key(),c=s.to_public().hash(),d=_.to_public().hash(),f=t.network==="Mainnet"?1:0,g=t.addressType==="Base"?er.new(f,q.from_keyhash(c),q.from_keyhash(d)).to_address().to_bech32(void 0):Mn.new(f,q.from_keyhash(c)).to_address().to_bech32(void 0),k=t.addressType==="Base"?It.new(f,q.from_keyhash(d)).to_address().to_bech32(void 0):null;return{address:g,rewardAddress:k,paymentKey:s.to_bech32(),stakeKey:t.addressType==="Base"?_.to_bech32():null}}function o3(n,t,e){let i=[],a=n.body().inputs();for(let x=0;xy.txHash===j&&y.outputIndex===P);if(v){let{paymentCredential:y}=Wn(v.address);i.push(y==null?void 0:y.hash)}}let s=n.body();function _(x){var j,P,v,y,b,F,D;let S=x.certs();if(S)for(let U=0;Uy.txHash===j&&y.outputIndex===P);if(v){let{paymentCredential:y}=Wn(v.address);i.push(y==null?void 0:y.hash)}}return i.filter(x=>t.includes(x))}function ef(n,t,e){let i=Hn.new();i.set_algorithm_id(yt.from_algorithm_id(td.EdDSA)),i.set_header(yt.new_text("address"),Ot.new_bytes(J(n)));let a=nn.new(i),s=Hn.new(),_=qt.new(a,s),c=Lo.new(_,J(t),!1),d=c.make_data_to_sign().to_bytes(),f=Kt.from_bech32(e),g=f.sign(d).to_bytes(),k=c.build(g),m=ai.new(yt.from_key_type(S0.OKP));return m.set_algorithm_id(yt.from_algorithm_id(td.EdDSA)),m.set_header(yt.new_int(Ne.new_negative(Wt.from_str("1"))),Ot.new_int(Ne.new_i32(6))),m.set_header(yt.new_int(Ne.new_negative(Wt.from_str("2"))),Ot.new_bytes(f.to_public().as_bytes())),{signature:_t(k.to_bytes()),key:_t(m.to_bytes())}}function _3(n,t,e,i){let a=Wr.from_bytes(J(i.signature)),s=ai.from_bytes(J(i.key)),_=a.headers().protected().deserialized_headers(),c=(()=>{var P;try{return _t((P=_.header(yt.new_text("address")))==null?void 0:P.as_bytes())}catch{throw new Error("No address found in signature.")}})(),d=(()=>{var P,v,y;try{let b=(P=_.algorithm_id())==null?void 0:P.as_int();return b!=null&&b.is_positive()?parseInt((v=b.as_positive())==null?void 0:v.to_str()):parseInt((y=b==null?void 0:b.as_negative())==null?void 0:y.to_str())}catch{throw new Error("Failed to retrieve Algorithm Id.")}})(),f=(()=>{var P,v,y;try{let b=(P=s.algorithm_id())==null?void 0:P.as_int();return b!=null&&b.is_positive()?parseInt((v=b.as_positive())==null?void 0:v.to_str()):parseInt((y=b==null?void 0:b.as_negative())==null?void 0:y.to_str())}catch{throw new Error("Failed to retrieve Algorithm Id.")}})(),g=(()=>{var P,v,y;try{let b=(P=s.header(yt.new_int(Ne.new_negative(Wt.from_str("1")))))==null?void 0:P.as_int();return b!=null&&b.is_positive()?parseInt((v=b.as_positive())==null?void 0:v.to_str()):parseInt((y=b==null?void 0:b.as_negative())==null?void 0:y.to_str())}catch{throw new Error("Failed to retrieve Curve.")}})(),k=(()=>{var P,v;try{let y=s.key_type().as_int();return y!=null&&y.is_positive()?parseInt((P=y.as_positive())==null?void 0:P.to_str()):parseInt((v=y==null?void 0:y.as_negative())==null?void 0:v.to_str())}catch{throw new Error("Failed to retrieve Key Type.")}})(),m=(()=>{var P;try{return kn.from_bytes((P=s.header(yt.new_int(Ne.new_negative(Wt.from_str("2")))))==null?void 0:P.as_bytes())}catch{throw new Error("No public key found.")}})(),x=(()=>{try{return _t(a.payload())}catch{throw new Error("No payload found.")}})(),S=Se.from_bytes(a.signature()),j=a.signed_data(void 0,void 0).to_bytes();return c!==n||t!==m.hash().to_hex()||d!==f&&d!==td.EdDSA||g!==6||k!==1||x!==e?!1:m.verify(j,S)}var c3=class{constructor(n,t,e){Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"address",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"payload",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n,this.address=t,this.payload=e}sign(){return this.lucid.wallet.signMessage(this.address,this.payload)}signWithPrivateKey(n){let{paymentCredential:t,stakeCredential:e,address:{hex:i}}=this.lucid.utils.getAddressDetails(this.address),a=(t==null?void 0:t.hash)||(e==null?void 0:e.hash),s=Kt.from_bech32(n).to_public().hash().to_hex();if(!a||a!==s)throw new Error(`Cannot sign message for address: ${this.address}.`);return ef(i,this.payload,n)}},Cv=class{constructor(n,t=kS){Object.defineProperty(this,"ledger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mempool",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"chain",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"blockHeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"slot",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"protocolParameters",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"datumTable",{enumerable:!0,configurable:!0,writable:!0,value:{}});let e="00".repeat(32);this.blockHeight=0,this.slot=0,this.time=Date.now(),this.ledger={},n.forEach(({address:i,assets:a},s)=>{this.ledger[e+s]={utxo:{txHash:e,outputIndex:s,address:i,assets:a},spent:!1}}),this.protocolParameters=t}now(){return this.time}awaitSlot(n=1){this.slot+=n,this.time+=n*1e3;let t=this.blockHeight;if(this.blockHeight=Math.floor(this.slot/20),this.blockHeight>t){for(let[e,{utxo:i,spent:a}]of Object.entries(this.mempool))this.ledger[e]={utxo:i,spent:a};for(let[e,{spent:i}]of Object.entries(this.ledger))i&&delete this.ledger[e];this.mempool={}}}awaitBlock(n=1){this.blockHeight+=n,this.slot+=n*20,this.time+=n*20*1e3;for(let[t,{utxo:e,spent:i}]of Object.entries(this.mempool))this.ledger[t]={utxo:e,spent:i};for(let[t,{spent:e}]of Object.entries(this.ledger))e&&delete this.ledger[t];this.mempool={}}getUtxos(n){let t=Object.values(this.ledger).flatMap(({utxo:e})=>{if(typeof n=="string")return n===e.address?e:[];{let{paymentCredential:i}=Wn(e.address);return(i==null?void 0:i.hash)===n.hash?e:[]}});return Promise.resolve(t)}getProtocolParameters(){return Promise.resolve(this.protocolParameters)}getDatum(n){return Promise.resolve(this.datumTable[n])}getUtxosWithUnit(n,t){let e=Object.values(this.ledger).flatMap(({utxo:i})=>{if(typeof n=="string")return n===i.address&&i.assets[t]>0n?i:[];{let{paymentCredential:a}=Wn(i.address);return(a==null?void 0:a.hash)===n.hash&&i.assets[t]>0n?i:[]}});return Promise.resolve(e)}getUtxosByOutRef(n){return Promise.resolve(n.flatMap(t=>{var e;return((e=this.ledger[t.txHash+t.outputIndex])==null?void 0:e.utxo)||[]}))}getUtxoByUnit(n){let t=Object.values(this.ledger).flatMap(({utxo:e})=>e.assets[n]>0n?e:[]);if(t.length>1)throw new Error("Unit needs to be an NFT or only held by one address.");return Promise.resolve(t[0])}getDelegation(n){var t,e,i,a;return Promise.resolve({poolId:((e=(t=this.chain[n])==null?void 0:t.delegation)==null?void 0:e.poolId)||null,rewards:((a=(i=this.chain[n])==null?void 0:i.delegation)==null?void 0:a.rewards)||0n})}awaitTx(n){return this.mempool[n+0]&&this.awaitBlock(),Promise.resolve(!0)}distributeRewards(n){for(let[t,{registeredStake:e,delegation:i}]of Object.entries(this.chain))e&&i.poolId&&(this.chain[t]={registeredStake:e,delegation:{poolId:i.poolId,rewards:i.rewards+=n}});this.awaitBlock()}submitTx(n){var St,Qt,ue,I,L,Q,Ct,K,ct,ht;let t=xn.from_bytes(J(n)),e=t.body(),i=t.witness_set(),a=i.plutus_data(),s=fa(e).to_hex(),_=e.validity_start_interval()?parseInt(e.validity_start_interval().to_str()):null,c=e.ttl()?parseInt(e.ttl().to_str()):null;if(Number.isInteger(_)&&this.slot<_)throw new Error(`Lower bound (${_}) not in slot range (${this.slot}).`);if(Number.isInteger(c)&&this.slot>c)throw new Error(`Upper bound (${c}) not in slot range (${this.slot}).`);let d=(()=>{let z={};for(let B=0;B<((a==null?void 0:a.len())||0);B++){let Z=a.get(B),V=To(Z).to_hex();z[V]=_t(Z.to_bytes())}return z})(),f=new Set,g=(()=>{var B;let z=[];for(let Z=0;Z<(((B=i.vkeys())==null?void 0:B.len())||0);Z++){let V=i.vkeys().get(Z),at=V.vkey().public_key(),Mt=at.hash().to_hex();if(!at.verify(J(s),V.signature()))throw new Error(`Invalid vkey witness. Key hash: ${Mt}`);z.push(Mt)}return z})(),k=ee.new();g.forEach(z=>k.add(et.from_hex(z)));let m=(()=>{var B;let z=[];for(let Z=0;Z<(((B=i.native_scripts())==null?void 0:B.len())||0);Z++){let V=i.native_scripts().get(Z),at=V.hash(wn.NativeScript).to_hex();if(!V.verify(Number.isInteger(_)?O.from_str(_.toString()):void 0,Number.isInteger(c)?O.from_str(c.toString()):void 0,k))throw new Error(`Invalid native script witness. Script hash: ${at}`);for(let Mt=0;Mt{var B,Z;let z=[];for(let V=0;V<(((B=i.plutus_scripts())==null?void 0:B.len())||0);V++){let at=i.plutus_scripts().get(V).hash(wn.PlutusV1).to_hex();z.push(at)}for(let V=0;V<(((Z=i.plutus_v2_scripts())==null?void 0:Z.len())||0);V++){let at=i.plutus_v2_scripts().get(V).hash(wn.PlutusV2).to_hex();z.push(at)}return z})(),P=e.inputs();P.sort();let v=[];for(let z=0;z{var Z;let z={0:"Spend",1:"Mint",2:"Cert",3:"Reward"},B=[];for(let V=0;V<(((Z=i.redeemers())==null?void 0:Z.len())||0);V++){let at=i.redeemers().get(V);B.push({tag:z[at.tag().kind()],index:parseInt(at.index().to_str())})}return B})();function b(z,B,Z){switch(z.type){case"Key":{if(!g.includes(z.hash))throw new Error(`Missing vkey witness. Key hash: ${z.hash}`);f.add(z.hash);break}case"Script":{if(m.includes(z.hash)){f.add(z.hash);break}else if(x[z.hash]){if(!x[z.hash].verify(Number.isInteger(_)?O.from_str(_.toString()):void 0,Number.isInteger(c)?O.from_str(c.toString()):void 0,k))throw new Error(`Invalid native script witness. Script hash: ${z.hash}`);break}else if((j.includes(z.hash)||S.includes(z.hash))&&y.find(V=>V.tag===B&&V.index===Z)){f.add(z.hash);break}throw new Error(`Missing script witness. Script hash: ${z.hash}`)}}}for(let z=0;z<(((Qt=e.collateral())==null?void 0:Qt.len())||0);z++){let B=e.collateral().get(z),Z=B.transaction_id().to_hex()+B.index().to_str(),V=this.ledger[Z]||this.mempool[Z];if(!V||V.spent)throw new Error(`Could not read UTxO: ${JSON.stringify({txHash:V==null?void 0:V.utxo.txHash,outputIndex:V==null?void 0:V.utxo.outputIndex})} -It does not exist or was already spent.`);let{paymentCredential:at}=Wn(V.utxo.address);if((at==null?void 0:at.type)==="Script")throw new Error("Collateral inputs can only contain vkeys.");b(at,null,null)}for(let z=0;z<(((ue=e.required_signers())==null?void 0:ue.len())||0);z++){let B=e.required_signers().get(z);b({type:"Key",hash:B.to_hex()},null,null)}for(let z=0;z<(((I=e.mint())==null?void 0:I.keys().len())||0);z++){let B=e.mint().keys().get(z).to_hex();b({type:"Script",hash:B},"Mint",z)}let F=[];for(let z=0;z<(((L=e.withdrawals())==null?void 0:L.keys().len())||0);z++){let B=e.withdrawals().keys().get(z),Z=BigInt(e.withdrawals().get(B).to_str()),V=B.to_address().to_bech32(void 0),{stakeCredential:at}=Wn(V);if(b(at,"Reward",z),((Q=this.chain[V])==null?void 0:Q.delegation.rewards)!==Z)throw new Error("Withdrawal amount doesn't match actual reward balance.");F.push({rewardAddress:V,withdrawal:Z})}let D=[];for(let z=0;z<(((Ct=e.certs())==null?void 0:Ct.len())||0);z++){let B=e.certs().get(z);switch(B.kind()){case 0:{let Z=B.as_stake_registration(),V=It.new(Er.testnet().network_id(),Z.stake_credential()).to_address().to_bech32(void 0);if((K=this.chain[V])!=null&&K.registeredStake)throw new Error(`Stake key is already registered. Reward address: ${V}`);D.push({type:"Registration",rewardAddress:V});break}case 1:{let Z=B.as_stake_deregistration(),V=It.new(Er.testnet().network_id(),Z.stake_credential()).to_address().to_bech32(void 0),{stakeCredential:at}=Wn(V);if(b(at,"Cert",z),!((ct=this.chain[V])!=null&&ct.registeredStake))throw new Error(`Stake key is already deregistered. Reward address: ${V}`);D.push({type:"Deregistration",rewardAddress:V});break}case 2:{let Z=B.as_stake_delegation(),V=It.new(Er.testnet().network_id(),Z.stake_credential()).to_address().to_bech32(void 0),at=Z.pool_keyhash().to_bech32("pool"),{stakeCredential:Mt}=Wn(V);if(b(Mt,"Cert",z),!((ht=this.chain[V])!=null&&ht.registeredStake)&&!D.find(Le=>Le.type==="Registration"&&Le.rewardAddress===V))throw new Error(`Stake key is not registered. Reward address: ${V}`);D.push({type:"Delegation",rewardAddress:V,poolId:at});break}}}v.forEach(({entry:{utxo:z}},B)=>{let{paymentCredential:Z}=Wn(z.address);b(Z,"Spend",B)});let U=(()=>{let z=[];for(let B=0;B!f.has(z));if(M)throw new Error(`Extraneous vkey witness. Key hash: ${M}`);let[$]=m.filter(z=>!f.has(z));if($)throw new Error(`Extraneous native script. Script hash: ${$}`);let[Y]=j.filter(z=>!f.has(z));if(Y)throw new Error(`Extraneous plutus script. Script hash: ${Y}`);let[W]=Object.keys(d).filter(z=>!f.has(z));if(W)throw new Error(`Extraneous plutus data. Datum hash: ${W}`);v.forEach(({entry:z,type:B})=>{let Z=z.utxo.txHash+z.utxo.outputIndex;z.spent=!0,B==="Ledger"?this.ledger[Z]=z:B==="Mempool"&&(this.mempool[Z]=z)}),F.forEach(({rewardAddress:z,withdrawal:B})=>{this.chain[z].delegation.rewards-=B}),D.forEach(({type:z,rewardAddress:B,poolId:Z})=>{switch(z){case"Registration":{this.chain[B]?this.chain[B].registeredStake=!0:this.chain[B]={registeredStake:!0,delegation:{poolId:null,rewards:0n}};break}case"Deregistration":{this.chain[B].registeredStake=!1,this.chain[B].delegation.poolId=null;break}case"Delegation":this.chain[B].delegation.poolId=Z}}),U.forEach(({utxo:z,spent:B})=>{this.mempool[z.txHash+z.outputIndex]={utxo:z,spent:B}});for(let[z,B]of Object.entries(d))this.datumTable[z]=B;return Promise.resolve(s)}log(){var i;function n(a){let s=a==="lovelace"?"1":a,_=0;for(let g=0;g0?i-1:i+1,s=n.openFileIndices[a];n.openFileIndices.splice(i,1),n.currentFileFocusedInEditorIndex==e&&(n.currentFileFocusedInEditorIndex=s)},pendingCloseFile(n,t){n.pendingCloseFileIndex=t.payload},addFile(n){if(n.beingRenamedFileIndex!==-1)return;let t="newfile";for(let i=1;i<1/0;i++){const a=`${t}${i===1?"":i-1}.ak`;if(!n.files.find(s=>s.name===a)){t=a;break}}n.files.push({name:t,content:"",type:"aiken"});const e=n.files.length-1;n.beingRenamedFileIndex=e,n.currentFileFocusedInEditorIndex=e,n.openFileIndices.includes(e)||n.openFileIndices.push(e)},renameFile(n,t){n.beingRenamedFileIndex=t.payload},clearRenameFileError(n){n.renameFileError=void 0},confirmRenameFile(n,t){const e=t.payload,i=!n.files.find((_,c)=>_.name===e&&c!=n.beingRenamedFileIndex),a=tb.find(_=>e.endsWith(_));let s="";i?a?(n.files[n.beingRenamedFileIndex].name=e,n.files[n.beingRenamedFileIndex].type=Al[a],n.beingRenamedFileIndex=-1,n.renameFileError=void 0):s=`Allowed extensions: ${tb.join(" ")}`:s="Filenames must be unique.",n.renameFileError=s},cancelRenameFile(n){n.beingRenamedFileIndex=-1,n.renameFileError=void 0},removeFile(n,t){const e=t.payload,i=n.openFileIndices.indexOf(e);i!=-1&&n.openFileIndices.splice(i,1),n.files.splice(e,1),n.openFileIndices=n.openFileIndices.map(_=>_>e?_-1:_);const a=i>0?i-1:i+1,s=n.openFileIndices[a];if(n.currentFileFocusedInEditorIndex!=e){n.currentFileFocusedInEditorIndex>e&&(n.currentFileFocusedInEditorIndex-=1);return}n.currentFileFocusedInEditorIndex=s}}}),{selectFile:Cb,writeFileContents:oj,closeFile:_j,pendingCloseFile:Eb,addFile:Ob,confirmRenameFile:Nb,cancelRenameFile:cj,removeFile:lj,renameFile:dj,clearRenameFileError:uj}=Sb.actions,pj=Sb.reducer;function fj({onLoad:n}){const t=G2(),e=pt(_=>_.files),i=Xt(),a=A.useRef(null);if(a.current&&t){const _=e.files[e.currentFileFocusedInEditorIndex],c=t.editor.getModels();if(_){const d=_.name.slice(_.name.lastIndexOf(".")),f=Al[d]||"plaintext";let g=c.find(k=>k.uri.path.includes(_.name));(!g||f!=g.getLanguageId())&&(g=t.editor.createModel(_.content,f,t.Uri.parse(_.name))),a.current.setModel(g)}else a.current.setModel(null);c.forEach(d=>{e.files.find(f=>d.uri.path.includes(f.name))||d.dispose()})}const s=_=>{a.current=_,n&&n(_)};return A.useEffect(()=>{if(t){t.languages.register({id:"aiken"});const _=["if","else","when","is","fn","use","let","pub","type","opaque","const","todo","expect","check","test","trace","fail","validator","and","or"];t.languages.setMonarchTokensProvider("aiken",{keywords:_,operators:["->","|>","..","<=",">=","==","!=","<",">","&&","||","|","+","-","/","*","%","="],digits:"\\d+(_+\\d+)*",octaldigits:"[0-7]+(_+[0-7]+)*",binarydigits:"[0-1]+(_+[0-1]+)*",hexdigits:"[0-9a-fA-F]+(_+[0-9a-fA-F]+)*",tokenizer:{root:[["[a-z_$][\\w$]*",{cases:{"@keywords":"keyword","@default":"identifier"}}],["//.*","comment"],["[A-Z][\\w\\$]*","type.identifier"],["[a-z][\\w\\$]*","identifier"],["0[xX](@hexdigits)","number.hex"],["0[oO]?(@octaldigits)","number.octal"],["0[bB](@binarydigits)","number.binary"],["(@digits)","number"]]}}),t.editor.defineTheme("aiken-theme",{base:"vs-dark",rules:[{token:"source",foreground:"#BBBBBB"}],inherit:!0,colors:{"scrollbar.shadow":"#ffffff00","editor.lineHighlightBackground":"#00000000","editor.lineHighlightBorder":"#00000000"}})}},[t]),t?w.jsx("div",{style:{width:"100%",height:"90vh"},onBlur:()=>{if(!t)return;const _=e.files[e.currentFileFocusedInEditorIndex];let c=t.editor.getModels().find(d=>d.uri.path.includes(_.name));if(!c){console.error("If this happened, there is a bug. :)");return}i(oj({index:e.currentFileFocusedInEditorIndex,content:c.getValue()}))},children:w.jsx(rx,{height:"calc(97vh - 60px)",width:"100%",theme:"aiken-theme",defaultLanguage:"aiken",className:"monaco-customizer",defaultValue:e.files[0].content,options:{minimap:{enabled:!1}},onMount:s})}):null}function Rb(n,t){const e=n.split(/\r?\n/);let i=0;for(let a=0;a=t)return a+1;i+=s.length+1}return null}function Pb(n){const t=n.lastIndexOf(".");return t===-1?{name:n,extension:""}:{name:n.substring(0,t),extension:n.substring(t)}}function Qe(n,t=12,e=7){if(n.length>t+e){let i=n.substring(0,t),a=n.substring(n.length-e);return`${i}...${a}`}return n}function wj(n){return n.charAt(0).toUpperCase()+n.slice(1)}const hj={buildResults:[],builtFiles:[]},Ib=Mi({name:"aiken",initialState:hj,reducers:{testProject:(n,t)=>{n.buildResults=t.payload.buildResults,n.builtFiles=t.payload.compiledFiles;for(let e=0;e{const a=Rb(n.builtFiles[e].content,i.line)||-1;return{...i,line:a}}),n.buildResults[e].warnings=n.buildResults[e].warnings.map(i=>{const a=Rb(n.builtFiles[e].content,i.line)||-1;return{...i,line:a}});console.log(n.buildResults)}}}),{testProject:Tb}=Ib.actions,gj=Ib.reducer,Fb=A.createContext(null);function bj(){return A.useContext(Fb)}function yj(){const n=Ug();bj();const t=pt(a=>a.files),e=Xt();let i="";return w.jsxs("div",{className:"top-bar editor-top-bar",children:[w.jsx("div",{className:"editor-top-bar-left-side",children:w.jsx("div",{className:"title-logo top-bar-item",children:"ApplicationName"})}),w.jsxs("div",{className:"editor-top-bar-right-side ",children:[w.jsxs("div",{className:`top-bar-item editor-top-bar-item ${i}`,onClick:()=>{let a=[],s=[];for(let _ of t.files)if(Zg(_.name)==="aiken"){a.push(_);const c=n.project.build(_.content,!0);s.push(c)}e(Tb({buildResults:s,compiledFiles:a}))},children:[w.jsx("span",{className:"editor-top-bar-play-icon",children:"\u25B6"})," Test"]}),w.jsxs("div",{className:`top-bar-item editor-top-bar-item ${i}`,onClick:()=>{let a=[],s=[];for(let _ of t.files)Zg(_.name)==="aiken"&&(a.push(_),s.push(n.project.build(_.content,!1)));e(Tb({buildResults:s,compiledFiles:a}))},children:[w.jsx("span",{className:"editor-top-bar-build-icon",children:"\u{1F6E0}"})," Build"]}),w.jsxs("div",{className:"top-bar-item editor-top-bar-item",children:[w.jsx("span",{className:"editor-top-bar-format-icon",children:"\u270E"})," Format"]}),w.jsxs("div",{className:"top-bar-item editor-top-bar-item",children:[w.jsx("span",{className:"editor-top-bar-share-icon",children:"\u260E"})," Share"]})]})]})}function mj(){return pt(n=>n.settings.network),Xt(),w.jsx("div",{className:"top-bar management-top-bar"})}function vj(){var e,i;const n=pt(a=>a.project),t=(a,s)=>{const _=a==null?void 0:a.warnings.length,c=a==null?void 0:a.errors.length,d=a==null?void 0:a.test_results.length,f=(a==null?void 0:a.test_results.filter(x=>!x.success).length)||0,g=!_||_<=0?null:w.jsxs("div",{className:"build-results-section warnings",children:[w.jsx("span",{className:"build-result-heading",children:"Warnings"}),a==null?void 0:a.warnings.map((x,S)=>w.jsxs("div",{className:"build-results-individual-result",children:[w.jsxs("div",{className:"warning-item",children:["On line ",x.line,", ",x.message]}),w.jsx("div",{}),w.jsx("div",{className:"warning-item",children:x.help})]},S))]}),k=!c||c<=0?null:w.jsxs("div",{className:"build-results-section errors",children:[w.jsx("span",{className:"build-result-heading",children:"Errors"}),a==null?void 0:a.errors.map((x,S)=>w.jsxs("div",{className:"build-results-individual-result",children:[w.jsxs("div",{className:"error-item",children:["On line ",x.line,", ",x.message]}),w.jsx("div",{className:"error-item",children:x.help})]},S))]}),m=!d||d<=0?null:w.jsxs("div",{className:"build-results-section tests",children:[w.jsx("span",{className:"build-result-heading tests-heading",children:"Tests"}),w.jsx("div",{className:"tests-body-container",children:a==null?void 0:a.test_results.map(x=>w.jsx("div",{className:"build-results-individual-result",children:w.jsxs("div",{className:"test-item",children:[x.success?"\u2714\uFE0F ":"\u274C ",x.name," (CPU: ",x.spent_budget.cpu,", Mem: ",x.spent_budget.mem,")"]})},x.index))})]});return w.jsxs("div",{className:"build-result-container",children:[w.jsx("div",{className:"build-result-filename",children:n.builtFiles[s].name}),w.jsxs("div",{className:"summary",children:[w.jsxs("span",{className:"summary-entry error-summary",children:["Errors ",w.jsx("span",{className:"error-number",children:`${c||0}`})]}),w.jsxs("span",{className:"summary-entry warning-summary",children:["Warnings ",w.jsx("span",{className:"warning-number",children:`${_||0}`})]}),w.jsxs("span",{className:"summary-entry test-summary",children:["Tests ",w.jsxs("span",{className:"test-number",children:[`${d||0} `,f>0?w.jsxs("span",{children:["(",w.jsx("span",{className:"error-number",children:f}),")"]}):null]})]})]}),m,g,k]},s)};return w.jsx("div",{className:"management-content-scroll-exclusion-wrapper",children:w.jsxs("div",{className:"management-content management-section-shadow",children:[w.jsx("div",{className:"management-section-heading",children:"Build Results"}),n.buildResults&&((e=n.buildResults)==null?void 0:e.length)>0?w.jsx(w.Fragment,{}):w.jsx("div",{className:"no-last-build-notice card",children:' No last build to display. Click "Test" to compile.'}),(i=n.buildResults)==null?void 0:i.map((a,s)=>t(a,s))]})})}let r;const zb=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});zb.decode();let Q_=null;function Po(){return(Q_===null||Q_.byteLength===0)&&(Q_=new Uint8Array(r.memory.buffer)),Q_}function F(n,t){return zb.decode(Po().subarray(n,n+t))}const pa=new Array(128).fill(void 0);pa.push(void 0,null,!0,!1);let J_=pa.length;function wt(n){J_===pa.length&&pa.push(pa.length+1);const t=J_;return J_=pa[t],pa[t]=n,t}function it(n){return pa[n]}function kj(n){n<132||(pa[n]=J_,J_=n)}function l(n){const t=it(n);return kj(n),t}let h=0;const Db=new TextEncoder("utf-8"),xj=function(n,t){return Db.encodeInto(n,t)};function N(n,t,e){if(e===void 0){const c=Db.encode(n),d=t(c.length);return Po().subarray(d,d+c.length).set(c),h=c.length,d}let i=n.length,a=t(i);const s=Po();let _=0;for(;_127)break;s[a+_]=c}if(_!==i){_!==0&&(n=n.slice(_)),a=e(a,i,i=_+n.length*3);const c=Po().subarray(a+_,a+i),d=xj(n,c);_+=d.written}return h=_,a}let X_=null;function o(){return(X_===null||X_.byteLength===0)&&(X_=new Int32Array(r.memory.buffer)),X_}function zt(n){return n==null}function Vp(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const a=n.description;return a==null?"Symbol":`Symbol(${a})`}if(t=="function"){const a=n.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(n)){const a=n.length;let s="[";a>0&&(s+=Vp(n[0]));for(let _=1;_1)i=e[1];else return toString.call(n);if(i=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message} +${n.stack}`:i}const Mb=new FinalizationRegistry(n=>{r.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function jj(n,t,e,i){const a={a:n,b:t,cnt:1,dtor:e},s=(..._)=>{a.cnt++;const c=a.a;a.a=0;try{return i(c,a.b,..._)}finally{--a.cnt===0?(r.__wbindgen_export_2.get(a.dtor)(c,a.b),Mb.unregister(a)):a.a=c}};return s.original=a,Mb.register(s,a,a),s}function Sj(n,t,e){r._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9de9452916ac8cca(n,t,wt(e))}function p(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`);return n.ptr}function E(n,t){return Po().subarray(n/1,n/1+t)}function R(n,t){const e=t(n.length*1);return Po().set(n,e/1),h=n.length,e}function Ab(n,t,e,i){try{const g=r.__wbindgen_add_to_stack_pointer(-16),k=N(n,r.__wbindgen_malloc,r.__wbindgen_realloc),m=h,x=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),S=h,j=N(e,r.__wbindgen_malloc,r.__wbindgen_realloc),P=h,v=N(i,r.__wbindgen_malloc,r.__wbindgen_realloc),y=h;r.encrypt_with_password(g,k,m,x,S,j,P,v,y);var a=o()[g/4+0],s=o()[g/4+1],_=o()[g/4+2],c=o()[g/4+3],d=a,f=s;if(c)throw d=0,f=0,l(_);return F(d,f)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(d,f)}}function Bb(n,t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(n,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h,k=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),m=h;r.decrypt_with_password(d,f,g,k,m);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}function Ub(n,t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(n,xn),p(t,Bi),p(e,Mn),r.min_fee(_,n.ptr,t.ptr,e.ptr);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return O.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Lb(n){const t=R(n,r.__wbindgen_malloc),e=h,i=r.encode_arbitrary_bytes_as_metadatum(t,e);return xt.__wrap(i)}function $b(n){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(n,xt),r.decode_arbitrary_bytes_from_metadatum(_,n.ptr);var t=o()[_/4+0],e=o()[_/4+1],i=o()[_/4+2],a=o()[_/4+3];if(a)throw l(i);var s=E(t,e).slice();return r.__wbindgen_free(t,e*1),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Hb(n,t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.encode_json_str_to_metadatum(s,_,c,t);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Wb(n,t){try{const d=r.__wbindgen_add_to_stack_pointer(-16);p(n,xt),r.decode_metadatum_to_json_str(d,n.ptr,t);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}function Vb(n,t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.encode_json_str_to_plutus_datum(s,_,c,t);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return st.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Kb(n,t){try{const d=r.__wbindgen_add_to_stack_pointer(-16);p(n,st),r.decode_plutus_datum_to_json_str(d,n.ptr,t);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}let Xl=null;function qb(){return(Xl===null||Xl.byteLength===0)&&(Xl=new Uint32Array(r.memory.buffer)),Xl}function Cj(n,t){const e=t(n.length*4);return qb().set(n,e/4),h=n.length,e}function Ej(n,t){return qb().subarray(n/4,n/4+t)}function Qb(n,t,e){p(n,ye),p(t,ze),p(e,zo);const i=r.make_daedalus_bootstrap_witness(n.ptr,t.ptr,e.ptr);return hn.__wrap(i)}function Jb(n,t,e){p(n,ye),p(t,ze),p(e,Fn);const i=r.make_icarus_bootstrap_witness(n.ptr,t.ptr,e.ptr);return hn.__wrap(i)}function Io(n,t){p(n,ye),p(t,Kt);const e=r.make_vkey_witness(n.ptr,t.ptr);return Ln.__wrap(e)}function Xb(n){p(n,Fe);const t=r.hash_auxiliary_data(n.ptr);return mr.__wrap(t)}function fa(n){p(n,Ze);const t=r.hash_transaction(n.ptr);return ye.__wrap(t)}function To(n){p(n,st);const t=r.hash_plutus_data(n.ptr);return se.__wrap(t)}function Kp(n){try{const a=r.__wbindgen_add_to_stack_pointer(-16),s=R(n,r.__wbindgen_malloc),_=h;r.hash_blake2b256(a,s,_);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Gb(n){try{const a=r.__wbindgen_add_to_stack_pointer(-16),s=R(n,r.__wbindgen_malloc),_=h;r.hash_blake2b224(a,s,_);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Yb(n,t,e){p(n,Fr),p(t,rr);let i=0;zt(e)||(p(e,ce),i=e.__destroy_into_raw());const a=r.hash_script_data(n.ptr,t.ptr,i);return ir.__wrap(a)}function Zb(n,t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(n,Ze),p(t,O),p(e,O),r.get_implicit_input(_,n.ptr,t.ptr,e.ptr);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return Rt.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function ty(n,t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(n,Ze),p(t,O),p(e,O),r.get_deposit(_,n.ptr,t.ptr,e.ptr);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return O.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function ey(n,t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(n,Yt),p(t,O),r.min_ada_required(s,n.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return O.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function qp(n,t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16),c=N(n,r.__wbindgen_malloc,r.__wbindgen_realloc),d=h,f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.encode_json_str_to_native_script(_,c,d,f,g,e);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return Nt.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Qp(n,t){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(n,ce),p(t,bt);var e=t.__destroy_into_raw();r.apply_params_to_plutus_script(_,n.ptr,e);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return bt.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function fn(n,t){try{return n.apply(this,t)}catch(e){r.__wbindgen_exn_store(wt(e))}}function Oj(n,t,e,i){r.wasm_bindgen__convert__closures__invoke2_mut__h36afefe016e25d40(n,t,wt(e),wt(i))}const Nj=Object.freeze({Key:0,0:"Key",Script:1,1:"Script"}),Rj=Object.freeze({ParameterChangeAction:0,0:"ParameterChangeAction",HardForkInitiationAction:1,1:"HardForkInitiationAction",TreasuryWithdrawalsAction:2,2:"TreasuryWithdrawalsAction",NoConfidence:3,3:"NoConfidence",NewCommittee:4,4:"NewCommittee",NewConstitution:5,5:"NewConstitution",InfoAction:6,6:"InfoAction"}),Pj=Object.freeze({CommitteeHotKeyHash:0,0:"CommitteeHotKeyHash",CommitteeHotScriptHash:1,1:"CommitteeHotScriptHash",DrepKeyHash:2,2:"DrepKeyHash",DrepScriptHash:3,3:"DrepScriptHash",StakingPoolKeyHash:4,4:"StakingPoolKeyHash"}),Ij=Object.freeze({No:0,0:"No",Yes:1,1:"Yes",Abstain:2,2:"Abstain"}),Tj=Object.freeze({KeyHash:0,0:"KeyHash",ScriptHash:1,1:"ScriptHash",Abstain:2,2:"Abstain",NoConfidence:3,3:"NoConfidence"}),Fj=Object.freeze({MetadataMap:0,0:"MetadataMap",MetadataList:1,1:"MetadataList",Int:2,2:"Int",Bytes:3,3:"Bytes",Text:4,4:"Text"}),ny=Object.freeze({NoConversions:0,0:"NoConversions",BasicConversions:1,1:"BasicConversions",DetailedSchema:2,2:"DetailedSchema"}),zj=Object.freeze({PlutusV1:0,0:"PlutusV1",PlutusV2:1,1:"PlutusV2",PlutusV3:2,2:"PlutusV3"}),Dj=Object.freeze({ConstrPlutusData:0,0:"ConstrPlutusData",Map:1,1:"Map",List:2,2:"List",Integer:3,3:"Integer",Bytes:4,4:"Bytes"}),Mj=Object.freeze({Spend:0,0:"Spend",Mint:1,1:"Mint",Cert:2,2:"Cert",Reward:3,3:"Reward",Drep:4,4:"Drep"}),Aj=Object.freeze({BasicConversions:0,0:"BasicConversions",DetailedSchema:1,1:"DetailedSchema"}),Bj=Object.freeze({NativeScript:0,0:"NativeScript",PlutusScriptV1:1,1:"PlutusScriptV1",PlutusScriptV2:2,2:"PlutusScriptV2",PlutusScriptV3:3,3:"PlutusScriptV3"}),Uj=Object.freeze({Hash:0,0:"Hash",Data:1,1:"Data"}),wn=Object.freeze({NativeScript:0,0:"NativeScript",PlutusV1:1,1:"PlutusV1",PlutusV2:2,2:"PlutusV2"}),ry=Object.freeze({Wallet:0,0:"Wallet",Node:1,1:"Node"}),Lj=Object.freeze({NativeWitness:0,0:"NativeWitness",PlutusWitness:1,1:"PlutusWitness"}),$j=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",RegCert:7,7:"RegCert",UnregCert:8,8:"UnregCert",VoteDelegCert:9,9:"VoteDelegCert",StakeVoteDelegCert:10,10:"StakeVoteDelegCert",StakeRegDelegCert:11,11:"StakeRegDelegCert",VoteRegDelegCert:12,12:"VoteRegDelegCert",StakeVoteRegDelegCert:13,13:"StakeVoteRegDelegCert",RegCommitteeHotKeyCert:14,14:"RegCommitteeHotKeyCert",UnregCommitteeHotKeyCert:15,15:"UnregCommitteeHotKeyCert",RegDrepCert:16,16:"RegDrepCert",UnregDrepCert:17,17:"UnregDrepCert"}),Hj=Object.freeze({Reserves:0,0:"Reserves",Treasury:1,1:"Treasury"}),Wj=Object.freeze({ToOtherPot:0,0:"ToOtherPot",ToStakeCredentials:1,1:"ToStakeCredentials"}),Vj=Object.freeze({SingleHostAddr:0,0:"SingleHostAddr",SingleHostName:1,1:"SingleHostName",MultiHostName:2,2:"MultiHostName"}),Kj=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"}),qj=Object.freeze({Testnet:0,0:"Testnet",Mainnet:1,1:"Mainnet"}),ay=new FinalizationRegistry(n=>r.__wbg_address_free(n));class jt{static __wrap(t){const e=Object.create(jt.prototype);return e.ptr=t,ay.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ay.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_address_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.address_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.address_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.address_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.address_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.address_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const g=r.__wbindgen_add_to_stack_pointer(-16);var e=zt(t)?0:N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=h;r.address_to_bech32(g,this.ptr,e,i);var a=o()[g/4+0],s=o()[g/4+1],_=o()[g/4+2],c=o()[g/4+3],d=a,f=s;if(c)throw d=0,f=0,l(_);return F(d,f)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(d,f)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.address_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}network_id(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.address_network_id(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_byron(){const t=r.address_as_byron(this.ptr);return t===0?void 0:ze.__wrap(t)}as_reward(){const t=r.address_as_reward(this.ptr);return t===0?void 0:It.__wrap(t)}as_pointer(){const t=r.address_as_pointer(this.ptr);return t===0?void 0:Li.__wrap(t)}as_enterprise(){const t=r.address_as_enterprise(this.ptr);return t===0?void 0:Dn.__wrap(t)}as_base(){const t=r.address_as_base(this.ptr);return t===0?void 0:er.__wrap(t)}}const iy=new FinalizationRegistry(n=>r.__wbg_anchor_free(n));class Zn{static __wrap(t){const e=Object.create(Zn.prototype);return e.ptr=t,iy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,iy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_anchor_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.anchor_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.anchor_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Zn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.anchor_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.anchor_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.anchor_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Zn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}anchor_url(){const t=r.anchor_anchor_url(this.ptr);return or.__wrap(t)}anchor_data_hash(){const t=r.anchor_anchor_data_hash(this.ptr);return se.__wrap(t)}static new(t,e){p(t,or),p(e,se);const i=r.anchor_new(t.ptr,e.ptr);return Zn.__wrap(i)}}const sy=new FinalizationRegistry(n=>r.__wbg_assetname_free(n));class ie{static __wrap(t){const e=Object.create(ie.prototype);return e.ptr=t,sy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,sy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_assetname_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.assetname_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ie.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.assetname_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ie.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.assetname_new(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ie.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}name(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const oy=new FinalizationRegistry(n=>r.__wbg_assetnames_free(n));class wa{static __wrap(t){const e=Object.create(wa.prototype);return e.ptr=t,oy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,oy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_assetnames_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetnames_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.assetnames_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return wa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.assetnames_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetnames_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.assetnames_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return wa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return wa.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.assetnames_get(this.ptr,t);return ie.__wrap(e)}add(t){p(t,ie),r.assetnames_add(this.ptr,t.ptr)}}const _y=new FinalizationRegistry(n=>r.__wbg_assets_free(n));class tr{static __wrap(t){const e=Object.create(tr.prototype);return e.ptr=t,_y.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_y.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_assets_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assets_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.assets_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return tr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.assets_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assets_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.assets_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return tr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return tr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,ie),p(e,O);const i=r.assets_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:O.__wrap(i)}get(t){p(t,ie);const e=r.assets_get(this.ptr,t.ptr);return e===0?void 0:O.__wrap(e)}keys(){const t=r.assets_keys(this.ptr);return wa.__wrap(t)}}const cy=new FinalizationRegistry(n=>r.__wbg_auxiliarydata_free(n));class Fe{static __wrap(t){const e=Object.create(Fe.prototype);return e.ptr=t,cy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,cy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_auxiliarydata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydata_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.auxiliarydata_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydata_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydata_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.auxiliarydata_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydata_new();return Fe.__wrap(t)}metadata(){const t=r.auxiliarydata_metadata(this.ptr);return t===0?void 0:kr.__wrap(t)}set_metadata(t){p(t,kr),r.auxiliarydata_set_metadata(this.ptr,t.ptr)}native_scripts(){const t=r.auxiliarydata_native_scripts(this.ptr);return t===0?void 0:Ce.__wrap(t)}set_native_scripts(t){p(t,Ce),r.auxiliarydata_set_native_scripts(this.ptr,t.ptr)}plutus_scripts(){const t=r.auxiliarydata_plutus_scripts(this.ptr);return t===0?void 0:le.__wrap(t)}plutus_v2_scripts(){const t=r.auxiliarydata_plutus_v2_scripts(this.ptr);return t===0?void 0:le.__wrap(t)}plutus_v3_scripts(){const t=r.auxiliarydata_plutus_v3_scripts(this.ptr);return t===0?void 0:le.__wrap(t)}set_plutus_scripts(t){p(t,le),r.auxiliarydata_set_plutus_scripts(this.ptr,t.ptr)}set_plutus_v2_scripts(t){p(t,le),r.auxiliarydata_set_plutus_v2_scripts(this.ptr,t.ptr)}set_plutus_v3_scripts(t){p(t,le),r.auxiliarydata_set_plutus_v3_scripts(this.ptr,t.ptr)}}const ly=new FinalizationRegistry(n=>r.__wbg_auxiliarydatahash_free(n));class mr{static __wrap(t){const e=Object.create(mr.prototype);return e.ptr=t,ly.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ly.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_auxiliarydatahash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.auxiliarydatahash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.auxiliarydatahash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.auxiliarydatahash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const dy=new FinalizationRegistry(n=>r.__wbg_auxiliarydataset_free(n));class Os{static __wrap(t){const e=Object.create(Os.prototype);return e.ptr=t,dy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,dy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_auxiliarydataset_free(t)}static new(){const t=r.auxiliarydataset_new();return Os.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,O),p(e,Fe);const i=r.auxiliarydataset_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:Fe.__wrap(i)}get(t){p(t,O);const e=r.auxiliarydataset_get(this.ptr,t.ptr);return e===0?void 0:Fe.__wrap(e)}indices(){const t=r.auxiliarydataset_indices(this.ptr);return Qa.__wrap(t)}}const uy=new FinalizationRegistry(n=>r.__wbg_baseaddress_free(n));class er{static __wrap(t){const e=Object.create(er.prototype);return e.ptr=t,uy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,uy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_baseaddress_free(t)}static new(t,e,i){p(e,q),p(i,q);const a=r.baseaddress_new(t,e.ptr,i.ptr);return er.__wrap(a)}payment_cred(){const t=r.baseaddress_payment_cred(this.ptr);return q.__wrap(t)}stake_cred(){const t=r.baseaddress_stake_cred(this.ptr);return q.__wrap(t)}to_address(){const t=r.baseaddress_to_address(this.ptr);return jt.__wrap(t)}static from_address(t){p(t,jt);const e=r.address_as_base(t.ptr);return e===0?void 0:er.__wrap(e)}}const py=new FinalizationRegistry(n=>r.__wbg_bigint_free(n));let G_=class dd{static __wrap(t){const e=Object.create(dd.prototype);return e.ptr=t,py.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,py.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bigint_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bigint_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.bigint_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return dd.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_u64(){const t=r.bigint_as_u64(this.ptr);return t===0?void 0:O.__wrap(t)}as_int(){const t=r.bigint_as_int(this.ptr);return t===0?void 0:_e.__wrap(t)}static from_str(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.bigint_from_str(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return dd.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.bigint_to_str(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}};const fy=new FinalizationRegistry(n=>r.__wbg_bignum_free(n));let O=class pe{static __wrap(t){const e=Object.create(pe.prototype);return e.ptr=t,fy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,fy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bignum_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bignum_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.bignum_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_str(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.bignum_from_str(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.bignum_to_str(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static zero(){const t=r.bignum_zero();return pe.__wrap(t)}is_zero(){return r.bignum_is_zero(this.ptr)!==0}checked_mul(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,pe),r.bignum_checked_mul(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_add(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,pe),r.bignum_checked_add(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,pe),r.bignum_checked_sub(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_div(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,pe),r.bignum_checked_div(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_div_ceil(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,pe),r.bignum_checked_div_ceil(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}clamped_sub(t){p(t,pe);const e=r.bignum_clamped_sub(this.ptr,t.ptr);return pe.__wrap(e)}compare(t){return p(t,pe),r.bignum_compare(this.ptr,t.ptr)}};const wy=new FinalizationRegistry(n=>r.__wbg_bip32privatekey_free(n));class Fn{static __wrap(t){const e=Object.create(Fn.prototype);return e.ptr=t,wy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,wy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bip32privatekey_free(t)}derive(t){const e=r.bip32privatekey_derive(this.ptr,t);return Fn.__wrap(e)}static from_128_xprv(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.bip32privatekey_from_128_xprv(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_128_xprv(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_to_128_xprv(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519_bip32(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_generate_ed25519_bip32(a);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Fn.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_raw_key(){const t=r.bip32privatekey_to_raw_key(this.ptr);return Kt.__wrap(t)}to_public(){const t=r.bip32privatekey_to_public(this.ptr);return ha.__wrap(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.bip32privatekey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_as_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.bip32privatekey_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_to_bech32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_bip39_entropy(t,e){const i=R(t,r.__wbindgen_malloc),a=h,s=R(e,r.__wbindgen_malloc),_=h,c=r.bip32privatekey_from_bip39_entropy(i,a,s,_);return Fn.__wrap(c)}chaincode(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_chaincode(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const hy=new FinalizationRegistry(n=>r.__wbg_bip32publickey_free(n));class ha{static __wrap(t){const e=Object.create(ha.prototype);return e.ptr=t,hy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,hy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bip32publickey_free(t)}derive(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_derive(s,this.ptr,t);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_raw_key(){const t=r.bip32publickey_to_raw_key(this.ptr);return kn.__wrap(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.bip32publickey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_as_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.bip32publickey_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_to_bech32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}chaincode(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_chaincode(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const gy=new FinalizationRegistry(n=>r.__wbg_block_free(n));class Ns{static __wrap(t){const e=Object.create(Ns.prototype);return e.ptr=t,gy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,gy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_block_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.block_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.block_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ns.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.block_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.block_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.block_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ns.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}header(){const t=r.block_header(this.ptr);return Sa.__wrap(t)}transaction_bodies(){const t=r.block_transaction_bodies(this.ptr);return qa.__wrap(t)}transaction_witness_sets(){const t=r.block_transaction_witness_sets(this.ptr);return Ga.__wrap(t)}auxiliary_data_set(){const t=r.block_auxiliary_data_set(this.ptr);return Os.__wrap(t)}invalid_transactions(){const t=r.block_invalid_transactions(this.ptr);return Qa.__wrap(t)}static new(t,e,i,a,s){p(t,Sa),p(e,qa),p(i,Ga),p(a,Os),p(s,Qa);const _=r.block_new(t.ptr,e.ptr,i.ptr,a.ptr,s.ptr);return Ns.__wrap(_)}}const by=new FinalizationRegistry(n=>r.__wbg_blockhash_free(n));class nr{static __wrap(t){const e=Object.create(nr.prototype);return e.ptr=t,by.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,by.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_blockhash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.blockhash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.blockhash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.blockhash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const yy=new FinalizationRegistry(n=>r.__wbg_blockfrost_free(n));class Rs{static __wrap(t){const e=Object.create(Rs.prototype);return e.ptr=t,yy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,yy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_blockfrost_free(t)}static new(t,e){const i=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=h,s=N(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=h,c=r.blockfrost_new(i,a,s,_);return Rs.__wrap(c)}url(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}project_id(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_project_id(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const my=new FinalizationRegistry(n=>r.__wbg_bootstrapwitness_free(n));class hn{static __wrap(t){const e=Object.create(hn.prototype);return e.ptr=t,my.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,my.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bootstrapwitness_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.bootstrapwitness_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return hn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.bootstrapwitness_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return hn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}vkey(){const t=r.bootstrapwitness_vkey(this.ptr);return Oe.__wrap(t)}signature(){const t=r.bootstrapwitness_signature(this.ptr);return Se.__wrap(t)}chain_code(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}attributes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_attributes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e,i,a){p(t,Oe),p(e,Se);const s=R(i,r.__wbindgen_malloc),_=h,c=R(a,r.__wbindgen_malloc),d=h,f=r.bootstrapwitness_new(t.ptr,e.ptr,s,_,c,d);return hn.__wrap(f)}}const vy=new FinalizationRegistry(n=>r.__wbg_bootstrapwitnesses_free(n));class Ps{static __wrap(t){const e=Object.create(Ps.prototype);return e.ptr=t,vy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,vy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bootstrapwitnesses_free(t)}static new(){const t=r.assetnames_new();return Ps.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.bootstrapwitnesses_get(this.ptr,t);return hn.__wrap(e)}add(t){p(t,hn),r.bootstrapwitnesses_add(this.ptr,t.ptr)}}const ky=new FinalizationRegistry(n=>r.__wbg_byronaddress_free(n));class ze{static __wrap(t){const e=Object.create(ze.prototype);return e.ptr=t,ky.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ky.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_byronaddress_free(t)}to_base58(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_to_base58(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.byronaddress_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ze.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}byron_protocol_magic(){return r.byronaddress_byron_protocol_magic(this.ptr)>>>0}attributes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_attributes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}network_id(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_network_id(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_base58(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.byronaddress_from_base58(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ze.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static icarus_from_key(t,e){p(t,ha);const i=r.byronaddress_icarus_from_key(t.ptr,e);return ze.__wrap(i)}static is_valid(t){const e=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=h;return r.byronaddress_is_valid(e,i)!==0}to_address(){const t=r.byronaddress_to_address(this.ptr);return jt.__wrap(t)}static from_address(t){p(t,jt);const e=r.address_as_byron(t.ptr);return e===0?void 0:ze.__wrap(e)}}const xy=new FinalizationRegistry(n=>r.__wbg_certificate_free(n));class Ht{static __wrap(t){const e=Object.create(Ht.prototype);return e.ptr=t,xy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,xy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_certificate_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.certificate_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.certificate_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ht.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.certificate_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.certificate_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.certificate_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ht.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_stake_registration(t){p(t,Ur);const e=r.certificate_new_stake_registration(t.ptr);return Ht.__wrap(e)}static new_stake_deregistration(t){p(t,Br);const e=r.certificate_new_stake_deregistration(t.ptr);return Ht.__wrap(e)}static new_stake_delegation(t){p(t,Ar);const e=r.certificate_new_stake_delegation(t.ptr);return Ht.__wrap(e)}static new_pool_registration(t){p(t,Pr);const e=r.certificate_new_pool_registration(t.ptr);return Ht.__wrap(e)}static new_pool_retirement(t){p(t,Ir);const e=r.certificate_new_pool_retirement(t.ptr);return Ht.__wrap(e)}static new_genesis_key_delegation(t){p(t,ka);const e=r.certificate_new_genesis_key_delegation(t.ptr);return Ht.__wrap(e)}static new_move_instantaneous_rewards_cert(t){p(t,Ra);const e=r.certificate_new_move_instantaneous_rewards_cert(t.ptr);return Ht.__wrap(e)}kind(){return r.certificate_kind(this.ptr)>>>0}as_stake_registration(){const t=r.certificate_as_stake_registration(this.ptr);return t===0?void 0:Ur.__wrap(t)}as_stake_deregistration(){const t=r.certificate_as_stake_deregistration(this.ptr);return t===0?void 0:Br.__wrap(t)}as_stake_delegation(){const t=r.certificate_as_stake_delegation(this.ptr);return t===0?void 0:Ar.__wrap(t)}as_pool_registration(){const t=r.certificate_as_pool_registration(this.ptr);return t===0?void 0:Pr.__wrap(t)}as_pool_retirement(){const t=r.certificate_as_pool_retirement(this.ptr);return t===0?void 0:Ir.__wrap(t)}as_genesis_key_delegation(){const t=r.certificate_as_genesis_key_delegation(this.ptr);return t===0?void 0:ka.__wrap(t)}as_move_instantaneous_rewards_cert(){const t=r.certificate_as_move_instantaneous_rewards_cert(this.ptr);return t===0?void 0:Ra.__wrap(t)}as_reg_cert(){const t=r.certificate_as_reg_cert(this.ptr);return t===0?void 0:Hi.__wrap(t)}as_unreg_cert(){const t=r.certificate_as_unreg_cert(this.ptr);return t===0?void 0:Gi.__wrap(t)}as_vote_deleg_cert(){const t=r.certificate_as_vote_deleg_cert(this.ptr);return t===0?void 0:ts.__wrap(t)}as_stake_vote_deleg_cert(){const t=r.certificate_as_stake_vote_deleg_cert(this.ptr);return t===0?void 0:Ji.__wrap(t)}as_stake_reg_deleg_cert(){const t=r.certificate_as_stake_reg_deleg_cert(this.ptr);return t===0?void 0:Qi.__wrap(t)}as_vote_reg_deleg_cert(){const t=r.certificate_as_vote_reg_deleg_cert(this.ptr);return t===0?void 0:es.__wrap(t)}as_stake_vote_reg_deleg_cert(){const t=r.certificate_as_stake_vote_reg_deleg_cert(this.ptr);return t===0?void 0:Xi.__wrap(t)}as_reg_committee_hot_key_cert(){const t=r.certificate_as_reg_committee_hot_key_cert(this.ptr);return t===0?void 0:Wi.__wrap(t)}as_unreg_committee_hot_key_cert(){const t=r.certificate_as_unreg_committee_hot_key_cert(this.ptr);return t===0?void 0:Yi.__wrap(t)}as_reg_drep_cert(){const t=r.certificate_as_reg_drep_cert(this.ptr);return t===0?void 0:Vi.__wrap(t)}as_unreg_drep_cert(){const t=r.certificate_as_unreg_drep_cert(this.ptr);return t===0?void 0:Zi.__wrap(t)}}const jy=new FinalizationRegistry(n=>r.__wbg_certificates_free(n));class vr{static __wrap(t){const e=Object.create(vr.prototype);return e.ptr=t,jy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,jy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_certificates_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.certificates_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.certificates_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return vr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.certificates_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.certificates_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.certificates_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return vr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return vr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.certificates_get(this.ptr,t);return Ht.__wrap(e)}add(t){p(t,Ht),r.certificates_add(this.ptr,t.ptr)}}const Sy=new FinalizationRegistry(n=>r.__wbg_constrplutusdata_free(n));class ga{static __wrap(t){const e=Object.create(ga.prototype);return e.ptr=t,Sy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Sy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_constrplutusdata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.constrplutusdata_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.constrplutusdata_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}alternative(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}data(){const t=r.constrplutusdata_data(this.ptr);return ce.__wrap(t)}static new(t,e){p(t,O),p(e,ce);const i=r.constrplutusdata_new(t.ptr,e.ptr);return ga.__wrap(i)}}const Cy=new FinalizationRegistry(n=>r.__wbg_costmodel_free(n));class gn{static __wrap(t){const e=Object.create(gn.prototype);return e.ptr=t,Cy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Cy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_costmodel_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.costmodel_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.costmodel_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return gn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.costmodel_new();return gn.__wrap(t)}static new_plutus_v2(){const t=r.costmodel_new_plutus_v2();return gn.__wrap(t)}static new_plutus_v3(){const t=r.costmodel_new_plutus_v3();return gn.__wrap(t)}set(t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(e,_e),r.costmodel_set(_,this.ptr,t,e.ptr);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return _e.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.costmodel_get(s,this.ptr,t);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return _e.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}len(){return r.assetnames_len(this.ptr)>>>0}}const Ey=new FinalizationRegistry(n=>r.__wbg_costmdls_free(n));class rr{static __wrap(t){const e=Object.create(rr.prototype);return e.ptr=t,Ey.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ey.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_costmdls_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.costmdls_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.costmdls_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return rr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return rr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,Xe),p(e,gn);const i=r.costmdls_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:gn.__wrap(i)}get(t){p(t,Xe);const e=r.costmdls_get(this.ptr,t.ptr);return e===0?void 0:gn.__wrap(e)}keys(){const t=r.costmdls_keys(this.ptr);return Fo.__wrap(t)}}const Oy=new FinalizationRegistry(n=>r.__wbg_dnsrecordaoraaaa_free(n));class ba{static __wrap(t){const e=Object.create(ba.prototype);return e.ptr=t,Oy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Oy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_dnsrecordaoraaaa_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.dnsrecordaoraaaa_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.dnsrecordaoraaaa_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.dnsrecordaoraaaa_new(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}record(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const Ny=new FinalizationRegistry(n=>r.__wbg_dnsrecordsrv_free(n));class ya{static __wrap(t){const e=Object.create(ya.prototype);return e.ptr=t,Ny.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ny.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_dnsrecordsrv_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.dnsrecordsrv_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.dnsrecordsrv_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.dnsrecordsrv_new(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}record(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const Ry=new FinalizationRegistry(n=>r.__wbg_data_free(n));class zn{static __wrap(t){const e=Object.create(zn.prototype);return e.ptr=t,Ry.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ry.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_data_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.data_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.data_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return zn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.data_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.data_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.data_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return zn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,st);const e=r.data_new(t.ptr);return zn.__wrap(e)}get(){const t=r.data_get(this.ptr);return st.__wrap(t)}}const Py=new FinalizationRegistry(n=>r.__wbg_datahash_free(n));class se{static __wrap(t){const e=Object.create(se.prototype);return e.ptr=t,Py.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Py.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_datahash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.datahash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.datahash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.datahash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Iy=new FinalizationRegistry(n=>r.__wbg_datum_free(n));class Gt{static __wrap(t){const e=Object.create(Gt.prototype);return e.ptr=t,Iy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Iy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_datum_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.datum_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.datum_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Gt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.datum_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.datum_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.datum_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Gt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_data_hash(t){p(t,se);const e=r.datum_new_data_hash(t.ptr);return Gt.__wrap(e)}static new_data(t){p(t,zn);const e=r.datum_new_data(t.ptr);return Gt.__wrap(e)}kind(){return r.datum_kind(this.ptr)>>>0}as_data_hash(){const t=r.datum_as_data_hash(this.ptr);return t===0?void 0:se.__wrap(t)}as_data(){const t=r.datum_as_data(this.ptr);return t===0?void 0:zn.__wrap(t)}}const Ty=new FinalizationRegistry(n=>r.__wbg_drep_free(n));class oe{static __wrap(t){const e=Object.create(oe.prototype);return e.ptr=t,Ty.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ty.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_drep_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.drep_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.drep_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return oe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.drep_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.drep_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.drep_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return oe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_keyhash(t){p(t,et);const e=r.drep_new_keyhash(t.ptr);return oe.__wrap(e)}static new_scripthash(t){p(t,dt);const e=r.drep_new_scripthash(t.ptr);return oe.__wrap(e)}static new_abstain(){const t=r.drep_new_abstain();return oe.__wrap(t)}static new_no_confidence(){const t=r.drep_new_no_confidence();return oe.__wrap(t)}kind(){return r.drep_kind(this.ptr)>>>0}as_keyhash(){const t=r.drep_as_keyhash(this.ptr);return t===0?void 0:et.__wrap(t)}as_scripthash(){const t=r.drep_as_scripthash(this.ptr);return t===0?void 0:dt.__wrap(t)}}const Fy=new FinalizationRegistry(n=>r.__wbg_drepvotingthresholds_free(n));class ma{static __wrap(t){const e=Object.create(ma.prototype);return e.ptr=t,Fy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Fy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_drepvotingthresholds_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.drepvotingthresholds_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.drepvotingthresholds_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.drepvotingthresholds_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.drepvotingthresholds_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.drepvotingthresholds_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}motion_no_confidence(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return ot.__wrap(t)}committee_normal(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return ot.__wrap(t)}committee_no_confidence(){const t=r.drepvotingthresholds_committee_no_confidence(this.ptr);return ot.__wrap(t)}update_constitution(){const t=r.drepvotingthresholds_update_constitution(this.ptr);return ot.__wrap(t)}hard_fork_initiation(){const t=r.drepvotingthresholds_hard_fork_initiation(this.ptr);return ot.__wrap(t)}pp_network_group(){const t=r.drepvotingthresholds_pp_network_group(this.ptr);return ot.__wrap(t)}pp_economic_group(){const t=r.drepvotingthresholds_pp_economic_group(this.ptr);return ot.__wrap(t)}pp_technical_group(){const t=r.drepvotingthresholds_pp_technical_group(this.ptr);return ot.__wrap(t)}pp_governance_group(){const t=r.drepvotingthresholds_pp_governance_group(this.ptr);return ot.__wrap(t)}treasury_withdrawal(){const t=r.drepvotingthresholds_treasury_withdrawal(this.ptr);return ot.__wrap(t)}static new(t,e,i,a,s,_,c,d,f,g){p(t,ot),p(e,ot),p(i,ot),p(a,ot),p(s,ot),p(_,ot),p(c,ot),p(d,ot),p(f,ot),p(g,ot);const k=r.drepvotingthresholds_new(t.ptr,e.ptr,i.ptr,a.ptr,s.ptr,_.ptr,c.ptr,d.ptr,f.ptr,g.ptr);return ma.__wrap(k)}}const zy=new FinalizationRegistry(n=>r.__wbg_ed25519keyhash_free(n));class et{static __wrap(t){const e=Object.create(et.prototype);return e.ptr=t,zy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,zy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ed25519keyhash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ed25519keyhash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return et.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.ed25519keyhash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ed25519keyhash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return et.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ed25519keyhash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return et.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Dy=new FinalizationRegistry(n=>r.__wbg_ed25519keyhashes_free(n));class ee{static __wrap(t){const e=Object.create(ee.prototype);return e.ptr=t,Dy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Dy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ed25519keyhashes_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ed25519keyhashes_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ee.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ed25519keyhashes_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ee.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return ee.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.ed25519keyhashes_get(this.ptr,t);return et.__wrap(e)}add(t){p(t,et),r.ed25519keyhashes_add(this.ptr,t.ptr)}}const My=new FinalizationRegistry(n=>r.__wbg_ed25519signature_free(n));class Se{static __wrap(t){const e=Object.create(Se.prototype);return e.ptr=t,My.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,My.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ed25519signature_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519signature_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519signature_to_bech32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519signature_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ed25519signature_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ed25519signature_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ed25519signature_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Ay=new FinalizationRegistry(n=>r.__wbg_enterpriseaddress_free(n));class Dn{static __wrap(t){const e=Object.create(Dn.prototype);return e.ptr=t,Ay.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ay.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_enterpriseaddress_free(t)}static new(t,e){p(e,q);const i=r.enterpriseaddress_new(t,e.ptr);return Dn.__wrap(i)}payment_cred(){const t=r.baseaddress_payment_cred(this.ptr);return q.__wrap(t)}to_address(){const t=r.enterpriseaddress_to_address(this.ptr);return jt.__wrap(t)}static from_address(t){p(t,jt);const e=r.address_as_enterprise(t.ptr);return e===0?void 0:Dn.__wrap(e)}}const By=new FinalizationRegistry(n=>r.__wbg_exunitprices_free(n));class Mn{static __wrap(t){const e=Object.create(Mn.prototype);return e.ptr=t,By.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,By.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_exunitprices_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.exunitprices_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.exunitprices_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Mn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}mem_price(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return ot.__wrap(t)}step_price(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return ot.__wrap(t)}static new(t,e){p(t,ot),p(e,ot);const i=r.exunitprices_new(t.ptr,e.ptr);return Mn.__wrap(i)}static from_float(t,e){const i=r.exunitprices_from_float(t,e);return Mn.__wrap(i)}}const Uy=new FinalizationRegistry(n=>r.__wbg_exunits_free(n));class Je{static __wrap(t){const e=Object.create(Je.prototype);return e.ptr=t,Uy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Uy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_exunits_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.exunits_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.exunits_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Je.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}mem(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}steps(){const t=r.exunits_steps(this.ptr);return O.__wrap(t)}static new(t,e){p(t,O),p(e,O);const i=r.exunits_new(t.ptr,e.ptr);return Je.__wrap(i)}}const Ly=new FinalizationRegistry(n=>r.__wbg_generaltransactionmetadata_free(n));class kr{static __wrap(t){const e=Object.create(kr.prototype);return e.ptr=t,Ly.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ly.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_generaltransactionmetadata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.generaltransactionmetadata_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.generaltransactionmetadata_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return kr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.generaltransactionmetadata_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.generaltransactionmetadata_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.generaltransactionmetadata_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return kr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return kr.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,O),p(e,xt);const i=r.generaltransactionmetadata_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:xt.__wrap(i)}get(t){p(t,O);const e=r.generaltransactionmetadata_get(this.ptr,t.ptr);return e===0?void 0:xt.__wrap(e)}keys(){const t=r.generaltransactionmetadata_keys(this.ptr);return zs.__wrap(t)}}const $y=new FinalizationRegistry(n=>r.__wbg_genesisdelegatehash_free(n));class va{static __wrap(t){const e=Object.create(va.prototype);return e.ptr=t,$y.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$y.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesisdelegatehash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.genesisdelegatehash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.ed25519keyhash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.genesisdelegatehash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.genesisdelegatehash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Hy=new FinalizationRegistry(n=>r.__wbg_genesishash_free(n));class bn{static __wrap(t){const e=Object.create(bn.prototype);return e.ptr=t,Hy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Hy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesishash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.genesishash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.ed25519keyhash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.genesishash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.genesishash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Wy=new FinalizationRegistry(n=>r.__wbg_genesishashes_free(n));class Ai{static __wrap(t){const e=Object.create(Ai.prototype);return e.ptr=t,Wy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Wy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesishashes_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.genesishashes_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.genesishashes_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ai.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.genesishashes_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ai.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return Ai.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.genesishashes_get(this.ptr,t);return bn.__wrap(e)}add(t){p(t,bn),r.ed25519keyhashes_add(this.ptr,t.ptr)}}const Vy=new FinalizationRegistry(n=>r.__wbg_genesiskeydelegation_free(n));class ka{static __wrap(t){const e=Object.create(ka.prototype);return e.ptr=t,Vy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Vy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesiskeydelegation_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.genesiskeydelegation_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.genesiskeydelegation_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ka.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.genesiskeydelegation_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.genesiskeydelegation_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.genesiskeydelegation_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ka.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}genesishash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return bn.__wrap(t)}genesis_delegate_hash(){const t=r.genesiskeydelegation_genesis_delegate_hash(this.ptr);return va.__wrap(t)}vrf_keyhash(){const t=r.genesiskeydelegation_vrf_keyhash(this.ptr);return jn.__wrap(t)}static new(t,e,i){p(t,bn),p(e,va),p(i,jn);const a=r.genesiskeydelegation_new(t.ptr,e.ptr,i.ptr);return ka.__wrap(a)}}const Ky=new FinalizationRegistry(n=>r.__wbg_governanceaction_free(n));class De{static __wrap(t){const e=Object.create(De.prototype);return e.ptr=t,Ky.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ky.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_governanceaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.governanceaction_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.governanceaction_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return De.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.governanceaction_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.governanceaction_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.governanceaction_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return De.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_parameter_change_action(t){p(t,za);const e=r.governanceaction_new_parameter_change_action(t.ptr);return De.__wrap(e)}static new_hard_fork_initiation_action(t){p(t,ja);const e=r.governanceaction_new_hard_fork_initiation_action(t.ptr);return De.__wrap(e)}static new_treasury_withdrawals_action(t){p(t,Za);const e=r.governanceaction_new_treasury_withdrawals_action(t.ptr);return De.__wrap(e)}static new_no_confidence(){const t=r.governanceaction_new_no_confidence();return De.__wrap(t)}static new_new_committee(t){p(t,Pa);const e=r.governanceaction_new_new_committee(t.ptr);return De.__wrap(e)}static new_new_constitution(t){p(t,Ia);const e=r.governanceaction_new_new_constitution(t.ptr);return De.__wrap(e)}static new_info_action(){const t=r.governanceaction_new_info_action();return De.__wrap(t)}kind(){return r.governanceaction_kind(this.ptr)>>>0}as_parameter_change_action(){const t=r.governanceaction_as_parameter_change_action(this.ptr);return t===0?void 0:za.__wrap(t)}as_hard_fork_initiation_action(){const t=r.governanceaction_as_hard_fork_initiation_action(this.ptr);return t===0?void 0:ja.__wrap(t)}as_treasury_withdrawals_action(){const t=r.governanceaction_as_treasury_withdrawals_action(this.ptr);return t===0?void 0:Za.__wrap(t)}as_new_committee(){const t=r.governanceaction_as_new_committee(this.ptr);return t===0?void 0:Pa.__wrap(t)}as_new_constitution(){const t=r.governanceaction_as_new_constitution(this.ptr);return t===0?void 0:Ia.__wrap(t)}}const qy=new FinalizationRegistry(n=>r.__wbg_governanceactionid_free(n));class xa{static __wrap(t){const e=Object.create(xa.prototype);return e.ptr=t,qy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,qy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_governanceactionid_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.governanceactionid_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.governanceactionid_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.governanceactionid_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.governanceactionid_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.governanceactionid_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}transaction_id(){const t=r.governanceactionid_transaction_id(this.ptr);return ye.__wrap(t)}governance_action_index(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,ye),p(e,O);const i=r.governanceactionid_new(t.ptr,e.ptr);return xa.__wrap(i)}}const Qy=new FinalizationRegistry(n=>r.__wbg_hardforkinitiationaction_free(n));class ja{static __wrap(t){const e=Object.create(ja.prototype);return e.ptr=t,Qy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Qy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_hardforkinitiationaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.hardforkinitiationaction_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.hardforkinitiationaction_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.hardforkinitiationaction_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.hardforkinitiationaction_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.hardforkinitiationaction_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}protocol_version(){const t=r.hardforkinitiationaction_new(this.ptr);return vn.__wrap(t)}static new(t){p(t,vn);const e=r.hardforkinitiationaction_new(t.ptr);return ja.__wrap(e)}}const Jy=new FinalizationRegistry(n=>r.__wbg_header_free(n));class Sa{static __wrap(t){const e=Object.create(Sa.prototype);return e.ptr=t,Jy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Jy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_header_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.header_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.header_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Sa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.header_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.header_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.header_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Sa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}header_body(){const t=r.header_header_body(this.ptr);return Ca.__wrap(t)}body_signature(){const t=r.header_body_signature(this.ptr);return Is.__wrap(t)}static new(t,e){p(t,Ca),p(e,Is);const i=r.header_new(t.ptr,e.ptr);return Sa.__wrap(i)}}const Xy=new FinalizationRegistry(n=>r.__wbg_headerbody_free(n));class Ca{static __wrap(t){const e=Object.create(Ca.prototype);return e.ptr=t,Xy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Xy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_headerbody_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.headerbody_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.headerbody_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ca.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.headerbody_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.headerbody_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.headerbody_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ca.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}block_number(){return r.headerbody_block_number(this.ptr)>>>0}slot(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}prev_hash(){const t=r.headerbody_prev_hash(this.ptr);return t===0?void 0:nr.__wrap(t)}issuer_vkey(){const t=r.headerbody_issuer_vkey(this.ptr);return Oe.__wrap(t)}vrf_vkey(){const t=r.headerbody_vrf_vkey(this.ptr);return Ms.__wrap(t)}nonce_vrf(){const t=r.headerbody_nonce_vrf(this.ptr);return _r.__wrap(t)}leader_vrf(){const t=r.headerbody_leader_vrf(this.ptr);return _r.__wrap(t)}block_body_size(){return r.headerbody_block_body_size(this.ptr)>>>0}block_body_hash(){const t=r.headerbody_block_body_hash(this.ptr);return nr.__wrap(t)}operational_cert(){const t=r.headerbody_operational_cert(this.ptr);return Fa.__wrap(t)}protocol_version(){const t=r.headerbody_protocol_version(this.ptr);return vn.__wrap(t)}static new(t,e,i,a,s,_,c,d,f,g,k){p(e,O);let m=0;zt(i)||(p(i,nr),m=i.__destroy_into_raw()),p(a,Oe),p(s,Ms),p(_,_r),p(c,_r),p(f,nr),p(g,Fa),p(k,vn);const x=r.headerbody_new(t,e.ptr,m,a.ptr,s.ptr,_.ptr,c.ptr,d,f.ptr,g.ptr,k.ptr);return Ca.__wrap(x)}}const Gy=new FinalizationRegistry(n=>r.__wbg_int_free(n));let _e=class Js{static __wrap(t){const e=Object.create(Js.prototype);return e.ptr=t,Gy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Gy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_int_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.int_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.int_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Js.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,O);const e=r.int_new(t.ptr);return Js.__wrap(e)}static new_negative(t){p(t,O);const e=r.int_new_negative(t.ptr);return Js.__wrap(e)}static new_i32(t){const e=r.int_new_i32(t);return Js.__wrap(e)}is_positive(){return r.int_is_positive(this.ptr)!==0}as_positive(){const t=r.int_as_positive(this.ptr);return t===0?void 0:O.__wrap(t)}as_negative(){const t=r.int_as_negative(this.ptr);return t===0?void 0:O.__wrap(t)}as_i32(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.int_as_i32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_i32_or_nothing(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.int_as_i32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_i32_or_fail(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.int_as_i32_or_fail(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.int_to_str(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_str(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.int_from_str(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Js.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};const Yy=new FinalizationRegistry(n=>r.__wbg_ipv4_free(n));class xr{static __wrap(t){const e=Object.create(xr.prototype);return e.ptr=t,Yy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Yy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ipv4_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ipv4_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ipv4_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ipv4_new(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}ip(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_ip(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Zy=new FinalizationRegistry(n=>r.__wbg_ipv6_free(n));class jr{static __wrap(t){const e=Object.create(jr.prototype);return e.ptr=t,Zy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Zy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ipv6_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ipv6_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.ipv6_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.ipv6_new(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}ip(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_ip(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const tm=new FinalizationRegistry(n=>r.__wbg_kessignature_free(n));class Is{static __wrap(t){const e=Object.create(Is.prototype);return e.ptr=t,tm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,tm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_kessignature_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.kessignature_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Is.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const em=new FinalizationRegistry(n=>r.__wbg_kesvkey_free(n));class Ea{static __wrap(t){const e=Object.create(Ea.prototype);return e.ptr=t,em.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,em.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_kesvkey_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.kesvkey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ea.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.kesvkey_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ea.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.kesvkey_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ea.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const nm=new FinalizationRegistry(n=>r.__wbg_language_free(n));class Xe{static __wrap(t){const e=Object.create(Xe.prototype);return e.ptr=t,nm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,nm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_language_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.language_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.language_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Xe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_plutus_v1(){const t=r.language_new_plutus_v1();return Xe.__wrap(t)}static new_plutus_v2(){const t=r.language_new_plutus_v2();return Xe.__wrap(t)}static new_plutus_v3(){const t=r.language_new_plutus_v3();return Xe.__wrap(t)}kind(){return r.language_kind(this.ptr)>>>0}}const rm=new FinalizationRegistry(n=>r.__wbg_languages_free(n));class Fo{static __wrap(t){const e=Object.create(Fo.prototype);return e.ptr=t,rm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,rm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_languages_free(t)}static new(){const t=r.ed25519keyhashes_new();return Fo.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.languages_get(this.ptr,t);return Xe.__wrap(e)}add(t){p(t,Xe);var e=t.__destroy_into_raw();r.languages_add(this.ptr,e)}}const am=new FinalizationRegistry(n=>r.__wbg_legacydaedalusprivatekey_free(n));class zo{static __wrap(t){const e=Object.create(zo.prototype);return e.ptr=t,am.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,am.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_legacydaedalusprivatekey_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.legacydaedalusprivatekey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return zo.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.legacydaedalusprivatekey_as_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}chaincode(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.legacydaedalusprivatekey_chaincode(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const im=new FinalizationRegistry(n=>r.__wbg_linearfee_free(n));class Bi{static __wrap(t){const e=Object.create(Bi.prototype);return e.ptr=t,im.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,im.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_linearfee_free(t)}constant(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}coefficient(){const t=r.exunits_steps(this.ptr);return O.__wrap(t)}static new(t,e){p(t,O),p(e,O);const i=r.linearfee_new(t.ptr,e.ptr);return Bi.__wrap(i)}}const sm=new FinalizationRegistry(n=>r.__wbg_mirtostakecredentials_free(n));class Oa{static __wrap(t){const e=Object.create(Oa.prototype);return e.ptr=t,sm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,sm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_mirtostakecredentials_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.mirtostakecredentials_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.mirtostakecredentials_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Oa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.mirtostakecredentials_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.mirtostakecredentials_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.mirtostakecredentials_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Oa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return Oa.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,q),p(e,_e);const i=r.mirtostakecredentials_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:_e.__wrap(i)}get(t){p(t,q);const e=r.mirtostakecredentials_get(this.ptr,t.ptr);return e===0?void 0:_e.__wrap(e)}keys(){const t=r.mirtostakecredentials_keys(this.ptr);return qi.__wrap(t)}}const om=new FinalizationRegistry(n=>r.__wbg_metadatalist_free(n));class Na{static __wrap(t){const e=Object.create(Na.prototype);return e.ptr=t,om.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,om.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_metadatalist_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.metadatalist_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.metadatalist_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Na.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Na.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.metadatalist_get(this.ptr,t);return xt.__wrap(e)}add(t){p(t,xt),r.metadatalist_add(this.ptr,t.ptr)}}const _m=new FinalizationRegistry(n=>r.__wbg_metadatamap_free(n));class Ui{static __wrap(t){const e=Object.create(Ui.prototype);return e.ptr=t,_m.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_m.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_metadatamap_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.metadatamap_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.metadatamap_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ui.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return Ui.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,xt),p(e,xt);const i=r.metadatamap_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:xt.__wrap(i)}insert_str(t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16),c=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),d=h;p(e,xt),r.metadatamap_insert_str(_,this.ptr,c,d,e.ptr);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return i===0?void 0:xt.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}insert_i32(t,e){p(e,xt);const i=r.metadatamap_insert_i32(this.ptr,t,e.ptr);return i===0?void 0:xt.__wrap(i)}get(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,xt),r.metadatamap_get(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_str(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.metadatamap_get_str(s,this.ptr,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_i32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.metadatamap_get_i32(s,this.ptr,t);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}has(t){return p(t,xt),r.metadatamap_has(this.ptr,t.ptr)!==0}keys(){const t=r.metadatamap_keys(this.ptr);return Na.__wrap(t)}}const cm=new FinalizationRegistry(n=>r.__wbg_mint_free(n));class ar{static __wrap(t){const e=Object.create(ar.prototype);return e.ptr=t,cm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,cm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_mint_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.mint_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.mint_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.mint_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.mint_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.mint_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return ar.__wrap(t)}static new_from_entry(t,e){p(t,dt),p(e,An);const i=r.mint_new_from_entry(t.ptr,e.ptr);return ar.__wrap(i)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,dt),p(e,An);const i=r.mint_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:An.__wrap(i)}get(t){p(t,dt);const e=r.mint_get(this.ptr,t.ptr);return e===0?void 0:An.__wrap(e)}keys(){const t=r.mint_keys(this.ptr);return $a.__wrap(t)}as_positive_multiasset(){const t=r.mint_as_positive_multiasset(this.ptr);return be.__wrap(t)}as_negative_multiasset(){const t=r.mint_as_negative_multiasset(this.ptr);return be.__wrap(t)}}const lm=new FinalizationRegistry(n=>r.__wbg_mintassets_free(n));class An{static __wrap(t){const e=Object.create(An.prototype);return e.ptr=t,lm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,lm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_mintassets_free(t)}static new(){const t=r.assets_new();return An.__wrap(t)}static new_from_entry(t,e){p(t,ie),p(e,_e);var i=e.__destroy_into_raw();const a=r.mintassets_new_from_entry(t.ptr,i);return An.__wrap(a)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,ie),p(e,_e);var i=e.__destroy_into_raw();const a=r.mintassets_insert(this.ptr,t.ptr,i);return a===0?void 0:_e.__wrap(a)}get(t){p(t,ie);const e=r.mintassets_get(this.ptr,t.ptr);return e===0?void 0:_e.__wrap(e)}keys(){const t=r.mintassets_keys(this.ptr);return wa.__wrap(t)}}const dm=new FinalizationRegistry(n=>r.__wbg_moveinstantaneousreward_free(n));class Sr{static __wrap(t){const e=Object.create(Sr.prototype);return e.ptr=t,dm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,dm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_moveinstantaneousreward_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousreward_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.moveinstantaneousreward_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Sr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousreward_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousreward_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.moveinstantaneousreward_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Sr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_to_other_pot(t,e){p(e,O);const i=r.moveinstantaneousreward_new_to_other_pot(t,e.ptr);return Sr.__wrap(i)}static new_to_stake_creds(t,e){p(e,Oa);const i=r.moveinstantaneousreward_new_to_stake_creds(t,e.ptr);return Sr.__wrap(i)}pot(){return r.moveinstantaneousreward_pot(this.ptr)>>>0}kind(){return r.moveinstantaneousreward_kind(this.ptr)>>>0}as_to_other_pot(){const t=r.moveinstantaneousreward_as_to_other_pot(this.ptr);return t===0?void 0:O.__wrap(t)}as_to_stake_creds(){const t=r.moveinstantaneousreward_as_to_stake_creds(this.ptr);return t===0?void 0:Oa.__wrap(t)}}const um=new FinalizationRegistry(n=>r.__wbg_moveinstantaneousrewardscert_free(n));class Ra{static __wrap(t){const e=Object.create(Ra.prototype);return e.ptr=t,um.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,um.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_moveinstantaneousrewardscert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousrewardscert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.moveinstantaneousrewardscert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ra.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousrewardscert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousrewardscert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.moveinstantaneousrewardscert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ra.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}move_instantaneous_reward(){const t=r.moveinstantaneousrewardscert_move_instantaneous_reward(this.ptr);return Sr.__wrap(t)}static new(t){p(t,Sr);const e=r.moveinstantaneousrewardscert_new(t.ptr);return Ra.__wrap(e)}}const pm=new FinalizationRegistry(n=>r.__wbg_multiasset_free(n));class be{static __wrap(t){const e=Object.create(be.prototype);return e.ptr=t,pm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,pm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_multiasset_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.multiasset_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.multiasset_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return be.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.multiasset_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.multiasset_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.multiasset_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return be.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return be.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,dt),p(e,tr);const i=r.multiasset_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:tr.__wrap(i)}get(t){p(t,dt);const e=r.multiasset_get(this.ptr,t.ptr);return e===0?void 0:tr.__wrap(e)}set_asset(t,e,i){p(t,dt),p(e,ie),p(i,O);var a=i.__destroy_into_raw();const s=r.multiasset_set_asset(this.ptr,t.ptr,e.ptr,a);return s===0?void 0:O.__wrap(s)}get_asset(t,e){p(t,dt),p(e,ie);const i=r.multiasset_get_asset(this.ptr,t.ptr,e.ptr);return O.__wrap(i)}keys(){const t=r.mint_keys(this.ptr);return $a.__wrap(t)}sub(t){p(t,be);const e=r.multiasset_sub(this.ptr,t.ptr);return be.__wrap(e)}}const fm=new FinalizationRegistry(n=>r.__wbg_multihostname_free(n));class Cr{static __wrap(t){const e=Object.create(Cr.prototype);return e.ptr=t,fm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,fm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_multihostname_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.multihostname_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.multihostname_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Cr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.multihostname_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.multihostname_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.multihostname_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Cr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}dns_name(){const t=r.anchor_anchor_url(this.ptr);return ya.__wrap(t)}static new(t){p(t,ya);const e=r.multihostname_new(t.ptr);return Cr.__wrap(e)}}const wm=new FinalizationRegistry(n=>r.__wbg_nativescript_free(n));class Nt{static __wrap(t){const e=Object.create(Nt.prototype);return e.ptr=t,wm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,wm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_nativescript_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.nativescript_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.nativescript_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Nt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.nativescript_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.nativescript_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.nativescript_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Nt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(t){const e=r.nativescript_hash(this.ptr,t);return dt.__wrap(e)}static new_script_pubkey(t){p(t,Wa);const e=r.nativescript_new_script_pubkey(t.ptr);return Nt.__wrap(e)}static new_script_all(t){p(t,Ua);const e=r.nativescript_new_script_all(t.ptr);return Nt.__wrap(e)}static new_script_any(t){p(t,La);const e=r.nativescript_new_script_any(t.ptr);return Nt.__wrap(e)}static new_script_n_of_k(t){p(t,Ha);const e=r.nativescript_new_script_n_of_k(t.ptr);return Nt.__wrap(e)}static new_timelock_start(t){p(t,Ka);const e=r.nativescript_new_timelock_start(t.ptr);return Nt.__wrap(e)}static new_timelock_expiry(t){p(t,Va);const e=r.nativescript_new_timelock_expiry(t.ptr);return Nt.__wrap(e)}kind(){return r.nativescript_kind(this.ptr)>>>0}as_script_pubkey(){const t=r.nativescript_as_script_pubkey(this.ptr);return t===0?void 0:Wa.__wrap(t)}as_script_all(){const t=r.nativescript_as_script_all(this.ptr);return t===0?void 0:Ua.__wrap(t)}as_script_any(){const t=r.nativescript_as_script_any(this.ptr);return t===0?void 0:La.__wrap(t)}as_script_n_of_k(){const t=r.nativescript_as_script_n_of_k(this.ptr);return t===0?void 0:Ha.__wrap(t)}as_timelock_start(){const t=r.nativescript_as_timelock_start(this.ptr);return t===0?void 0:Ka.__wrap(t)}as_timelock_expiry(){const t=r.nativescript_as_timelock_expiry(this.ptr);return t===0?void 0:Va.__wrap(t)}get_required_signers(){const t=r.nativescript_get_required_signers(this.ptr);return ee.__wrap(t)}verify(t,e,i){let a=0;zt(t)||(p(t,O),a=t.__destroy_into_raw());let s=0;return zt(e)||(p(e,O),s=e.__destroy_into_raw()),p(i,ee),r.nativescript_verify(this.ptr,a,s,i.ptr)!==0}}const hm=new FinalizationRegistry(n=>r.__wbg_nativescripts_free(n));class Ce{static __wrap(t){const e=Object.create(Ce.prototype);return e.ptr=t,hm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,hm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_nativescripts_free(t)}static new(){const t=r.certificates_new();return Ce.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.nativescripts_get(this.ptr,t);return Nt.__wrap(e)}add(t){p(t,Nt),r.nativescripts_add(this.ptr,t.ptr)}}const gm=new FinalizationRegistry(n=>r.__wbg_networkid_free(n));class yn{static __wrap(t){const e=Object.create(yn.prototype);return e.ptr=t,gm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,gm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_networkid_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.networkid_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.networkid_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.networkid_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.networkid_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.networkid_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static testnet(){const t=r.networkid_testnet();return yn.__wrap(t)}static mainnet(){const t=r.networkid_mainnet();return yn.__wrap(t)}kind(){return r.networkid_kind(this.ptr)>>>0}}const bm=new FinalizationRegistry(n=>r.__wbg_networkinfo_free(n));class Er{static __wrap(t){const e=Object.create(Er.prototype);return e.ptr=t,bm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,bm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_networkinfo_free(t)}static new(t,e){const i=r.networkinfo_new(t,e);return Er.__wrap(i)}network_id(){return r.networkinfo_network_id(this.ptr)}protocol_magic(){return r.networkinfo_protocol_magic(this.ptr)>>>0}static testnet(){const t=r.networkinfo_testnet();return Er.__wrap(t)}static mainnet(){const t=r.networkinfo_mainnet();return Er.__wrap(t)}}const ym=new FinalizationRegistry(n=>r.__wbg_newcommittee_free(n));class Pa{static __wrap(t){const e=Object.create(Pa.prototype);return e.ptr=t,ym.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ym.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_newcommittee_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.newcommittee_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.newcommittee_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.newcommittee_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.newcommittee_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.newcommittee_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}committee(){const t=r.newcommittee_committee(this.ptr);return ee.__wrap(t)}rational(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return ot.__wrap(t)}static new(t,e){p(t,ee),p(e,ot);const i=r.newcommittee_new(t.ptr,e.ptr);return Pa.__wrap(i)}}const mm=new FinalizationRegistry(n=>r.__wbg_newconstitution_free(n));class Ia{static __wrap(t){const e=Object.create(Ia.prototype);return e.ptr=t,mm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,mm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_newconstitution_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.newconstitution_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.newconstitution_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ia.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.newconstitution_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.newconstitution_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.newconstitution_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ia.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(){const t=r.newconstitution_hash(this.ptr);return se.__wrap(t)}static new(t){p(t,se);const e=r.newconstitution_new(t.ptr);return Ia.__wrap(e)}}const vm=new FinalizationRegistry(n=>r.__wbg_nonce_free(n));class Ta{static __wrap(t){const e=Object.create(Ta.prototype);return e.ptr=t,vm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,vm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_nonce_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.nonce_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.nonce_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ta.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_identity(){const t=r.nonce_new_identity();return Ta.__wrap(t)}static new_from_hash(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.nonce_new_from_hash(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ta.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_hash(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.nonce_get_hash(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];let a;return t!==0&&(a=E(t,e).slice(),r.__wbindgen_free(t,e*1)),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const km=new FinalizationRegistry(n=>r.__wbg_operationalcert_free(n));class Fa{static __wrap(t){const e=Object.create(Fa.prototype);return e.ptr=t,km.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,km.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_operationalcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.operationalcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.operationalcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.operationalcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.operationalcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.operationalcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hot_vkey(){const t=r.operationalcert_hot_vkey(this.ptr);return Ea.__wrap(t)}sequence_number(){return r.networkinfo_protocol_magic(this.ptr)>>>0}kes_period(){return r.operationalcert_kes_period(this.ptr)>>>0}sigma(){const t=r.operationalcert_sigma(this.ptr);return Se.__wrap(t)}static new(t,e,i,a){p(t,Ea),p(a,Se);const s=r.operationalcert_new(t.ptr,e,i,a.ptr);return Fa.__wrap(s)}}const xm=new FinalizationRegistry(n=>r.__wbg_parameterchangeaction_free(n));class za{static __wrap(t){const e=Object.create(za.prototype);return e.ptr=t,xm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,xm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_parameterchangeaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.parameterchangeaction_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.parameterchangeaction_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.parameterchangeaction_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.parameterchangeaction_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.parameterchangeaction_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}protocol_param_update(){const t=r.parameterchangeaction_protocol_param_update(this.ptr);return Bn.__wrap(t)}static new(t){p(t,Bn);const e=r.parameterchangeaction_new(t.ptr);return za.__wrap(e)}}const jm=new FinalizationRegistry(n=>r.__wbg_plutusdata_free(n));class st{static __wrap(t){const e=Object.create(st.prototype);return e.ptr=t,jm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,jm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusdata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusdata_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.plutusdata_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return st.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_constr_plutus_data(t){p(t,ga);const e=r.plutusdata_new_constr_plutus_data(t.ptr);return st.__wrap(e)}static new_map(t){p(t,Da);const e=r.plutusdata_new_map(t.ptr);return st.__wrap(e)}static new_list(t){p(t,ce);const e=r.plutusdata_new_list(t.ptr);return st.__wrap(e)}static new_integer(t){p(t,G_);const e=r.plutusdata_new_integer(t.ptr);return st.__wrap(e)}static new_bytes(t){const e=R(t,r.__wbindgen_malloc),i=h,a=r.plutusdata_new_bytes(e,i);return st.__wrap(a)}kind(){return r.plutusdata_kind(this.ptr)>>>0}as_constr_plutus_data(){const t=r.plutusdata_as_constr_plutus_data(this.ptr);return t===0?void 0:ga.__wrap(t)}as_map(){const t=r.plutusdata_as_map(this.ptr);return t===0?void 0:Da.__wrap(t)}as_list(){const t=r.plutusdata_as_list(this.ptr);return t===0?void 0:ce.__wrap(t)}as_integer(){const t=r.plutusdata_as_integer(this.ptr);return t===0?void 0:G_.__wrap(t)}as_bytes(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.plutusdata_as_bytes(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];let a;return t!==0&&(a=E(t,e).slice(),r.__wbindgen_free(t,e*1)),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Sm=new FinalizationRegistry(n=>r.__wbg_plutuslist_free(n));class ce{static __wrap(t){const e=Object.create(ce.prototype);return e.ptr=t,Sm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Sm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutuslist_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutuslist_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.plutuslist_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ce.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.plutuslist_new();return ce.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.plutuslist_get(this.ptr,t);return st.__wrap(e)}add(t){p(t,st),r.plutuslist_add(this.ptr,t.ptr)}}const Cm=new FinalizationRegistry(n=>r.__wbg_plutusmap_free(n));class Da{static __wrap(t){const e=Object.create(Da.prototype);return e.ptr=t,Cm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Cm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusmap_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusmap_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.plutusmap_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Da.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Da.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,st),p(e,st);const i=r.plutusmap_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:st.__wrap(i)}get(t){p(t,st);const e=r.plutusmap_get(this.ptr,t.ptr);return e===0?void 0:st.__wrap(e)}keys(){const t=r.plutusmap_keys(this.ptr);return ce.__wrap(t)}}const Em=new FinalizationRegistry(n=>r.__wbg_plutusscript_free(n));class bt{static __wrap(t){const e=Object.create(bt.prototype);return e.ptr=t,Em.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Em.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusscript_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusscript_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.plutusscript_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return bt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(t){const e=r.plutusscript_hash(this.ptr,t);return dt.__wrap(e)}static new(t){const e=R(t,r.__wbindgen_malloc),i=h,a=r.plutusscript_new(e,i);return bt.__wrap(a)}bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Om=new FinalizationRegistry(n=>r.__wbg_plutusscripts_free(n));class le{static __wrap(t){const e=Object.create(le.prototype);return e.ptr=t,Om.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Om.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusscripts_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusscripts_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.plutusscripts_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return le.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return le.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.plutusscripts_get(this.ptr,t);return bt.__wrap(e)}add(t){p(t,bt),r.assetnames_add(this.ptr,t.ptr)}}const Nm=new FinalizationRegistry(n=>r.__wbg_plutuswitness_free(n));class mn{static __wrap(t){const e=Object.create(mn.prototype);return e.ptr=t,Nm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Nm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutuswitness_free(t)}static new(t,e,i){p(t,st);let a=0;zt(e)||(p(e,st),a=e.__destroy_into_raw());let s=0;zt(i)||(p(i,bt),s=i.__destroy_into_raw());const _=r.plutuswitness_new(t.ptr,a,s);return mn.__wrap(_)}static new_plutus_v2(t,e,i){p(t,st);let a=0;zt(e)||(p(e,st),a=e.__destroy_into_raw());let s=0;zt(i)||(p(i,bt),s=i.__destroy_into_raw());const _=r.plutuswitness_new_plutus_v2(t.ptr,a,s);return mn.__wrap(_)}plutus_data(){const t=r.plutuswitness_plutus_data(this.ptr);return t===0?void 0:st.__wrap(t)}redeemer(){const t=r.data_get(this.ptr);return st.__wrap(t)}script(){const t=r.plutuswitness_script(this.ptr);return t===0?void 0:bt.__wrap(t)}version(){return r.plutuswitness_version(this.ptr)>>>0}}const Rm=new FinalizationRegistry(n=>r.__wbg_pointer_free(n));class Ts{static __wrap(t){const e=Object.create(Ts.prototype);return e.ptr=t,Rm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Rm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_pointer_free(t)}static new(t,e,i){p(t,O),p(e,O),p(i,O);const a=r.pointer_new(t.ptr,e.ptr,i.ptr);return Ts.__wrap(a)}slot(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}tx_index(){const t=r.exunits_steps(this.ptr);return O.__wrap(t)}cert_index(){const t=r.pointer_cert_index(this.ptr);return O.__wrap(t)}}const Pm=new FinalizationRegistry(n=>r.__wbg_pointeraddress_free(n));class Li{static __wrap(t){const e=Object.create(Li.prototype);return e.ptr=t,Pm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Pm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_pointeraddress_free(t)}static new(t,e,i){p(e,q),p(i,Ts);const a=r.pointeraddress_new(t,e.ptr,i.ptr);return Li.__wrap(a)}payment_cred(){const t=r.pointeraddress_payment_cred(this.ptr);return q.__wrap(t)}stake_pointer(){const t=r.pointeraddress_stake_pointer(this.ptr);return Ts.__wrap(t)}to_address(){const t=r.pointeraddress_to_address(this.ptr);return jt.__wrap(t)}static from_address(t){p(t,jt);const e=r.address_as_pointer(t.ptr);return e===0?void 0:Li.__wrap(e)}}const Im=new FinalizationRegistry(n=>r.__wbg_poolmetadata_free(n));class Or{static __wrap(t){const e=Object.create(Or.prototype);return e.ptr=t,Im.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Im.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolmetadata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolmetadata_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.poolmetadata_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Or.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolmetadata_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolmetadata_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolmetadata_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Or.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}url(){const t=r.anchor_anchor_url(this.ptr);return or.__wrap(t)}pool_metadata_hash(){const t=r.anchor_anchor_data_hash(this.ptr);return Nr.__wrap(t)}static new(t,e){p(t,or),p(e,Nr);const i=r.anchor_new(t.ptr,e.ptr);return Or.__wrap(i)}}const Tm=new FinalizationRegistry(n=>r.__wbg_poolmetadatahash_free(n));class Nr{static __wrap(t){const e=Object.create(Nr.prototype);return e.ptr=t,Tm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Tm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolmetadatahash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.poolmetadatahash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolmetadatahash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolmetadatahash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Fm=new FinalizationRegistry(n=>r.__wbg_poolparams_free(n));class Rr{static __wrap(t){const e=Object.create(Rr.prototype);return e.ptr=t,Fm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Fm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolparams_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolparams_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.poolparams_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Rr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolparams_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolparams_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolparams_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Rr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}operator(){const t=r.poolparams_operator(this.ptr);return et.__wrap(t)}vrf_keyhash(){const t=r.poolparams_vrf_keyhash(this.ptr);return jn.__wrap(t)}pledge(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}cost(){const t=r.exunits_steps(this.ptr);return O.__wrap(t)}margin(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return ot.__wrap(t)}reward_account(){const t=r.poolparams_reward_account(this.ptr);return It.__wrap(t)}pool_owners(){const t=r.poolparams_pool_owners(this.ptr);return ee.__wrap(t)}relays(){const t=r.poolparams_relays(this.ptr);return zr.__wrap(t)}pool_metadata(){const t=r.poolparams_pool_metadata(this.ptr);return t===0?void 0:Or.__wrap(t)}static new(t,e,i,a,s,_,c,d,f){p(t,et),p(e,jn),p(i,O),p(a,O),p(s,ot),p(_,It),p(c,ee),p(d,zr);let g=0;zt(f)||(p(f,Or),g=f.__destroy_into_raw());const k=r.poolparams_new(t.ptr,e.ptr,i.ptr,a.ptr,s.ptr,_.ptr,c.ptr,d.ptr,g);return Rr.__wrap(k)}}const zm=new FinalizationRegistry(n=>r.__wbg_poolregistration_free(n));class Pr{static __wrap(t){const e=Object.create(Pr.prototype);return e.ptr=t,zm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,zm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolregistration_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolregistration_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.poolregistration_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Pr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolregistration_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolregistration_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolregistration_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Pr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}pool_params(){const t=r.poolregistration_pool_params(this.ptr);return Rr.__wrap(t)}static new(t){p(t,Rr);const e=r.poolregistration_new(t.ptr);return Pr.__wrap(e)}set_is_update(t){r.poolregistration_set_is_update(this.ptr,t)}}const Dm=new FinalizationRegistry(n=>r.__wbg_poolretirement_free(n));class Ir{static __wrap(t){const e=Object.create(Ir.prototype);return e.ptr=t,Dm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Dm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolretirement_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolretirement_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.poolretirement_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolretirement_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolretirement_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolretirement_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}pool_keyhash(){const t=r.poolretirement_pool_keyhash(this.ptr);return et.__wrap(t)}epoch(){return r.networkinfo_protocol_magic(this.ptr)>>>0}static new(t,e){p(t,et);const i=r.poolretirement_new(t.ptr,e);return Ir.__wrap(i)}}const Mm=new FinalizationRegistry(n=>r.__wbg_poolvotingthresholds_free(n));class Ma{static __wrap(t){const e=Object.create(Ma.prototype);return e.ptr=t,Mm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Mm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolvotingthresholds_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolvotingthresholds_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.poolvotingthresholds_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolvotingthresholds_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolvotingthresholds_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.poolvotingthresholds_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}motion_no_confidence(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return ot.__wrap(t)}committee_normal(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return ot.__wrap(t)}committee_no_confidence(){const t=r.drepvotingthresholds_committee_no_confidence(this.ptr);return ot.__wrap(t)}hard_fork_initiation(){const t=r.drepvotingthresholds_update_constitution(this.ptr);return ot.__wrap(t)}static new(t,e,i,a){p(t,ot),p(e,ot),p(i,ot),p(a,ot);const s=r.poolvotingthresholds_new(t.ptr,e.ptr,i.ptr,a.ptr);return Ma.__wrap(s)}}const Am=new FinalizationRegistry(n=>r.__wbg_privatekey_free(n));class Kt{static __wrap(t){const e=Object.create(Kt.prototype);return e.ptr=t,Am.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Am.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_privatekey_free(t)}to_public(){const t=r.privatekey_to_public(this.ptr);return kn.__wrap(t)}static generate_ed25519(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_generate_ed25519(a);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Kt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519extended(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_generate_ed25519extended(a);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Kt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.privatekey_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_to_bech32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_as_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_extended_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.privatekey_from_extended_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_normal_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.privatekey_from_normal_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}sign(t){const e=R(t,r.__wbindgen_malloc),i=h,a=r.privatekey_sign(this.ptr,e,i);return Se.__wrap(a)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.privatekey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Bm=new FinalizationRegistry(n=>r.__wbg_proposalprocedure_free(n));class Aa{static __wrap(t){const e=Object.create(Aa.prototype);return e.ptr=t,Bm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Bm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_proposalprocedure_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedure_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.proposalprocedure_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Aa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedure_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedure_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.proposalprocedure_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Aa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}deposit(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}hash(){const t=r.proposalprocedure_hash(this.ptr);return dt.__wrap(t)}governance_action(){const t=r.proposalprocedure_governance_action(this.ptr);return De.__wrap(t)}anchor(){const t=r.proposalprocedure_anchor(this.ptr);return Zn.__wrap(t)}static new(t,e,i,a){p(t,O),p(e,dt),p(i,De),p(a,Zn);const s=r.proposalprocedure_new(t.ptr,e.ptr,i.ptr,a.ptr);return Aa.__wrap(s)}}const Um=new FinalizationRegistry(n=>r.__wbg_proposalprocedures_free(n));class $i{static __wrap(t){const e=Object.create($i.prototype);return e.ptr=t,Um.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Um.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_proposalprocedures_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedures_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.proposalprocedures_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return $i.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return $i.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.proposalprocedures_get(this.ptr,t);return Aa.__wrap(e)}add(t){p(t,Aa),r.proposalprocedures_add(this.ptr,t.ptr)}}const Lm=new FinalizationRegistry(n=>r.__wbg_proposedprotocolparameterupdates_free(n));class Ba{static __wrap(t){const e=Object.create(Ba.prototype);return e.ptr=t,Lm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Lm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_proposedprotocolparameterupdates_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposedprotocolparameterupdates_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.proposedprotocolparameterupdates_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.proposedprotocolparameterupdates_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposedprotocolparameterupdates_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.proposedprotocolparameterupdates_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return Ba.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,bn),p(e,Bn);const i=r.proposedprotocolparameterupdates_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:Bn.__wrap(i)}get(t){p(t,bn);const e=r.proposedprotocolparameterupdates_get(this.ptr,t.ptr);return e===0?void 0:Bn.__wrap(e)}keys(){const t=r.proposedprotocolparameterupdates_keys(this.ptr);return Ai.__wrap(t)}}const $m=new FinalizationRegistry(n=>r.__wbg_protocolparamupdate_free(n));class Bn{static __wrap(t){const e=Object.create(Bn.prototype);return e.ptr=t,$m.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$m.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_protocolparamupdate_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.protocolparamupdate_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.protocolparamupdate_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_minfee_a(t){p(t,O),r.protocolparamupdate_set_minfee_a(this.ptr,t.ptr)}minfee_a(){const t=r.protocolparamupdate_minfee_a(this.ptr);return t===0?void 0:O.__wrap(t)}set_minfee_b(t){p(t,O),r.protocolparamupdate_set_minfee_b(this.ptr,t.ptr)}minfee_b(){const t=r.protocolparamupdate_minfee_b(this.ptr);return t===0?void 0:O.__wrap(t)}set_max_block_body_size(t){r.protocolparamupdate_set_max_block_body_size(this.ptr,t)}max_block_body_size(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_block_body_size(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_max_tx_size(t){r.protocolparamupdate_set_max_tx_size(this.ptr,t)}max_tx_size(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_tx_size(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_max_block_header_size(t){r.protocolparamupdate_set_max_block_header_size(this.ptr,t)}max_block_header_size(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_block_header_size(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_key_deposit(t){p(t,O),r.protocolparamupdate_set_key_deposit(this.ptr,t.ptr)}key_deposit(){const t=r.protocolparamupdate_key_deposit(this.ptr);return t===0?void 0:O.__wrap(t)}set_pool_deposit(t){p(t,O),r.protocolparamupdate_set_pool_deposit(this.ptr,t.ptr)}pool_deposit(){const t=r.protocolparamupdate_pool_deposit(this.ptr);return t===0?void 0:O.__wrap(t)}set_max_epoch(t){r.protocolparamupdate_set_max_epoch(this.ptr,t)}max_epoch(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_epoch(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_n_opt(t){r.protocolparamupdate_set_n_opt(this.ptr,t)}n_opt(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_n_opt(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_pool_pledge_influence(t){p(t,ot),r.protocolparamupdate_set_pool_pledge_influence(this.ptr,t.ptr)}pool_pledge_influence(){const t=r.protocolparamupdate_pool_pledge_influence(this.ptr);return t===0?void 0:ot.__wrap(t)}set_expansion_rate(t){p(t,ot),r.protocolparamupdate_set_expansion_rate(this.ptr,t.ptr)}expansion_rate(){const t=r.protocolparamupdate_expansion_rate(this.ptr);return t===0?void 0:ot.__wrap(t)}set_treasury_growth_rate(t){p(t,ot),r.protocolparamupdate_set_treasury_growth_rate(this.ptr,t.ptr)}treasury_growth_rate(){const t=r.protocolparamupdate_treasury_growth_rate(this.ptr);return t===0?void 0:ot.__wrap(t)}set_d(t){p(t,ot),r.protocolparamupdate_set_d(this.ptr,t.ptr)}d(){const t=r.protocolparamupdate_d(this.ptr);return t===0?void 0:ot.__wrap(t)}set_extra_entropy(t){p(t,Ta),r.protocolparamupdate_set_extra_entropy(this.ptr,t.ptr)}extra_entropy(){const t=r.protocolparamupdate_extra_entropy(this.ptr);return t===0?void 0:Ta.__wrap(t)}set_protocol_version(t){p(t,vn),r.protocolparamupdate_set_protocol_version(this.ptr,t.ptr)}protocol_version(){const t=r.protocolparamupdate_protocol_version(this.ptr);return t===0?void 0:vn.__wrap(t)}set_min_pool_cost(t){p(t,O),r.protocolparamupdate_set_min_pool_cost(this.ptr,t.ptr)}min_pool_cost(){const t=r.protocolparamupdate_min_pool_cost(this.ptr);return t===0?void 0:O.__wrap(t)}set_ada_per_utxo_byte(t){p(t,O),r.protocolparamupdate_set_ada_per_utxo_byte(this.ptr,t.ptr)}ada_per_utxo_byte(){const t=r.protocolparamupdate_ada_per_utxo_byte(this.ptr);return t===0?void 0:O.__wrap(t)}set_cost_models(t){p(t,rr),r.protocolparamupdate_set_cost_models(this.ptr,t.ptr)}cost_models(){const t=r.protocolparamupdate_cost_models(this.ptr);return t===0?void 0:rr.__wrap(t)}set_execution_costs(t){p(t,Mn),r.protocolparamupdate_set_execution_costs(this.ptr,t.ptr)}execution_costs(){const t=r.protocolparamupdate_execution_costs(this.ptr);return t===0?void 0:Mn.__wrap(t)}set_max_tx_ex_units(t){p(t,Je),r.protocolparamupdate_set_max_tx_ex_units(this.ptr,t.ptr)}max_tx_ex_units(){const t=r.protocolparamupdate_max_tx_ex_units(this.ptr);return t===0?void 0:Je.__wrap(t)}set_max_block_ex_units(t){p(t,Je),r.protocolparamupdate_set_max_block_ex_units(this.ptr,t.ptr)}max_block_ex_units(){const t=r.protocolparamupdate_max_block_ex_units(this.ptr);return t===0?void 0:Je.__wrap(t)}set_max_value_size(t){r.protocolparamupdate_set_max_value_size(this.ptr,t)}max_value_size(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_value_size(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_collateral_percentage(t){r.protocolparamupdate_set_collateral_percentage(this.ptr,t)}collateral_percentage(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_collateral_percentage(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_max_collateral_inputs(t){r.protocolparamupdate_set_max_collateral_inputs(this.ptr,t)}max_collateral_inputs(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_collateral_inputs(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_pool_voting_thresholds(t){p(t,Ma);var e=t.__destroy_into_raw();r.protocolparamupdate_set_pool_voting_thresholds(this.ptr,e)}pool_voting_thresholds(){const t=r.protocolparamupdate_pool_voting_thresholds(this.ptr);return t===0?void 0:Ma.__wrap(t)}set_drep_voting_thresholds(t){p(t,ma);var e=t.__destroy_into_raw();r.protocolparamupdate_set_drep_voting_thresholds(this.ptr,e)}drep_voting_thresholds(){const t=r.protocolparamupdate_drep_voting_thresholds(this.ptr);return t===0?void 0:ma.__wrap(t)}set_min_committee_size(t){p(t,O);var e=t.__destroy_into_raw();r.protocolparamupdate_set_min_committee_size(this.ptr,e)}min_committee_size(){const t=r.protocolparamupdate_min_committee_size(this.ptr);return t===0?void 0:O.__wrap(t)}set_committee_term_limit(t){p(t,O);var e=t.__destroy_into_raw();r.protocolparamupdate_set_committee_term_limit(this.ptr,e)}committee_term_limit(){const t=r.protocolparamupdate_committee_term_limit(this.ptr);return t===0?void 0:O.__wrap(t)}set_governance_action_expiration(t){p(t,O);var e=t.__destroy_into_raw();r.protocolparamupdate_set_governance_action_expiration(this.ptr,e)}governance_action_expiration(){const t=r.protocolparamupdate_governance_action_expiration(this.ptr);return t===0?void 0:O.__wrap(t)}set_governance_action_deposit(t){p(t,O);var e=t.__destroy_into_raw();r.protocolparamupdate_set_governance_action_deposit(this.ptr,e)}governance_action_deposit(){const t=r.protocolparamupdate_governance_action_deposit(this.ptr);return t===0?void 0:O.__wrap(t)}set_drep_deposit(t){p(t,O);var e=t.__destroy_into_raw();r.protocolparamupdate_set_drep_deposit(this.ptr,e)}drep_deposit(){const t=r.protocolparamupdate_drep_deposit(this.ptr);return t===0?void 0:O.__wrap(t)}set_drep_inactivity_period(t){r.protocolparamupdate_set_drep_inactivity_period(this.ptr,t)}drep_inactivity_period(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_drep_inactivity_period(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.protocolparamupdate_new();return Bn.__wrap(t)}}const Hm=new FinalizationRegistry(n=>r.__wbg_protocolversion_free(n));class vn{static __wrap(t){const e=Object.create(vn.prototype);return e.ptr=t,Hm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Hm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_protocolversion_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolversion_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.protocolversion_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return vn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.protocolversion_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolversion_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.protocolversion_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return vn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}major(){return r.networkinfo_protocol_magic(this.ptr)>>>0}minor(){return r.operationalcert_kes_period(this.ptr)>>>0}static new(t,e){const i=r.protocolversion_new(t,e);return vn.__wrap(i)}}const Wm=new FinalizationRegistry(n=>r.__wbg_publickey_free(n));class kn{static __wrap(t){const e=Object.create(kn.prototype);return e.ptr=t,Wm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Wm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_publickey_free(t)}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.publickey_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return kn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.publickey_to_bech32(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.publickey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return kn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}verify(t,e){const i=R(t,r.__wbindgen_malloc),a=h;return p(e,Se),r.publickey_verify(this.ptr,i,a,e.ptr)!==0}hash(){const t=r.publickey_hash(this.ptr);return et.__wrap(t)}}const Vm=new FinalizationRegistry(n=>r.__wbg_publickeys_free(n));class Y_{static __wrap(t){const e=Object.create(Y_.prototype);return e.ptr=t,Vm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Vm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_publickeys_free(t)}constructor(){const t=r.ed25519keyhashes_new();return Y_.__wrap(t)}size(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.publickeys_get(this.ptr,t);return kn.__wrap(e)}add(t){p(t,kn),r.publickeys_add(this.ptr,t.ptr)}}const Km=new FinalizationRegistry(n=>r.__wbg_redeemer_free(n));class Tr{static __wrap(t){const e=Object.create(Tr.prototype);return e.ptr=t,Km.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Km.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemer_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.redeemer_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.redeemer_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Tr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}tag(){const t=r.redeemer_tag(this.ptr);return Ge.__wrap(t)}index(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}data(){const t=r.redeemer_data(this.ptr);return st.__wrap(t)}ex_units(){const t=r.drepvotingthresholds_update_constitution(this.ptr);return Je.__wrap(t)}static new(t,e,i,a){p(t,Ge),p(e,O),p(i,st),p(a,Je);const s=r.redeemer_new(t.ptr,e.ptr,i.ptr,a.ptr);return Tr.__wrap(s)}}const qm=new FinalizationRegistry(n=>r.__wbg_redeemertag_free(n));class Ge{static __wrap(t){const e=Object.create(Ge.prototype);return e.ptr=t,qm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,qm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemertag_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.redeemertag_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.redeemertag_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ge.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_spend(){const t=r.language_new_plutus_v1();return Ge.__wrap(t)}static new_mint(){const t=r.language_new_plutus_v2();return Ge.__wrap(t)}static new_cert(){const t=r.language_new_plutus_v3();return Ge.__wrap(t)}static new_reward(){const t=r.redeemertag_new_reward();return Ge.__wrap(t)}static new_drep(){const t=r.redeemertag_new_drep();return Ge.__wrap(t)}kind(){return r.redeemertag_kind(this.ptr)>>>0}}const Qm=new FinalizationRegistry(n=>r.__wbg_redeemerwitnesskey_free(n));class Do{static __wrap(t){const e=Object.create(Do.prototype);return e.ptr=t,Qm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Qm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemerwitnesskey_free(t)}tag(){const t=r.redeemerwitnesskey_tag(this.ptr);return Ge.__wrap(t)}index(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,Ge),p(e,O);const i=r.redeemerwitnesskey_new(t.ptr,e.ptr);return Do.__wrap(i)}}const Jm=new FinalizationRegistry(n=>r.__wbg_redeemers_free(n));class Fr{static __wrap(t){const e=Object.create(Fr.prototype);return e.ptr=t,Jm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Jm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemers_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.redeemers_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.redeemers_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Fr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Fr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.redeemers_get(this.ptr,t);return Tr.__wrap(e)}add(t){p(t,Tr),r.redeemers_add(this.ptr,t.ptr)}}const Xm=new FinalizationRegistry(n=>r.__wbg_regcert_free(n));class Hi{static __wrap(t){const e=Object.create(Hi.prototype);return e.ptr=t,Xm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Xm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_regcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.regcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Hi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.regcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Hi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,q),p(e,O);const i=r.regcert_new(t.ptr,e.ptr);return Hi.__wrap(i)}}const Gm=new FinalizationRegistry(n=>r.__wbg_regcommitteehotkeycert_free(n));class Wi{static __wrap(t){const e=Object.create(Wi.prototype);return e.ptr=t,Gm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Gm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_regcommitteehotkeycert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcommitteehotkeycert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.regcommitteehotkeycert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Wi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regcommitteehotkeycert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcommitteehotkeycert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.regcommitteehotkeycert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Wi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}committee_cold_keyhash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return et.__wrap(t)}committee_hot_keyhash(){const t=r.genesiskeydelegation_genesis_delegate_hash(this.ptr);return et.__wrap(t)}static new(t,e){p(t,et),p(e,et);const i=r.regcommitteehotkeycert_new(t.ptr,e.ptr);return Wi.__wrap(i)}}const Ym=new FinalizationRegistry(n=>r.__wbg_regdrepcert_free(n));class Vi{static __wrap(t){const e=Object.create(Vi.prototype);return e.ptr=t,Ym.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ym.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_regdrepcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.regdrepcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Vi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.regdrepcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Vi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}voting_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,q),p(e,O);const i=r.regcert_new(t.ptr,e.ptr);return Vi.__wrap(i)}}const Zm=new FinalizationRegistry(n=>r.__wbg_relay_free(n));class Ye{static __wrap(t){const e=Object.create(Ye.prototype);return e.ptr=t,Zm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Zm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_relay_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.relay_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.relay_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ye.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.relay_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.relay_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.relay_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ye.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_single_host_addr(t){p(t,Dr);const e=r.relay_new_single_host_addr(t.ptr);return Ye.__wrap(e)}static new_single_host_name(t){p(t,Mr);const e=r.relay_new_single_host_name(t.ptr);return Ye.__wrap(e)}static new_multi_host_name(t){p(t,Cr);const e=r.relay_new_multi_host_name(t.ptr);return Ye.__wrap(e)}kind(){return r.relay_kind(this.ptr)>>>0}as_single_host_addr(){const t=r.relay_as_single_host_addr(this.ptr);return t===0?void 0:Dr.__wrap(t)}as_single_host_name(){const t=r.relay_as_single_host_name(this.ptr);return t===0?void 0:Mr.__wrap(t)}as_multi_host_name(){const t=r.relay_as_multi_host_name(this.ptr);return t===0?void 0:Cr.__wrap(t)}}const t1=new FinalizationRegistry(n=>r.__wbg_relays_free(n));class zr{static __wrap(t){const e=Object.create(zr.prototype);return e.ptr=t,t1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_relays_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.relays_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.relays_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return zr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.relays_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.relays_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.relays_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return zr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return zr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.relays_get(this.ptr,t);return Ye.__wrap(e)}add(t){p(t,Ye),r.relays_add(this.ptr,t.ptr)}}const e1=new FinalizationRegistry(n=>r.__wbg_requiredwitnessset_free(n));class Fs{static __wrap(t){const e=Object.create(Fs.prototype);return e.ptr=t,e1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,e1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_requiredwitnessset_free(t)}add_vkey(t){p(t,Ln),r.requiredwitnessset_add_vkey(this.ptr,t.ptr)}add_vkey_key(t){p(t,Oe),r.requiredwitnessset_add_vkey(this.ptr,t.ptr)}add_vkey_key_hash(t){p(t,et),r.requiredwitnessset_add_vkey_key_hash(this.ptr,t.ptr)}add_bootstrap(t){p(t,hn),r.requiredwitnessset_add_bootstrap(this.ptr,t.ptr)}add_bootstrap_key(t){p(t,Oe),r.requiredwitnessset_add_bootstrap_key(this.ptr,t.ptr)}add_bootstrap_key_hash(t){p(t,et),r.requiredwitnessset_add_bootstrap_key_hash(this.ptr,t.ptr)}add_native_script(t){p(t,Nt),r.requiredwitnessset_add_native_script(this.ptr,t.ptr)}add_native_script_hash(t){p(t,dt),r.requiredwitnessset_add_native_script_hash(this.ptr,t.ptr)}add_plutus_script(t){p(t,bt),r.requiredwitnessset_add_plutus_script(this.ptr,t.ptr)}add_plutus_v2_script(t){p(t,bt),r.requiredwitnessset_add_plutus_v2_script(this.ptr,t.ptr)}add_plutus_hash(t){p(t,dt),r.requiredwitnessset_add_plutus_hash(this.ptr,t.ptr)}add_plutus_datum(t){p(t,st),r.requiredwitnessset_add_plutus_datum(this.ptr,t.ptr)}add_plutus_datum_hash(t){p(t,se),r.requiredwitnessset_add_plutus_datum_hash(this.ptr,t.ptr)}add_redeemer(t){p(t,Tr),r.requiredwitnessset_add_redeemer(this.ptr,t.ptr)}add_redeemer_tag(t){p(t,Do),r.requiredwitnessset_add_redeemer_tag(this.ptr,t.ptr)}add_all(t){p(t,Fs),r.requiredwitnessset_add_all(this.ptr,t.ptr)}static new(){const t=r.requiredwitnessset_new();return Fs.__wrap(t)}}const n1=new FinalizationRegistry(n=>r.__wbg_rewardaddress_free(n));class It{static __wrap(t){const e=Object.create(It.prototype);return e.ptr=t,n1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,n1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rewardaddress_free(t)}static new(t,e){p(e,q);const i=r.enterpriseaddress_new(t,e.ptr);return It.__wrap(i)}payment_cred(){const t=r.baseaddress_payment_cred(this.ptr);return q.__wrap(t)}to_address(){const t=r.rewardaddress_to_address(this.ptr);return jt.__wrap(t)}static from_address(t){p(t,jt);const e=r.address_as_reward(t.ptr);return e===0?void 0:It.__wrap(e)}}const r1=new FinalizationRegistry(n=>r.__wbg_rewardaddresses_free(n));class Ki{static __wrap(t){const e=Object.create(Ki.prototype);return e.ptr=t,r1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,r1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rewardaddresses_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.rewardaddresses_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.rewardaddresses_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ki.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.rewardaddresses_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.rewardaddresses_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.rewardaddresses_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ki.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return Ki.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.rewardaddresses_get(this.ptr,t);return It.__wrap(e)}add(t){p(t,It),r.rewardaddresses_add(this.ptr,t.ptr)}}const a1=new FinalizationRegistry(n=>r.__wbg_script_free(n));class Me{static __wrap(t){const e=Object.create(Me.prototype);return e.ptr=t,a1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,a1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_script_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.script_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Me.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.script_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Me.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_native(t){p(t,Nt);const e=r.script_new_native(t.ptr);return Me.__wrap(e)}static new_plutus_v1(t){p(t,bt);const e=r.script_new_plutus_v1(t.ptr);return Me.__wrap(e)}static new_plutus_v2(t){p(t,bt);const e=r.script_new_plutus_v2(t.ptr);return Me.__wrap(e)}static new_plutus_v3(t){p(t,bt);const e=r.script_new_plutus_v3(t.ptr);return Me.__wrap(e)}kind(){return r.script_kind(this.ptr)>>>0}as_native(){const t=r.script_as_native(this.ptr);return t===0?void 0:Nt.__wrap(t)}as_plutus_v1(){const t=r.script_as_plutus_v1(this.ptr);return t===0?void 0:bt.__wrap(t)}as_plutus_v2(){const t=r.script_as_plutus_v2(this.ptr);return t===0?void 0:bt.__wrap(t)}as_plutus_v3(){const t=r.script_as_plutus_v3(this.ptr);return t===0?void 0:bt.__wrap(t)}}const i1=new FinalizationRegistry(n=>r.__wbg_scriptall_free(n));class Ua{static __wrap(t){const e=Object.create(Ua.prototype);return e.ptr=t,i1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,i1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptall_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scriptall_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ua.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptall_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ua.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}native_scripts(){const t=r.scriptall_native_scripts(this.ptr);return Ce.__wrap(t)}static new(t){p(t,Ce);const e=r.scriptall_new(t.ptr);return Ua.__wrap(e)}}const s1=new FinalizationRegistry(n=>r.__wbg_scriptany_free(n));class La{static __wrap(t){const e=Object.create(La.prototype);return e.ptr=t,s1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,s1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptany_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptany_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scriptany_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return La.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptany_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return La.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}native_scripts(){const t=r.scriptall_native_scripts(this.ptr);return Ce.__wrap(t)}static new(t){p(t,Ce);const e=r.scriptall_new(t.ptr);return La.__wrap(e)}}const o1=new FinalizationRegistry(n=>r.__wbg_scriptdatahash_free(n));class ir{static __wrap(t){const e=Object.create(ir.prototype);return e.ptr=t,o1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,o1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptdatahash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scriptdatahash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptdatahash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptdatahash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const _1=new FinalizationRegistry(n=>r.__wbg_scripthash_free(n));class dt{static __wrap(t){const e=Object.create(dt.prototype);return e.ptr=t,_1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scripthash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scripthash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return dt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.ed25519keyhash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scripthash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return dt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scripthash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return dt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const c1=new FinalizationRegistry(n=>r.__wbg_scripthashes_free(n));class $a{static __wrap(t){const e=Object.create($a.prototype);return e.ptr=t,c1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,c1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scripthashes_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scripthashes_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scripthashes_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return $a.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scripthashes_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return $a.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return $a.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.scripthashes_get(this.ptr,t);return dt.__wrap(e)}add(t){p(t,dt),r.ed25519keyhashes_add(this.ptr,t.ptr)}}const l1=new FinalizationRegistry(n=>r.__wbg_scriptnofk_free(n));class Ha{static __wrap(t){const e=Object.create(Ha.prototype);return e.ptr=t,l1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,l1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptnofk_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptnofk_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scriptnofk_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptnofk_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptnofk_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptnofk_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}n(){return r.networkinfo_protocol_magic(this.ptr)>>>0}native_scripts(){const t=r.scriptnofk_native_scripts(this.ptr);return Ce.__wrap(t)}static new(t,e){p(e,Ce);const i=r.scriptnofk_new(t,e.ptr);return Ha.__wrap(i)}}const d1=new FinalizationRegistry(n=>r.__wbg_scriptpubkey_free(n));class Wa{static __wrap(t){const e=Object.create(Wa.prototype);return e.ptr=t,d1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,d1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptpubkey_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptpubkey_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scriptpubkey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Wa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptpubkey_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptpubkey_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptpubkey_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Wa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}addr_keyhash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return et.__wrap(t)}static new(t){p(t,et);const e=r.scriptpubkey_new(t.ptr);return Wa.__wrap(e)}}const u1=new FinalizationRegistry(n=>r.__wbg_scriptref_free(n));class Un{static __wrap(t){const e=Object.create(Un.prototype);return e.ptr=t,u1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,u1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptref_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptref_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.scriptref_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Un.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptref_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Un.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,Me);const e=r.scriptref_new(t.ptr);return Un.__wrap(e)}get(){const t=r.scriptref_get(this.ptr);return Me.__wrap(t)}}const p1=new FinalizationRegistry(n=>r.__wbg_scriptwitness_free(n));class Ee{static __wrap(t){const e=Object.create(Ee.prototype);return e.ptr=t,p1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,p1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptwitness_free(t)}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptwitness_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptwitness_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.scriptwitness_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ee.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_native_witness(t){p(t,Nt);const e=r.scriptwitness_new_native_witness(t.ptr);return Ee.__wrap(e)}static new_plutus_witness(t){p(t,mn);const e=r.scriptwitness_new_plutus_witness(t.ptr);return Ee.__wrap(e)}kind(){return r.scriptwitness_kind(this.ptr)>>>0}as_native_witness(){const t=r.scriptwitness_as_native_witness(this.ptr);return t===0?void 0:Nt.__wrap(t)}as_plutus_witness(){const t=r.scriptwitness_as_plutus_witness(this.ptr);return t===0?void 0:mn.__wrap(t)}}const f1=new FinalizationRegistry(n=>r.__wbg_singlehostaddr_free(n));class Dr{static __wrap(t){const e=Object.create(Dr.prototype);return e.ptr=t,f1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,f1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_singlehostaddr_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostaddr_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.singlehostaddr_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Dr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostaddr_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostaddr_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.singlehostaddr_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Dr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}port(){const t=r.singlehostaddr_port(this.ptr);return t===16777215?void 0:t}ipv4(){const t=r.singlehostaddr_ipv4(this.ptr);return t===0?void 0:xr.__wrap(t)}ipv6(){const t=r.singlehostaddr_ipv6(this.ptr);return t===0?void 0:jr.__wrap(t)}static new(t,e,i){let a=0;zt(e)||(p(e,xr),a=e.__destroy_into_raw());let s=0;zt(i)||(p(i,jr),s=i.__destroy_into_raw());const _=r.singlehostaddr_new(zt(t)?16777215:t,a,s);return Dr.__wrap(_)}}const w1=new FinalizationRegistry(n=>r.__wbg_singlehostname_free(n));class Mr{static __wrap(t){const e=Object.create(Mr.prototype);return e.ptr=t,w1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,w1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_singlehostname_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostname_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.singlehostname_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostname_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostname_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.singlehostname_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}port(){const t=r.singlehostname_port(this.ptr);return t===16777215?void 0:t}dns_name(){const t=r.anchor_anchor_url(this.ptr);return ba.__wrap(t)}static new(t,e){p(e,ba);const i=r.singlehostname_new(zt(t)?16777215:t,e.ptr);return Mr.__wrap(i)}}const h1=new FinalizationRegistry(n=>r.__wbg_stakecredential_free(n));class q{static __wrap(t){const e=Object.create(q.prototype);return e.ptr=t,h1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,h1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakecredential_free(t)}static from_keyhash(t){p(t,et);const e=r.drep_new_keyhash(t.ptr);return q.__wrap(e)}static from_scripthash(t){p(t,dt);const e=r.drep_new_scripthash(t.ptr);return q.__wrap(e)}to_keyhash(){const t=r.stakecredential_to_keyhash(this.ptr);return t===0?void 0:et.__wrap(t)}to_scripthash(){const t=r.stakecredential_to_scripthash(this.ptr);return t===0?void 0:dt.__wrap(t)}kind(){return r.networkid_kind(this.ptr)>>>0}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredential_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakecredential_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return q.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredential_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredential_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakecredential_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return q.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const g1=new FinalizationRegistry(n=>r.__wbg_stakecredentials_free(n));class qi{static __wrap(t){const e=Object.create(qi.prototype);return e.ptr=t,g1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,g1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakecredentials_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredentials_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakecredentials_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return qi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredentials_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredentials_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakecredentials_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return qi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return qi.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.stakecredentials_get(this.ptr,t);return q.__wrap(e)}add(t){p(t,q),r.stakecredentials_add(this.ptr,t.ptr)}}const b1=new FinalizationRegistry(n=>r.__wbg_stakedelegation_free(n));class Ar{static __wrap(t){const e=Object.create(Ar.prototype);return e.ptr=t,b1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,b1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakedelegation_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakedelegation_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakedelegation_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakedelegation_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakedelegation_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakedelegation_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return q.__wrap(t)}pool_keyhash(){const t=r.stakedelegation_pool_keyhash(this.ptr);return et.__wrap(t)}static new(t,e){p(t,q),p(e,et);const i=r.stakedelegation_new(t.ptr,e.ptr);return Ar.__wrap(i)}}const y1=new FinalizationRegistry(n=>r.__wbg_stakederegistration_free(n));class Br{static __wrap(t){const e=Object.create(Br.prototype);return e.ptr=t,y1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,y1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakederegistration_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakederegistration_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakederegistration_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return q.__wrap(t)}static new(t){p(t,q);const e=r.stakederegistration_new(t.ptr);return Br.__wrap(e)}}const m1=new FinalizationRegistry(n=>r.__wbg_stakeregdelegcert_free(n));class Qi{static __wrap(t){const e=Object.create(Qi.prototype);return e.ptr=t,m1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,m1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakeregdelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregdelegcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakeregdelegcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Qi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregdelegcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregdelegcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakeregdelegcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Qi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}pool_keyhash(){const t=r.stakeregdelegcert_pool_keyhash(this.ptr);return et.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e,i){p(t,q),p(e,et),p(i,O);const a=r.stakeregdelegcert_new(t.ptr,e.ptr,i.ptr);return Qi.__wrap(a)}}const v1=new FinalizationRegistry(n=>r.__wbg_stakeregistration_free(n));class Ur{static __wrap(t){const e=Object.create(Ur.prototype);return e.ptr=t,v1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,v1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakeregistration_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregistration_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakeregistration_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ur.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakeregistration_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ur.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return q.__wrap(t)}static new(t){p(t,q);const e=r.stakederegistration_new(t.ptr);return Ur.__wrap(e)}}const k1=new FinalizationRegistry(n=>r.__wbg_stakevotedelegcert_free(n));class Ji{static __wrap(t){const e=Object.create(Ji.prototype);return e.ptr=t,k1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,k1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakevotedelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakevotedelegcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakevotedelegcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ji.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakevotedelegcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakevotedelegcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakevotedelegcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ji.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return q.__wrap(t)}pool_keyhash(){const t=r.stakedelegation_pool_keyhash(this.ptr);return et.__wrap(t)}drep(){const t=r.stakevotedelegcert_drep(this.ptr);return oe.__wrap(t)}static new(t,e,i){p(t,q),p(e,et),p(i,oe);const a=r.stakevotedelegcert_new(t.ptr,e.ptr,i.ptr);return Ji.__wrap(a)}}const x1=new FinalizationRegistry(n=>r.__wbg_stakevoteregdelegcert_free(n));class Xi{static __wrap(t){const e=Object.create(Xi.prototype);return e.ptr=t,x1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,x1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakevoteregdelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakevoteregdelegcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.stakevoteregdelegcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Xi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakevoteregdelegcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakevoteregdelegcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.stakevoteregdelegcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Xi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}pool_keyhash(){const t=r.stakeregdelegcert_pool_keyhash(this.ptr);return et.__wrap(t)}drep(){const t=r.stakevoteregdelegcert_drep(this.ptr);return oe.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e,i,a){p(t,q),p(e,et),p(i,oe),p(a,O);const s=r.stakevoteregdelegcert_new(t.ptr,e.ptr,i.ptr,a.ptr);return Xi.__wrap(s)}}const j1=new FinalizationRegistry(n=>r.__wbg_strings_free(n));class Z_{static __wrap(t){const e=Object.create(Z_.prototype);return e.ptr=t,j1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,j1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_strings_free(t)}static new(){const t=r.assetnames_new();return Z_.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.strings_get(a,this.ptr,t);var e=o()[a/4+0],i=o()[a/4+1];return F(e,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(e,i)}}add(t){const e=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=h;r.strings_add(this.ptr,e,i)}}const S1=new FinalizationRegistry(n=>r.__wbg_timelockexpiry_free(n));class Va{static __wrap(t){const e=Object.create(Va.prototype);return e.ptr=t,S1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,S1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_timelockexpiry_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.timelockexpiry_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.timelockexpiry_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}slot(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t){p(t,O);const e=r.constrplutusdata_alternative(t.ptr);return Va.__wrap(e)}}const C1=new FinalizationRegistry(n=>r.__wbg_timelockstart_free(n));class Ka{static __wrap(t){const e=Object.create(Ka.prototype);return e.ptr=t,C1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,C1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_timelockstart_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.timelockstart_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.timelockstart_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ka.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.timelockstart_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ka.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}slot(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t){p(t,O);const e=r.constrplutusdata_alternative(t.ptr);return Ka.__wrap(e)}}const E1=new FinalizationRegistry(n=>r.__wbg_transaction_free(n));class xn{static __wrap(t){const e=Object.create(xn.prototype);return e.ptr=t,E1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,E1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transaction_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transaction_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transaction_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transaction_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transaction_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}body(){const t=r.transaction_body(this.ptr);return Ze.__wrap(t)}witness_set(){const t=r.transaction_witness_set(this.ptr);return Be.__wrap(t)}is_valid(){return r.transaction_is_valid(this.ptr)!==0}auxiliary_data(){const t=r.transaction_auxiliary_data(this.ptr);return t===0?void 0:Fe.__wrap(t)}set_is_valid(t){r.transaction_set_is_valid(this.ptr,t)}static new(t,e,i){p(t,Ze),p(e,Be);let a=0;zt(i)||(p(i,Fe),a=i.__destroy_into_raw());const s=r.transaction_new(t.ptr,e.ptr,a);return xn.__wrap(s)}}const O1=new FinalizationRegistry(n=>r.__wbg_transactionbodies_free(n));class qa{static __wrap(t){const e=Object.create(qa.prototype);return e.ptr=t,O1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,O1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbodies_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbodies_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionbodies_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbodies_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbodies_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionbodies_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return qa.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionbodies_get(this.ptr,t);return Ze.__wrap(e)}add(t){p(t,Ze),r.transactionbodies_add(this.ptr,t.ptr)}}const N1=new FinalizationRegistry(n=>r.__wbg_transactionbody_free(n));class Ze{static __wrap(t){const e=Object.create(Ze.prototype);return e.ptr=t,N1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,N1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbody_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionbody_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ze.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionbody_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ze.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}inputs(){const t=r.transactionbody_inputs(this.ptr);return en.__wrap(t)}outputs(){const t=r.transactionbody_outputs(this.ptr);return Lr.__wrap(t)}fee(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}ttl(){const t=r.transactionbody_ttl(this.ptr);return t===0?void 0:O.__wrap(t)}set_certs(t){p(t,vr),r.transactionbody_set_certs(this.ptr,t.ptr)}certs(){const t=r.transactionbody_certs(this.ptr);return t===0?void 0:vr.__wrap(t)}set_withdrawals(t){p(t,Hr),r.transactionbody_set_withdrawals(this.ptr,t.ptr)}withdrawals(){const t=r.transactionbody_withdrawals(this.ptr);return t===0?void 0:Hr.__wrap(t)}set_update(t){p(t,ti),r.transactionbody_set_update(this.ptr,t.ptr)}update(){const t=r.transactionbody_update(this.ptr);return t===0?void 0:ti.__wrap(t)}voting_procedures(){const t=r.transactionbody_voting_procedures(this.ptr);return t===0?void 0:ns.__wrap(t)}proposal_procedures(){const t=r.transactionbody_proposal_procedures(this.ptr);return t===0?void 0:$i.__wrap(t)}set_auxiliary_data_hash(t){p(t,mr),r.transactionbody_set_auxiliary_data_hash(this.ptr,t.ptr)}auxiliary_data_hash(){const t=r.transactionbody_auxiliary_data_hash(this.ptr);return t===0?void 0:mr.__wrap(t)}set_validity_start_interval(t){p(t,O),r.transactionbody_set_validity_start_interval(this.ptr,t.ptr)}validity_start_interval(){const t=r.transactionbody_validity_start_interval(this.ptr);return t===0?void 0:O.__wrap(t)}set_mint(t){p(t,ar),r.transactionbody_set_mint(this.ptr,t.ptr)}mint(){const t=r.transactionbody_mint(this.ptr);return t===0?void 0:ar.__wrap(t)}set_script_data_hash(t){p(t,ir),r.transactionbody_set_script_data_hash(this.ptr,t.ptr)}script_data_hash(){const t=r.transactionbody_script_data_hash(this.ptr);return t===0?void 0:ir.__wrap(t)}set_collateral(t){p(t,en),r.transactionbody_set_collateral(this.ptr,t.ptr)}collateral(){const t=r.transactionbody_collateral(this.ptr);return t===0?void 0:en.__wrap(t)}set_required_signers(t){p(t,ee),r.transactionbody_set_required_signers(this.ptr,t.ptr)}required_signers(){const t=r.transactionbody_required_signers(this.ptr);return t===0?void 0:ee.__wrap(t)}set_network_id(t){p(t,yn),r.transactionbody_set_network_id(this.ptr,t.ptr)}network_id(){const t=r.transactionbody_network_id(this.ptr);return t===0?void 0:yn.__wrap(t)}set_collateral_return(t){p(t,Yt),r.transactionbody_set_collateral_return(this.ptr,t.ptr)}collateral_return(){const t=r.transactionbody_collateral_return(this.ptr);return t===0?void 0:Yt.__wrap(t)}set_total_collateral(t){p(t,O),r.transactionbody_set_total_collateral(this.ptr,t.ptr)}total_collateral(){const t=r.transactionbody_total_collateral(this.ptr);return t===0?void 0:O.__wrap(t)}set_reference_inputs(t){p(t,en),r.transactionbody_set_reference_inputs(this.ptr,t.ptr)}reference_inputs(){const t=r.transactionbody_reference_inputs(this.ptr);return t===0?void 0:en.__wrap(t)}set_voting_procedures(t){p(t,ns),r.transactionbody_set_voting_procedures(this.ptr,t.ptr)}set_proposal_procedures(t){p(t,$i),r.transactionbody_set_proposal_procedures(this.ptr,t.ptr)}static new(t,e,i,a){p(t,en),p(e,Lr),p(i,O);let s=0;zt(a)||(p(a,O),s=a.__destroy_into_raw());const _=r.transactionbody_new(t.ptr,e.ptr,i.ptr,s);return Ze.__wrap(_)}raw(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_raw(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];let a;return t!==0&&(a=E(t,e).slice(),r.__wbindgen_free(t,e*1)),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const R1=new FinalizationRegistry(n=>r.__wbg_transactionbuilder_free(n));class Mo{static __wrap(t){const e=Object.create(Mo.prototype);return e.ptr=t,R1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,R1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbuilder_free(t)}add_inputs_from(t,e,i){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(t,sr),p(e,jt);const c=Cj(i,r.__wbindgen_malloc),d=h;r.transactionbuilder_add_inputs_from(_,this.ptr,t.ptr,e.ptr,c,d);var a=o()[_/4+0],s=o()[_/4+1];if(s)throw l(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_input(t,e){p(t,Ae);let i=0;zt(e)||(p(e,Ee),i=e.__destroy_into_raw()),r.transactionbuilder_add_input(this.ptr,t.ptr,i)}add_reference_input(t){p(t,Ae),r.transactionbuilder_add_reference_input(this.ptr,t.ptr)}fee_for_input(t,e,i){try{const c=r.__wbindgen_add_to_stack_pointer(-16);p(t,jt),p(e,tn),p(i,Rt),r.transactionbuilder_fee_for_input(c,this.ptr,t.ptr,e.ptr,i.ptr);var a=o()[c/4+0],s=o()[c/4+1],_=o()[c/4+2];if(_)throw l(s);return O.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_output(t){try{const a=r.__wbindgen_add_to_stack_pointer(-16);p(t,Yt),r.transactionbuilder_add_output(a,this.ptr,t.ptr);var e=o()[a/4+0],i=o()[a/4+1];if(i)throw l(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_plutus_script(t){p(t,bt),r.transactionbuilder_add_plutus_script(this.ptr,t.ptr)}add_plutus_v2_script(t){p(t,bt),r.transactionbuilder_add_plutus_v2_script(this.ptr,t.ptr)}add_plutus_data(t){p(t,st),r.transactionbuilder_add_plutus_data(this.ptr,t.ptr)}add_native_script(t){p(t,Nt),r.transactionbuilder_add_native_script(this.ptr,t.ptr)}add_certificate(t,e){p(t,Ht);let i=0;zt(e)||(p(e,Ee),i=e.__destroy_into_raw()),r.transactionbuilder_add_certificate(this.ptr,t.ptr,i)}fee_for_output(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,Yt),r.transactionbuilder_fee_for_output(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return O.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_ttl(t){p(t,O),r.transactionbuilder_set_ttl(this.ptr,t.ptr)}set_validity_start_interval(t){p(t,O),r.transactionbuilder_set_validity_start_interval(this.ptr,t.ptr)}add_withdrawal(t,e,i){p(t,It),p(e,O);let a=0;zt(i)||(p(i,Ee),a=i.__destroy_into_raw()),r.transactionbuilder_add_withdrawal(this.ptr,t.ptr,e.ptr,a)}auxiliary_data(){const t=r.transactionbuilder_auxiliary_data(this.ptr);return t===0?void 0:Fe.__wrap(t)}set_auxiliary_data(t){p(t,Fe),r.transactionbuilder_set_auxiliary_data(this.ptr,t.ptr)}set_metadata(t){p(t,kr),r.transactionbuilder_set_metadata(this.ptr,t.ptr)}add_metadatum(t,e){p(t,O),p(e,xt),r.transactionbuilder_add_metadatum(this.ptr,t.ptr,e.ptr)}add_json_metadatum(t,e){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,O);const _=N(e,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionbuilder_add_json_metadatum(s,this.ptr,t.ptr,_,c);var i=o()[s/4+0],a=o()[s/4+1];if(a)throw l(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_json_metadatum_with_schema(t,e,i){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(t,O);const c=N(e,r.__wbindgen_malloc,r.__wbindgen_realloc),d=h;r.transactionbuilder_add_json_metadatum_with_schema(_,this.ptr,t.ptr,c,d,i);var a=o()[_/4+0],s=o()[_/4+1];if(s)throw l(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}mint(){const t=r.transactionbuilder_mint(this.ptr);return t===0?void 0:ar.__wrap(t)}certificates(){const t=r.transactionbuilder_certificates(this.ptr);return t===0?void 0:vr.__wrap(t)}withdrawals(){const t=r.transactionbuilder_withdrawals(this.ptr);return t===0?void 0:Hr.__wrap(t)}native_scripts(){const t=r.transactionbuilder_native_scripts(this.ptr);return t===0?void 0:Ce.__wrap(t)}add_mint(t,e,i){p(t,dt),p(e,An);let a=0;zt(i)||(p(i,Ee),a=i.__destroy_into_raw()),r.transactionbuilder_add_mint(this.ptr,t.ptr,e.ptr,a)}static new(t){p(t,Ao);const e=r.transactionbuilder_new(t.ptr);return Mo.__wrap(e)}script_data_hash(){const t=r.transactionbuilder_script_data_hash(this.ptr);return t===0?void 0:ir.__wrap(t)}add_collateral(t){try{const a=r.__wbindgen_add_to_stack_pointer(-16);p(t,Ae),r.transactionbuilder_add_collateral(a,this.ptr,t.ptr);var e=o()[a/4+0],i=o()[a/4+1];if(i)throw l(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_collateral(){const t=r.transactionbuilder_get_collateral(this.ptr);return t===0?void 0:en.__wrap(t)}add_required_signer(t){p(t,et),r.transactionbuilder_add_required_signer(this.ptr,t.ptr)}required_signers(){const t=r.transactionbuilder_required_signers(this.ptr);return t===0?void 0:ee.__wrap(t)}set_network_id(t){p(t,yn);var e=t.__destroy_into_raw();r.transactionbuilder_set_network_id(this.ptr,e)}network_id(){const t=r.transactionbuilder_network_id(this.ptr);return t===0?void 0:yn.__wrap(t)}redeemers(){const t=r.transactionbuilder_redeemers(this.ptr);return t===0?void 0:Fr.__wrap(t)}get_explicit_input(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_explicit_input(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Rt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_implicit_input(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_implicit_input(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Rt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_total_input(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_total_input(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Rt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_total_output(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_total_output(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Rt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_explicit_output(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_explicit_output(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Rt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_deposit(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_deposit(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return O.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_fee_if_set(){const t=r.transactionbuilder_get_fee_if_set(this.ptr);return t===0?void 0:O.__wrap(t)}balance(t,e){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,jt);let _=0;zt(e)||(p(e,Gt),_=e.__destroy_into_raw()),r.transactionbuilder_balance(s,this.ptr,t.ptr,_);var i=o()[s/4+0],a=o()[s/4+1];if(a)throw l(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_to_bytes(_,this.ptr);var t=o()[_/4+0],e=o()[_/4+1],i=o()[_/4+2],a=o()[_/4+3];if(a)throw l(i);var s=E(t,e).slice();return r.__wbindgen_free(t,e*1),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}full_size(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_full_size(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return t>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}output_sizes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_output_sizes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=Ej(t,e).slice();return r.__wbindgen_free(t,e*4),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}outputs(){const t=r.transactionbuilder_outputs(this.ptr);return Lr.__wrap(t)}construct(t,e,i){const a=this.__destroy_into_raw();let s=0;zt(t)||(p(t,sr),s=t.__destroy_into_raw());let _=0;zt(e)||(p(e,jt),_=e.__destroy_into_raw());const c=r.transactionbuilder_construct(a,s,_,zt(i)?16777215:i?1:0);return l(c)}build_tx(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_build_tx(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return xn.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}min_fee(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_min_fee(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return O.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const P1=new FinalizationRegistry(n=>r.__wbg_transactionbuilderconfig_free(n));class Ao{static __wrap(t){const e=Object.create(Ao.prototype);return e.ptr=t,P1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,P1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbuilderconfig_free(t)}}const I1=new FinalizationRegistry(n=>r.__wbg_transactionbuilderconfigbuilder_free(n));class ne{static __wrap(t){const e=Object.create(ne.prototype);return e.ptr=t,I1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,I1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbuilderconfigbuilder_free(t)}static new(){const t=r.transactionbuilderconfigbuilder_new();return ne.__wrap(t)}fee_algo(t){p(t,Bi);const e=r.transactionbuilderconfigbuilder_fee_algo(this.ptr,t.ptr);return ne.__wrap(e)}coins_per_utxo_byte(t){p(t,O);const e=r.transactionbuilderconfigbuilder_coins_per_utxo_byte(this.ptr,t.ptr);return ne.__wrap(e)}pool_deposit(t){p(t,O);const e=r.transactionbuilderconfigbuilder_pool_deposit(this.ptr,t.ptr);return ne.__wrap(e)}key_deposit(t){p(t,O);const e=r.transactionbuilderconfigbuilder_key_deposit(this.ptr,t.ptr);return ne.__wrap(e)}max_value_size(t){const e=r.transactionbuilderconfigbuilder_max_value_size(this.ptr,t);return ne.__wrap(e)}max_tx_size(t){const e=r.transactionbuilderconfigbuilder_max_tx_size(this.ptr,t);return ne.__wrap(e)}ex_unit_prices(t){p(t,Mn);const e=r.transactionbuilderconfigbuilder_ex_unit_prices(this.ptr,t.ptr);return ne.__wrap(e)}max_tx_ex_units(t){p(t,Je);const e=r.transactionbuilderconfigbuilder_max_tx_ex_units(this.ptr,t.ptr);return ne.__wrap(e)}costmdls(t){p(t,rr);const e=r.transactionbuilderconfigbuilder_costmdls(this.ptr,t.ptr);return ne.__wrap(e)}collateral_percentage(t){const e=r.transactionbuilderconfigbuilder_collateral_percentage(this.ptr,t);return ne.__wrap(e)}max_collateral_inputs(t){const e=r.transactionbuilderconfigbuilder_max_collateral_inputs(this.ptr,t);return ne.__wrap(e)}slot_config(t,e,i){p(t,O),p(e,O);const a=r.transactionbuilderconfigbuilder_slot_config(this.ptr,t.ptr,e.ptr,i);return ne.__wrap(a)}blockfrost(t){p(t,Rs);const e=r.transactionbuilderconfigbuilder_blockfrost(this.ptr,t.ptr);return ne.__wrap(e)}build(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilderconfigbuilder_build(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Ao.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const T1=new FinalizationRegistry(n=>r.__wbg_transactionhash_free(n));class ye{static __wrap(t){const e=Object.create(ye.prototype);return e.ptr=t,T1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,T1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionhash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionhash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ye.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionhash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ye.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionhash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ye.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const F1=new FinalizationRegistry(n=>r.__wbg_transactionindexes_free(n));class Qa{static __wrap(t){const e=Object.create(Qa.prototype);return e.ptr=t,F1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,F1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionindexes_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionindexes_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionindexes_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Qa.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionindexes_get(this.ptr,t);return O.__wrap(e)}add(t){p(t,O),r.transactionindexes_add(this.ptr,t.ptr)}}const z1=new FinalizationRegistry(n=>r.__wbg_transactioninput_free(n));class tn{static __wrap(t){const e=Object.create(tn.prototype);return e.ptr=t,z1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,z1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactioninput_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninput_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactioninput_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return tn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninput_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninput_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactioninput_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return tn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}transaction_id(){const t=r.governanceactionid_transaction_id(this.ptr);return ye.__wrap(t)}index(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,ye),p(e,O);const i=r.governanceactionid_new(t.ptr,e.ptr);return tn.__wrap(i)}}const D1=new FinalizationRegistry(n=>r.__wbg_transactioninputs_free(n));class en{static __wrap(t){const e=Object.create(en.prototype);return e.ptr=t,D1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,D1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactioninputs_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninputs_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactioninputs_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return en.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninputs_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninputs_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactioninputs_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return en.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return en.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactioninputs_get(this.ptr,t);return tn.__wrap(e)}add(t){p(t,tn),r.transactioninputs_add(this.ptr,t.ptr)}sort(){r.transactioninputs_sort(this.ptr)}}const M1=new FinalizationRegistry(n=>r.__wbg_transactionmetadatum_free(n));class xt{static __wrap(t){const e=Object.create(xt.prototype);return e.ptr=t,M1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,M1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionmetadatum_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionmetadatum_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_map(t){p(t,Ui);const e=r.transactionmetadatum_new_map(t.ptr);return xt.__wrap(e)}static new_list(t){p(t,Na);const e=r.transactionmetadatum_new_list(t.ptr);return xt.__wrap(e)}static new_int(t){p(t,_e);const e=r.transactionmetadatum_new_int(t.ptr);return xt.__wrap(e)}static new_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionmetadatum_new_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_text(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionmetadatum_new_text(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}kind(){return r.transactionmetadatum_kind(this.ptr)>>>0}as_map(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_map(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Ui.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_list(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_list(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Na.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_int(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_int(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return _e.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_bytes(_,this.ptr);var t=o()[_/4+0],e=o()[_/4+1],i=o()[_/4+2],a=o()[_/4+3];if(a)throw l(i);var s=E(t,e).slice();return r.__wbindgen_free(t,e*1),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_text(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_text(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}}const A1=new FinalizationRegistry(n=>r.__wbg_transactionmetadatumlabels_free(n));class zs{static __wrap(t){const e=Object.create(zs.prototype);return e.ptr=t,A1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,A1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionmetadatumlabels_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatumlabels_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionmetadatumlabels_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return zs.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return zs.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionmetadatumlabels_get(this.ptr,t);return O.__wrap(e)}add(t){p(t,O),r.transactionindexes_add(this.ptr,t.ptr)}}const B1=new FinalizationRegistry(n=>r.__wbg_transactionoutput_free(n));class Yt{static __wrap(t){const e=Object.create(Yt.prototype);return e.ptr=t,B1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,B1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutput_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionoutput_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Yt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionoutput_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Yt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}address(){const t=r.transactionoutput_address(this.ptr);return jt.__wrap(t)}amount(){const t=r.transactionoutput_amount(this.ptr);return Rt.__wrap(t)}datum(){const t=r.transactionoutput_datum(this.ptr);return t===0?void 0:Gt.__wrap(t)}script_ref(){const t=r.transactionoutput_script_ref(this.ptr);return t===0?void 0:Un.__wrap(t)}set_datum(t){p(t,Gt),r.transactionoutput_set_datum(this.ptr,t.ptr)}set_script_ref(t){p(t,Un),r.transactionoutput_set_script_ref(this.ptr,t.ptr)}static new(t,e){p(t,jt),p(e,Rt);const i=r.transactionoutput_new(t.ptr,e.ptr);return Yt.__wrap(i)}format(){return r.transactionoutput_format(this.ptr)}to_legacy_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_legacy_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const U1=new FinalizationRegistry(n=>r.__wbg_transactionoutputamountbuilder_free(n));class Ja{static __wrap(t){const e=Object.create(Ja.prototype);return e.ptr=t,U1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,U1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutputamountbuilder_free(t)}with_value(t){p(t,Rt);const e=r.transactionoutputamountbuilder_with_value(this.ptr,t.ptr);return Ja.__wrap(e)}with_coin(t){p(t,O);const e=r.transactionoutputamountbuilder_with_coin(this.ptr,t.ptr);return Ja.__wrap(e)}with_coin_and_asset(t,e){p(t,O),p(e,be);const i=r.transactionoutputamountbuilder_with_coin_and_asset(this.ptr,t.ptr,e.ptr);return Ja.__wrap(i)}with_asset_and_min_required_coin(t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(t,be),p(e,O),r.transactionoutputamountbuilder_with_asset_and_min_required_coin(_,this.ptr,t.ptr,e.ptr);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return Ja.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}build(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputamountbuilder_build(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Yt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const L1=new FinalizationRegistry(n=>r.__wbg_transactionoutputbuilder_free(n));class Ds{static __wrap(t){const e=Object.create(Ds.prototype);return e.ptr=t,L1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,L1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutputbuilder_free(t)}static new(){const t=r.transactionoutputbuilder_new();return Ds.__wrap(t)}with_address(t){p(t,jt);const e=r.transactionoutputbuilder_with_address(this.ptr,t.ptr);return Ds.__wrap(e)}with_datum(t){p(t,Gt);const e=r.transactionoutputbuilder_with_datum(this.ptr,t.ptr);return Ds.__wrap(e)}next(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputbuilder_next(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Ja.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const $1=new FinalizationRegistry(n=>r.__wbg_transactionoutputs_free(n));class Lr{static __wrap(t){const e=Object.create(Lr.prototype);return e.ptr=t,$1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutputs_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputs_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionoutputs_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Lr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputs_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputs_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionoutputs_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Lr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Lr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionoutputs_get(this.ptr,t);return Yt.__wrap(e)}add(t){p(t,Yt),r.transactionoutputs_add(this.ptr,t.ptr)}}const H1=new FinalizationRegistry(n=>r.__wbg_transactionunspentoutput_free(n));class Ae{static __wrap(t){const e=Object.create(Ae.prototype);return e.ptr=t,H1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,H1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionunspentoutput_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionunspentoutput_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionunspentoutput_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ae.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){p(t,tn),p(e,Yt);const i=r.transactionunspentoutput_new(t.ptr,e.ptr);return Ae.__wrap(i)}input(){const t=r.transactionunspentoutput_input(this.ptr);return tn.__wrap(t)}output(){const t=r.transactionunspentoutput_output(this.ptr);return Yt.__wrap(t)}to_legacy_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionunspentoutput_to_legacy_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const W1=new FinalizationRegistry(n=>r.__wbg_transactionunspentoutputs_free(n));class sr{static __wrap(t){const e=Object.create(sr.prototype);return e.ptr=t,W1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,W1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionunspentoutputs_free(t)}static new(){const t=r.certificates_new();return sr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionunspentoutputs_get(this.ptr,t);return Ae.__wrap(e)}add(t){p(t,Ae),r.transactionunspentoutputs_add(this.ptr,t.ptr)}}const V1=new FinalizationRegistry(n=>r.__wbg_transactionwitnessset_free(n));class Be{static __wrap(t){const e=Object.create(Be.prototype);return e.ptr=t,V1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,V1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionwitnessset_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnessset_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionwitnessset_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Be.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnessset_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnessset_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionwitnessset_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Be.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_vkeys(t){p(t,As),r.transactionwitnessset_set_vkeys(this.ptr,t.ptr)}vkeys(){const t=r.transactionwitnessset_vkeys(this.ptr);return t===0?void 0:As.__wrap(t)}set_native_scripts(t){p(t,Ce),r.transactionwitnessset_set_native_scripts(this.ptr,t.ptr)}native_scripts(){const t=r.transactionwitnessset_native_scripts(this.ptr);return t===0?void 0:Ce.__wrap(t)}set_bootstraps(t){p(t,Ps),r.transactionwitnessset_set_bootstraps(this.ptr,t.ptr)}bootstraps(){const t=r.transactionwitnessset_bootstraps(this.ptr);return t===0?void 0:Ps.__wrap(t)}set_plutus_scripts(t){p(t,le),r.transactionwitnessset_set_plutus_scripts(this.ptr,t.ptr)}plutus_scripts(){const t=r.transactionwitnessset_plutus_scripts(this.ptr);return t===0?void 0:le.__wrap(t)}set_plutus_data(t){p(t,ce),r.transactionwitnessset_set_plutus_data(this.ptr,t.ptr)}plutus_data(){const t=r.transactionwitnessset_plutus_data(this.ptr);return t===0?void 0:ce.__wrap(t)}set_redeemers(t){p(t,Fr),r.transactionwitnessset_set_redeemers(this.ptr,t.ptr)}set_plutus_v2_scripts(t){p(t,le),r.transactionwitnessset_set_plutus_v2_scripts(this.ptr,t.ptr)}set_plutus_v3_scripts(t){p(t,le),r.transactionwitnessset_set_plutus_v3_scripts(this.ptr,t.ptr)}redeemers(){const t=r.transactionwitnessset_redeemers(this.ptr);return t===0?void 0:Fr.__wrap(t)}plutus_v2_scripts(){const t=r.transactionwitnessset_plutus_v2_scripts(this.ptr);return t===0?void 0:le.__wrap(t)}plutus_v3_scripts(){const t=r.transactionwitnessset_plutus_v3_scripts(this.ptr);return t===0?void 0:le.__wrap(t)}static new(){const t=r.transactionwitnessset_new();return Be.__wrap(t)}}const K1=new FinalizationRegistry(n=>r.__wbg_transactionwitnesssetbuilder_free(n));class Xa{static __wrap(t){const e=Object.create(Xa.prototype);return e.ptr=t,K1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,K1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionwitnesssetbuilder_free(t)}add_vkey(t){p(t,Ln),r.transactionwitnesssetbuilder_add_vkey(this.ptr,t.ptr)}add_bootstrap(t){p(t,hn),r.transactionwitnesssetbuilder_add_bootstrap(this.ptr,t.ptr)}add_native_script(t){p(t,Nt),r.transactionwitnesssetbuilder_add_native_script(this.ptr,t.ptr)}add_plutus_script(t){p(t,bt),r.transactionwitnesssetbuilder_add_plutus_script(this.ptr,t.ptr)}add_plutus_v2_script(t){p(t,bt),r.transactionwitnesssetbuilder_add_plutus_v2_script(this.ptr,t.ptr)}add_plutus_datum(t){p(t,st),r.transactionwitnesssetbuilder_add_plutus_datum(this.ptr,t.ptr)}add_redeemer(t){p(t,Tr),r.transactionwitnesssetbuilder_add_redeemer(this.ptr,t.ptr)}add_required_wits(t){p(t,Fs),r.transactionwitnesssetbuilder_add_required_wits(this.ptr,t.ptr)}static new(){const t=r.transactionwitnesssetbuilder_new();return Xa.__wrap(t)}add_existing(t){p(t,Be),r.transactionwitnesssetbuilder_add_existing(this.ptr,t.ptr)}build(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssetbuilder_build(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return Be.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const q1=new FinalizationRegistry(n=>r.__wbg_transactionwitnesssets_free(n));class Ga{static __wrap(t){const e=Object.create(Ga.prototype);return e.ptr=t,q1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,q1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionwitnesssets_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssets_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.transactionwitnesssets_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssets_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssets_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.transactionwitnesssets_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return Ga.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionwitnesssets_get(this.ptr,t);return Be.__wrap(e)}add(t){p(t,Be),r.transactionwitnesssets_add(this.ptr,t.ptr)}}const Q1=new FinalizationRegistry(n=>r.__wbg_treasurywithdrawals_free(n));class Ya{static __wrap(t){const e=Object.create(Ya.prototype);return e.ptr=t,Q1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Q1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_treasurywithdrawals_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawals_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.treasurywithdrawals_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawals_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawals_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.treasurywithdrawals_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return Ya.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,et),p(e,O);const i=r.treasurywithdrawals_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:O.__wrap(i)}get(t){p(t,et);const e=r.treasurywithdrawals_get(this.ptr,t.ptr);return e===0?void 0:O.__wrap(e)}keys(){const t=r.treasurywithdrawals_keys(this.ptr);return ee.__wrap(t)}}const J1=new FinalizationRegistry(n=>r.__wbg_treasurywithdrawalsaction_free(n));class Za{static __wrap(t){const e=Object.create(Za.prototype);return e.ptr=t,J1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,J1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_treasurywithdrawalsaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawalsaction_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.treasurywithdrawalsaction_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawalsaction_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawalsaction_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.treasurywithdrawalsaction_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}withdrawals(){const t=r.treasurywithdrawalsaction_withdrawals(this.ptr);return Ya.__wrap(t)}static new(t){p(t,Ya);const e=r.treasurywithdrawalsaction_new(t.ptr);return Za.__wrap(e)}}const X1=new FinalizationRegistry(n=>r.__wbg_unitinterval_free(n));class ot{static __wrap(t){const e=Object.create(ot.prototype);return e.ptr=t,X1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,X1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unitinterval_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unitinterval_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.unitinterval_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ot.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.unitinterval_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unitinterval_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.unitinterval_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ot.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}numerator(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}denominator(){const t=r.exunits_steps(this.ptr);return O.__wrap(t)}static new(t,e){p(t,O),p(e,O);const i=r.exunits_new(t.ptr,e.ptr);return ot.__wrap(i)}static from_float(t){const e=r.unitinterval_from_float(t);return ot.__wrap(e)}}const G1=new FinalizationRegistry(n=>r.__wbg_unregcert_free(n));class Gi{static __wrap(t){const e=Object.create(Gi.prototype);return e.ptr=t,G1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,G1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unregcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unregcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.unregcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Gi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.unregcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Gi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,q),p(e,O);const i=r.regcert_new(t.ptr,e.ptr);return Gi.__wrap(i)}}const Y1=new FinalizationRegistry(n=>r.__wbg_unregcommitteehotkeycert_free(n));class Yi{static __wrap(t){const e=Object.create(Yi.prototype);return e.ptr=t,Y1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Y1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unregcommitteehotkeycert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unregcommitteehotkeycert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.unregcommitteehotkeycert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Yi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.unregcommitteehotkeycert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unregcommitteehotkeycert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.unregcommitteehotkeycert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Yi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}committee_cold_keyhash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return et.__wrap(t)}static new(t){p(t,et);const e=r.scriptpubkey_new(t.ptr);return Yi.__wrap(e)}}const Z1=new FinalizationRegistry(n=>r.__wbg_unregdrepcert_free(n));class Zi{static __wrap(t){const e=Object.create(Zi.prototype);return e.ptr=t,Z1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Z1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unregdrepcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unregdrepcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.unregdrepcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Zi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.unregdrepcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Zi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}voting_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e){p(t,q),p(e,O);const i=r.regcert_new(t.ptr,e.ptr);return Zi.__wrap(i)}}const t0=new FinalizationRegistry(n=>r.__wbg_update_free(n));class ti{static __wrap(t){const e=Object.create(ti.prototype);return e.ptr=t,t0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_update_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.update_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.update_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ti.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.update_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.update_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.update_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ti.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}proposed_protocol_parameter_updates(){const t=r.update_proposed_protocol_parameter_updates(this.ptr);return Ba.__wrap(t)}epoch(){return r.update_epoch(this.ptr)>>>0}static new(t,e){p(t,Ba);const i=r.update_new(t.ptr,e);return ti.__wrap(i)}}const e0=new FinalizationRegistry(n=>r.__wbg_url_free(n));class or{static __wrap(t){const e=Object.create(or.prototype);return e.ptr=t,e0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,e0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_url_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.url_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.url_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return or.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.url_new(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return or.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}url(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const n0=new FinalizationRegistry(n=>r.__wbg_vrfcert_free(n));class _r{static __wrap(t){const e=Object.create(_r.prototype);return e.ptr=t,n0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,n0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vrfcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vrfcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.vrfcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return _r.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.vrfcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vrfcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.vrfcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return _r.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}output(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}proof(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_attributes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){try{const _=r.__wbindgen_add_to_stack_pointer(-16),c=R(t,r.__wbindgen_malloc),d=h,f=R(e,r.__wbindgen_malloc),g=h;r.vrfcert_new(_,c,d,f,g);var i=o()[_/4+0],a=o()[_/4+1],s=o()[_/4+2];if(s)throw l(a);return _r.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const r0=new FinalizationRegistry(n=>r.__wbg_vrfkeyhash_free(n));class jn{static __wrap(t){const e=Object.create(jn.prototype);return e.ptr=t,r0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,r0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vrfkeyhash_free(t)}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.vrfkeyhash_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),g=h;r.auxiliarydatahash_to_bech32(d,this.ptr,f,g);var e=o()[d/4+0],i=o()[d/4+1],a=o()[d/4+2],s=o()[d/4+3],_=e,c=i;if(s)throw _=0,c=0,l(a);return F(_,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(_,c)}}static from_bech32(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.vrfkeyhash_from_bech32(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(i,this.ptr);var t=o()[i/4+0],e=o()[i/4+1];return F(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.vrfkeyhash_from_hex(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return jn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const a0=new FinalizationRegistry(n=>r.__wbg_vrfvkey_free(n));class Ms{static __wrap(t){const e=Object.create(Ms.prototype);return e.ptr=t,a0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,a0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vrfvkey_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vrfvkey_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.plutusscript_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ms.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(){const t=r.vrfvkey_hash(this.ptr);return jn.__wrap(t)}to_raw_key(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const i0=new FinalizationRegistry(n=>r.__wbg_value_free(n));class Rt{static __wrap(t){const e=Object.create(Rt.prototype);return e.ptr=t,i0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,i0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_value_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.value_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.value_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Rt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.value_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.value_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.value_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Rt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,O);const e=r.value_new(t.ptr);return Rt.__wrap(e)}static new_from_assets(t){p(t,be);const e=r.value_new_from_assets(t.ptr);return Rt.__wrap(e)}static zero(){const t=r.value_zero();return Rt.__wrap(t)}is_zero(){return r.value_is_zero(this.ptr)!==0}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}set_coin(t){p(t,O),r.value_set_coin(this.ptr,t.ptr)}multiasset(){const t=r.value_multiasset(this.ptr);return t===0?void 0:be.__wrap(t)}set_multiasset(t){p(t,be),r.value_set_multiasset(this.ptr,t.ptr)}checked_add(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,Rt),r.value_checked_add(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Rt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);p(t,Rt),r.value_checked_sub(s,this.ptr,t.ptr);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Rt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}clamped_sub(t){p(t,Rt);const e=r.value_clamped_sub(this.ptr,t.ptr);return Rt.__wrap(e)}compare(t){p(t,Rt);const e=r.value_compare(this.ptr,t.ptr);return e===16777215?void 0:e}}const s0=new FinalizationRegistry(n=>r.__wbg_vkey_free(n));class Oe{static __wrap(t){const e=Object.create(Oe.prototype);return e.ptr=t,s0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,s0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkey_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vkey_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.vkey_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Oe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,kn);const e=r.vkey_new(t.ptr);return Oe.__wrap(e)}public_key(){const t=r.vkey_public_key(this.ptr);return kn.__wrap(t)}}const o0=new FinalizationRegistry(n=>r.__wbg_vkeys_free(n));class tc{static __wrap(t){const e=Object.create(tc.prototype);return e.ptr=t,o0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,o0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkeys_free(t)}static new(){const t=r.ed25519keyhashes_new();return tc.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.vkeys_get(this.ptr,t);return Oe.__wrap(e)}add(t){p(t,Oe),r.vkeys_add(this.ptr,t.ptr)}}const _0=new FinalizationRegistry(n=>r.__wbg_vkeywitness_free(n));class Ln{static __wrap(t){const e=Object.create(Ln.prototype);return e.ptr=t,_0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkeywitness_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vkeywitness_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.vkeywitness_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ln.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.vkeywitness_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vkeywitness_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.vkeywitness_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Ln.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){p(t,Oe),p(e,Se);const i=r.vkeywitness_new(t.ptr,e.ptr);return Ln.__wrap(i)}vkey(){const t=r.vkey_new(this.ptr);return Oe.__wrap(t)}signature(){const t=r.vkeywitness_signature(this.ptr);return Se.__wrap(t)}}const c0=new FinalizationRegistry(n=>r.__wbg_vkeywitnesses_free(n));class As{static __wrap(t){const e=Object.create(As.prototype);return e.ptr=t,c0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,c0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkeywitnesses_free(t)}static new(){const t=r.ed25519keyhashes_new();return As.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.vkeywitnesses_get(this.ptr,t);return Ln.__wrap(e)}add(t){p(t,Ln),r.vkeywitnesses_add(this.ptr,t.ptr)}}const l0=new FinalizationRegistry(n=>r.__wbg_vote_free(n));class $r{static __wrap(t){const e=Object.create($r.prototype);return e.ptr=t,l0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,l0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vote_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vote_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.vote_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return $r.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.vote_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vote_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.vote_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return $r.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_no(){const t=r.language_new_plutus_v1();return $r.__wrap(t)}static new_yes(){const t=r.language_new_plutus_v2();return $r.__wrap(t)}static new_abstain(){const t=r.language_new_plutus_v3();return $r.__wrap(t)}kind(){return r.vote_kind(this.ptr)>>>0}}const d0=new FinalizationRegistry(n=>r.__wbg_votedelegcert_free(n));class ts{static __wrap(t){const e=Object.create(ts.prototype);return e.ptr=t,d0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,d0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_votedelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votedelegcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.votedelegcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ts.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.votedelegcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votedelegcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.votedelegcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ts.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return q.__wrap(t)}drep(){const t=r.votedelegcert_drep(this.ptr);return oe.__wrap(t)}static new(t,e){p(t,q),p(e,oe);const i=r.votedelegcert_new(t.ptr,e.ptr);return ts.__wrap(i)}}const u0=new FinalizationRegistry(n=>r.__wbg_voteregdelegcert_free(n));class es{static __wrap(t){const e=Object.create(es.prototype);return e.ptr=t,u0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,u0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_voteregdelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.voteregdelegcert_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.voteregdelegcert_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return es.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.voteregdelegcert_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.voteregdelegcert_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.voteregdelegcert_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return es.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return q.__wrap(t)}drep(){const t=r.voteregdelegcert_drep(this.ptr);return oe.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return O.__wrap(t)}static new(t,e,i){p(t,q),p(e,oe),p(i,O);const a=r.voteregdelegcert_new(t.ptr,e.ptr,i.ptr);return es.__wrap(a)}}const p0=new FinalizationRegistry(n=>r.__wbg_voter_free(n));class Sn{static __wrap(t){const e=Object.create(Sn.prototype);return e.ptr=t,p0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,p0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_voter_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.voter_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.voter_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Sn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.voter_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.voter_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.voter_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Sn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_committee_hot_keyhash(t){p(t,et);const e=r.drep_new_keyhash(t.ptr);return Sn.__wrap(e)}static new_committee_hot_scripthash(t){p(t,dt);const e=r.drep_new_scripthash(t.ptr);return Sn.__wrap(e)}static new_drep_keyhash(t){p(t,et);const e=r.voter_new_drep_keyhash(t.ptr);return Sn.__wrap(e)}static new_drep_scripthash(t){p(t,dt);const e=r.voter_new_drep_scripthash(t.ptr);return Sn.__wrap(e)}static new_staking_pool_keyhash(t){p(t,et);const e=r.voter_new_staking_pool_keyhash(t.ptr);return Sn.__wrap(e)}kind(){return r.voter_kind(this.ptr)>>>0}as_committee_hot_keyhash(){const t=r.voter_as_committee_hot_keyhash(this.ptr);return t===0?void 0:et.__wrap(t)}as_committee_hot_scripthash(){const t=r.voter_as_committee_hot_scripthash(this.ptr);return t===0?void 0:dt.__wrap(t)}as_drep_keyhash(){const t=r.voter_as_drep_keyhash(this.ptr);return t===0?void 0:et.__wrap(t)}as_drep_scripthash(){const t=r.voter_as_drep_scripthash(this.ptr);return t===0?void 0:dt.__wrap(t)}as_staking_pool_keyhash(){const t=r.voter_as_staking_pool_keyhash(this.ptr);return t===0?void 0:et.__wrap(t)}}const f0=new FinalizationRegistry(n=>r.__wbg_votingprocedure_free(n));class ei{static __wrap(t){const e=Object.create(ei.prototype);return e.ptr=t,f0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,f0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_votingprocedure_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedure_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.votingprocedure_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ei.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedure_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedure_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.votingprocedure_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ei.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}governance_action_id(){const t=r.transactionunspentoutput_input(this.ptr);return xa.__wrap(t)}voter(){const t=r.votingprocedure_voter(this.ptr);return Sn.__wrap(t)}vote(){return r.votingprocedure_vote(this.ptr)>>>0}anchor(){const t=r.votingprocedure_anchor(this.ptr);return Zn.__wrap(t)}static new(t,e,i,a){p(t,xa),p(e,Sn),p(i,$r),p(a,Zn);const s=r.votingprocedure_new(t.ptr,e.ptr,i.ptr,a.ptr);return ei.__wrap(s)}}const w0=new FinalizationRegistry(n=>r.__wbg_votingprocedures_free(n));class ns{static __wrap(t){const e=Object.create(ns.prototype);return e.ptr=t,w0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,w0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_votingprocedures_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedures_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.votingprocedures_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return ns.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return ns.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.votingprocedures_get(this.ptr,t);return ei.__wrap(e)}add(t){p(t,ei),r.votingprocedures_add(this.ptr,t.ptr)}}const h0=new FinalizationRegistry(n=>r.__wbg_withdrawals_free(n));class Hr{static __wrap(t){const e=Object.create(Hr.prototype);return e.ptr=t,h0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,h0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_withdrawals_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.withdrawals_to_bytes(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=E(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=R(t,r.__wbindgen_malloc),c=h;r.withdrawals_from_bytes(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Hr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.withdrawals_to_json(c,this.ptr);var t=o()[c/4+0],e=o()[c/4+1],i=o()[c/4+2],a=o()[c/4+3],s=t,_=e;if(a)throw s=0,_=0,l(i);return F(s,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(s,_)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.withdrawals_to_js_value(a,this.ptr);var t=o()[a/4+0],e=o()[a/4+1],i=o()[a/4+2];if(i)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16),_=N(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=h;r.withdrawals_from_json(s,_,c);var e=o()[s/4+0],i=o()[s/4+1],a=o()[s/4+2];if(a)throw l(i);return Hr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return Hr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,It),p(e,O);const i=r.withdrawals_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:O.__wrap(i)}get(t){p(t,It);const e=r.withdrawals_get(this.ptr,t.ptr);return e===0?void 0:O.__wrap(e)}keys(){const t=r.withdrawals_keys(this.ptr);return Ki.__wrap(t)}}const Gl={__wbindgen_placeholder__:{__wbindgen_string_new:function(n,t){const e=F(n,t);return wt(e)},__wbindgen_object_drop_ref:function(n){l(n)},__wbindgen_json_parse:function(n,t){const e=JSON.parse(F(n,t));return wt(e)},__wbindgen_json_serialize:function(n,t){const e=it(t),i=JSON.stringify(e===void 0?null:e),a=N(i,r.__wbindgen_malloc,r.__wbindgen_realloc),s=h;o()[n/4+1]=s,o()[n/4+0]=a},__wbg_transaction_new:function(n){const t=xn.__wrap(n);return wt(t)},__wbg_fetch_16f5dddfc5a913a4:function(n,t){const e=it(n).fetch(it(t));return wt(e)},__wbindgen_string_get:function(n,t){const e=it(t),i=typeof e=="string"?e:void 0;var a=zt(i)?0:N(i,r.__wbindgen_malloc,r.__wbindgen_realloc),s=h;o()[n/4+1]=s,o()[n/4+0]=a},__wbindgen_object_clone_ref:function(n){const t=it(n);return wt(t)},__wbg_set_a5d34c36a1a4ebd1:function(){return fn(function(n,t,e,i,a){it(n).set(F(t,e),F(i,a))},arguments)},__wbg_headers_ab5251d2727ac41e:function(n){const t=it(n).headers;return wt(t)},__wbg_newwithstrandinit_c45f0dc6da26fd03:function(){return fn(function(n,t,e){const i=new Request(F(n,t),it(e));return wt(i)},arguments)},__wbg_instanceof_Response_fb3a4df648c1859b:function(n){let t;try{t=it(n)instanceof Response}catch{t=!1}return t},__wbg_json_b9414eb18cb751d0:function(){return fn(function(n){const t=it(n).json();return wt(t)},arguments)},__wbindgen_cb_drop:function(n){const t=l(n).original;return t.cnt--==1?(t.a=0,!0):!1},__wbg_randomFillSync_2f6909f8132a175d:function(){return fn(function(n,t,e){it(n).randomFillSync(E(t,e))},arguments)},__wbg_getRandomValues_11a236fbf9914290:function(){return fn(function(n,t){it(n).getRandomValues(it(t))},arguments)},__wbg_process_5615a087a47ba544:function(n){const t=it(n).process;return wt(t)},__wbindgen_is_object:function(n){const t=it(n);return typeof t=="object"&&t!==null},__wbg_versions_8404a8b21b9337ae:function(n){const t=it(n).versions;return wt(t)},__wbg_node_8b504e170b6380b9:function(n){const t=it(n).node;return wt(t)},__wbindgen_is_string:function(n){return typeof it(n)=="string"},__wbg_require_0430b68b38d1a77e:function(){return fn(function(n,t,e){const i=it(n).require(F(t,e));return wt(i)},arguments)},__wbg_crypto_ca5197b41df5e2bd:function(n){const t=it(n).crypto;return wt(t)},__wbg_msCrypto_1088c21440b2d7e4:function(n){const t=it(n).msCrypto;return wt(t)},__wbg_static_accessor_NODE_MODULE_06b864c18e8ae506:function(){const n=module;return wt(n)},__wbg_self_e7c1f827057f6584:function(){return fn(function(){const n=self.self;return wt(n)},arguments)},__wbg_window_a09ec664e14b1b81:function(){return fn(function(){const n=globalThis.window;return wt(n)},arguments)},__wbg_globalThis_87cbb8506fecf3a9:function(){return fn(function(){const n=globalThis.globalThis;return wt(n)},arguments)},__wbg_global_c85a9259e621f3db:function(){return fn(function(){const n=global.global;return wt(n)},arguments)},__wbindgen_is_undefined:function(n){return it(n)===void 0},__wbg_newnoargs_2b8b6bd7753c76ba:function(n,t){const e=new Function(F(n,t));return wt(e)},__wbg_call_95d1ea488d03e4e8:function(){return fn(function(n,t){const e=it(n).call(it(t));return wt(e)},arguments)},__wbg_new_f9876326328f45ed:function(){const n=new Object;return wt(n)},__wbg_call_9495de66fdbe016b:function(){return fn(function(n,t,e){const i=it(n).call(it(t),it(e));return wt(i)},arguments)},__wbg_set_6aa458a4ebdb65cb:function(){return fn(function(n,t,e){return Reflect.set(it(n),it(t),it(e))},arguments)},__wbg_buffer_cf65c07de34b9a08:function(n){const t=it(n).buffer;return wt(t)},__wbg_new_9d3a9ce4282a18a8:function(n,t){try{var e={a:n,b:t},i=(s,_)=>{const c=e.a;e.a=0;try{return Oj(c,e.b,s,_)}finally{e.a=c}};const a=new Promise(i);return wt(a)}finally{e.a=e.b=0}},__wbg_resolve_fd40f858d9db1a04:function(n){const t=Promise.resolve(it(n));return wt(t)},__wbg_then_ec5db6d509eb475f:function(n,t){const e=it(n).then(it(t));return wt(e)},__wbg_then_f753623316e2873a:function(n,t,e){const i=it(n).then(it(t),it(e));return wt(i)},__wbg_new_537b7341ce90bb31:function(n){const t=new Uint8Array(it(n));return wt(t)},__wbg_set_17499e8aa4003ebd:function(n,t,e){it(n).set(it(t),e>>>0)},__wbg_length_27a2afe8ab42b09f:function(n){return it(n).length},__wbg_newwithlength_b56c882b57805732:function(n){const t=new Uint8Array(n>>>0);return wt(t)},__wbg_subarray_7526649b91a252a6:function(n,t,e){const i=it(n).subarray(t>>>0,e>>>0);return wt(i)},__wbg_new_d87f272aec784ec0:function(n,t){const e=new Function(F(n,t));return wt(e)},__wbg_call_eae29933372a39be:function(n,t){const e=it(n).call(it(t));return wt(e)},__wbindgen_jsval_eq:function(n,t){return it(n)===it(t)},__wbg_self_e0b3266d2d9eba1a:function(n){const t=it(n).self;return wt(t)},__wbg_crypto_e95a6e54c5c2e37f:function(n){const t=it(n).crypto;return wt(t)},__wbg_getRandomValues_dc67302a7bd1aec5:function(n){const t=it(n).getRandomValues;return wt(t)},__wbg_require_0993fe224bf8e202:function(n,t){const e=require(F(n,t));return wt(e)},__wbg_randomFillSync_dd2297de5917c74e:function(n,t,e){it(n).randomFillSync(E(t,e))},__wbg_getRandomValues_02639197c8166a96:function(n,t,e){it(n).getRandomValues(E(t,e))},__wbindgen_debug_string:function(n,t){const e=Vp(it(t)),i=N(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=h;o()[n/4+1]=a,o()[n/4+0]=i},__wbindgen_throw:function(n,t){throw new Error(F(n,t))},__wbindgen_memory:function(){const n=r.memory;return wt(n)},__wbindgen_closure_wrapper7018:function(n,t,e){const i=jj(n,t,216,Sj);return wt(i)}}};async function Qj(n){return(await g0(n)).exports}let ec,Yl;function g0(n){return ec!=null?Promise.resolve(ec):(Yl==null&&(Yl=(async()=>{try{const t=(await Gj(n??{})).instance;return r=t.exports,X_=new Int32Array(r.memory.buffer),Q_=new Uint8Array(r.memory.buffer),ec={instance:t,exports:Jj()},ec}finally{Yl=null}})()),Yl)}function Jj(){return{encrypt_with_password:Ab,decrypt_with_password:Bb,min_fee:Ub,encode_arbitrary_bytes_as_metadatum:Lb,decode_arbitrary_bytes_from_metadatum:$b,encode_json_str_to_metadatum:Hb,decode_metadatum_to_json_str:Wb,encode_json_str_to_plutus_datum:Vb,decode_plutus_datum_to_json_str:Kb,make_daedalus_bootstrap_witness:Qb,make_icarus_bootstrap_witness:Jb,make_vkey_witness:Io,hash_auxiliary_data:Xb,hash_transaction:fa,hash_plutus_data:To,hash_blake2b256:Kp,hash_blake2b224:Gb,hash_script_data:Yb,get_implicit_input:Zb,get_deposit:ty,min_ada_required:ey,encode_json_str_to_native_script:qp,apply_params_to_plutus_script:Qp,Address:jt,Anchor:Zn,AssetName:ie,AssetNames:wa,Assets:tr,AuxiliaryData:Fe,AuxiliaryDataHash:mr,AuxiliaryDataSet:Os,BaseAddress:er,BigInt:G_,BigNum:O,Bip32PrivateKey:Fn,Bip32PublicKey:ha,Block:Ns,BlockHash:nr,Blockfrost:Rs,BootstrapWitness:hn,BootstrapWitnesses:Ps,ByronAddress:ze,Certificate:Ht,Certificates:vr,ConstrPlutusData:ga,CostModel:gn,Costmdls:rr,DNSRecordAorAAAA:ba,DNSRecordSRV:ya,Data:zn,DataHash:se,Datum:Gt,Drep:oe,DrepVotingThresholds:ma,Ed25519KeyHash:et,Ed25519KeyHashes:ee,Ed25519Signature:Se,EnterpriseAddress:Dn,ExUnitPrices:Mn,ExUnits:Je,GeneralTransactionMetadata:kr,GenesisDelegateHash:va,GenesisHash:bn,GenesisHashes:Ai,GenesisKeyDelegation:ka,GovernanceAction:De,GovernanceActionId:xa,HardForkInitiationAction:ja,Header:Sa,HeaderBody:Ca,Int:_e,Ipv4:xr,Ipv6:jr,KESSignature:Is,KESVKey:Ea,Language:Xe,Languages:Fo,LegacyDaedalusPrivateKey:zo,LinearFee:Bi,MIRToStakeCredentials:Oa,MetadataList:Na,MetadataMap:Ui,Mint:ar,MintAssets:An,MoveInstantaneousReward:Sr,MoveInstantaneousRewardsCert:Ra,MultiAsset:be,MultiHostName:Cr,NativeScript:Nt,NativeScripts:Ce,NetworkId:yn,NetworkInfo:Er,NewCommittee:Pa,NewConstitution:Ia,Nonce:Ta,OperationalCert:Fa,ParameterChangeAction:za,PlutusData:st,PlutusList:ce,PlutusMap:Da,PlutusScript:bt,PlutusScripts:le,PlutusWitness:mn,Pointer:Ts,PointerAddress:Li,PoolMetadata:Or,PoolMetadataHash:Nr,PoolParams:Rr,PoolRegistration:Pr,PoolRetirement:Ir,PoolVotingThresholds:Ma,PrivateKey:Kt,ProposalProcedure:Aa,ProposalProcedures:$i,ProposedProtocolParameterUpdates:Ba,ProtocolParamUpdate:Bn,ProtocolVersion:vn,PublicKey:kn,PublicKeys:Y_,Redeemer:Tr,RedeemerTag:Ge,RedeemerWitnessKey:Do,Redeemers:Fr,RegCert:Hi,RegCommitteeHotKeyCert:Wi,RegDrepCert:Vi,Relay:Ye,Relays:zr,RequiredWitnessSet:Fs,RewardAddress:It,RewardAddresses:Ki,Script:Me,ScriptAll:Ua,ScriptAny:La,ScriptDataHash:ir,ScriptHash:dt,ScriptHashes:$a,ScriptNOfK:Ha,ScriptPubkey:Wa,ScriptRef:Un,ScriptWitness:Ee,SingleHostAddr:Dr,SingleHostName:Mr,StakeCredential:q,StakeCredentials:qi,StakeDelegation:Ar,StakeDeregistration:Br,StakeRegDelegCert:Qi,StakeRegistration:Ur,StakeVoteDelegCert:Ji,StakeVoteRegDelegCert:Xi,Strings:Z_,TimelockExpiry:Va,TimelockStart:Ka,Transaction:xn,TransactionBodies:qa,TransactionBody:Ze,TransactionBuilder:Mo,TransactionBuilderConfig:Ao,TransactionBuilderConfigBuilder:ne,TransactionHash:ye,TransactionIndexes:Qa,TransactionInput:tn,TransactionInputs:en,TransactionMetadatum:xt,TransactionMetadatumLabels:zs,TransactionOutput:Yt,TransactionOutputAmountBuilder:Ja,TransactionOutputBuilder:Ds,TransactionOutputs:Lr,TransactionUnspentOutput:Ae,TransactionUnspentOutputs:sr,TransactionWitnessSet:Be,TransactionWitnessSetBuilder:Xa,TransactionWitnessSets:Ga,TreasuryWithdrawals:Ya,TreasuryWithdrawalsAction:Za,UnitInterval:ot,UnregCert:Gi,UnregCommitteeHotKeyCert:Yi,UnregDrepCert:Zi,Update:ti,Url:or,VRFCert:_r,VRFKeyHash:jn,VRFVKey:Ms,Value:Rt,Vkey:Oe,Vkeys:tc,Vkeywitness:Ln,Vkeywitnesses:As,Vote:$r,VoteDelegCert:ts,VoteRegDelegCert:es,Voter:Sn,VotingProcedure:ei,VotingProcedures:ns,Withdrawals:Hr}}function Xj(){return ec!=null}async function Gj(n){var a,s,_;const t=import.meta.url.includes("_frsh")?n.url:new URL("/aiken-ide/assets/cardano_multiplatform_lib_bg-1FNGSMI0.wasm",import.meta.url),e=n.decompress,i=t.protocol==="file:";if(((s=(a=globalThis.process)==null?void 0:a.versions)==null?void 0:s.node)!=null&&i){const c=fs.readFileSync(t);return WebAssembly.instantiate(e?e(c):c,Gl)}switch(t.protocol){case"":case"chrome-extension:":case"file:":case"https:":case"http:":{if(i){if(typeof Deno!="object")throw new Error("file urls are not supported in this environment");"permissions"in Deno&&await Deno.permissions.request({name:"read",path:t})}else typeof Deno=="object"&&"permissions"in Deno&&await Deno.permissions.request({name:"net",host:t.host});const c=await fetch(t);if(e){const d=new Uint8Array(await c.arrayBuffer());return WebAssembly.instantiate(e(d),Gl)}return i||(_=c.headers.get("content-type"))!=null&&_.toLowerCase().startsWith("application/wasm")?WebAssembly.instantiateStreaming(c,Gl):WebAssembly.instantiate(await c.arrayBuffer(),Gl)}default:throw new Error(`Unsupported protocol: ${t.protocol}`)}}const Yj=Object.freeze(Object.defineProperty({__proto__:null,Address:jt,Anchor:Zn,AssetName:ie,AssetNames:wa,Assets:tr,AuxiliaryData:Fe,AuxiliaryDataHash:mr,AuxiliaryDataSet:Os,BaseAddress:er,BigInt:G_,BigNum:O,Bip32PrivateKey:Fn,Bip32PublicKey:ha,Block:Ns,BlockHash:nr,Blockfrost:Rs,BootstrapWitness:hn,BootstrapWitnesses:Ps,ByronAddress:ze,Certificate:Ht,CertificateKind:$j,Certificates:vr,ConstrPlutusData:ga,CostModel:gn,Costmdls:rr,DNSRecordAorAAAA:ba,DNSRecordSRV:ya,Data:zn,DataHash:se,Datum:Gt,DatumKind:Uj,Drep:oe,DrepKind:Tj,DrepVotingThresholds:ma,Ed25519KeyHash:et,Ed25519KeyHashes:ee,Ed25519Signature:Se,EnterpriseAddress:Dn,ExUnitPrices:Mn,ExUnits:Je,GeneralTransactionMetadata:kr,GenesisDelegateHash:va,GenesisHash:bn,GenesisHashes:Ai,GenesisKeyDelegation:ka,GovernanceAction:De,GovernanceActionId:xa,GovernanceActionKind:Rj,HardForkInitiationAction:ja,Header:Sa,HeaderBody:Ca,Int:_e,Ipv4:xr,Ipv6:jr,KESSignature:Is,KESVKey:Ea,Language:Xe,LanguageKind:zj,Languages:Fo,LegacyDaedalusPrivateKey:zo,LinearFee:Bi,MIRKind:Wj,MIRPot:Hj,MIRToStakeCredentials:Oa,MetadataJsonSchema:ny,MetadataList:Na,MetadataMap:Ui,Mint:ar,MintAssets:An,MoveInstantaneousReward:Sr,MoveInstantaneousRewardsCert:Ra,MultiAsset:be,MultiHostName:Cr,NativeScript:Nt,NativeScriptKind:Kj,NativeScripts:Ce,NetworkId:yn,NetworkIdKind:qj,NetworkInfo:Er,NewCommittee:Pa,NewConstitution:Ia,Nonce:Ta,OperationalCert:Fa,ParameterChangeAction:za,PlutusData:st,PlutusDataKind:Dj,PlutusDatumSchema:Aj,PlutusList:ce,PlutusMap:Da,PlutusScript:bt,PlutusScripts:le,PlutusWitness:mn,Pointer:Ts,PointerAddress:Li,PoolMetadata:Or,PoolMetadataHash:Nr,PoolParams:Rr,PoolRegistration:Pr,PoolRetirement:Ir,PoolVotingThresholds:Ma,PrivateKey:Kt,ProposalProcedure:Aa,ProposalProcedures:$i,ProposedProtocolParameterUpdates:Ba,ProtocolParamUpdate:Bn,ProtocolVersion:vn,PublicKey:kn,PublicKeys:Y_,Redeemer:Tr,RedeemerTag:Ge,RedeemerTagKind:Mj,RedeemerWitnessKey:Do,Redeemers:Fr,RegCert:Hi,RegCommitteeHotKeyCert:Wi,RegDrepCert:Vi,Relay:Ye,RelayKind:Vj,Relays:zr,RequiredWitnessSet:Fs,RewardAddress:It,RewardAddresses:Ki,Script:Me,ScriptAll:Ua,ScriptAny:La,ScriptDataHash:ir,ScriptHash:dt,ScriptHashNamespace:wn,ScriptHashes:$a,ScriptKind:Bj,ScriptNOfK:Ha,ScriptPubkey:Wa,ScriptRef:Un,ScriptSchema:ry,ScriptWitness:Ee,ScriptWitnessKind:Lj,SingleHostAddr:Dr,SingleHostName:Mr,StakeCredKind:Nj,StakeCredential:q,StakeCredentials:qi,StakeDelegation:Ar,StakeDeregistration:Br,StakeRegDelegCert:Qi,StakeRegistration:Ur,StakeVoteDelegCert:Ji,StakeVoteRegDelegCert:Xi,Strings:Z_,TimelockExpiry:Va,TimelockStart:Ka,Transaction:xn,TransactionBodies:qa,TransactionBody:Ze,TransactionBuilder:Mo,TransactionBuilderConfig:Ao,TransactionBuilderConfigBuilder:ne,TransactionHash:ye,TransactionIndexes:Qa,TransactionInput:tn,TransactionInputs:en,TransactionMetadatum:xt,TransactionMetadatumKind:Fj,TransactionMetadatumLabels:zs,TransactionOutput:Yt,TransactionOutputAmountBuilder:Ja,TransactionOutputBuilder:Ds,TransactionOutputs:Lr,TransactionUnspentOutput:Ae,TransactionUnspentOutputs:sr,TransactionWitnessSet:Be,TransactionWitnessSetBuilder:Xa,TransactionWitnessSets:Ga,TreasuryWithdrawals:Ya,TreasuryWithdrawalsAction:Za,UnitInterval:ot,UnregCert:Gi,UnregCommitteeHotKeyCert:Yi,UnregDrepCert:Zi,Update:ti,Url:or,VRFCert:_r,VRFKeyHash:jn,VRFVKey:Ms,Value:Rt,Vkey:Oe,Vkeys:tc,Vkeywitness:Ln,Vkeywitnesses:As,Vote:$r,VoteDelegCert:ts,VoteKind:Ij,VoteRegDelegCert:es,Voter:Sn,VoterKind:Pj,VotingProcedure:ei,VotingProcedures:ns,Withdrawals:Hr,apply_params_to_plutus_script:Qp,decode_arbitrary_bytes_from_metadatum:$b,decode_metadatum_to_json_str:Wb,decode_plutus_datum_to_json_str:Kb,decrypt_with_password:Bb,encode_arbitrary_bytes_as_metadatum:Lb,encode_json_str_to_metadatum:Hb,encode_json_str_to_native_script:qp,encode_json_str_to_plutus_datum:Vb,encrypt_with_password:Ab,get_deposit:ty,get_implicit_input:Zb,hash_auxiliary_data:Xb,hash_blake2b224:Gb,hash_blake2b256:Kp,hash_plutus_data:To,hash_script_data:Yb,hash_transaction:fa,instantiate:Qj,instantiateWithInstance:g0,isInstantiated:Xj,make_daedalus_bootstrap_witness:Qb,make_icarus_bootstrap_witness:Jb,make_vkey_witness:Io,min_ada_required:ey,min_fee:Ub},Symbol.toStringTag,{value:"Module"}));let u;const ni=new Array(128).fill(void 0);ni.push(void 0,null,!0,!1);function b0(n){return ni[n]}let nc=ni.length;function Zj(n){n<132||(ni[n]=nc,nc=n)}function vt(n){const t=b0(n);return Zj(n),t}const y0=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});y0.decode();let rc=null;function Bo(){return(rc===null||rc.byteLength===0)&&(rc=new Uint8Array(u.memory.buffer)),rc}function Uo(n,t){return y0.decode(Bo().subarray(n,n+t))}function tS(n){nc===ni.length&&ni.push(ni.length+1);const t=nc;return nc=ni[t],ni[t]=n,t}function Jp(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const a=n.description;return a==null?"Symbol":`Symbol(${a})`}if(t=="function"){const a=n.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(n)){const a=n.length;let s="[";a>0&&(s+=Jp(n[0]));for(let _=1;_1)i=e[1];else return toString.call(n);if(i=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message} +${n.stack}`:i}let nt=0;const m0=new TextEncoder("utf-8"),eS=function(n,t){return m0.encodeInto(n,t)};function ac(n,t,e){if(e===void 0){const c=m0.encode(n),d=t(c.length);return Bo().subarray(d,d+c.length).set(c),nt=c.length,d}let i=n.length,a=t(i);const s=Bo();let _=0;for(;_127)break;s[a+_]=c}if(_!==i){_!==0&&(n=n.slice(_)),a=e(a,i,i=_+n.length*3);const c=Bo().subarray(a+_,a+i),d=eS(n,c);_+=d.written}return nt=_,a}let ic=null;function C(){return(ic===null||ic.byteLength===0)&&(ic=new Int32Array(u.memory.buffer)),ic}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`);return n.ptr}function lt(n,t){const e=t(n.length*1);return Bo().set(n,e/1),nt=n.length,e}function gt(n,t){return Bo().subarray(n/1,n/1+t)}let Zl=null;function nS(){return(Zl===null||Zl.byteLength===0)&&(Zl=new Float64Array(u.memory.buffer)),Zl}function Bs(n){return n==null}const td=Object.freeze({EdDSA:0,0:"EdDSA",ChaCha20Poly1305:1,1:"ChaCha20Poly1305"}),v0=Object.freeze({OKP:0,0:"OKP",EC2:1,1:"EC2",Symmetric:2,2:"Symmetric"}),rS=Object.freeze({CRV:0,0:"CRV",X:1,1:"X",Y:2,2:"Y",D:3,3:"D"}),aS=Object.freeze({P256:0,0:"P256",P384:1,1:"P384",P521:2,2:"P521",X25519:3,3:"X25519",X448:4,4:"X448",Ed25519:5,5:"Ed25519",Ed448:6,6:"Ed448"}),iS=Object.freeze({Sign:0,0:"Sign",Verify:1,1:"Verify",Encrypt:2,2:"Encrypt",Decrypt:3,3:"Decrypt",WrapKey:4,4:"WrapKey",UnwrapKey:5,5:"UnwrapKey",DeriveKey:6,6:"DeriveKey",DeriveBits:7,7:"DeriveBits"}),sS=Object.freeze({Bool:0,0:"Bool",Float:1,1:"Float",Unassigned:2,2:"Unassigned",Break:3,3:"Break",Undefined:4,4:"Undefined",Null:5,5:"Null"}),oS=Object.freeze({Int:0,0:"Int",Bytes:1,1:"Bytes",Text:2,2:"Text",Array:3,3:"Array",Object:4,4:"Object",TaggedCBOR:5,5:"TaggedCBOR",Special:6,6:"Special"}),_S=Object.freeze({Int:0,0:"Int",Text:1,1:"Text"}),cS=Object.freeze({COSESIGN:0,0:"COSESIGN",COSESIGN1:1,1:"COSESIGN1"}),lS=Object.freeze({Signature:0,0:"Signature",Signature1:1,1:"Signature1",CounterSignature:2,2:"CounterSignature"}),k0=new FinalizationRegistry(n=>u.__wbg_bignum_free(n));class Wt{static __wrap(t){const e=Object.create(Wt.prototype);return e.ptr=t,k0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,k0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_bignum_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.bignum_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.bignum_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Wt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_str(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=ac(t,u.__wbindgen_malloc,u.__wbindgen_realloc),c=nt;u.bignum_from_str(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Wt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.bignum_to_str(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];return Uo(t,e)}finally{u.__wbindgen_add_to_stack_pointer(16),u.__wbindgen_free(t,e)}}checked_mul(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16);rt(t,Wt),u.bignum_checked_mul(s,this.ptr,t.ptr);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Wt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}checked_add(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16);rt(t,Wt),u.bignum_checked_add(s,this.ptr,t.ptr);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Wt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16);rt(t,Wt),u.bignum_checked_sub(s,this.ptr,t.ptr);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Wt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}}const x0=new FinalizationRegistry(n=>u.__wbg_cborarray_free(n));class ri{static __wrap(t){const e=Object.create(ri.prototype);return e.ptr=t,x0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,x0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborarray_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborarray_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cborarray_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return ri.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.cborarray_new();return ri.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.cborarray_get(this.ptr,t);return Ot.__wrap(e)}add(t){rt(t,Ot),u.cborarray_add(this.ptr,t.ptr)}set_definite_encoding(t){u.cborarray_set_definite_encoding(this.ptr,t)}is_definite(){return u.cborarray_is_definite(this.ptr)!==0}}const j0=new FinalizationRegistry(n=>u.__wbg_cborobject_free(n));class rs{static __wrap(t){const e=Object.create(rs.prototype);return e.ptr=t,j0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,j0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborobject_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborobject_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cborobject_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return rs.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.cborobject_new();return rs.__wrap(t)}len(){return u.cborobject_len(this.ptr)>>>0}insert(t,e){rt(t,Ot),rt(e,Ot);const i=u.cborobject_insert(this.ptr,t.ptr,e.ptr);return i===0?void 0:Ot.__wrap(i)}get(t){rt(t,Ot);const e=u.cborobject_get(this.ptr,t.ptr);return e===0?void 0:Ot.__wrap(e)}keys(){const t=u.cborobject_keys(this.ptr);return ri.__wrap(t)}set_definite_encoding(t){u.cborobject_set_definite_encoding(this.ptr,t)}is_definite(){return u.cborobject_is_definite(this.ptr)!==0}}const S0=new FinalizationRegistry(n=>u.__wbg_cborspecial_free(n));class $n{static __wrap(t){const e=Object.create($n.prototype);return e.ptr=t,S0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,S0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborspecial_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborspecial_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cborspecial_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return $n.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_bool(t){const e=u.cborspecial_new_bool(t);return $n.__wrap(e)}static new_unassigned(t){const e=u.cborspecial_new_unassigned(t);return $n.__wrap(e)}static new_break(){const t=u.cborspecial_new_break();return $n.__wrap(t)}static new_null(){const t=u.cborspecial_new_null();return $n.__wrap(t)}static new_undefined(){const t=u.cborspecial_new_undefined();return $n.__wrap(t)}kind(){return u.cborspecial_kind(this.ptr)>>>0}as_bool(){const t=u.cborspecial_as_bool(this.ptr);return t===16777215?void 0:t!==0}as_float(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.cborspecial_as_float(i,this.ptr);var t=C()[i/4+0],e=nS()[i/8+1];return t===0?void 0:e}finally{u.__wbindgen_add_to_stack_pointer(16)}}as_unassigned(){const t=u.cborspecial_as_unassigned(this.ptr);return t===16777215?void 0:t}}const C0=new FinalizationRegistry(n=>u.__wbg_cborvalue_free(n));class Ot{static __wrap(t){const e=Object.create(Ot.prototype);return e.ptr=t,C0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,C0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborvalue_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborvalue_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cborvalue_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Ot.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_int(t){rt(t,Ne);const e=u.cborvalue_new_int(t.ptr);return Ot.__wrap(e)}static new_bytes(t){const e=lt(t,u.__wbindgen_malloc),i=nt,a=u.cborvalue_new_bytes(e,i);return Ot.__wrap(a)}static new_text(t){const e=ac(t,u.__wbindgen_malloc,u.__wbindgen_realloc),i=nt,a=u.cborvalue_new_text(e,i);return Ot.__wrap(a)}static new_array(t){rt(t,ri);const e=u.cborvalue_new_array(t.ptr);return Ot.__wrap(e)}static new_object(t){rt(t,rs);const e=u.cborvalue_new_object(t.ptr);return Ot.__wrap(e)}static new_tagged(t){rt(t,os);const e=u.cborvalue_new_tagged(t.ptr);return Ot.__wrap(e)}static new_special(t){rt(t,$n);const e=u.cborvalue_new_special(t.ptr);return Ot.__wrap(e)}static from_label(t){rt(t,yt);const e=u.cborvalue_from_label(t.ptr);return Ot.__wrap(e)}kind(){return u.cborvalue_kind(this.ptr)>>>0}as_int(){const t=u.cborvalue_as_int(this.ptr);return t===0?void 0:Ne.__wrap(t)}as_bytes(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.cborvalue_as_bytes(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}as_text(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.cborvalue_as_text(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=Uo(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}as_array(){const t=u.cborvalue_as_array(this.ptr);return t===0?void 0:ri.__wrap(t)}as_object(){const t=u.cborvalue_as_object(this.ptr);return t===0?void 0:rs.__wrap(t)}as_tagged(){const t=u.cborvalue_as_tagged(this.ptr);return t===0?void 0:os.__wrap(t)}as_special(){const t=u.cborvalue_as_special(this.ptr);return t===0?void 0:$n.__wrap(t)}}const E0=new FinalizationRegistry(n=>u.__wbg_coseencrypt_free(n));class Us{static __wrap(t){const e=Object.create(Us.prototype);return e.ptr=t,E0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,E0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coseencrypt_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.coseencrypt_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Us.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return qt.__wrap(t)}ciphertext(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}recipients(){const t=u.coseencrypt_recipients(this.ptr);return is.__wrap(t)}static new(t,e,i){rt(t,qt);var a=Bs(e)?0:lt(e,u.__wbindgen_malloc),s=nt;rt(i,is);const _=u.coseencrypt_new(t.ptr,a,s,i.ptr);return Us.__wrap(_)}}const O0=new FinalizationRegistry(n=>u.__wbg_coseencrypt0_free(n));class Ls{static __wrap(t){const e=Object.create(Ls.prototype);return e.ptr=t,O0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,O0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coseencrypt0_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.coseencrypt0_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Ls.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return qt.__wrap(t)}ciphertext(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){rt(t,qt);var i=Bs(e)?0:lt(e,u.__wbindgen_malloc),a=nt;const s=u.coseencrypt0_new(t.ptr,i,a);return Ls.__wrap(s)}}const N0=new FinalizationRegistry(n=>u.__wbg_cosekey_free(n));class ai{static __wrap(t){const e=Object.create(ai.prototype);return e.ptr=t,N0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,N0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosekey_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cosekey_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return ai.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_key_type(t){rt(t,yt),u.cosekey_set_key_type(this.ptr,t.ptr)}key_type(){const t=u.cosekey_key_type(this.ptr);return yt.__wrap(t)}set_key_id(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.cosekey_set_key_id(this.ptr,e,i)}key_id(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_key_id(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_algorithm_id(t){rt(t,yt),u.cosekey_set_algorithm_id(this.ptr,t.ptr)}algorithm_id(){const t=u.cosekey_algorithm_id(this.ptr);return t===0?void 0:yt.__wrap(t)}set_key_ops(t){rt(t,lr),u.cosekey_set_key_ops(this.ptr,t.ptr)}key_ops(){const t=u.cosekey_key_ops(this.ptr);return t===0?void 0:lr.__wrap(t)}set_base_init_vector(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.cosekey_set_base_init_vector(this.ptr,e,i)}base_init_vector(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_base_init_vector(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}header(t){rt(t,yt);const e=u.cosekey_header(this.ptr,t.ptr);return e===0?void 0:Ot.__wrap(e)}set_header(t,e){try{const s=u.__wbindgen_add_to_stack_pointer(-16);rt(t,yt),rt(e,Ot),u.cosekey_set_header(s,this.ptr,t.ptr,e.ptr);var i=C()[s/4+0],a=C()[s/4+1];if(a)throw vt(i)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t){rt(t,yt);const e=u.cosekey_new(t.ptr);return ai.__wrap(e)}}const R0=new FinalizationRegistry(n=>u.__wbg_coserecipient_free(n));class as{static __wrap(t){const e=Object.create(as.prototype);return e.ptr=t,R0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,R0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coserecipient_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coserecipient_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.coserecipient_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return as.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return qt.__wrap(t)}ciphertext(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){rt(t,qt);var i=Bs(e)?0:lt(e,u.__wbindgen_malloc),a=nt;const s=u.coseencrypt0_new(t.ptr,i,a);return as.__wrap(s)}}const P0=new FinalizationRegistry(n=>u.__wbg_coserecipients_free(n));class is{static __wrap(t){const e=Object.create(is.prototype);return e.ptr=t,P0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,P0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coserecipients_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coserecipients_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.coserecipients_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return is.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.coserecipients_new();return is.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.coserecipients_get(this.ptr,t);return as.__wrap(e)}add(t){rt(t,as),u.coserecipients_add(this.ptr,t.ptr)}}const I0=new FinalizationRegistry(n=>u.__wbg_cosesign_free(n));class ii{static __wrap(t){const e=Object.create(ii.prototype);return e.ptr=t,I0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,I0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesign_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesign_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cosesign_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return ii.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return qt.__wrap(t)}payload(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}signatures(){const t=u.cosesign_signatures(this.ptr);return cr.__wrap(t)}static new(t,e,i){rt(t,qt);var a=Bs(e)?0:lt(e,u.__wbindgen_malloc),s=nt;rt(i,cr);const _=u.cosesign_new(t.ptr,a,s,i.ptr);return ii.__wrap(_)}}const T0=new FinalizationRegistry(n=>u.__wbg_cosesign1_free(n));class Wr{static __wrap(t){const e=Object.create(Wr.prototype);return e.ptr=t,T0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,T0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesign1_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesign1_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cosesign1_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Wr.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return qt.__wrap(t)}payload(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}signature(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesign1_signature(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}signed_data(t,e){try{const g=u.__wbindgen_add_to_stack_pointer(-16);var i=Bs(t)?0:lt(t,u.__wbindgen_malloc),a=nt,s=Bs(e)?0:lt(e,u.__wbindgen_malloc),_=nt;u.cosesign1_signed_data(g,this.ptr,i,a,s,_);var c=C()[g/4+0],d=C()[g/4+1],f=C()[g/4+2];if(f)throw vt(d);return _i.__wrap(c)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e,i){rt(t,qt);var a=Bs(e)?0:lt(e,u.__wbindgen_malloc),s=nt;const _=lt(i,u.__wbindgen_malloc),c=nt,d=u.cosesign1_new(t.ptr,a,s,_,c);return Wr.__wrap(d)}}const F0=new FinalizationRegistry(n=>u.__wbg_cosesign1builder_free(n));class Lo{static __wrap(t){const e=Object.create(Lo.prototype);return e.ptr=t,F0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,F0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesign1builder_free(t)}static new(t,e,i){rt(t,qt);const a=lt(e,u.__wbindgen_malloc),s=nt,_=u.cosesign1builder_new(t.ptr,a,s,i);return Lo.__wrap(_)}hash_payload(){u.cosesign1builder_hash_payload(this.ptr)}set_external_aad(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.cosesign1builder_set_external_aad(this.ptr,e,i)}make_data_to_sign(){const t=u.cosesign1builder_make_data_to_sign(this.ptr);return _i.__wrap(t)}build(t){const e=lt(t,u.__wbindgen_malloc),i=nt,a=u.cosesign1builder_build(this.ptr,e,i);return Wr.__wrap(a)}}const z0=new FinalizationRegistry(n=>u.__wbg_cosesignbuilder_free(n));class sc{static __wrap(t){const e=Object.create(sc.prototype);return e.ptr=t,z0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,z0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesignbuilder_free(t)}static new(t,e,i){rt(t,qt);const a=lt(e,u.__wbindgen_malloc),s=nt,_=u.cosesignbuilder_new(t.ptr,a,s,i);return sc.__wrap(_)}hash_payload(){u.cosesign1builder_hash_payload(this.ptr)}set_external_aad(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.cosesign1builder_set_external_aad(this.ptr,e,i)}make_data_to_sign(){const t=u.cosesignbuilder_make_data_to_sign(this.ptr);return _i.__wrap(t)}build(t){rt(t,cr);const e=u.cosesignbuilder_build(this.ptr,t.ptr);return ii.__wrap(e)}}const D0=new FinalizationRegistry(n=>u.__wbg_cosesignature_free(n));class si{static __wrap(t){const e=Object.create(si.prototype);return e.ptr=t,D0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,D0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesignature_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesignature_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cosesignature_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return si.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return qt.__wrap(t)}signature(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesignature_signature(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){rt(t,qt);const i=lt(e,u.__wbindgen_malloc),a=nt,s=u.cosesignature_new(t.ptr,i,a);return si.__wrap(s)}}const M0=new FinalizationRegistry(n=>u.__wbg_cosesignatures_free(n));class cr{static __wrap(t){const e=Object.create(cr.prototype);return e.ptr=t,M0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,M0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesignatures_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesignatures_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.cosesignatures_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return cr.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.coserecipients_new();return cr.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.cosesignatures_get(this.ptr,t);return si.__wrap(e)}add(t){rt(t,si),u.cosesignatures_add(this.ptr,t.ptr)}}const A0=new FinalizationRegistry(n=>u.__wbg_countersignature_free(n));class oi{static __wrap(t){const e=Object.create(oi.prototype);return e.ptr=t,A0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,A0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_countersignature_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.countersignature_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.countersignature_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return oi.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_single(t){rt(t,si);const e=u.countersignature_new_single(t.ptr);return oi.__wrap(e)}static new_multi(t){rt(t,cr);const e=u.countersignature_new_multi(t.ptr);return oi.__wrap(e)}signatures(){const t=u.countersignature_signatures(this.ptr);return cr.__wrap(t)}}const B0=new FinalizationRegistry(n=>u.__wbg_eddsa25519key_free(n));class oc{static __wrap(t){const e=Object.create(oc.prototype);return e.ptr=t,B0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,B0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_eddsa25519key_free(t)}static new(t){const e=lt(t,u.__wbindgen_malloc),i=nt,a=u.eddsa25519key_new(e,i);return oc.__wrap(a)}set_private_key(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.eddsa25519key_set_private_key(this.ptr,e,i)}is_for_signing(){u.eddsa25519key_is_for_signing(this.ptr)}is_for_verifying(){u.eddsa25519key_is_for_verifying(this.ptr)}build(){const t=u.eddsa25519key_build(this.ptr);return ai.__wrap(t)}}const U0=new FinalizationRegistry(n=>u.__wbg_headermap_free(n));class Hn{static __wrap(t){const e=Object.create(Hn.prototype);return e.ptr=t,U0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,U0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_headermap_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.headermap_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.headermap_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Hn.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_algorithm_id(t){rt(t,yt),u.headermap_set_algorithm_id(this.ptr,t.ptr)}algorithm_id(){const t=u.headermap_algorithm_id(this.ptr);return t===0?void 0:yt.__wrap(t)}set_criticality(t){rt(t,lr),u.headermap_set_criticality(this.ptr,t.ptr)}criticality(){const t=u.headermap_criticality(this.ptr);return t===0?void 0:lr.__wrap(t)}set_content_type(t){rt(t,yt),u.headermap_set_content_type(this.ptr,t.ptr)}content_type(){const t=u.headermap_content_type(this.ptr);return t===0?void 0:yt.__wrap(t)}set_key_id(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.headermap_set_key_id(this.ptr,e,i)}key_id(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.headermap_key_id(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_init_vector(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.cosekey_set_base_init_vector(this.ptr,e,i)}init_vector(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_base_init_vector(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_partial_init_vector(t){const e=lt(t,u.__wbindgen_malloc),i=nt;u.headermap_set_partial_init_vector(this.ptr,e,i)}partial_init_vector(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.headermap_partial_init_vector(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=gt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_counter_signature(t){rt(t,oi),u.headermap_set_counter_signature(this.ptr,t.ptr)}counter_signature(){const t=u.headermap_counter_signature(this.ptr);return t===0?void 0:oi.__wrap(t)}header(t){rt(t,yt);const e=u.headermap_header(this.ptr,t.ptr);return e===0?void 0:Ot.__wrap(e)}set_header(t,e){try{const s=u.__wbindgen_add_to_stack_pointer(-16);rt(t,yt),rt(e,Ot),u.headermap_set_header(s,this.ptr,t.ptr,e.ptr);var i=C()[s/4+0],a=C()[s/4+1];if(a)throw vt(i)}finally{u.__wbindgen_add_to_stack_pointer(16)}}keys(){const t=u.headermap_keys(this.ptr);return lr.__wrap(t)}static new(){const t=u.headermap_new();return Hn.__wrap(t)}}const L0=new FinalizationRegistry(n=>u.__wbg_headers_free(n));class qt{static __wrap(t){const e=Object.create(qt.prototype);return e.ptr=t,L0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,L0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_headers_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.headers_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.headers_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return qt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}protected(){const t=u.headers_protected(this.ptr);return nn.__wrap(t)}unprotected(){const t=u.headers_unprotected(this.ptr);return Hn.__wrap(t)}static new(t,e){rt(t,nn),rt(e,Hn);const i=u.headers_new(t.ptr,e.ptr);return qt.__wrap(i)}}const $0=new FinalizationRegistry(n=>u.__wbg_int_free(n));class Ne{static __wrap(t){const e=Object.create(Ne.prototype);return e.ptr=t,$0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_int_free(t)}static new(t){rt(t,Wt);var e=t.__destroy_into_raw();const i=u.int_new(e);return Ne.__wrap(i)}static new_negative(t){rt(t,Wt);var e=t.__destroy_into_raw();const i=u.int_new_negative(e);return Ne.__wrap(i)}static new_i32(t){const e=u.int_new_i32(t);return Ne.__wrap(e)}is_positive(){return u.int_is_positive(this.ptr)!==0}as_positive(){const t=u.int_as_positive(this.ptr);return t===0?void 0:Wt.__wrap(t)}as_negative(){const t=u.int_as_negative(this.ptr);return t===0?void 0:Wt.__wrap(t)}as_i32(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.int_as_i32(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];return t===0?void 0:e}finally{u.__wbindgen_add_to_stack_pointer(16)}}}const H0=new FinalizationRegistry(n=>u.__wbg_label_free(n));class yt{static __wrap(t){const e=Object.create(yt.prototype);return e.ptr=t,H0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,H0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_label_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.label_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.label_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return yt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_int(t){rt(t,Ne);const e=u.label_new_int(t.ptr);return yt.__wrap(e)}static new_text(t){const e=ac(t,u.__wbindgen_malloc,u.__wbindgen_realloc),i=nt,a=u.label_new_text(e,i);return yt.__wrap(a)}kind(){return u.label_kind(this.ptr)>>>0}as_int(){const t=u.label_as_int(this.ptr);return t===0?void 0:Ne.__wrap(t)}as_text(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.label_as_text(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];let a;return t!==0&&(a=Uo(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_algorithm_id(t){const e=u.label_from_algorithm_id(t);return yt.__wrap(e)}static from_key_type(t){const e=u.label_from_key_type(t);return yt.__wrap(e)}static from_ec_key(t){const e=u.label_from_ec_key(t);return yt.__wrap(e)}static from_curve_type(t){const e=u.label_from_curve_type(t);return yt.__wrap(e)}static from_key_operation(t){const e=u.label_from_key_operation(t);return yt.__wrap(e)}}const W0=new FinalizationRegistry(n=>u.__wbg_labels_free(n));class lr{static __wrap(t){const e=Object.create(lr.prototype);return e.ptr=t,W0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,W0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_labels_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.labels_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.labels_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return lr.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.coserecipients_new();return lr.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.labels_get(this.ptr,t);return yt.__wrap(e)}add(t){rt(t,yt),u.labels_add(this.ptr,t.ptr)}}const V0=new FinalizationRegistry(n=>u.__wbg_passwordencryption_free(n));class $o{static __wrap(t){const e=Object.create($o.prototype);return e.ptr=t,V0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,V0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_passwordencryption_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.passwordencryption_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.passwordencryption_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return $o.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t){rt(t,Ls);const e=u.passwordencryption_new(t.ptr);return $o.__wrap(e)}}const K0=new FinalizationRegistry(n=>u.__wbg_protectedheadermap_free(n));class nn{static __wrap(t){const e=Object.create(nn.prototype);return e.ptr=t,K0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,K0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_protectedheadermap_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.protectedheadermap_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.protectedheadermap_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return nn.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_empty(){const t=u.protectedheadermap_new_empty();return nn.__wrap(t)}static new(t){rt(t,Hn);const e=u.protectedheadermap_new(t.ptr);return nn.__wrap(e)}deserialized_headers(){const t=u.protectedheadermap_deserialized_headers(this.ptr);return Hn.__wrap(t)}}const q0=new FinalizationRegistry(n=>u.__wbg_pubkeyencryption_free(n));class Ho{static __wrap(t){const e=Object.create(Ho.prototype);return e.ptr=t,q0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,q0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_pubkeyencryption_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.pubkeyencryption_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.pubkeyencryption_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return Ho.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t){rt(t,Us);const e=u.pubkeyencryption_new(t.ptr);return Ho.__wrap(e)}}const Q0=new FinalizationRegistry(n=>u.__wbg_sigstructure_free(n));class _i{static __wrap(t){const e=Object.create(_i.prototype);return e.ptr=t,Q0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Q0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_sigstructure_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.sigstructure_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.sigstructure_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return _i.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}context(){return u.sigstructure_context(this.ptr)>>>0}body_protected(){const t=u.sigstructure_body_protected(this.ptr);return nn.__wrap(t)}sign_protected(){const t=u.sigstructure_sign_protected(this.ptr);return t===0?void 0:nn.__wrap(t)}external_aad(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.sigstructure_external_aad(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}payload(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.sigstructure_payload(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_sign_protected(t){rt(t,nn),u.sigstructure_set_sign_protected(this.ptr,t.ptr)}static new(t,e,i,a){rt(e,nn);const s=lt(i,u.__wbindgen_malloc),_=nt,c=lt(a,u.__wbindgen_malloc),d=nt,f=u.sigstructure_new(t,e.ptr,s,_,c,d);return _i.__wrap(f)}}const J0=new FinalizationRegistry(n=>u.__wbg_signedmessage_free(n));class ss{static __wrap(t){const e=Object.create(ss.prototype);return e.ptr=t,J0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,J0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_signedmessage_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.signedmessage_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.signedmessage_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return ss.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_cose_sign(t){rt(t,ii);const e=u.signedmessage_new_cose_sign(t.ptr);return ss.__wrap(e)}static new_cose_sign1(t){rt(t,Wr);const e=u.signedmessage_new_cose_sign1(t.ptr);return ss.__wrap(e)}static from_user_facing_encoding(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=ac(t,u.__wbindgen_malloc,u.__wbindgen_realloc),c=nt;u.signedmessage_from_user_facing_encoding(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return ss.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}to_user_facing_encoding(){try{const i=u.__wbindgen_add_to_stack_pointer(-16);u.signedmessage_to_user_facing_encoding(i,this.ptr);var t=C()[i/4+0],e=C()[i/4+1];return Uo(t,e)}finally{u.__wbindgen_add_to_stack_pointer(16),u.__wbindgen_free(t,e)}}kind(){return u.signedmessage_kind(this.ptr)>>>0}as_cose_sign(){const t=u.signedmessage_as_cose_sign(this.ptr);return t===0?void 0:ii.__wrap(t)}as_cose_sign1(){const t=u.signedmessage_as_cose_sign1(this.ptr);return t===0?void 0:Wr.__wrap(t)}}const X0=new FinalizationRegistry(n=>u.__wbg_taggedcbor_free(n));class os{static __wrap(t){const e=Object.create(os.prototype);return e.ptr=t,X0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,X0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_taggedcbor_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.taggedcbor_to_bytes(a,this.ptr);var t=C()[a/4+0],e=C()[a/4+1],i=gt(t,e).slice();return u.__wbindgen_free(t,e*1),i}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const s=u.__wbindgen_add_to_stack_pointer(-16),_=lt(t,u.__wbindgen_malloc),c=nt;u.taggedcbor_from_bytes(s,_,c);var e=C()[s/4+0],i=C()[s/4+1],a=C()[s/4+2];if(a)throw vt(i);return os.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}tag(){const t=u.taggedcbor_tag(this.ptr);return Wt.__wrap(t)}value(){const t=u.taggedcbor_value(this.ptr);return Ot.__wrap(t)}static new(t,e){rt(t,Wt);var i=t.__destroy_into_raw();rt(e,Ot);const a=u.taggedcbor_new(i,e.ptr);return os.__wrap(a)}}const ed={__wbindgen_placeholder__:{__wbindgen_object_drop_ref:function(n){vt(n)},__wbindgen_string_new:function(n,t){const e=Uo(n,t);return tS(e)},__wbindgen_debug_string:function(n,t){const e=Jp(b0(t)),i=ac(e,u.__wbindgen_malloc,u.__wbindgen_realloc),a=nt;C()[n/4+1]=a,C()[n/4+0]=i},__wbindgen_throw:function(n,t){throw new Error(Uo(n,t))}}};async function dS(n){return(await G0(n)).exports}let _c,nd;function G0(n){return _c!=null?Promise.resolve(_c):(nd==null&&(nd=(async()=>{try{const t=(await fS(n??{})).instance;return u=t.exports,ic=new Int32Array(u.memory.buffer),rc=new Uint8Array(u.memory.buffer),_c={instance:t,exports:uS()},_c}finally{nd=null}})()),nd)}function uS(){return{BigNum:Wt,CBORArray:ri,CBORObject:rs,CBORSpecial:$n,CBORValue:Ot,COSEEncrypt:Us,COSEEncrypt0:Ls,COSEKey:ai,COSERecipient:as,COSERecipients:is,COSESign:ii,COSESign1:Wr,COSESign1Builder:Lo,COSESignBuilder:sc,COSESignature:si,COSESignatures:cr,CounterSignature:oi,EdDSA25519Key:oc,HeaderMap:Hn,Headers:qt,Int:Ne,Label:yt,Labels:lr,PasswordEncryption:$o,ProtectedHeaderMap:nn,PubKeyEncryption:Ho,SigStructure:_i,SignedMessage:ss,TaggedCBOR:os}}function pS(){return _c!=null}async function fS(n){var a,s,_;const t=import.meta.url.includes("_frsh")?n.url:new URL("/aiken-ide/assets/cardano_message_signing_bg-BCvojIzl.wasm",import.meta.url),e=n.decompress,i=t.protocol==="file:";if(((s=(a=globalThis.process)==null?void 0:a.versions)==null?void 0:s.node)!=null&&i){const c=fs.readFileSync(t);return WebAssembly.instantiate(e?e(c):c,ed)}switch(t.protocol){case"":case"chrome-extension:":case"file:":case"https:":case"http:":{if(i){if(typeof Deno!="object")throw new Error("file urls are not supported in this environment");"permissions"in Deno&&await Deno.permissions.request({name:"read",path:t})}else typeof Deno=="object"&&"permissions"in Deno&&await Deno.permissions.request({name:"net",host:t.host});const c=await fetch(t);if(e){const d=new Uint8Array(await c.arrayBuffer());return WebAssembly.instantiate(e(d),ed)}return i||(_=c.headers.get("content-type"))!=null&&_.toLowerCase().startsWith("application/wasm")?WebAssembly.instantiateStreaming(c,ed):WebAssembly.instantiate(await c.arrayBuffer(),ed)}default:throw new Error(`Unsupported protocol: ${t.protocol}`)}}const wS=Object.freeze(Object.defineProperty({__proto__:null,AlgorithmId:td,BigNum:Wt,CBORArray:ri,CBORObject:rs,CBORSpecial:$n,CBORSpecialType:sS,CBORValue:Ot,CBORValueKind:oS,COSEEncrypt:Us,COSEEncrypt0:Ls,COSEKey:ai,COSERecipient:as,COSERecipients:is,COSESign:ii,COSESign1:Wr,COSESign1Builder:Lo,COSESignBuilder:sc,COSESignature:si,COSESignatures:cr,CounterSignature:oi,CurveType:aS,ECKey:rS,EdDSA25519Key:oc,HeaderMap:Hn,Headers:qt,Int:Ne,KeyOperation:iS,KeyType:v0,Label:yt,LabelKind:_S,Labels:lr,PasswordEncryption:$o,ProtectedHeaderMap:nn,PubKeyEncryption:Ho,SigContext:lS,SigStructure:_i,SignedMessage:ss,SignedMessageKind:cS,TaggedCBOR:os,instantiate:dS,instantiateWithInstance:G0,isInstantiated:pS},Symbol.toStringTag,{value:"Module"}));Object.hasOwn||Object.defineProperty(Object,"hasOwn",{value:function(n,t){if(n==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(n),t)},configurable:!0,enumerable:!1,writable:!0});var Y0={name:"lucid-cardano",version:"0.10.7",license:"MIT",author:"Alessandro Konrad",description:"Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.",repository:"https://github.com/spacebudz/lucid"};async function Z0(n,t){try{await n.instantiate({url:new URL(t,`https://deno.land/x/lucid@${Y0.version}/src/core/libs/`)})}catch{}}await Promise.all([Z0(Yj,"cardano_multiplatform_lib/cardano_multiplatform_lib_bg.wasm"),Z0(wS,"cardano_message_signing/cardano_message_signing_bg.wasm")]);function hS(n){let t=rr.new(),e=gn.new();Object.values(n.PlutusV1).forEach((a,s)=>{e.set(s,_e.new(O.from_str(a.toString())))}),t.insert(Xe.new_plutus_v1(),e);let i=gn.new_plutus_v2();return Object.values(n.PlutusV2||[]).forEach((a,s)=>{i.set(s,_e.new(O.from_str(a.toString())))}),t.insert(Xe.new_plutus_v2(),i),t}var gS={minFeeA:44,minFeeB:155381,maxTxSize:16384,maxValSize:5e3,keyDeposit:2000000n,poolDeposit:500000000n,priceMem:.0577,priceStep:721e-7,maxTxExMem:14000000n,maxTxExSteps:10000000000n,coinsPerUtxoByte:4310n,collateralPercentage:150,maxCollateralInputs:3,costModels:{PlutusV1:{"addInteger-cpu-arguments-intercept":205665,"addInteger-cpu-arguments-slope":812,"addInteger-memory-arguments-intercept":1,"addInteger-memory-arguments-slope":1,"appendByteString-cpu-arguments-intercept":1e3,"appendByteString-cpu-arguments-slope":571,"appendByteString-memory-arguments-intercept":0,"appendByteString-memory-arguments-slope":1,"appendString-cpu-arguments-intercept":1e3,"appendString-cpu-arguments-slope":24177,"appendString-memory-arguments-intercept":4,"appendString-memory-arguments-slope":1,"bData-cpu-arguments":1e3,"bData-memory-arguments":32,"blake2b_256-cpu-arguments-intercept":117366,"blake2b_256-cpu-arguments-slope":10475,"blake2b_256-memory-arguments":4,"cekApplyCost-exBudgetCPU":23e3,"cekApplyCost-exBudgetMemory":100,"cekBuiltinCost-exBudgetCPU":23e3,"cekBuiltinCost-exBudgetMemory":100,"cekConstCost-exBudgetCPU":23e3,"cekConstCost-exBudgetMemory":100,"cekDelayCost-exBudgetCPU":23e3,"cekDelayCost-exBudgetMemory":100,"cekForceCost-exBudgetCPU":23e3,"cekForceCost-exBudgetMemory":100,"cekLamCost-exBudgetCPU":23e3,"cekLamCost-exBudgetMemory":100,"cekStartupCost-exBudgetCPU":100,"cekStartupCost-exBudgetMemory":100,"cekVarCost-exBudgetCPU":23e3,"cekVarCost-exBudgetMemory":100,"chooseData-cpu-arguments":19537,"chooseData-memory-arguments":32,"chooseList-cpu-arguments":175354,"chooseList-memory-arguments":32,"chooseUnit-cpu-arguments":46417,"chooseUnit-memory-arguments":4,"consByteString-cpu-arguments-intercept":221973,"consByteString-cpu-arguments-slope":511,"consByteString-memory-arguments-intercept":0,"consByteString-memory-arguments-slope":1,"constrData-cpu-arguments":89141,"constrData-memory-arguments":32,"decodeUtf8-cpu-arguments-intercept":497525,"decodeUtf8-cpu-arguments-slope":14068,"decodeUtf8-memory-arguments-intercept":4,"decodeUtf8-memory-arguments-slope":2,"divideInteger-cpu-arguments-constant":196500,"divideInteger-cpu-arguments-model-arguments-intercept":453240,"divideInteger-cpu-arguments-model-arguments-slope":220,"divideInteger-memory-arguments-intercept":0,"divideInteger-memory-arguments-minimum":1,"divideInteger-memory-arguments-slope":1,"encodeUtf8-cpu-arguments-intercept":1e3,"encodeUtf8-cpu-arguments-slope":28662,"encodeUtf8-memory-arguments-intercept":4,"encodeUtf8-memory-arguments-slope":2,"equalsByteString-cpu-arguments-constant":245e3,"equalsByteString-cpu-arguments-intercept":216773,"equalsByteString-cpu-arguments-slope":62,"equalsByteString-memory-arguments":1,"equalsData-cpu-arguments-intercept":1060367,"equalsData-cpu-arguments-slope":12586,"equalsData-memory-arguments":1,"equalsInteger-cpu-arguments-intercept":208512,"equalsInteger-cpu-arguments-slope":421,"equalsInteger-memory-arguments":1,"equalsString-cpu-arguments-constant":187e3,"equalsString-cpu-arguments-intercept":1e3,"equalsString-cpu-arguments-slope":52998,"equalsString-memory-arguments":1,"fstPair-cpu-arguments":80436,"fstPair-memory-arguments":32,"headList-cpu-arguments":43249,"headList-memory-arguments":32,"iData-cpu-arguments":1e3,"iData-memory-arguments":32,"ifThenElse-cpu-arguments":80556,"ifThenElse-memory-arguments":1,"indexByteString-cpu-arguments":57667,"indexByteString-memory-arguments":4,"lengthOfByteString-cpu-arguments":1e3,"lengthOfByteString-memory-arguments":10,"lessThanByteString-cpu-arguments-intercept":197145,"lessThanByteString-cpu-arguments-slope":156,"lessThanByteString-memory-arguments":1,"lessThanEqualsByteString-cpu-arguments-intercept":197145,"lessThanEqualsByteString-cpu-arguments-slope":156,"lessThanEqualsByteString-memory-arguments":1,"lessThanEqualsInteger-cpu-arguments-intercept":204924,"lessThanEqualsInteger-cpu-arguments-slope":473,"lessThanEqualsInteger-memory-arguments":1,"lessThanInteger-cpu-arguments-intercept":208896,"lessThanInteger-cpu-arguments-slope":511,"lessThanInteger-memory-arguments":1,"listData-cpu-arguments":52467,"listData-memory-arguments":32,"mapData-cpu-arguments":64832,"mapData-memory-arguments":32,"mkCons-cpu-arguments":65493,"mkCons-memory-arguments":32,"mkNilData-cpu-arguments":22558,"mkNilData-memory-arguments":32,"mkNilPairData-cpu-arguments":16563,"mkNilPairData-memory-arguments":32,"mkPairData-cpu-arguments":76511,"mkPairData-memory-arguments":32,"modInteger-cpu-arguments-constant":196500,"modInteger-cpu-arguments-model-arguments-intercept":453240,"modInteger-cpu-arguments-model-arguments-slope":220,"modInteger-memory-arguments-intercept":0,"modInteger-memory-arguments-minimum":1,"modInteger-memory-arguments-slope":1,"multiplyInteger-cpu-arguments-intercept":69522,"multiplyInteger-cpu-arguments-slope":11687,"multiplyInteger-memory-arguments-intercept":0,"multiplyInteger-memory-arguments-slope":1,"nullList-cpu-arguments":60091,"nullList-memory-arguments":32,"quotientInteger-cpu-arguments-constant":196500,"quotientInteger-cpu-arguments-model-arguments-intercept":453240,"quotientInteger-cpu-arguments-model-arguments-slope":220,"quotientInteger-memory-arguments-intercept":0,"quotientInteger-memory-arguments-minimum":1,"quotientInteger-memory-arguments-slope":1,"remainderInteger-cpu-arguments-constant":196500,"remainderInteger-cpu-arguments-model-arguments-intercept":453240,"remainderInteger-cpu-arguments-model-arguments-slope":220,"remainderInteger-memory-arguments-intercept":0,"remainderInteger-memory-arguments-minimum":1,"remainderInteger-memory-arguments-slope":1,"sha2_256-cpu-arguments-intercept":806990,"sha2_256-cpu-arguments-slope":30482,"sha2_256-memory-arguments":4,"sha3_256-cpu-arguments-intercept":1927926,"sha3_256-cpu-arguments-slope":82523,"sha3_256-memory-arguments":4,"sliceByteString-cpu-arguments-intercept":265318,"sliceByteString-cpu-arguments-slope":0,"sliceByteString-memory-arguments-intercept":4,"sliceByteString-memory-arguments-slope":0,"sndPair-cpu-arguments":85931,"sndPair-memory-arguments":32,"subtractInteger-cpu-arguments-intercept":205665,"subtractInteger-cpu-arguments-slope":812,"subtractInteger-memory-arguments-intercept":1,"subtractInteger-memory-arguments-slope":1,"tailList-cpu-arguments":41182,"tailList-memory-arguments":32,"trace-cpu-arguments":212342,"trace-memory-arguments":32,"unBData-cpu-arguments":31220,"unBData-memory-arguments":32,"unConstrData-cpu-arguments":32696,"unConstrData-memory-arguments":32,"unIData-cpu-arguments":43357,"unIData-memory-arguments":32,"unListData-cpu-arguments":32247,"unListData-memory-arguments":32,"unMapData-cpu-arguments":38314,"unMapData-memory-arguments":32,"verifyEd25519Signature-cpu-arguments-intercept":9462713,"verifyEd25519Signature-cpu-arguments-slope":1021,"verifyEd25519Signature-memory-arguments":10},PlutusV2:{"addInteger-cpu-arguments-intercept":205665,"addInteger-cpu-arguments-slope":812,"addInteger-memory-arguments-intercept":1,"addInteger-memory-arguments-slope":1,"appendByteString-cpu-arguments-intercept":1e3,"appendByteString-cpu-arguments-slope":571,"appendByteString-memory-arguments-intercept":0,"appendByteString-memory-arguments-slope":1,"appendString-cpu-arguments-intercept":1e3,"appendString-cpu-arguments-slope":24177,"appendString-memory-arguments-intercept":4,"appendString-memory-arguments-slope":1,"bData-cpu-arguments":1e3,"bData-memory-arguments":32,"blake2b_256-cpu-arguments-intercept":117366,"blake2b_256-cpu-arguments-slope":10475,"blake2b_256-memory-arguments":4,"cekApplyCost-exBudgetCPU":23e3,"cekApplyCost-exBudgetMemory":100,"cekBuiltinCost-exBudgetCPU":23e3,"cekBuiltinCost-exBudgetMemory":100,"cekConstCost-exBudgetCPU":23e3,"cekConstCost-exBudgetMemory":100,"cekDelayCost-exBudgetCPU":23e3,"cekDelayCost-exBudgetMemory":100,"cekForceCost-exBudgetCPU":23e3,"cekForceCost-exBudgetMemory":100,"cekLamCost-exBudgetCPU":23e3,"cekLamCost-exBudgetMemory":100,"cekStartupCost-exBudgetCPU":100,"cekStartupCost-exBudgetMemory":100,"cekVarCost-exBudgetCPU":23e3,"cekVarCost-exBudgetMemory":100,"chooseData-cpu-arguments":19537,"chooseData-memory-arguments":32,"chooseList-cpu-arguments":175354,"chooseList-memory-arguments":32,"chooseUnit-cpu-arguments":46417,"chooseUnit-memory-arguments":4,"consByteString-cpu-arguments-intercept":221973,"consByteString-cpu-arguments-slope":511,"consByteString-memory-arguments-intercept":0,"consByteString-memory-arguments-slope":1,"constrData-cpu-arguments":89141,"constrData-memory-arguments":32,"decodeUtf8-cpu-arguments-intercept":497525,"decodeUtf8-cpu-arguments-slope":14068,"decodeUtf8-memory-arguments-intercept":4,"decodeUtf8-memory-arguments-slope":2,"divideInteger-cpu-arguments-constant":196500,"divideInteger-cpu-arguments-model-arguments-intercept":453240,"divideInteger-cpu-arguments-model-arguments-slope":220,"divideInteger-memory-arguments-intercept":0,"divideInteger-memory-arguments-minimum":1,"divideInteger-memory-arguments-slope":1,"encodeUtf8-cpu-arguments-intercept":1e3,"encodeUtf8-cpu-arguments-slope":28662,"encodeUtf8-memory-arguments-intercept":4,"encodeUtf8-memory-arguments-slope":2,"equalsByteString-cpu-arguments-constant":245e3,"equalsByteString-cpu-arguments-intercept":216773,"equalsByteString-cpu-arguments-slope":62,"equalsByteString-memory-arguments":1,"equalsData-cpu-arguments-intercept":1060367,"equalsData-cpu-arguments-slope":12586,"equalsData-memory-arguments":1,"equalsInteger-cpu-arguments-intercept":208512,"equalsInteger-cpu-arguments-slope":421,"equalsInteger-memory-arguments":1,"equalsString-cpu-arguments-constant":187e3,"equalsString-cpu-arguments-intercept":1e3,"equalsString-cpu-arguments-slope":52998,"equalsString-memory-arguments":1,"fstPair-cpu-arguments":80436,"fstPair-memory-arguments":32,"headList-cpu-arguments":43249,"headList-memory-arguments":32,"iData-cpu-arguments":1e3,"iData-memory-arguments":32,"ifThenElse-cpu-arguments":80556,"ifThenElse-memory-arguments":1,"indexByteString-cpu-arguments":57667,"indexByteString-memory-arguments":4,"lengthOfByteString-cpu-arguments":1e3,"lengthOfByteString-memory-arguments":10,"lessThanByteString-cpu-arguments-intercept":197145,"lessThanByteString-cpu-arguments-slope":156,"lessThanByteString-memory-arguments":1,"lessThanEqualsByteString-cpu-arguments-intercept":197145,"lessThanEqualsByteString-cpu-arguments-slope":156,"lessThanEqualsByteString-memory-arguments":1,"lessThanEqualsInteger-cpu-arguments-intercept":204924,"lessThanEqualsInteger-cpu-arguments-slope":473,"lessThanEqualsInteger-memory-arguments":1,"lessThanInteger-cpu-arguments-intercept":208896,"lessThanInteger-cpu-arguments-slope":511,"lessThanInteger-memory-arguments":1,"listData-cpu-arguments":52467,"listData-memory-arguments":32,"mapData-cpu-arguments":64832,"mapData-memory-arguments":32,"mkCons-cpu-arguments":65493,"mkCons-memory-arguments":32,"mkNilData-cpu-arguments":22558,"mkNilData-memory-arguments":32,"mkNilPairData-cpu-arguments":16563,"mkNilPairData-memory-arguments":32,"mkPairData-cpu-arguments":76511,"mkPairData-memory-arguments":32,"modInteger-cpu-arguments-constant":196500,"modInteger-cpu-arguments-model-arguments-intercept":453240,"modInteger-cpu-arguments-model-arguments-slope":220,"modInteger-memory-arguments-intercept":0,"modInteger-memory-arguments-minimum":1,"modInteger-memory-arguments-slope":1,"multiplyInteger-cpu-arguments-intercept":69522,"multiplyInteger-cpu-arguments-slope":11687,"multiplyInteger-memory-arguments-intercept":0,"multiplyInteger-memory-arguments-slope":1,"nullList-cpu-arguments":60091,"nullList-memory-arguments":32,"quotientInteger-cpu-arguments-constant":196500,"quotientInteger-cpu-arguments-model-arguments-intercept":453240,"quotientInteger-cpu-arguments-model-arguments-slope":220,"quotientInteger-memory-arguments-intercept":0,"quotientInteger-memory-arguments-minimum":1,"quotientInteger-memory-arguments-slope":1,"remainderInteger-cpu-arguments-constant":196500,"remainderInteger-cpu-arguments-model-arguments-intercept":453240,"remainderInteger-cpu-arguments-model-arguments-slope":220,"remainderInteger-memory-arguments-intercept":0,"remainderInteger-memory-arguments-minimum":1,"remainderInteger-memory-arguments-slope":1,"serialiseData-cpu-arguments-intercept":1159724,"serialiseData-cpu-arguments-slope":392670,"serialiseData-memory-arguments-intercept":0,"serialiseData-memory-arguments-slope":2,"sha2_256-cpu-arguments-intercept":806990,"sha2_256-cpu-arguments-slope":30482,"sha2_256-memory-arguments":4,"sha3_256-cpu-arguments-intercept":1927926,"sha3_256-cpu-arguments-slope":82523,"sha3_256-memory-arguments":4,"sliceByteString-cpu-arguments-intercept":265318,"sliceByteString-cpu-arguments-slope":0,"sliceByteString-memory-arguments-intercept":4,"sliceByteString-memory-arguments-slope":0,"sndPair-cpu-arguments":85931,"sndPair-memory-arguments":32,"subtractInteger-cpu-arguments-intercept":205665,"subtractInteger-cpu-arguments-slope":812,"subtractInteger-memory-arguments-intercept":1,"subtractInteger-memory-arguments-slope":1,"tailList-cpu-arguments":41182,"tailList-memory-arguments":32,"trace-cpu-arguments":212342,"trace-memory-arguments":32,"unBData-cpu-arguments":31220,"unBData-memory-arguments":32,"unConstrData-cpu-arguments":32696,"unConstrData-memory-arguments":32,"unIData-cpu-arguments":43357,"unIData-memory-arguments":32,"unListData-cpu-arguments":32247,"unListData-memory-arguments":32,"unMapData-cpu-arguments":38314,"unMapData-memory-arguments":32,"verifyEcdsaSecp256k1Signature-cpu-arguments":35892428,"verifyEcdsaSecp256k1Signature-memory-arguments":10,"verifyEd25519Signature-cpu-arguments-intercept":57996947,"verifyEd25519Signature-cpu-arguments-slope":18975,"verifyEd25519Signature-memory-arguments":10,"verifySchnorrSecp256k1Signature-cpu-arguments-intercept":38887044,"verifySchnorrSecp256k1Signature-cpu-arguments-slope":32947,"verifySchnorrSecp256k1Signature-memory-arguments":10}}},tv=new TextEncoder().encode("0123456789abcdef");function bS(n){return new Error("encoding/hex: invalid byte: "+new TextDecoder().decode(new Uint8Array([n])))}function yS(){return new Error("encoding/hex: odd length hex string")}function Xp(n){if(48<=n&&n<=57)return n-48;if(97<=n&&n<=102)return n-97+10;if(65<=n&&n<=70)return n-65+10;throw bS(n)}function mS(n){return n*2}function vS(n){let t=new Uint8Array(mS(n.length));for(let e=0;e>4],t[e*2+1]=tv[i&15]}return t}function kS(n){return new TextDecoder().decode(vS(n))}function ev(n){let t=new Uint8Array(xS(n.length));for(let e=0;e>>1}function jS(n){return ev(new TextEncoder().encode(n))}var ut=function(n,t,e,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?n!==t||!a:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(n,e):a?a.value=e:t.set(n,e),e},X=function(n,t,e,i){if(e==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!i:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?i:e==="a"?i.call(n):i?i.value:t.get(n)},_s,$s,dr,Wo,cc,Vr,Kr,qr,Qr,Jr,Xr,Gr,Yr,Hs,Vo,cs,rd,ls,tt="0123456789abcdef".split(""),SS=[-2147483648,8388608,32768,128],ur=[24,16,8,0],ad=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],de=[],CS=class{constructor(n=!1,t=!1){_s.set(this,void 0),$s.set(this,void 0),dr.set(this,void 0),Wo.set(this,void 0),cc.set(this,void 0),Vr.set(this,void 0),Kr.set(this,void 0),qr.set(this,void 0),Qr.set(this,void 0),Jr.set(this,void 0),Xr.set(this,void 0),Gr.set(this,void 0),Yr.set(this,void 0),Hs.set(this,void 0),Vo.set(this,void 0),cs.set(this,void 0),rd.set(this,0),ls.set(this,void 0),this.init(n,t)}init(n,t){t?(de[0]=de[16]=de[1]=de[2]=de[3]=de[4]=de[5]=de[6]=de[7]=de[8]=de[9]=de[10]=de[11]=de[12]=de[13]=de[14]=de[15]=0,ut(this,$s,de,"f")):ut(this,$s,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"f"),n?(ut(this,Vr,3238371032,"f"),ut(this,Kr,914150663,"f"),ut(this,qr,812702999,"f"),ut(this,Qr,4144912697,"f"),ut(this,Jr,4290775857,"f"),ut(this,Xr,1750603025,"f"),ut(this,Gr,1694076839,"f"),ut(this,Yr,3204075428,"f")):(ut(this,Vr,1779033703,"f"),ut(this,Kr,3144134277,"f"),ut(this,qr,1013904242,"f"),ut(this,Qr,2773480762,"f"),ut(this,Jr,1359893119,"f"),ut(this,Xr,2600822924,"f"),ut(this,Gr,528734635,"f"),ut(this,Yr,1541459225,"f")),ut(this,_s,ut(this,ls,ut(this,dr,ut(this,Vo,0,"f"),"f"),"f"),"f"),ut(this,Wo,ut(this,Hs,!1,"f"),"f"),ut(this,cc,!0,"f"),ut(this,cs,n,"f")}update(n){if(X(this,Wo,"f"))return this;let t;n instanceof ArrayBuffer?t=new Uint8Array(n):t=n;let e=0,i=t.length,a=X(this,$s,"f");for(;e>2]|=t[e]<>2]|=_<>2]|=(192|_>>6)<>2]|=(128|_&63)<=57344?(a[s>>2]|=(224|_>>12)<>2]|=(128|_>>6&63)<>2]|=(128|_&63)<>2]|=(240|_>>18)<>2]|=(128|_>>12&63)<>2]|=(128|_>>6&63)<>2]|=(128|_&63)<=64?(ut(this,_s,a[16],"f"),ut(this,ls,s-64,"f"),this.hash(),ut(this,Hs,!0,"f")):ut(this,ls,s,"f")}return X(this,dr,"f")>4294967295&&(ut(this,Vo,X(this,Vo,"f")+(X(this,dr,"f")/4294967296<<0),"f"),ut(this,dr,X(this,dr,"f")%4294967296,"f")),this}finalize(){if(X(this,Wo,"f"))return;ut(this,Wo,!0,"f");let n=X(this,$s,"f"),t=X(this,rd,"f");n[16]=X(this,_s,"f"),n[t>>2]|=SS[t&3],ut(this,_s,n[16],"f"),t>=56&&(X(this,Hs,"f")||this.hash(),n[0]=X(this,_s,"f"),n[16]=n[1]=n[2]=n[3]=n[4]=n[5]=n[6]=n[7]=n[8]=n[9]=n[10]=n[11]=n[12]=n[13]=n[14]=n[15]=0),n[14]=X(this,Vo,"f")<<3|X(this,dr,"f")>>>29,n[15]=X(this,dr,"f")<<3,this.hash()}hash(){let n=X(this,Vr,"f"),t=X(this,Kr,"f"),e=X(this,qr,"f"),i=X(this,Qr,"f"),a=X(this,Jr,"f"),s=X(this,Xr,"f"),_=X(this,Gr,"f"),c=X(this,Yr,"f"),d=X(this,$s,"f"),f,g,k,m,x,S,j,P,v,y;for(let b=16;b<64;++b)m=d[b-15],f=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=d[b-2],g=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,d[b]=d[b-16]+f+d[b-7]+g<<0;y=t&e;for(let b=0;b<64;b+=4)X(this,cc,"f")?(X(this,cs,"f")?(j=300032,m=d[0]-1413257819,c=m-150054599<<0,i=m+24177077<<0):(j=704751109,m=d[0]-210244248,c=m-1521486534<<0,i=m+143694565<<0),ut(this,cc,!1,"f")):(f=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),g=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),j=n&t,k=j^n&e^y,S=a&s^~a&_,m=c+g+S+ad[b]+d[b],x=f+k,c=i+m<<0,i=m+x<<0),f=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10),g=(c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7),P=i&n,k=P^i&t^j,S=c&a^~c&s,m=_+g+S+ad[b+1]+d[b+1],x=f+k,_=e+m<<0,e=m+x<<0,f=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),g=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),v=e&i,k=v^e&n^P,S=_&c^~_&a,m=s+g+S+ad[b+2]+d[b+2],x=f+k,s=t+m<<0,t=m+x<<0,f=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),g=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),y=t&e,k=y^t&i^v,S=s&_^~s&c,m=a+g+S+ad[b+3]+d[b+3],x=f+k,a=n+m<<0,n=m+x<<0;ut(this,Vr,X(this,Vr,"f")+n<<0,"f"),ut(this,Kr,X(this,Kr,"f")+t<<0,"f"),ut(this,qr,X(this,qr,"f")+e<<0,"f"),ut(this,Qr,X(this,Qr,"f")+i<<0,"f"),ut(this,Jr,X(this,Jr,"f")+a<<0,"f"),ut(this,Xr,X(this,Xr,"f")+s<<0,"f"),ut(this,Gr,X(this,Gr,"f")+_<<0,"f"),ut(this,Yr,X(this,Yr,"f")+c<<0,"f")}hex(){this.finalize();let n=X(this,Vr,"f"),t=X(this,Kr,"f"),e=X(this,qr,"f"),i=X(this,Qr,"f"),a=X(this,Jr,"f"),s=X(this,Xr,"f"),_=X(this,Gr,"f"),c=X(this,Yr,"f"),d=tt[n>>28&15]+tt[n>>24&15]+tt[n>>20&15]+tt[n>>16&15]+tt[n>>12&15]+tt[n>>8&15]+tt[n>>4&15]+tt[n&15]+tt[t>>28&15]+tt[t>>24&15]+tt[t>>20&15]+tt[t>>16&15]+tt[t>>12&15]+tt[t>>8&15]+tt[t>>4&15]+tt[t&15]+tt[e>>28&15]+tt[e>>24&15]+tt[e>>20&15]+tt[e>>16&15]+tt[e>>12&15]+tt[e>>8&15]+tt[e>>4&15]+tt[e&15]+tt[i>>28&15]+tt[i>>24&15]+tt[i>>20&15]+tt[i>>16&15]+tt[i>>12&15]+tt[i>>8&15]+tt[i>>4&15]+tt[i&15]+tt[a>>28&15]+tt[a>>24&15]+tt[a>>20&15]+tt[a>>16&15]+tt[a>>12&15]+tt[a>>8&15]+tt[a>>4&15]+tt[a&15]+tt[s>>28&15]+tt[s>>24&15]+tt[s>>20&15]+tt[s>>16&15]+tt[s>>12&15]+tt[s>>8&15]+tt[s>>4&15]+tt[s&15]+tt[_>>28&15]+tt[_>>24&15]+tt[_>>20&15]+tt[_>>16&15]+tt[_>>12&15]+tt[_>>8&15]+tt[_>>4&15]+tt[_&15];return X(this,cs,"f")||(d+=tt[c>>28&15]+tt[c>>24&15]+tt[c>>20&15]+tt[c>>16&15]+tt[c>>12&15]+tt[c>>8&15]+tt[c>>4&15]+tt[c&15]),d}toString(){return this.hex()}digest(){this.finalize();let n=X(this,Vr,"f"),t=X(this,Kr,"f"),e=X(this,qr,"f"),i=X(this,Qr,"f"),a=X(this,Jr,"f"),s=X(this,Xr,"f"),_=X(this,Gr,"f"),c=X(this,Yr,"f"),d=[n>>24&255,n>>16&255,n>>8&255,n&255,t>>24&255,t>>16&255,t>>8&255,t&255,e>>24&255,e>>16&255,e>>8&255,e&255,i>>24&255,i>>16&255,i>>8&255,i&255,a>>24&255,a>>16&255,a>>8&255,a&255,s>>24&255,s>>16&255,s>>8&255,s&255,_>>24&255,_>>16&255,_>>8&255,_&255];return X(this,cs,"f")||d.push(c>>24&255,c>>16&255,c>>8&255,c&255),d}array(){return this.digest()}arrayBuffer(){this.finalize();let n=new ArrayBuffer(X(this,cs,"f")?28:32),t=new DataView(n);return t.setUint32(0,X(this,Vr,"f")),t.setUint32(4,X(this,Kr,"f")),t.setUint32(8,X(this,qr,"f")),t.setUint32(12,X(this,Qr,"f")),t.setUint32(16,X(this,Jr,"f")),t.setUint32(20,X(this,Xr,"f")),t.setUint32(24,X(this,Gr,"f")),X(this,cs,"f")||t.setUint32(28,X(this,Yr,"f")),n}};_s=new WeakMap,$s=new WeakMap,dr=new WeakMap,Wo=new WeakMap,cc=new WeakMap,Vr=new WeakMap,Kr=new WeakMap,qr=new WeakMap,Qr=new WeakMap,Jr=new WeakMap,Xr=new WeakMap,Gr=new WeakMap,Yr=new WeakMap,Hs=new WeakMap,Vo=new WeakMap,cs=new WeakMap,rd=new WeakMap,ls=new WeakMap;var nv="Invalid mnemonic",Ws="Invalid entropy",ES="Invalid mnemonic checksum",rv=`A wordlist is required but a default could not be found. +Please pass a 2048 word array explicitly.`;function OS(n,t){if(t=t||_v,!t)throw new Error(rv);let e=IS(n).split(" ");if(e.length%3!==0)throw new Error(nv);let i=e.map(f=>{let g=t.indexOf(f);if(g===-1)throw new Error(nv);return iv(g.toString(2),"0",11)}).join(""),a=Math.floor(i.length/33)*32,s=i.slice(0,a),_=i.slice(a),c=s.match(/(.{1,8})/g).map(ov);if(c.length<16)throw new Error(Ws);if(c.length>32)throw new Error(Ws);if(c.length%4!==0)throw new Error(Ws);let d=new Uint8Array(c);if(av(d)!==_)throw new Error(ES);return _t(d)}function NS(n){let t=new Uint8Array(n);if(n>4294967295)throw new RangeError("requested too many random bytes");if(n>0)if(n>65536)for(let e=0;e32)throw new TypeError(Ws);if(n.length%4!==0)throw new TypeError(Ws);let e=sv(Array.from(n)),i=av(n),a=(e+i).match(/(.{1,11})/g).map(s=>{let _=ov(s);return t[_]});return t[0]==="\u3042\u3044\u3053\u304F\u3057\u3093"?a.join("\u3000"):a.join(" ")}function av(n){let t=n.length*8/32,e=new CS().update(n).digest();return sv(Array.from(e)).slice(0,t)}function iv(n,t,e){for(;n.lengthiv(t.toString(2),"0",8)).join("")}function IS(n){return(n||"").normalize("NFKD")}function ov(n){return parseInt(n,2)}var _v=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"],Gp=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];typeof Int32Array<"u"&&(Gp=new Int32Array(Gp));function TS(n,t=0){let e=~~t;for(let i=0;iisNaN(i)).map(i=>n[i]).map(i=>typeof i=="string"?{[ft]:"Literal",type:"string",const:i}:{[ft]:"Literal",type:"number",const:i});return this.Create({...t,[ft]:"Union",[Vs]:"Enum",anyOf:e})}Function(n,t,e={}){if(n[ft]==="Tuple"){let i=n.items===void 0?[]:n.items;return this.Create({...e,[ft]:"Function",type:"object",instanceOf:"Function",parameters:i,returns:t})}else{if(globalThis.Array.isArray(n))return this.Create({...e,[ft]:"Function",type:"object",instanceOf:"Function",parameters:n,returns:t});throw new Error("TypeBuilder.Function: Invalid parameters")}}InstanceType(n,t={}){return{...t,...this.Clone(n.returns)}}Integer(n={}){return this.Create({...n,[ft]:"Integer",type:"integer"})}Intersect(n,t={}){let e=_=>_[me]&&_[me]==="Optional"||_[me]==="ReadonlyOptional",[i,a]=[new Set,new Set];for(let _ of n)for(let[c,d]of Object.entries(_.properties))e(d)&&a.add(c);for(let _ of n)for(let c of Object.keys(_.properties))a.has(c)||i.add(c);let s={};for(let _ of n)for(let[c,d]of Object.entries(_.properties))s[c]=s[c]===void 0?d:{[ft]:"Union",anyOf:[s[c],{...d}]};return i.size>0?this.Create({...t,[ft]:"Object",type:"object",properties:s,required:[...i]}):this.Create({...t,[ft]:"Object",type:"object",properties:s})}KeyOf(n,t={}){let e=Object.keys(n.properties).map(i=>this.Create({...t,[ft]:"Literal",type:"string",const:i}));return this.Create({...t,[ft]:"Union",[Vs]:"KeyOf",anyOf:e})}Literal(n,t={}){return this.Create({...t,[ft]:"Literal",const:n,type:typeof n})}Never(n={}){return this.Create({...n,[ft]:"Never",allOf:[{type:"boolean",const:!1},{type:"boolean",const:!0}]})}Null(n={}){return this.Create({...n,[ft]:"Null",type:"null"})}Number(n={}){return this.Create({...n,[ft]:"Number",type:"number"})}Object(n,t={}){let e=Object.keys(n),i=e.filter(s=>{let _=n[s][me];return _&&(_==="Optional"||_==="ReadonlyOptional")}),a=e.filter(s=>!i.includes(s));return a.length>0?this.Create({...t,[ft]:"Object",type:"object",properties:n,required:a}):this.Create({...t,[ft]:"Object",type:"object",properties:n})}Omit(n,t,e={}){let i=t[ft]==="Union"?t.anyOf.map(s=>s.const):t,a={...this.Clone(n),...e,[Vs]:"Omit"};a.required&&(a.required=a.required.filter(s=>!i.includes(s)),a.required.length===0&&delete a.required);for(let s of Object.keys(a.properties))i.includes(s)&&delete a.properties[s];return this.Create(a)}Parameters(n,t={}){return Cn.Tuple(n.parameters,{...t})}Partial(n,t={}){let e={...this.Clone(n),...t,[Vs]:"Partial"};delete e.required;for(let i of Object.keys(e.properties)){let a=e.properties[i];switch(a[me]){case"ReadonlyOptional":a[me]="ReadonlyOptional";break;case"Readonly":a[me]="ReadonlyOptional";break;case"Optional":a[me]="Optional";break;default:a[me]="Optional";break}}return this.Create(e)}Pick(n,t,e={}){let i=t[ft]==="Union"?t.anyOf.map(s=>s.const):t,a={...this.Clone(n),...e,[Vs]:"Pick"};a.required&&(a.required=a.required.filter(s=>i.includes(s)),a.required.length===0&&delete a.required);for(let s of Object.keys(a.properties))i.includes(s)||delete a.properties[s];return this.Create(a)}Promise(n,t={}){return this.Create({...t,[ft]:"Promise",type:"object",instanceOf:"Promise",item:n})}Record(n,t,e={}){if(n[ft]==="Union")return this.Object(n.anyOf.reduce((a,s)=>({...a,[s.const]:t}),{}),{...e,[Vs]:"Record"});let i=["Integer","Number"].includes(n[ft])?"^(0|[1-9][0-9]*)$":n[ft]==="String"&&n.pattern?n.pattern:"^.*$";return this.Create({...e,[ft]:"Record",type:"object",patternProperties:{[i]:t},additionalProperties:!1})}Recursive(n,t={}){t.$id===void 0&&(t.$id=`T${DS++}`);let e=n({[ft]:"Self",$ref:`${t.$id}`});return e.$id=t.$id,this.Create({...t,...e})}Ref(n,t={}){if(n.$id===void 0)throw Error("TypeBuilder.Ref: Referenced schema must specify an $id");return this.Create({...t,[ft]:"Ref",$ref:n.$id})}RegEx(n,t={}){return this.Create({...t,[ft]:"String",type:"string",pattern:n.source})}Required(n,t={}){let e={...this.Clone(n),...t,[Vs]:"Required"};e.required=Object.keys(e.properties);for(let i of Object.keys(e.properties)){let a=e.properties[i];switch(a[me]){case"ReadonlyOptional":a[me]="Readonly";break;case"Readonly":a[me]="Readonly";break;case"Optional":delete a[me];break;default:delete a[me];break}}return this.Create(e)}ReturnType(n,t={}){return{...t,...this.Clone(n.returns)}}Strict(n){return JSON.parse(JSON.stringify(n))}String(n={}){return this.Create({...n,[ft]:"String",type:"string"})}Tuple(n,t={}){let e=n.length,i=n.length,a=n.length>0?{...t,[ft]:"Tuple",type:"array",items:n,additionalItems:!1,minItems:e,maxItems:i}:{...t,[ft]:"Tuple",type:"array",minItems:e,maxItems:i};return this.Create(a)}Undefined(n={}){return this.Create({...n,[ft]:"Undefined",type:"null",typeOf:"Undefined"})}Union(n,t={}){return n.length===0?Cn.Never({...t}):this.Create({...t,[ft]:"Union",anyOf:n})}Uint8Array(n={}){return this.Create({...n,[ft]:"Uint8Array",type:"object",instanceOf:"Uint8Array"})}Unknown(n={}){return this.Create({...n,[ft]:"Unknown"})}Unsafe(n={}){return this.Create({...n,[ft]:n[ft]||"Unsafe"})}Void(n={}){return this.Create({...n,[ft]:"Void",type:"null",typeOf:"Void"})}Create(n){return n}Clone(n){let t=i=>typeof i=="object"&&i!==null&&!Array.isArray(i),e=i=>typeof i=="object"&&i!==null&&Array.isArray(i);return t(n)?Object.keys(n).reduce((i,a)=>({...i,[a]:this.Clone(n[a])}),Object.getOwnPropertySymbols(n).reduce((i,a)=>({...i,[a]:this.Clone(n[a])}),{})):e(n)?n.map(i=>this.Clone(i)):n}},Cn=new MS,Ue=class{constructor(n,t){Object.defineProperty(this,"index",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.index=n,this.fields=t}},ci={Integer:function(n){let t=Cn.Unsafe({dataType:"integer"});return n&&Object.entries(n).forEach(([e,i])=>{t[e]=i}),t},Bytes:function(n){let t=Cn.Unsafe({dataType:"bytes"});return n&&Object.entries(n).forEach(([e,i])=>{t[e]=i}),t},Boolean:function(){return Cn.Unsafe({anyOf:[{title:"False",dataType:"constructor",index:0,fields:[]},{title:"True",dataType:"constructor",index:1,fields:[]}]})},Any:function(){return Cn.Unsafe({description:"Any Data."})},Array:function(n,t){let e=Cn.Array(n);return lc(e,{dataType:"list",items:n}),t&&Object.entries(t).forEach(([i,a])=>{e[i]=a}),e},Map:function(n,t,e){let i=Cn.Unsafe({dataType:"map",keys:n,values:t});return e&&Object.entries(e).forEach(([a,s])=>{i[a]=s}),i},Object:function(n,t){let e=Cn.Object(n);return lc(e,{anyOf:[{dataType:"constructor",index:0,fields:Object.entries(n).map(([i,a])=>({...a,title:i}))}]}),e.anyOf[0].hasConstr=typeof(t==null?void 0:t.hasConstr)>"u"||t.hasConstr,e},Enum:function(n){let t=Cn.Union(n);return lc(t,{anyOf:n.map((e,i)=>e.anyOf[0].fields.length===0?{...e.anyOf[0],index:i}:{dataType:"constructor",title:(()=>{let a=e.anyOf[0].fields[0].title;if(a.charAt(0)!==a.charAt(0).toUpperCase())throw new Error(`Enum '${a}' needs to start with an uppercase letter.`);return e.anyOf[0].fields[0].title})(),index:i,fields:e.anyOf[0].fields[0].items||e.anyOf[0].fields[0].anyOf[0].fields})}),t},Tuple:function(n,t){let e=Cn.Tuple(n);return lc(e,{dataType:"list",items:n}),t&&Object.entries(t).forEach(([i,a])=>{e[i]=a}),e},Literal:function(n){if(n.charAt(0)!==n.charAt(0).toUpperCase())throw new Error(`Enum '${n}' needs to start with an uppercase letter.`);let t=Cn.Literal(n);return lc(t,{anyOf:[{dataType:"constructor",title:n,index:0,fields:[]}]}),t},Nullable:function(n){return Cn.Unsafe({anyOf:[{title:"Some",description:"An optional value.",dataType:"constructor",index:0,fields:[n]},{title:"None",description:"Nothing.",dataType:"constructor",index:1,fields:[]}]})},to:AS,from:BS,fromJson:US,toJson:LS,void:function(){return"d87980"},castFrom:En,castTo:pr};function AS(n,t){function e(a){try{if(typeof a=="bigint")return st.new_integer(G_.from_str(a.toString()));if(typeof a=="string")return st.new_bytes(J(a));if(a instanceof Ue){let{index:s,fields:_}=a,c=ce.new();return _.forEach(d=>c.add(e(d))),st.new_constr_plutus_data(ga.new(O.from_str(s.toString()),c))}else if(a instanceof Array){let s=ce.new();return a.forEach(_=>s.add(e(_))),st.new_list(s)}else if(a instanceof Map){let s=Da.new();for(let[_,c]of a.entries())s.insert(e(_),e(c));return st.new_map(s)}throw new Error("Unsupported type")}catch(s){throw new Error("Could not serialize the data: "+s)}}let i=t?pr(n,t):n;return _t(e(i).to_bytes())}function BS(n,t){function e(a){if(a.kind()===0){let s=a.as_constr_plutus_data(),_=s.data(),c=[];for(let d=0;d<_.len();d++)c.push(e(_.get(d)));return new Ue(parseInt(s.alternative().to_str()),c)}else if(a.kind()===1){let s=a.as_map(),_=new Map,c=s.keys();for(let d=0;dt(i));if(e instanceof Object){let i=new Map;return Object.entries(e).forEach(([a,s])=>{i.set(t(a),t(s))}),i}throw new Error("Unsupported type")}return t(n)}function LS(n){function t(e){if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&!isNaN(parseInt(e))&&e.slice(-1)==="n"){let i=typeof e=="string"?BigInt(e.slice(0,-1)):e;return parseInt(i.toString())}if(typeof e=="string")try{return new TextDecoder(void 0,{fatal:!0}).decode(J(e))}catch{return"0x"+_t(J(e))}if(e instanceof Array)return e.map(i=>t(i));if(e instanceof Map){let i={};return e.forEach((a,s)=>{let _=t(s);if(typeof _!="string"&&typeof _!="number")throw new Error("Unsupported type (Note: Only bytes or integers can be keys of a JSON object)");i[_]=t(a)}),i}throw new Error("Unsupported type (Note: Constructor cannot be converted to JSON)")}return t(n)}function En(n,t){let e=t;if(!e)throw new Error("Could not type cast data.");switch((e.anyOf?"enum":"")||e.dataType){case"integer":{if(typeof n!="bigint")throw new Error("Could not type cast to integer.");return cv(n,e),n}case"bytes":{if(typeof n!="string")throw new Error("Could not type cast to bytes.");return lv(n,e),n}case"constructor":{if(fv(e)){if(!(n instanceof Ue)||n.index!==0||n.fields.length!==0)throw new Error("Could not type cast to void.");return}else if(n instanceof Ue&&n.index===e.index&&(e.hasConstr||e.hasConstr===void 0)){let i={};if(e.fields.length!==n.fields.length)throw new Error("Could not type cast to object. Fields do not match.");return e.fields.forEach((a,s)=>{let _=a.title||"wrapper";if(/[A-Z]/.test(_[0]))throw new Error("Could not type cast to object. Object properties need to start with a lowercase letter.");i[_]=En(n.fields[s],a)}),i}else if(n instanceof Array&&!e.hasConstr&&e.hasConstr!==void 0){let i={};if(e.fields.length!==n.length)throw new Error("Could not ype cast to object. Fields do not match.");return e.fields.forEach((a,s)=>{let _=a.title||"wrapper";if(/[A-Z]/.test(_[0]))throw new Error("Could not type cast to object. Object properties need to start with a lowercase letter.");i[_]=En(n[s],a)}),i}throw new Error("Could not type cast to object.")}case"enum":{if(e.anyOf.length===1)return En(n,e.anyOf[0]);if(!(n instanceof Ue))throw new Error("Could not type cast to enum.");let i=e.anyOf.find(a=>a.index===n.index);if(!i||i.fields.length!==n.fields.length)throw new Error("Could not type cast to enum.");if(pv(e)){if(n.fields.length!==0)throw new Error("Could not type cast to boolean.");switch(n.index){case 0:return!1;case 1:return!0}throw new Error("Could not type cast to boolean.")}else if(wv(e)){switch(n.index){case 0:{if(n.fields.length!==1)throw new Error("Could not type cast to nullable object.");return En(n.fields[0],e.anyOf[0].fields[0])}case 1:{if(n.fields.length!==0)throw new Error("Could not type cast to nullable object.");return null}}throw new Error("Could not type cast to nullable object.")}switch(i.dataType){case"constructor":if(i.fields.length===0){if(/[A-Z]/.test(i.title[0]))return i.title;throw new Error("Could not type cast to enum.")}else{if(!/[A-Z]/.test(i.title))throw new Error("Could not type cast to enum. Enums need to start with an uppercase letter.");if(i.fields.length!==n.fields.length)throw new Error("Could not type cast to enum.");let a=i.fields[0].title?Object.fromEntries(i.fields.map((s,_)=>[s.title,En(n.fields[_],s)])):i.fields.map((s,_)=>En(n.fields[_],s));return{[i.title]:a}}}throw new Error("Could not type cast to enum.")}case"list":if(e.items instanceof Array){if(n instanceof Ue&&n.index===0&&e.hasConstr)return n.fields.map((i,a)=>En(i,e.items[a]));if(n instanceof Array&&!e.hasConstr)return n.map((i,a)=>En(i,e.items[a]));throw new Error("Could not type cast to tuple.")}else{if(!(n instanceof Array))throw new Error("Could not type cast to array.");return dv(n,e),n.map(i=>En(i,e.items))}case"map":{if(!(n instanceof Map))throw new Error("Could not type cast to map.");uv(n,e);let i=new Map;for(let[a,s]of n.entries())i.set(En(a,e.keys),En(s,e.values));return i}case void 0:return n}throw new Error("Could not type cast data.")}function pr(n,t){let e=t;if(!e)throw new Error("Could not type cast struct.");switch((e.anyOf?"enum":"")||e.dataType){case"integer":{if(typeof n!="bigint")throw new Error("Could not type cast to integer.");return cv(n,e),n}case"bytes":{if(typeof n!="string")throw new Error("Could not type cast to bytes.");return lv(n,e),n}case"constructor":{if(fv(e)){if(n!==void 0)throw new Error("Could not type cast to void.");return new Ue(0,[])}else if(typeof n!="object"||n===null||e.fields.length!==Object.keys(n).length)throw new Error("Could not type cast to constructor.");let i=e.fields.map(a=>pr(n[a.title||"wrapper"],a));return e.hasConstr||e.hasConstr===void 0?new Ue(e.index,i):i}case"enum":{if(e.anyOf.length===1)return pr(n,e.anyOf[0]);if(pv(e)){if(typeof n!="boolean")throw new Error("Could not type cast to boolean.");return new Ue(n?1:0,[])}else if(wv(e)){if(n===null)return new Ue(1,[]);{let i=e.anyOf[0].fields;if(i.length!==1)throw new Error("Could not type cast to nullable object.");return new Ue(0,[pr(n,i[0])])}}switch(typeof n){case"string":{if(!/[A-Z]/.test(n[0]))throw new Error("Could not type cast to enum. Enum needs to start with an uppercase letter.");let i=e.anyOf.findIndex(a=>a.dataType==="constructor"&&a.fields.length===0&&a.title===n);if(i===-1)throw new Error("Could not type cast to enum.");return new Ue(i,[])}case"object":{if(n===null)throw new Error("Could not type cast to enum.");let i=Object.keys(n)[0];if(!/[A-Z]/.test(i))throw new Error("Could not type cast to enum. Enum needs to start with an uppercase letter.");let a=e.anyOf.find(_=>_.dataType==="constructor"&&_.title===i);if(!a)throw new Error("Could not type cast to enum.");let s=n[i];return new Ue(a.index,s instanceof Array?s.map((_,c)=>pr(_,a.fields[c])):a.fields.map(_=>{let[c,d]=Object.entries(s).find(([f])=>f===_.title);return pr(d,_)}))}}throw new Error("Could not type cast to enum.")}case"list":{if(!(n instanceof Array))throw new Error("Could not type cast to array/tuple.");if(e.items instanceof Array){let i=n.map((a,s)=>pr(a,e.items[s]));return e.hasConstr?new Ue(0,i):i}else return dv(n,e),n.map(i=>pr(i,e.items))}case"map":{if(!(n instanceof Map))throw new Error("Could not type cast to map.");uv(n,e);let i=new Map;for(let[a,s]of n.entries())i.set(pr(a,e.keys),pr(s,e.values));return i}case void 0:return n}throw new Error("Could not type cast struct.")}function cv(n,t){if(t.minimum&&nBigInt(t.maximum))throw new Error(`Integer ${n} is above the maxiumum ${t.maximum}.`);if(t.exclusiveMinimum&&n<=BigInt(t.exclusiveMinimum))throw new Error(`Integer ${n} is below the exclusive minimum ${t.exclusiveMinimum}.`);if(t.exclusiveMaximum&&n>=BigInt(t.exclusiveMaximum))throw new Error(`Integer ${n} is above the exclusive maximum ${t.exclusiveMaximum}.`)}function lv(n,t){if(t.enum&&!t.enum.some(e=>e===n))throw new Error(`None of the keywords match with '${n}'.`);if(t.minLength&&n.length/2t.maxLength)throw new Error(`Bytes can have a length of at most ${t.minLength} bytes.`)}function dv(n,t){if(t.minItems&&n.lengtht.maxItems)throw new Error(`Array can contain at most ${t.maxItems} items.`);if(t.uniqueItems&&new Set(n).size!==n.length)throw new Error("Array constains duplicates.")}function uv(n,t){if(t.minItems&&n.sizet.maxItems)throw new Error(`Map can contain at most ${t.maxItems} items.`)}function pv(n){var t,e;return n.anyOf&&((t=n.anyOf[0])==null?void 0:t.title)==="False"&&((e=n.anyOf[1])==null?void 0:e.title)==="True"}function fv(n){return n.index===0&&n.fields.length===0}function wv(n){var t,e;return n.anyOf&&((t=n.anyOf[0])==null?void 0:t.title)==="Some"&&((e=n.anyOf[1])==null?void 0:e.title)==="None"}function lc(n,t){Object.keys(n).forEach(e=>{delete n[e]}),Object.assign(n,t)}var $S=class{constructor(n){Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n}validatorToAddress(n,t){let e=this.validatorToScriptHash(n);return t?er.new(qs(this.lucid.network),q.from_scripthash(dt.from_hex(e)),t.type==="Key"?q.from_keyhash(et.from_hex(t.hash)):q.from_scripthash(dt.from_hex(t.hash))).to_address().to_bech32(void 0):Dn.new(qs(this.lucid.network),q.from_scripthash(dt.from_hex(e))).to_address().to_bech32(void 0)}credentialToAddress(n,t){return t?er.new(qs(this.lucid.network),n.type==="Key"?q.from_keyhash(et.from_hex(n.hash)):q.from_scripthash(dt.from_hex(n.hash)),t.type==="Key"?q.from_keyhash(et.from_hex(t.hash)):q.from_scripthash(dt.from_hex(t.hash))).to_address().to_bech32(void 0):Dn.new(qs(this.lucid.network),n.type==="Key"?q.from_keyhash(et.from_hex(n.hash)):q.from_scripthash(dt.from_hex(n.hash))).to_address().to_bech32(void 0)}validatorToRewardAddress(n){let t=this.validatorToScriptHash(n);return It.new(qs(this.lucid.network),q.from_scripthash(dt.from_hex(t))).to_address().to_bech32(void 0)}credentialToRewardAddress(n){return It.new(qs(this.lucid.network),n.type==="Key"?q.from_keyhash(et.from_hex(n.hash)):q.from_scripthash(dt.from_hex(n.hash))).to_address().to_bech32(void 0)}validatorToScriptHash(n){switch(n.type){case"Native":return Nt.from_bytes(J(n.script)).hash(wn.NativeScript).to_hex();case"PlutusV1":return bt.from_bytes(J(li(n.script))).hash(wn.PlutusV1).to_hex();case"PlutusV2":return bt.from_bytes(J(li(n.script))).hash(wn.PlutusV2).to_hex();default:throw new Error("No variant matched")}}mintingPolicyToId(n){return this.validatorToScriptHash(n)}datumToHash(n){return To(st.from_bytes(J(n))).to_hex()}scriptHashToCredential(n){return{type:"Script",hash:n}}keyHashToCredential(n){return{type:"Key",hash:n}}generatePrivateKey(){return WS()}generateSeedPhrase(){return Yp()}unixTimeToSlot(n){return zS(n,id[this.lucid.network])}slotToUnixTime(n){return FS(n,id[this.lucid.network])}getAddressDetails(n){return Wn(n)}nativeScriptFromJson(n){return GS(n)}paymentCredentialOf(n){return Ks(n)}stakeCredentialOf(n){return HS(n)}};function sd(n){try{return jt.from_bytes(J(n))}catch{try{return jt.from_bech32(n)}catch{throw new Error("Could not deserialize address.")}}}function Wn(n){try{let t=er.from_address(sd(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:_t(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.payment_cred().to_scripthash().to_bytes())},i=t.stake_cred().kind()===0?{type:"Key",hash:_t(t.stake_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.stake_cred().to_scripthash().to_bytes())};return{type:"Base",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:_t(t.to_address().to_bytes())},paymentCredential:e,stakeCredential:i}}catch{}try{let t=Dn.from_address(sd(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:_t(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.payment_cred().to_scripthash().to_bytes())};return{type:"Enterprise",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:_t(t.to_address().to_bytes())},paymentCredential:e}}catch{}try{let t=Li.from_address(sd(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:_t(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.payment_cred().to_scripthash().to_bytes())};return{type:"Pointer",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:_t(t.to_address().to_bytes())},paymentCredential:e}}catch{}try{let t=It.from_address(sd(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:_t(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.payment_cred().to_scripthash().to_bytes())};return{type:"Reward",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:_t(t.to_address().to_bytes())},stakeCredential:e}}catch{}try{let t=(e=>{try{return ze.from_bytes(J(e))}catch{try{return ze.from_base58(e)}catch{throw new Error("Could not deserialize address.")}}})(n);return{type:"Byron",networkId:t.network_id(),address:{bech32:"",hex:_t(t.to_address().to_bytes())}}}catch{}throw new Error("No address type matched for: "+n)}function Ks(n){let{paymentCredential:t}=Wn(n);if(!t)throw new Error("The specified address does not contain a payment credential.");return t}function HS(n){let{stakeCredential:t}=Wn(n);if(!t)throw new Error("The specified address does not contain a stake credential.");return t}function WS(){return Kt.generate_ed25519().to_bech32()}function Yp(){return RS(256)}function VS(n){let t={};t.lovelace=BigInt(n.coin().to_str());let e=n.multiasset();if(e){let i=e.keys();for(let a=0;as!=="lovelace").map(s=>s.slice(0,56)))).forEach(s=>{let _=i.filter(d=>d.slice(0,56)===s),c=tr.new();_.forEach(d=>{c.insert(ie.new(J(d.slice(56))),O.from_str(n[d].toString()))}),t.insert(dt.from_bytes(J(s)),c)});let a=Rt.new(O.from_str(e?e.toString():"0"));return(i.length>1||!e)&&a.set_multiasset(t),a}function KS(n){switch(n.get().kind()){case 0:return{type:"Native",script:_t(n.get().as_native().to_bytes())};case 1:return{type:"PlutusV1",script:_t(n.get().as_plutus_v1().to_bytes())};case 2:return{type:"PlutusV2",script:_t(n.get().as_plutus_v2().to_bytes())};default:throw new Error("No variant matched.")}}function hv(n){switch(n.type){case"Native":return Un.new(Me.new_native(Nt.from_bytes(J(n.script))));case"PlutusV1":return Un.new(Me.new_plutus_v1(bt.from_bytes(J(li(n.script)))));case"PlutusV2":return Un.new(Me.new_plutus_v2(bt.from_bytes(J(li(n.script)))));default:throw new Error("No variant matched.")}}function dc(n){let t=(()=>{try{return jt.from_bech32(n.address)}catch{return ze.from_base58(n.address).to_address()}})(),e=Yt.new(t,Zp(n.assets));return n.datumHash&&e.set_datum(Gt.new_data_hash(se.from_bytes(J(n.datumHash)))),!n.datumHash&&n.datum&&e.set_datum(Gt.new_data(zn.new(st.from_bytes(J(n.datum))))),n.scriptRef&&e.set_script_ref(hv(n.scriptRef)),Ae.new(tn.new(ye.from_bytes(J(n.txHash)),O.from_str(n.outputIndex.toString())),e)}function gv(n){var t,e,i,a,s,_,c;return{txHash:_t(n.input().transaction_id().to_bytes()),outputIndex:parseInt(n.input().index().to_str()),assets:VS(n.output().amount()),address:n.output().address().as_byron()?(t=n.output().address().as_byron())==null?void 0:t.to_base58():n.output().address().to_bech32(void 0),datumHash:(a=(i=(e=n.output())==null?void 0:e.datum())==null?void 0:i.as_data_hash())==null?void 0:a.to_hex(),datum:((_=(s=n.output())==null?void 0:s.datum())==null?void 0:_.as_data())&&_t(n.output().datum().as_data().get().to_bytes()),scriptRef:((c=n.output())==null?void 0:c.script_ref())&&KS(n.output().script_ref())}}function qs(n){switch(n){case"Preview":return 0;case"Preprod":return 0;case"Custom":return 0;case"Mainnet":return 1;default:throw new Error("Network not found")}}function J(n){return jS(n)}function _t(n){return kS(n)}function Ko(n){return new TextDecoder().decode(ev(new TextEncoder().encode(n)))}function bv(n){return _t(new TextEncoder().encode(n))}function yv(n){return TS(J(n)).toString(16).padStart(2,"0")}function qS(n){if(n<0||n>65535)throw new Error(`Label ${n} out of range: min label 1 - max label 65535.`);let t=n.toString(16).padStart(4,"0");return"0"+t+yv(t)+"0"}function QS(n){if(n.length!==8||!(n[0]==="0"&&n[7]==="0"))return null;let t=n.slice(1,5),e=parseInt(t,16);return n.slice(5,7)===yv(t)?e:null}function JS(n,t,e){let i=Number.isInteger(e)?qS(e):"",a=t||"";if((a+i).length>64)throw new Error("Asset name size exceeds 32 bytes.");if(n.length!==56)throw new Error(`Policy id invalid: ${n}.`);return n+i+a}function XS(n){let t=n.slice(0,56),e=n.slice(56)||null,i=QS(n.slice(56,64)),a=(Number.isInteger(i)?n.slice(64):n.slice(56))||null;return{policyId:t,assetName:e,name:a,label:i}}function GS(n){return{type:"Native",script:_t(qp(JSON.stringify(n),"",ry.Node).to_bytes())}}function YS(n,t,e){let i=e?ci.castTo(t,e):t;return _t(Qp(ce.from_bytes(J(ci.to(i))),bt.from_bytes(J(li(n)))).to_bytes())}function li(n){try{return bt.from_bytes(bt.from_bytes(J(n)).bytes()),n}catch{return _t(bt.new(J(n)).to_bytes())}}var ZS=class{constructor(n,t){Object.defineProperty(this,"txSigned",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n,this.txSigned=t}async submit(){return await(this.lucid.wallet||this.lucid.provider).submitTx(_t(this.txSigned.to_bytes()))}toString(){return _t(this.txSigned.to_bytes())}toHash(){return fa(this.txSigned.body()).to_hex()}},mv=class{constructor(n,t){Object.defineProperty(this,"txComplete",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"witnessSetBuilder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tasks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fee",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exUnits",{enumerable:!0,configurable:!0,writable:!0,value:null}),this.lucid=n,this.txComplete=t,this.witnessSetBuilder=Xa.new(),this.tasks=[],this.fee=parseInt(t.body().fee().to_str());let e=t.witness_set().redeemers();if(e){let i={cpu:0,mem:0};for(let a=0;a{let n=await this.lucid.wallet.signTx(this.txComplete);this.witnessSetBuilder.add_existing(n)}),this}signWithPrivateKey(n){let t=Kt.from_bech32(n),e=Io(fa(this.txComplete.body()),t);return this.witnessSetBuilder.add_vkey(e),this}async partialSign(){let n=await this.lucid.wallet.signTx(this.txComplete);return this.witnessSetBuilder.add_existing(n),_t(n.to_bytes())}partialSignWithPrivateKey(n){let t=Kt.from_bech32(n),e=Io(fa(this.txComplete.body()),t);this.witnessSetBuilder.add_vkey(e);let i=Xa.new();return i.add_vkey(e),_t(i.build().to_bytes())}assemble(n){return n.forEach(t=>{let e=Be.from_bytes(J(t));this.witnessSetBuilder.add_existing(e)}),this}async complete(){for(let t of this.tasks)await t();this.witnessSetBuilder.add_existing(this.txComplete.witness_set());let n=xn.new(this.txComplete.body(),this.witnessSetBuilder.build(),this.txComplete.auxiliary_data());return new ZS(this.lucid,n)}toString(){return _t(this.txComplete.to_bytes())}toHash(){return fa(this.txComplete.body()).to_hex()}},t3=class{constructor(n){Object.defineProperty(this,"txBuilder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tasks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n,this.txBuilder=Mo.new(this.lucid.txBuilderConfig),this.tasks=[]}readFrom(n){return this.tasks.push(async t=>{for(let e of n){if(e.datumHash){e.datum=ci.to(await t.lucid.datumOf(e));let a=st.from_bytes(J(e.datum));t.txBuilder.add_plutus_data(a)}let i=dc(e);t.txBuilder.add_reference_input(i)}}),this}collectFrom(n,t){return this.tasks.push(async e=>{for(let i of n){i.datumHash&&!i.datum&&(i.datum=ci.to(await e.lucid.datumOf(i)));let a=dc(i);e.txBuilder.add_input(a,t&&Ee.new_plutus_witness(mn.new(st.from_bytes(J(t)),i.datumHash&&i.datum?st.from_bytes(J(i.datum)):void 0,void 0)))}}),this}mintAssets(n,t){return this.tasks.push(e=>{let i=Object.keys(n),a=i[0].slice(0,56),s=An.new();i.forEach(c=>{if(c.slice(0,56)!==a)throw new Error("Only one policy id allowed. You can chain multiple mintAssets functions together if you need to mint assets with different policy ids.");s.insert(ie.new(J(c.slice(56))),_e.from_str(n[c].toString()))});let _=dt.from_bytes(J(a));e.txBuilder.add_mint(_,s,t?Ee.new_plutus_witness(mn.new(st.from_bytes(J(t)),void 0,void 0)):void 0)}),this}payToAddress(n,t){return this.tasks.push(e=>{let i=Yt.new(uc(n,e.lucid),Zp(t));e.txBuilder.add_output(i)}),this}payToAddressWithData(n,t,e){return this.tasks.push(i=>{if(typeof t=="string"&&(t={asHash:t}),[t.hash,t.asHash,t.inline].filter(_=>_).length>1)throw new Error("Not allowed to set hash, asHash and inline at the same time.");let a=Yt.new(uc(n,i.lucid),Zp(e));if(t.hash)a.set_datum(Gt.new_data_hash(se.from_hex(t.hash)));else if(t.asHash){let _=st.from_bytes(J(t.asHash));a.set_datum(Gt.new_data_hash(To(_))),i.txBuilder.add_plutus_data(_)}else if(t.inline){let _=st.from_bytes(J(t.inline));a.set_datum(Gt.new_data(zn.new(_)))}let s=t.scriptRef;s&&a.set_script_ref(hv(s)),i.txBuilder.add_output(a)}),this}payToContract(n,t,e){if(typeof t=="string"&&(t={asHash:t}),!(t.hash||t.asHash||t.inline))throw new Error("No datum set. Script output becomes unspendable without datum.");return this.payToAddressWithData(n,t,e)}delegateTo(n,t,e){return this.tasks.push(i=>{let a=i.lucid.utils.getAddressDetails(n);if(a.type!=="Reward"||!a.stakeCredential)throw new Error("Not a reward address provided.");let s=a.stakeCredential.type==="Key"?q.from_keyhash(et.from_bytes(J(a.stakeCredential.hash))):q.from_scripthash(dt.from_bytes(J(a.stakeCredential.hash)));i.txBuilder.add_certificate(Ht.new_stake_delegation(Ar.new(s,et.from_bech32(t))),e?Ee.new_plutus_witness(mn.new(st.from_bytes(J(e)),void 0,void 0)):void 0)}),this}registerStake(n){return this.tasks.push(t=>{let e=t.lucid.utils.getAddressDetails(n);if(e.type!=="Reward"||!e.stakeCredential)throw new Error("Not a reward address provided.");let i=e.stakeCredential.type==="Key"?q.from_keyhash(et.from_bytes(J(e.stakeCredential.hash))):q.from_scripthash(dt.from_bytes(J(e.stakeCredential.hash)));t.txBuilder.add_certificate(Ht.new_stake_registration(Ur.new(i)),void 0)}),this}deregisterStake(n,t){return this.tasks.push(e=>{let i=e.lucid.utils.getAddressDetails(n);if(i.type!=="Reward"||!i.stakeCredential)throw new Error("Not a reward address provided.");let a=i.stakeCredential.type==="Key"?q.from_keyhash(et.from_bytes(J(i.stakeCredential.hash))):q.from_scripthash(dt.from_bytes(J(i.stakeCredential.hash)));e.txBuilder.add_certificate(Ht.new_stake_deregistration(Br.new(a)),t?Ee.new_plutus_witness(mn.new(st.from_bytes(J(t)),void 0,void 0)):void 0)}),this}registerPool(n){return this.tasks.push(async t=>{let e=await vv(n,t.lucid),i=Ht.new_pool_registration(e);t.txBuilder.add_certificate(i,void 0)}),this}updatePool(n){return this.tasks.push(async t=>{let e=await vv(n,t.lucid);e.set_is_update(!0);let i=Ht.new_pool_registration(e);t.txBuilder.add_certificate(i,void 0)}),this}retirePool(n,t){return this.tasks.push(e=>{let i=Ht.new_pool_retirement(Ir.new(et.from_bech32(n),t));e.txBuilder.add_certificate(i,void 0)}),this}withdraw(n,t,e){return this.tasks.push(i=>{i.txBuilder.add_withdrawal(It.from_address(uc(n,i.lucid)),O.from_str(t.toString()),e?Ee.new_plutus_witness(mn.new(st.from_bytes(J(e)),void 0,void 0)):void 0)}),this}addSigner(n){let t=this.lucid.utils.getAddressDetails(n);if(!t.paymentCredential&&!t.stakeCredential)throw new Error("Not a valid address.");let e=t.type==="Reward"?t.stakeCredential:t.paymentCredential;if(e.type==="Script")throw new Error("Only key hashes are allowed as signers.");return this.addSignerKey(e.hash)}addSignerKey(n){return this.tasks.push(t=>{t.txBuilder.add_required_signer(et.from_bytes(J(n)))}),this}validFrom(n){return this.tasks.push(t=>{let e=t.lucid.utils.unixTimeToSlot(n);t.txBuilder.set_validity_start_interval(O.from_str(e.toString()))}),this}validTo(n){return this.tasks.push(t=>{let e=t.lucid.utils.unixTimeToSlot(n);t.txBuilder.set_ttl(O.from_str(e.toString()))}),this}attachMetadata(n,t){return this.tasks.push(e=>{e.txBuilder.add_json_metadatum(O.from_str(n.toString()),JSON.stringify(t))}),this}attachMetadataWithConversion(n,t){return this.tasks.push(e=>{e.txBuilder.add_json_metadatum_with_schema(O.from_str(n.toString()),JSON.stringify(t),ny.BasicConversions)}),this}addNetworkId(n){return this.tasks.push(t=>{t.txBuilder.set_network_id(yn.from_bytes(J(n.toString(16).padStart(2,"0"))))}),this}attachSpendingValidator(n){return this.tasks.push(t=>{od(t,n)}),this}attachMintingPolicy(n){return this.tasks.push(t=>{od(t,n)}),this}attachCertificateValidator(n){return this.tasks.push(t=>{od(t,n)}),this}attachWithdrawalValidator(n){return this.tasks.push(t=>{od(t,n)}),this}compose(n){return n&&(this.tasks=this.tasks.concat(n.tasks)),this}async complete(n){var a,s,_,c,d,f,g,k,m,x,S,j,P;if([(s=(a=n==null?void 0:n.change)==null?void 0:a.outputData)==null?void 0:s.hash,(c=(_=n==null?void 0:n.change)==null?void 0:_.outputData)==null?void 0:c.asHash,(f=(d=n==null?void 0:n.change)==null?void 0:d.outputData)==null?void 0:f.inline].filter(v=>v).length>1)throw new Error("Not allowed to set hash, asHash and inline at the same time.");let t=this.tasks.shift();for(;t;)await t(this),t=this.tasks.shift();let e=await this.lucid.wallet.getUtxosCore(),i=uc(((g=n==null?void 0:n.change)==null?void 0:g.address)||await this.lucid.wallet.address(),this.lucid);return(n!=null&&n.coinSelection||(n==null?void 0:n.coinSelection)===void 0)&&this.txBuilder.add_inputs_from(e,i,Uint32Array.from([200,1e3,1500,800,800,5e3])),this.txBuilder.balance(i,(m=(k=n==null?void 0:n.change)==null?void 0:k.outputData)!=null&&m.hash?Gt.new_data_hash(se.from_hex(n.change.outputData.hash)):(S=(x=n==null?void 0:n.change)==null?void 0:x.outputData)!=null&&S.asHash?(this.txBuilder.add_plutus_data(st.from_bytes(J(n.change.outputData.asHash))),Gt.new_data_hash(To(st.from_bytes(J(n.change.outputData.asHash))))):(P=(j=n==null?void 0:n.change)==null?void 0:j.outputData)!=null&&P.inline?Gt.new_data(zn.new(st.from_bytes(J(n.change.outputData.inline)))):void 0),new mv(this.lucid,await this.txBuilder.construct(e,i,(n==null?void 0:n.nativeUplc)===void 0?!0:n==null?void 0:n.nativeUplc))}async toString(){let n=this.tasks.shift();for(;n;)await n(this),n=this.tasks.shift();return _t(this.txBuilder.to_bytes())}};function od(n,{type:t,script:e}){if(t==="Native")return n.txBuilder.add_native_script(Nt.from_bytes(J(e)));if(t==="PlutusV1")return n.txBuilder.add_plutus_script(bt.from_bytes(J(li(e))));if(t==="PlutusV2")return n.txBuilder.add_plutus_v2_script(bt.from_bytes(J(li(e))));throw new Error("No variant matched.")}async function vv(n,t){let e=ee.new();n.owners.forEach(_=>{let{stakeCredential:c}=t.utils.getAddressDetails(_);if((c==null?void 0:c.type)==="Key")e.add(et.from_hex(c.hash));else throw new Error("Only key hashes allowed for pool owners.")});let i=n.metadataUrl?await fetch(n.metadataUrl).then(_=>_.arrayBuffer()):null,a=i?Nr.from_bytes(Kp(new Uint8Array(i))):null,s=zr.new();return n.relays.forEach(_=>{switch(_.type){case"SingleHostIp":{let c=_.ipV4?xr.new(new Uint8Array(_.ipV4.split(".").map(f=>parseInt(f)))):void 0,d=_.ipV6?jr.new(J(_.ipV6.replaceAll(":",""))):void 0;s.add(Ye.new_single_host_addr(Dr.new(_.port,c,d)));break}case"SingleHostDomainName":{s.add(Ye.new_single_host_name(Mr.new(_.port,ba.new(_.domainName))));break}case"MultiHost":{s.add(Ye.new_multi_host_name(Cr.new(ya.new(_.domainName))));break}}}),Pr.new(Rr.new(et.from_bech32(n.poolId),jn.from_hex(n.vrfKeyHash),O.from_str(n.pledge.toString()),O.from_str(n.cost.toString()),ot.from_float(n.margin),It.from_address(uc(n.rewardAddress,t)),e,s,a?Or.new(or.new(n.metadataUrl),a):void 0))}function uc(n,t){let{type:e,networkId:i}=t.utils.getAddressDetails(n),a=qs(t.network);if(i!==a)throw new Error(`Invalid address: Expected address with network id ${a}, but got ${i}`);return e==="Byron"?ze.from_base58(n).to_address():jt.from_bech32(n)}function e3(n,t={addressType:"Base",accountIndex:0,network:"Mainnet"}){function e(m){if(typeof m!="number")throw new Error("Type number required here!");return 2147483648+m}let i=OS(n),a=Fn.from_bip39_entropy(J(i),t.password?new TextEncoder().encode(t.password):new Uint8Array).derive(e(1852)).derive(e(1815)).derive(e(t.accountIndex)),s=a.derive(0).derive(0).to_raw_key(),_=a.derive(2).derive(0).to_raw_key(),c=s.to_public().hash(),d=_.to_public().hash(),f=t.network==="Mainnet"?1:0,g=t.addressType==="Base"?er.new(f,q.from_keyhash(c),q.from_keyhash(d)).to_address().to_bech32(void 0):Dn.new(f,q.from_keyhash(c)).to_address().to_bech32(void 0),k=t.addressType==="Base"?It.new(f,q.from_keyhash(d)).to_address().to_bech32(void 0):null;return{address:g,rewardAddress:k,paymentKey:s.to_bech32(),stakeKey:t.addressType==="Base"?_.to_bech32():null}}function n3(n,t,e){let i=[],a=n.body().inputs();for(let x=0;xy.txHash===j&&y.outputIndex===P);if(v){let{paymentCredential:y}=Wn(v.address);i.push(y==null?void 0:y.hash)}}let s=n.body();function _(x){var j,P,v,y,b,I,M;let S=x.certs();if(S)for(let U=0;Uy.txHash===j&&y.outputIndex===P);if(v){let{paymentCredential:y}=Wn(v.address);i.push(y==null?void 0:y.hash)}}return i.filter(x=>t.includes(x))}function tf(n,t,e){let i=Hn.new();i.set_algorithm_id(yt.from_algorithm_id(td.EdDSA)),i.set_header(yt.new_text("address"),Ot.new_bytes(J(n)));let a=nn.new(i),s=Hn.new(),_=qt.new(a,s),c=Lo.new(_,J(t),!1),d=c.make_data_to_sign().to_bytes(),f=Kt.from_bech32(e),g=f.sign(d).to_bytes(),k=c.build(g),m=ai.new(yt.from_key_type(v0.OKP));return m.set_algorithm_id(yt.from_algorithm_id(td.EdDSA)),m.set_header(yt.new_int(Ne.new_negative(Wt.from_str("1"))),Ot.new_int(Ne.new_i32(6))),m.set_header(yt.new_int(Ne.new_negative(Wt.from_str("2"))),Ot.new_bytes(f.to_public().as_bytes())),{signature:_t(k.to_bytes()),key:_t(m.to_bytes())}}function r3(n,t,e,i){let a=Wr.from_bytes(J(i.signature)),s=ai.from_bytes(J(i.key)),_=a.headers().protected().deserialized_headers(),c=(()=>{var P;try{return _t((P=_.header(yt.new_text("address")))==null?void 0:P.as_bytes())}catch{throw new Error("No address found in signature.")}})(),d=(()=>{var P,v,y;try{let b=(P=_.algorithm_id())==null?void 0:P.as_int();return b!=null&&b.is_positive()?parseInt((v=b.as_positive())==null?void 0:v.to_str()):parseInt((y=b==null?void 0:b.as_negative())==null?void 0:y.to_str())}catch{throw new Error("Failed to retrieve Algorithm Id.")}})(),f=(()=>{var P,v,y;try{let b=(P=s.algorithm_id())==null?void 0:P.as_int();return b!=null&&b.is_positive()?parseInt((v=b.as_positive())==null?void 0:v.to_str()):parseInt((y=b==null?void 0:b.as_negative())==null?void 0:y.to_str())}catch{throw new Error("Failed to retrieve Algorithm Id.")}})(),g=(()=>{var P,v,y;try{let b=(P=s.header(yt.new_int(Ne.new_negative(Wt.from_str("1")))))==null?void 0:P.as_int();return b!=null&&b.is_positive()?parseInt((v=b.as_positive())==null?void 0:v.to_str()):parseInt((y=b==null?void 0:b.as_negative())==null?void 0:y.to_str())}catch{throw new Error("Failed to retrieve Curve.")}})(),k=(()=>{var P,v;try{let y=s.key_type().as_int();return y!=null&&y.is_positive()?parseInt((P=y.as_positive())==null?void 0:P.to_str()):parseInt((v=y==null?void 0:y.as_negative())==null?void 0:v.to_str())}catch{throw new Error("Failed to retrieve Key Type.")}})(),m=(()=>{var P;try{return kn.from_bytes((P=s.header(yt.new_int(Ne.new_negative(Wt.from_str("2")))))==null?void 0:P.as_bytes())}catch{throw new Error("No public key found.")}})(),x=(()=>{try{return _t(a.payload())}catch{throw new Error("No payload found.")}})(),S=Se.from_bytes(a.signature()),j=a.signed_data(void 0,void 0).to_bytes();return c!==n||t!==m.hash().to_hex()||d!==f&&d!==td.EdDSA||g!==6||k!==1||x!==e?!1:m.verify(j,S)}var a3=class{constructor(n,t,e){Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"address",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"payload",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n,this.address=t,this.payload=e}sign(){return this.lucid.wallet.signMessage(this.address,this.payload)}signWithPrivateKey(n){let{paymentCredential:t,stakeCredential:e,address:{hex:i}}=this.lucid.utils.getAddressDetails(this.address),a=(t==null?void 0:t.hash)||(e==null?void 0:e.hash),s=Kt.from_bech32(n).to_public().hash().to_hex();if(!a||a!==s)throw new Error(`Cannot sign message for address: ${this.address}.`);return tf(i,this.payload,n)}},kv=class{constructor(n,t=gS){Object.defineProperty(this,"ledger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mempool",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"chain",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"blockHeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"slot",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"protocolParameters",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"datumTable",{enumerable:!0,configurable:!0,writable:!0,value:{}});let e="00".repeat(32);this.blockHeight=0,this.slot=0,this.time=Date.now(),this.ledger={},n.forEach(({address:i,assets:a},s)=>{this.ledger[e+s]={utxo:{txHash:e,outputIndex:s,address:i,assets:a},spent:!1}}),this.protocolParameters=t}now(){return this.time}awaitSlot(n=1){this.slot+=n,this.time+=n*1e3;let t=this.blockHeight;if(this.blockHeight=Math.floor(this.slot/20),this.blockHeight>t){for(let[e,{utxo:i,spent:a}]of Object.entries(this.mempool))this.ledger[e]={utxo:i,spent:a};for(let[e,{spent:i}]of Object.entries(this.ledger))i&&delete this.ledger[e];this.mempool={}}}awaitBlock(n=1){this.blockHeight+=n,this.slot+=n*20,this.time+=n*20*1e3;for(let[t,{utxo:e,spent:i}]of Object.entries(this.mempool))this.ledger[t]={utxo:e,spent:i};for(let[t,{spent:e}]of Object.entries(this.ledger))e&&delete this.ledger[t];this.mempool={}}getUtxos(n){let t=Object.values(this.ledger).flatMap(({utxo:e})=>{if(typeof n=="string")return n===e.address?e:[];{let{paymentCredential:i}=Wn(e.address);return(i==null?void 0:i.hash)===n.hash?e:[]}});return Promise.resolve(t)}getProtocolParameters(){return Promise.resolve(this.protocolParameters)}getDatum(n){return Promise.resolve(this.datumTable[n])}getUtxosWithUnit(n,t){let e=Object.values(this.ledger).flatMap(({utxo:i})=>{if(typeof n=="string")return n===i.address&&i.assets[t]>0n?i:[];{let{paymentCredential:a}=Wn(i.address);return(a==null?void 0:a.hash)===n.hash&&i.assets[t]>0n?i:[]}});return Promise.resolve(e)}getUtxosByOutRef(n){return Promise.resolve(n.flatMap(t=>{var e;return((e=this.ledger[t.txHash+t.outputIndex])==null?void 0:e.utxo)||[]}))}getUtxoByUnit(n){let t=Object.values(this.ledger).flatMap(({utxo:e})=>e.assets[n]>0n?e:[]);if(t.length>1)throw new Error("Unit needs to be an NFT or only held by one address.");return Promise.resolve(t[0])}getDelegation(n){var t,e,i,a;return Promise.resolve({poolId:((e=(t=this.chain[n])==null?void 0:t.delegation)==null?void 0:e.poolId)||null,rewards:((a=(i=this.chain[n])==null?void 0:i.delegation)==null?void 0:a.rewards)||0n})}awaitTx(n){return this.mempool[n+0]&&this.awaitBlock(),Promise.resolve(!0)}distributeRewards(n){for(let[t,{registeredStake:e,delegation:i}]of Object.entries(this.chain))e&&i.poolId&&(this.chain[t]={registeredStake:e,delegation:{poolId:i.poolId,rewards:i.rewards+=n}});this.awaitBlock()}submitTx(n){var St,Qt,ue,T,L,Q,Ct,K,ct,ht;let t=xn.from_bytes(J(n)),e=t.body(),i=t.witness_set(),a=i.plutus_data(),s=fa(e).to_hex(),_=e.validity_start_interval()?parseInt(e.validity_start_interval().to_str()):null,c=e.ttl()?parseInt(e.ttl().to_str()):null;if(Number.isInteger(_)&&this.slot<_)throw new Error(`Lower bound (${_}) not in slot range (${this.slot}).`);if(Number.isInteger(c)&&this.slot>c)throw new Error(`Upper bound (${c}) not in slot range (${this.slot}).`);let d=(()=>{let z={};for(let B=0;B<((a==null?void 0:a.len())||0);B++){let Z=a.get(B),V=To(Z).to_hex();z[V]=_t(Z.to_bytes())}return z})(),f=new Set,g=(()=>{var B;let z=[];for(let Z=0;Z<(((B=i.vkeys())==null?void 0:B.len())||0);Z++){let V=i.vkeys().get(Z),at=V.vkey().public_key(),Dt=at.hash().to_hex();if(!at.verify(J(s),V.signature()))throw new Error(`Invalid vkey witness. Key hash: ${Dt}`);z.push(Dt)}return z})(),k=ee.new();g.forEach(z=>k.add(et.from_hex(z)));let m=(()=>{var B;let z=[];for(let Z=0;Z<(((B=i.native_scripts())==null?void 0:B.len())||0);Z++){let V=i.native_scripts().get(Z),at=V.hash(wn.NativeScript).to_hex();if(!V.verify(Number.isInteger(_)?O.from_str(_.toString()):void 0,Number.isInteger(c)?O.from_str(c.toString()):void 0,k))throw new Error(`Invalid native script witness. Script hash: ${at}`);for(let Dt=0;Dt{var B,Z;let z=[];for(let V=0;V<(((B=i.plutus_scripts())==null?void 0:B.len())||0);V++){let at=i.plutus_scripts().get(V).hash(wn.PlutusV1).to_hex();z.push(at)}for(let V=0;V<(((Z=i.plutus_v2_scripts())==null?void 0:Z.len())||0);V++){let at=i.plutus_v2_scripts().get(V).hash(wn.PlutusV2).to_hex();z.push(at)}return z})(),P=e.inputs();P.sort();let v=[];for(let z=0;z{var Z;let z={0:"Spend",1:"Mint",2:"Cert",3:"Reward"},B=[];for(let V=0;V<(((Z=i.redeemers())==null?void 0:Z.len())||0);V++){let at=i.redeemers().get(V);B.push({tag:z[at.tag().kind()],index:parseInt(at.index().to_str())})}return B})();function b(z,B,Z){switch(z.type){case"Key":{if(!g.includes(z.hash))throw new Error(`Missing vkey witness. Key hash: ${z.hash}`);f.add(z.hash);break}case"Script":{if(m.includes(z.hash)){f.add(z.hash);break}else if(x[z.hash]){if(!x[z.hash].verify(Number.isInteger(_)?O.from_str(_.toString()):void 0,Number.isInteger(c)?O.from_str(c.toString()):void 0,k))throw new Error(`Invalid native script witness. Script hash: ${z.hash}`);break}else if((j.includes(z.hash)||S.includes(z.hash))&&y.find(V=>V.tag===B&&V.index===Z)){f.add(z.hash);break}throw new Error(`Missing script witness. Script hash: ${z.hash}`)}}}for(let z=0;z<(((Qt=e.collateral())==null?void 0:Qt.len())||0);z++){let B=e.collateral().get(z),Z=B.transaction_id().to_hex()+B.index().to_str(),V=this.ledger[Z]||this.mempool[Z];if(!V||V.spent)throw new Error(`Could not read UTxO: ${JSON.stringify({txHash:V==null?void 0:V.utxo.txHash,outputIndex:V==null?void 0:V.utxo.outputIndex})} +It does not exist or was already spent.`);let{paymentCredential:at}=Wn(V.utxo.address);if((at==null?void 0:at.type)==="Script")throw new Error("Collateral inputs can only contain vkeys.");b(at,null,null)}for(let z=0;z<(((ue=e.required_signers())==null?void 0:ue.len())||0);z++){let B=e.required_signers().get(z);b({type:"Key",hash:B.to_hex()},null,null)}for(let z=0;z<(((T=e.mint())==null?void 0:T.keys().len())||0);z++){let B=e.mint().keys().get(z).to_hex();b({type:"Script",hash:B},"Mint",z)}let I=[];for(let z=0;z<(((L=e.withdrawals())==null?void 0:L.keys().len())||0);z++){let B=e.withdrawals().keys().get(z),Z=BigInt(e.withdrawals().get(B).to_str()),V=B.to_address().to_bech32(void 0),{stakeCredential:at}=Wn(V);if(b(at,"Reward",z),((Q=this.chain[V])==null?void 0:Q.delegation.rewards)!==Z)throw new Error("Withdrawal amount doesn't match actual reward balance.");I.push({rewardAddress:V,withdrawal:Z})}let M=[];for(let z=0;z<(((Ct=e.certs())==null?void 0:Ct.len())||0);z++){let B=e.certs().get(z);switch(B.kind()){case 0:{let Z=B.as_stake_registration(),V=It.new(Er.testnet().network_id(),Z.stake_credential()).to_address().to_bech32(void 0);if((K=this.chain[V])!=null&&K.registeredStake)throw new Error(`Stake key is already registered. Reward address: ${V}`);M.push({type:"Registration",rewardAddress:V});break}case 1:{let Z=B.as_stake_deregistration(),V=It.new(Er.testnet().network_id(),Z.stake_credential()).to_address().to_bech32(void 0),{stakeCredential:at}=Wn(V);if(b(at,"Cert",z),!((ct=this.chain[V])!=null&&ct.registeredStake))throw new Error(`Stake key is already deregistered. Reward address: ${V}`);M.push({type:"Deregistration",rewardAddress:V});break}case 2:{let Z=B.as_stake_delegation(),V=It.new(Er.testnet().network_id(),Z.stake_credential()).to_address().to_bech32(void 0),at=Z.pool_keyhash().to_bech32("pool"),{stakeCredential:Dt}=Wn(V);if(b(Dt,"Cert",z),!((ht=this.chain[V])!=null&&ht.registeredStake)&&!M.find(Le=>Le.type==="Registration"&&Le.rewardAddress===V))throw new Error(`Stake key is not registered. Reward address: ${V}`);M.push({type:"Delegation",rewardAddress:V,poolId:at});break}}}v.forEach(({entry:{utxo:z}},B)=>{let{paymentCredential:Z}=Wn(z.address);b(Z,"Spend",B)});let U=(()=>{let z=[];for(let B=0;B!f.has(z));if(D)throw new Error(`Extraneous vkey witness. Key hash: ${D}`);let[$]=m.filter(z=>!f.has(z));if($)throw new Error(`Extraneous native script. Script hash: ${$}`);let[Y]=j.filter(z=>!f.has(z));if(Y)throw new Error(`Extraneous plutus script. Script hash: ${Y}`);let[W]=Object.keys(d).filter(z=>!f.has(z));if(W)throw new Error(`Extraneous plutus data. Datum hash: ${W}`);v.forEach(({entry:z,type:B})=>{let Z=z.utxo.txHash+z.utxo.outputIndex;z.spent=!0,B==="Ledger"?this.ledger[Z]=z:B==="Mempool"&&(this.mempool[Z]=z)}),I.forEach(({rewardAddress:z,withdrawal:B})=>{this.chain[z].delegation.rewards-=B}),M.forEach(({type:z,rewardAddress:B,poolId:Z})=>{switch(z){case"Registration":{this.chain[B]?this.chain[B].registeredStake=!0:this.chain[B]={registeredStake:!0,delegation:{poolId:null,rewards:0n}};break}case"Deregistration":{this.chain[B].registeredStake=!1,this.chain[B].delegation.poolId=null;break}case"Delegation":this.chain[B].delegation.poolId=Z}}),U.forEach(({utxo:z,spent:B})=>{this.mempool[z.txHash+z.outputIndex]={utxo:z,spent:B}});for(let[z,B]of Object.entries(d))this.datumTable[z]=B;return Promise.resolve(s)}log(){var i;function n(a){let s=a==="lovelace"?"1":a,_=0;for(let g=0;gMn.new(this.network==="Mainnet"?1:0,q.from_keyhash(e)).to_address().to_bech32(void 0),rewardAddress:async()=>null,getUtxos:async()=>await this.utxosAt(Ks(await this.wallet.address())),getUtxosCore:async()=>{let i=await this.utxosAt(Ks(await this.wallet.address())),a=sr.new();return i.forEach(s=>{a.add(dc(s))}),a},getDelegation:async()=>({poolId:null,rewards:0n}),signTx:async i=>{let a=Io(fa(i.body()),t),s=Xa.new();return s.add_vkey(a),s.build()},signMessage:async(i,a)=>{let{paymentCredential:s,address:{hex:_}}=this.utils.getAddressDetails(i),c=s==null?void 0:s.hash,d=e.to_hex();if(!c||c!==d)throw new Error(`Cannot sign message for address: ${i}.`);return ef(_,a,n)},submitTx:async i=>await this.provider.submitTx(i)},this}selectWallet(n){let t=async()=>{let[e]=await n.getUsedAddresses();if(e)return e;let[i]=await n.getUnusedAddresses();return i};return this.wallet={address:async()=>jt.from_bytes(J(await t())).to_bech32(void 0),rewardAddress:async()=>{let[e]=await n.getRewardAddresses();return e?It.from_address(jt.from_bytes(J(e))).to_address().to_bech32(void 0):null},getUtxos:async()=>(await n.getUtxos()||[]).map(e=>{let i=Ae.from_bytes(J(e));return vv(i)}),getUtxosCore:async()=>{let e=sr.new();return(await n.getUtxos()||[]).forEach(i=>{e.add(Ae.from_bytes(J(i)))}),e},getDelegation:async()=>{let e=await this.wallet.rewardAddress();return e?await this.delegationAt(e):{poolId:null,rewards:0n}},signTx:async e=>{let i=await n.signTx(_t(e.to_bytes()),!0);return Be.from_bytes(J(i))},signMessage:async(e,i)=>{let a=_t(jt.from_bech32(e).to_bytes());return await n.signData(a,i)},submitTx:async e=>await n.submitTx(e)},this}selectWalletFrom({address:n,utxos:t,rewardAddress:e}){let i=this.utils.getAddressDetails(n);return this.wallet={address:async()=>n,rewardAddress:async()=>(!e&&i.stakeCredential?i.stakeCredential.type==="Key"?It.new(this.network==="Mainnet"?1:0,q.from_keyhash(et.from_hex(i.stakeCredential.hash))).to_address().to_bech32(void 0):It.new(this.network==="Mainnet"?1:0,q.from_scripthash(dt.from_hex(i.stakeCredential.hash))).to_address().to_bech32(void 0):e)||null,getUtxos:async()=>t||await this.utxosAt(Ks(n)),getUtxosCore:async()=>{let a=sr.new();return(t||await this.utxosAt(Ks(n))).forEach(s=>a.add(dc(s))),a},getDelegation:async()=>{let a=await this.wallet.rewardAddress();return a?await this.delegationAt(a):{poolId:null,rewards:0n}},signTx:async()=>{throw new Error("Not implemented")},signMessage:async()=>{throw new Error("Not implemented")},submitTx:async a=>await this.provider.submitTx(a)},this}selectWalletFromSeed(n,t){let{address:e,rewardAddress:i,paymentKey:a,stakeKey:s}=s3(n,{addressType:(t==null?void 0:t.addressType)||"Base",accountIndex:(t==null?void 0:t.accountIndex)||0,password:t==null?void 0:t.password,network:this.network}),_=Kt.from_bech32(a).to_public().hash().to_hex(),c=s?Kt.from_bech32(s).to_public().hash().to_hex():"",d={[_]:a,[c]:s};return this.wallet={address:async()=>e,rewardAddress:async()=>i||null,getUtxos:async()=>this.utxosAt(Ks(e)),getUtxosCore:async()=>{let f=sr.new();return(await this.utxosAt(Ks(e))).forEach(g=>f.add(dc(g))),f},getDelegation:async()=>{let f=await this.wallet.rewardAddress();return f?await this.delegationAt(f):{poolId:null,rewards:0n}},signTx:async f=>{let g=await this.utxosAt(e),k=o3(f,[_,c],g),m=Xa.new();return k.forEach(x=>{let S=Io(fa(f.body()),Kt.from_bech32(d[x]));m.add_vkey(S)}),m.build()},signMessage:async(f,g)=>{let{paymentCredential:k,stakeCredential:m,address:{hex:x}}=this.utils.getAddressDetails(f),S=(k==null?void 0:k.hash)||(m==null?void 0:m.hash),j=d[S];if(!j)throw new Error(`Cannot sign message for address: ${f}.`);return ef(x,g,j)},submitTx:async f=>await this.provider.submitTx(f)},this}},Ev=class{constructor(n,t){Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"projectId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=n,this.projectId=t||""}async getProtocolParameters(){let n=await fetch(`${this.url}/epochs/latest/parameters`,{headers:{project_id:this.projectId,lucid:fr}}).then(t=>t.json());return{minFeeA:parseInt(n.min_fee_a),minFeeB:parseInt(n.min_fee_b),maxTxSize:parseInt(n.max_tx_size),maxValSize:parseInt(n.max_val_size),keyDeposit:BigInt(n.key_deposit),poolDeposit:BigInt(n.pool_deposit),priceMem:parseFloat(n.price_mem),priceStep:parseFloat(n.price_step),maxTxExMem:BigInt(n.max_tx_ex_mem),maxTxExSteps:BigInt(n.max_tx_ex_steps),coinsPerUtxoByte:BigInt(n.coins_per_utxo_size),collateralPercentage:parseInt(n.collateral_percent),maxCollateralInputs:parseInt(n.max_collateral_inputs),costModels:n.cost_models}}async getUtxos(n){let t=typeof n=="string"?n:n.type==="Key"?et.from_hex(n.hash).to_bech32("addr_vkh"):dt.from_hex(n.hash).to_bech32("addr_vkh"),e=[],i=1;for(;;){let a=await fetch(`${this.url}/addresses/${t}/utxos?page=${i}`,{headers:{project_id:this.projectId,lucid:fr}}).then(s=>s.json());if(a.error){if(a.status_code===404)return[];throw new Error("Could not fetch UTxOs from Blockfrost. Try again.")}if(e=e.concat(a),a.length<=0)break;i++}return this.blockfrostUtxosToUtxos(e)}async getUtxosWithUnit(n,t){let e=typeof n=="string"?n:n.type==="Key"?et.from_hex(n.hash).to_bech32("addr_vkh"):dt.from_hex(n.hash).to_bech32("addr_vkh"),i=[],a=1;for(;;){let s=await fetch(`${this.url}/addresses/${e}/utxos/${t}?page=${a}`,{headers:{project_id:this.projectId,lucid:fr}}).then(_=>_.json());if(s.error){if(s.status_code===404)return[];throw new Error("Could not fetch UTxOs from Blockfrost. Try again.")}if(i=i.concat(s),s.length<=0)break;a++}return this.blockfrostUtxosToUtxos(i)}async getUtxoByUnit(n){let t=await fetch(`${this.url}/assets/${n}/addresses?count=2`,{headers:{project_id:this.projectId,lucid:fr}}).then(a=>a.json());if(!t||t.error)throw new Error("Unit not found.");if(t.length>1)throw new Error("Unit needs to be an NFT or only held by one address.");let e=t[0].address,i=await this.getUtxosWithUnit(e,n);if(i.length>1)throw new Error("Unit needs to be an NFT or only held by one address.");return i[0]}async getUtxosByOutRef(n){let t=[...new Set(n.map(e=>e.txHash))];return(await Promise.all(t.map(async e=>{let i=await fetch(`${this.url}/txs/${e}/utxos`,{headers:{project_id:this.projectId,lucid:fr}}).then(s=>s.json());if(!i||i.error)return[];let a=i.outputs.map(s=>({...s,tx_hash:e}));return this.blockfrostUtxosToUtxos(a)}))).reduce((e,i)=>e.concat(i),[]).filter(e=>n.some(i=>e.txHash===i.txHash&&e.outputIndex===i.outputIndex))}async getDelegation(n){let t=await fetch(`${this.url}/accounts/${n}`,{headers:{project_id:this.projectId,lucid:fr}}).then(e=>e.json());return!t||t.error?{poolId:null,rewards:0n}:{poolId:t.pool_id||null,rewards:BigInt(t.withdrawable_amount)}}async getDatum(n){let t=await fetch(`${this.url}/scripts/datum/${n}/cbor`,{headers:{project_id:this.projectId,lucid:fr}}).then(e=>e.json()).then(e=>e.cbor);if(!t||t.error)throw new Error(`No datum found for datum hash: ${n}`);return t}awaitTx(n,t=3e3){return new Promise(e=>{let i=setInterval(async()=>{let a=await fetch(`${this.url}/txs/${n}`,{headers:{project_id:this.projectId,lucid:fr}}).then(s=>s.json());if(a&&!a.error)return clearInterval(i),await new Promise(s=>setTimeout(()=>s(1),1e3)),e(!0)},t)})}async submitTx(n){let t=await fetch(`${this.url}/tx/submit`,{method:"POST",headers:{"Content-Type":"application/cbor",project_id:this.projectId,lucid:fr},body:J(n)}).then(e=>e.json());if(!t||t.error)throw(t==null?void 0:t.status_code)===400?new Error(t.message):new Error("Could not submit transaction.");return t}async blockfrostUtxosToUtxos(n){return await Promise.all(n.map(async t=>({txHash:t.tx_hash,outputIndex:t.output_index,assets:Object.fromEntries(t.amount.map(({unit:e,quantity:i})=>[e,BigInt(i)])),address:t.address,datumHash:!t.inline_datum&&t.data_hash||void 0,datum:t.inline_datum||void 0,scriptRef:t.reference_script_hash?await(async()=>{let{type:e}=await fetch(`${this.url}/scripts/${t.reference_script_hash}`,{headers:{project_id:this.projectId,lucid:fr}}).then(a=>a.json());if(e==="Native"||e==="native")throw new Error("Native script ref not implemented!");let{cbor:i}=await fetch(`${this.url}/scripts/${t.reference_script_hash}/cbor`,{headers:{project_id:this.projectId,lucid:fr}}).then(a=>a.json());return{type:e==="plutusV1"?"PlutusV1":"PlutusV2",script:li(i)}})():void 0})))}},fr=nv.version;const l3=["Build","Contracts","Wallets","Transact"],d3={selectedTabIndex:0,wallets:[],contracts:[],addContractError:void 0},Ov=Di({name:"management",initialState:d3,reducers:{selectTab(n,t){n.selectedTabIndex=t.payload},addWallet(n,t){if(t.payload.isCurrentlyConnected)for(let e=0;ee.pkh===t.payload.pkh)||n.wallets.push(t.payload)},removeWallet(n,t){n.wallets.filter(e=>e.address===t.payload)},setConnectedWallet(n,t){for(let e=0;e({...e,address:t.payload[e.address]})),n.wallets=n.wallets.map(e=>({...e,address:t.payload[e.address]}))},addContract(n,t){let e=0;for(let i of n.contracts){const a=i.name===t.payload.name,s=i.script.script===t.payload.script.script;if(a&&s){const _=`Contract already exists as ${i.name} v${i.version}.`;n.addContractError=_;return}i.name===t.payload.name&&i.version>=e&&(e=i.version+1)}n.contracts.unshift({...t.payload,version:e})},removeContract(n,t){const{name:e,version:i}=t.payload;n.contracts=n.contracts.filter(a=>!(a.name===e&&a.version===i))},clearAddContractError(n){n.addContractError=void 0},setAddContractError(n,t){n.addContractError=t.payload}}}),{selectTab:u3,addWallet:_d,removeWallet:fC,setConnectedWallet:Nv,clearWallets:Rv,addContract:Pv,removeContract:p3,clearAddContractError:f3,setAddContractError:cd,updateWalletAndContractAddresses:w3}=Ov.actions,h3=Ov.reducer,Iv=A.createContext({lucid:null,isLucidLoading:!1}),Tv=Zp(),g3=({children:n})=>{const[t,e]=A.useState(null),[i,a]=A.useState(!1),[s,_]=A.useState(""),c=pt(g=>g.settings),d=Xt(),f=A.useMemo(()=>({lucid:t,isLucidLoading:i}),[t,i]);return A.useEffect(()=>{a(!0),pc.new(void 0,"Custom").then(g=>(g.selectWalletFromSeed(Tv),g.wallet.address())).then(g=>{_(g)})},[]),A.useEffect(()=>{!s&&c.providerConfig.kind==="emulator"||(async()=>{a(!0);const g=c.providerConfig.kind==="emulator"?"Custom":c.network;let k;if(c.providerConfig.kind==="emulator"){const m=new Cv([{address:s,assets:{lovelace:20000000000n}}]);k=await pc.new(m,g)}else if(c.providerConfig.kind==="blockfrost")k=await pc.new(new Ev(c.providerConfig.url,c.providerConfig.apiKey),g);else throw Error("not implemented");if(!k)throw Error("could not create lucid");return k})().then(g=>{var k;c.providerConfig.kind==="emulator"&&d(_d({address:s,seed:Tv,pkh:(k=g.utils.getAddressDetails(s).paymentCredential)==null?void 0:k.hash,walletVendor:null,isCurrentlyConnected:!1})),e(g),a(!1)}).catch(g=>{a(!1),console.error(g)})},[s,c.network,c.providerConfig]),w.jsx(Iv.Provider,{value:f,children:n})};function Zr(){return A.useContext(Iv)}const b3={tooltips:[]},Fv=Di({name:"tooltip",initialState:b3,reducers:{showTooltip(n,t){const{id:e,message:i,position:a}=t.payload,s=n.tooltips.findIndex(_=>_.id===e);s!==-1?n.tooltips[s]={id:e,message:i,position:a}:n.tooltips.push({id:e,message:i,position:a})},hideTooltip(n,t){n.tooltips=n.tooltips.filter(e=>e.id!==t.payload)}}}),{showTooltip:y3,hideTooltip:zv}=Fv.actions,m3=Fv.reducer,v3=1500;let Mv=0;function k3(){return Mv++,Mv.toString()}function nf(n,t,e={x:0,y:0},i=()=>{}){var _;const a=Xt(),s=A.useRef(null);t.current&&!((_=t.current)!=null&&_.id)&&(t.current.id=k3()),A.useEffect(()=>{var c,d;if(!n&&s.current)clearTimeout(s.current),a(zv(((c=t.current)==null?void 0:c.id)||"")),i();else if(n&&t.current){s.current!==null&&clearTimeout(s.current);const f=t.current.getBoundingClientRect();a(y3({id:(d=t.current)==null?void 0:d.id,message:n,position:{x:f.left+e.x,y:f.top+e.y}})),s.current=setTimeout(()=>{var g;a(zv(((g=t.current)==null?void 0:g.id)||"")),i()},v3)}return()=>{s.current&&clearTimeout(s.current)}},[n,t])}function Qs(n){if(Array.isArray(n))return n.map(t=>Qs(t));if("constructor"in n&&Array.isArray(n.fields)){const t=n.fields.map(e=>typeof e=="object"&&e!==null?Qs(e):e);return new Ue(n.constructor,t)}else{if("bytes"in n)return n.bytes;if("int"in n)return n.int;throw"map_0"in n?new Error("Map type encountered, operation not supported"):new Error("Unknown type in JSON structure")}}function x3(){const n=A.useRef(null),{isLucidLoading:t,lucid:e}=Zr(),[i,a]=A.useState("aiken"),[s,_]=A.useState(void 0),[c,d]=A.useState(void 0),f=pt(b=>b.project.buildResults),g=pt(b=>b.files.files),k=pt(b=>b.management.addContractError),m=Xt();if(nf(k||"",n,{x:-100,y:-50},()=>{m(f3())}),t||!e)return w.jsx("div",{});const x=e,S=f==null?void 0:f.flatMap(b=>b.validators),j=(S==null?void 0:S.map(b=>b.name))||[],P=g.filter(b=>b.type==="json"),v=P.map(b=>b.name).concat(["None"]);s===void 0&&i==="aiken"&&j.length>0&&_(j[0]),s===void 0&&i==="native"&&v.length>0&&_(v[0]),c===void 0&&v.length>0&&d(v[0]);const y=i==="aiken"&&j.length===0||i==="native"&&v.length===1?"disabled":"";return w.jsxs("div",{className:"add-contract-container",children:[w.jsx("div",{className:"add-contract-header",children:"Add a Contract"}),w.jsxs("div",{className:"add-contract-content",children:[w.jsxs("div",{className:"add-contract-selection-container",children:[w.jsx("div",{className:"input-label",children:"Script Kind "}),w.jsxs("select",{className:"add-contract-select",defaultValue:i,onChange:b=>{a(b.target.value)},children:[w.jsx("option",{value:"aiken",children:"Aiken"}),w.jsx("option",{value:"native",children:"Native Script"})]})]}),w.jsxs("div",{className:"add-contract-selection-container",children:[w.jsx("div",{className:"input-label",children:"Validator "}),i==="aiken"?w.jsx("select",{className:"add-contract-select",onChange:b=>{_(b.target.value)},children:j==null?void 0:j.map((b,F)=>w.jsx("option",{value:b,children:b},b+F))}):w.jsx("select",{className:"add-contract-select",onChange:b=>{_(b.target.value)},children:v==null?void 0:v.map(b=>b==="None"?null:w.jsx("option",{value:b,children:b},b))})]}),w.jsxs("div",{className:"add-contract-selection-container",children:[i==="aiken"?w.jsx("div",{className:"input-label",children:"Params "}):null,i==="aiken"?w.jsx("select",{className:"add-contract-select",onChange:b=>{d(b.target.value)},children:v==null?void 0:v.map(b=>w.jsx("option",{value:b,children:b},b))}):null]})]}),w.jsxs("div",{className:"add-contract-selection-container add-contract-button-container",children:[w.jsx("div",{}),w.jsx("button",{ref:n,className:`add-contract-button button ${y}`,onClick:()=>{if(i==="aiken"){const b=P.find(W=>W.name===c),F=b==null?void 0:b.content,D=(S==null?void 0:S.find(W=>W.name===s))||(S==null?void 0:S[0]);if(!D){console.error(`No known validator ${s}`);return}let U=[];if(F)try{const W=JSON.parse(F);U=Qs(W)}catch(W){return W.message&&W.message.includes("JSON.parse")?m(cd(`Invalid JSON in ${b.name}`)):m(cd(`JSON in ${b.name} cannot be converted to Data`))}const M={type:"PlutusV2",script:li(r3(D.program,U))},$=x.utils.validatorToAddress(M),Y=x.utils.validatorToScriptHash(M);m(Pv({script:M,name:D.name,paramsFileName:(b==null?void 0:b.name)||"None",address:$,scriptHash:Y}))}else if(i==="native"){const b=P.find(D=>D.name===s),F=b==null?void 0:b.content;if(F)try{const D=JSON.parse(F),U=x.utils.nativeScriptFromJson(D),M=x.utils.validatorToAddress(U),$=x.utils.validatorToScriptHash(U);m(Pv({script:U,name:s.split(".")[0],paramsFileName:b==null?void 0:b.name,address:M,scriptHash:$}))}catch(D){return D.message&&D.message.includes("JSON.parse")?m(cd(`Invalid JSON in ${b.name}`)):m(cd(`JSON in ${b.name} is not a valid native script`))}}},children:"Create Contract"})]})]})}function fc({value:n}){const[t,e]=A.useState(!1);let i=null;const a=()=>{navigator.clipboard.writeText(n),e(!0),i&&clearTimeout(i),i=setTimeout(()=>e(!1),1e3)};return w.jsx("span",{title:"Copy",onClick:a,className:"copy-widget",style:{cursor:"pointer"},children:t?"\u2713":"\u{1F4CB}"})}function j3(){const{isLucidLoading:n,lucid:t}=Zr(),e=pt(a=>a.management.contracts),i=Xt();return n||!t?w.jsx("div",{}):w.jsx("div",{className:"management-content-scroll-exclusion-wrapper",children:w.jsxs("div",{className:"management-content management-section-shadow",children:[w.jsx("div",{className:"contracts-heading",children:w.jsx("strong",{children:"Contracts"})}),w.jsx(x3,{}),w.jsx("div",{className:"contracts-container",children:e.map(a=>w.jsxs("div",{className:"contract-container",children:[w.jsxs("div",{className:"contract-header",children:[w.jsx("div",{className:"contract-name",children:a.name}),w.jsxs("div",{className:"contract-version",children:["Version ",a.version]})]}),w.jsx("div",{className:"contract-data-holder",children:w.jsxs("div",{className:"contract-params",children:[w.jsx("div",{className:"contract-params-label",children:"Parameters"}),w.jsx("div",{className:"contract-params-content",children:a.paramsFileName})]})}),w.jsx("div",{className:"contract-data-holder",children:w.jsxs("div",{className:"contract-params",children:[w.jsx("div",{className:"contract-params-label",children:"Address"}),w.jsxs("div",{className:"contract-params-content",children:[Qe(a.address)," ",w.jsx(fc,{value:a.address})]})]})}),w.jsx("div",{className:"contract-data-holder",children:w.jsxs("div",{className:"contract-params",children:[w.jsx("div",{className:"contract-params-label",children:"Script Hash"}),w.jsxs("div",{className:"contract-params-content",children:[Qe(a.scriptHash)," ",w.jsx(fc,{value:a.scriptHash})]})]})}),w.jsx("div",{className:"delete-contract-button-container",children:w.jsx("button",{className:"delete-contract-button button",onClick:()=>i(p3({version:a.version,name:a.name})),children:"Delete"})})]},`${a.name}${a.version}`))})]})})}const Dv=A.createContext(null);function rf(){const n=A.useContext(Dv);if(!n)throw new Error("useWallet must be used within a WalletProvider");return n}function S3({children:n}){var m;const{lucid:t,isLucidLoading:e}=Zr(),i=Xt(),[a,s]=A.useState(null),[_,c]=A.useState(!1),d=pt(x=>x.management.wallets),f=(m=pt(x=>x.management.wallets).filter(x=>x.isCurrentlyConnected).map(x=>x.walletVendor))==null?void 0:m[0],g=A.useCallback(()=>{c(!0)},[c]),k=A.useMemo(()=>({walletApi:a,onAccountChange:g}),[a,g]);return A.useEffect(()=>{async function x(){if(f&&!a){const S=await window.cardano[f].enable();s(S)}}x()},[f,a]),A.useEffect(()=>{(async()=>{var P;if(!_||!t||!a||!f)return;c(!1),await window.cardano[f].enable(),t.selectWallet(a);const x=await t.wallet.address(),S=(P=t.utils.getAddressDetails(x).paymentCredential)==null?void 0:P.hash,j=d.find(v=>v.pkh===S);i(j?Nv(S):_d({address:x,pkh:S,seed:null,isCurrentlyConnected:!0,walletVendor:f}))})()},[_,t===void 0,f,a]),w.jsx(Dv.Provider,{value:k,children:n})}function Av({utxo:n,className:t,withCopy:e=!0}){return w.jsxs("div",{className:`utxo-container ${t||""}`,children:[w.jsxs("div",{className:"txid",children:[`${Qe(n.txHash,5,5)}@${n.outputIndex}`," ",w.jsx("span",{children:e?w.jsx(fc,{value:n.txHash}):null})]}),w.jsx("div",{className:"asset-container-container",children:Object.keys(n.assets).map(i=>w.jsxs("div",{className:"asset-container",children:[w.jsxs("div",{className:"asset-label",children:[i==="lovelace"?"lovelace":Ko(i.substring(56))," "]}),w.jsx("div",{className:"asset-value",children:n.assets[i].toString()})]},i))})]})}function C3({wallet:n}){const{walletApi:t,onAccountChange:e}=rf(),[i,a]=A.useState(void 0),[s,_]=A.useState(void 0),{lucid:c,isLucidLoading:d}=Zr();if(A.useEffect(()=>{!c||d||(async()=>{try{if(n.seed!==null){c.selectWalletFromSeed(n.seed);const k=await c.wallet.getUtxos();a(k)}else if(t&&n.isCurrentlyConnected){c.selectWallet(t);try{const k=await c.wallet.getUtxos();a(k)}catch(k){k.message.includes("account changed")?e():_(k.message)}}else if(!n.isCurrentlyConnected){const k=await c.provider.getUtxos(n.address);a(k)}}catch(k){_(k.message)}})()},[n.isCurrentlyConnected,c,d,t]),!c||d)return;const f=Qe(n.address),g=n.pkh;return w.jsxs("div",{className:"wallet-utxos-container",children:[w.jsxs("div",{className:"wallet-utxos-address",children:[f," ",w.jsx(fc,{value:n.address})," ",n.isCurrentlyConnected?w.jsx("span",{title:"Connected",children:"\u26A1"}):null]}),w.jsxs("div",{className:"wallet-utxos-pkh",children:[w.jsx("div",{className:"input-label",children:"pkh"}),w.jsxs("div",{children:[Qe(g,4,4)," ",w.jsx(fc,{value:g})]})]}),s===void 0?w.jsx("div",{className:"wallet-utxos",children:i!=null&&i.length?i==null?void 0:i.map(k=>w.jsx(Av,{utxo:k},k.txHash+k.outputIndex)):w.jsx("div",{children:"No UTxOs at this address."})}):w.jsx("div",{children:"utxoError"})]},n.address)}const E3=["eternl","nami","flint","typhon","yoroi","lace","vespr"],af=Object.keys(window.cardano).filter(n=>E3.includes(n.toLowerCase()));function O3(){const{lucid:n}=Zr(),t=pt(x=>x.settings.providerConfig.kind),e=pt(x=>x.management.wallets),[i,a]=A.useState(""),[s,_]=A.useState(!1);A.useState(!1);const c=Xt(),d=e.find(x=>x.isCurrentlyConnected);!i&&af.length>0&&a(af[0]);const f=w.jsx("button",{className:"button",onClick:()=>{if(!n)return;const x=n,S=Zp();x.selectWalletFromSeed(S),x.wallet.address().then(j=>{var v;const P=(v=x.utils.getAddressDetails(j).paymentCredential)==null?void 0:v.hash;c(_d({seed:S,address:j,pkh:P,isCurrentlyConnected:!1,walletVendor:null}))})},children:"Generate New Wallet"}),g=w.jsx("button",{className:`button ${s?"disabled":""}`,onClick:()=>{if(i===""){console.error("No wallet selected");return}const x=window.cardano[i];if(!x){console.error("Selected wallet not available in environment");return}if(!n){console.error("Wallet connect attempt before loading finished");return}_(!0);const S=n;x.enable().then(j=>(S==null||S.selectWallet(j),S.wallet.address())).then(j=>{var v;const P=(v=S.utils.getAddressDetails(j).paymentCredential)==null?void 0:v.hash;c(_d({seed:null,walletVendor:i,address:j,pkh:P,isCurrentlyConnected:!0}))}).finally(()=>{_(!1)})},children:"Connect Wallet"}),k=w.jsx("button",{className:"button",onClick:()=>{c(Nv(""))},children:"Disconnect Wallet"}),m=w.jsx("select",{className:"select",value:i,onChange:x=>{a(x.target.value)},children:af.map(x=>w.jsx("option",{value:x,children:x},x))});return w.jsx("div",{className:"management-content-scroll-exclusion-wrapper",children:w.jsxs("div",{className:"management-content management-section-shadow",children:[w.jsx("div",{className:"management-section-heading",children:w.jsx("strong",{children:"Wallets"})}),w.jsxs("div",{className:"wallet-buttons",children:[t==="emulator"||d?null:m,t==="emulator"?f:d?null:g,d?k:null]}),e.map(x=>w.jsx(C3,{wallet:x},x.address))]})})}const N3={addSpendError:void 0,spends:[],mints:[],payments:[],extraSigners:[],validity:{from:"",to:""},metadataFilename:"None",transactionHistory:[],transactionSubmissionState:"idle",transactionSubmissionError:null},Bv=Di({name:"transact",initialState:N3,reducers:{addSpend(n,t){n.spends=[...n.spends,t.payload]},removeSpend(n,t){n.spends.splice(t.payload,1)},addMint(n,t){n.mints=[...n.mints,t.payload]},removeMint(n,t){n.mints.splice(t.payload,1)},addPayment(n,t){n.payments=[...n.payments,t.payload]},removePayment(n,t){n.payments.splice(t.payload,1)},setExtraSigners(n,t){n.extraSigners=t.payload},setValidityInterval(n,t){n.validity=t.payload},setMetadata(n,t){n.metadataFilename=t.payload},setAddSpendError(n,t){n.addSpendError=t.payload},onSuccessfulTransaction(n,t){n.transactionHistory.push(t.payload),n.mints=[],n.spends=[],n.payments=[],n.extraSigners=[],n.validity.from="",n.validity.to="",n.metadataFilename="None",n.transactionSubmissionState="completed",n.transactionSubmissionError=null},setTransactionSubmissionState(n,t){n.transactionSubmissionState=t.payload},setTransactionSubmissionError(n,t){n.transactionSubmissionError=t.payload,n.transactionSubmissionState="failed"},clearAddSpendError(n){n.addSpendError=void 0}}}),{setAddSpendError:Uv,clearAddSpendError:R3,addSpend:P3,removeSpend:I3,addMint:T3,removeMint:F3,addPayment:z3,removePayment:M3,setExtraSigners:D3,setValidityInterval:Lv,setMetadata:A3,onSuccessfulTransaction:B3,setTransactionSubmissionState:sf,setTransactionSubmissionError:U3}=Bv.actions,L3=Bv.reducer;function $3(n){return{...n,assets:Object.fromEntries(Object.entries(n.assets).map(([t,e])=>[t,e.toString()]))}}function H3(n){return{...n,assets:Object.fromEntries(Object.entries(n.assets).map(([t,e])=>[t,BigInt(e)]))}}function ld(n){return Object.fromEntries(Object.entries(n).map(([t,e])=>[t,BigInt(e)]))}function W3(n){return n.map($3)}function $v(n){return n.map(H3)}function V3(){var Qt,ue;const n=pt(I=>I.management.wallets),t=pt(I=>I.management.contracts),e=pt(I=>I.files.files),i=pt(I=>I.transact.addSpendError),a=pt(I=>I.transact.spends),s=pt(I=>I.transact.transactionHistory).length,[_,c]=A.useState([]),[d,f]=A.useState("None"),{walletApi:g,onAccountChange:k}=rf(),m=Xt(),x=A.useRef(null);nf(i||"",x,{x:0,y:0},()=>m(R3()));const{isLucidLoading:S,lucid:j}=Zr(),[P,v]=A.useState([]),[y,b]=A.useState(n.length>0?"wallet":t.length>0?"contract":"wallet"),[F,D]=A.useState(y==="wallet"&&n.length?((Qt=n.find(I=>I.isCurrentlyConnected))==null?void 0:Qt.address)||n[0].address:y==="contract"&&t.length?t[0].address:""),U=a.reduce((I,L)=>I.concat(L.utxos.map(Q=>Q.txHash+Q.outputIndex)),[]),M=P.filter(I=>!U.includes(I.txHash+I.outputIndex));y==="wallet"&&n.length===0&&t.length>0&&b("contract");const $=(ue=n.find(I=>I.isCurrentlyConnected))==null?void 0:ue.pkh;A.useEffect(()=>{if(S||F==="")return;const I=j;if(y==="wallet"){const L=n.find(Q=>Q.address===F);if(!L)throw Error(`Expected to be able to find wallet with address ${F}`);L.seed?(I.selectWalletFromSeed(L.seed),I.wallet.getUtxos().then(Q=>{v(Q)}).catch(console.error)):L.isCurrentlyConnected&&g!==null?(I.selectWallet(g),I.wallet.getUtxos().then(Q=>{v(Q)}).catch(Q=>{Q.message.includes("account changed")?k():console.error(Q.message)})):I.provider.getUtxos(L.address).then(Q=>{v(Q)}).catch(console.error)}else if(y==="contract"){const L=t.find(Q=>Q.address===F);if(!L)throw Error(`Expected to be able to find contract with address ${F}`);L!=null&&L.address&&I.provider.getUtxos(L==null?void 0:L.address).then(Q=>{v(Q)})}},[S,y,F,s,$]);const Y=y==="wallet"?n.map(I=>I.address):y==="contract"?t.map(I=>I.address):[],W=e.filter(I=>I.name.endsWith(".json")).map(I=>I.name).concat("None"),St=w.jsx("select",{className:"utxo-source-select",value:F,onChange:I=>{n.find(L=>L.address===I.target.value)&&D(I.target.value)},children:Y.map(I=>w.jsx("option",{value:I,children:Qe(I)},I))});return S?w.jsx("div",{children:"Loading lol"}):w.jsxs("div",{className:"utxo-selection-container",children:[w.jsxs("div",{className:"utxo-selection-container-options",children:[w.jsxs("div",{className:"utxo-source-selection-container",children:[w.jsx("div",{className:"input-label",children:"Source"}),w.jsxs("select",{className:"utxo-source-select",value:y,onChange:I=>{b(I.target.value),f("None"),v([]),I.target.value==="wallet"&&n.length>0?D(n[0].address):I.target.value==="contract"&&t.length>0?D(t[0].address):D("")},children:[w.jsx("option",{value:"wallet",children:"Wallet"}),w.jsx("option",{value:"contract",children:"Contract"})]})]}),w.jsxs("div",{className:"utxo-address-selection-container",children:[w.jsx("div",{className:"input-label",children:"Address"}),St]}),y==="wallet"?null:w.jsxs("div",{className:"utxo-redeemer-selection-container",children:[w.jsx("div",{className:"input-label",children:"Redeemer"}),w.jsx("select",{className:"utxo-source-select",value:d,onChange:I=>{f(I.target.value)},children:W.map(I=>w.jsx("option",{value:I,children:I},I))})]}),w.jsx("div",{className:"utxo-selection-submit-container",children:w.jsx("button",{ref:x,className:`selection-submit-button button ${_.length===0?"disabled":""}`,disabled:_.length===0,onClick:()=>{let I=null;if(d&&d!=="None"){I=e.find(L=>L.name===d);try{const L=JSON.parse(I.content);Qs(L)}catch(L){return L.message&&L.message.includes("JSON.parse")?m(Uv(`Invalid JSON in ${I==null?void 0:I.name}`)):m(Uv(`JSON in ${I==null?void 0:I.name} cannot be converted to Data`))}}m(P3({utxos:W3(_),redeemerFileName:(I==null?void 0:I.name)||"None",source:y})),c([])},children:"Add Spend"})})]}),w.jsxs("div",{className:"utxo-utxo-selection-container",children:[M.length===0?w.jsx("div",{style:{fontSize:"13px"},children:"\u26A0 No unused UTxOs found at selected address."}):null,M.map(I=>{const L=!!_.find(Ct=>Hv(Ct,I)),Q=L?"selected-utxo-border":"";return w.jsxs("div",{className:"utxo-wrapper-with-checkbox",children:[w.jsx("input",{className:"utxo-selection-checkbox",type:"checkbox",checked:L,onChange:Ct=>{Ct.target.checked?c([..._,I]):c(_.filter(K=>!Hv(I,K)))}}),w.jsx(Av,{className:Q,utxo:I,withCopy:!1},I.txHash+I.outputIndex)]},I.txHash+I.outputIndex)})]})]})}function Hv(n,t){return n.txHash===t.txHash&&n.outputIndex===t.outputIndex}function K3(){const n=pt(e=>e.transact.spends),t=Xt();return w.jsxs("div",{className:"transact-section",children:[w.jsx("div",{className:"transact-spend-header",children:"UTxO Selection"}),w.jsx("div",{className:"transact-spend-message-container",children:n.length===0?w.jsxs("div",{children:[w.jsx("span",{style:{color:"#ff9353"},children:"\u26A0"})," Choose at least one UTxO to spend."]}):w.jsx("div",{children:`${n.length} spend(s) selected.`})}),w.jsx("div",{className:"transact-spends-container",children:n.map((e,i)=>w.jsxs("div",{className:"transact-spend-container",children:[w.jsxs("div",{className:"transact-spend-address-and-close",children:[w.jsx("div",{className:"transact-spend-address",children:Qe(e.utxos[0].address)}),w.jsx("div",{className:"transact-spend-close",children:w.jsx("button",{className:"button",style:{fontSize:12},onClick:()=>{t(I3(i))},children:"Remove"})})]}),w.jsxs("div",{className:"transact-spend-source",children:[w.jsx("div",{className:"input-label",children:"Source"}),w.jsx("div",{className:"transact-spend-source-text",children:` ${e.source?e.source.charAt(0).toUpperCase()+e.source.slice(1):"Custom"}`})]}),w.jsxs("div",{className:"transact-spend-redeemer",children:[w.jsx("div",{className:"input-label",children:"Redeemer"}),w.jsx("div",{className:"transact-spend-redeemer-filename",children:` ${e.redeemerFileName||"None"}`})]}),w.jsxs("div",{className:"transact-spend-utxos",children:[w.jsx("div",{className:"input-label",children:"UTxOs"}),w.jsx("div",{className:"transact-spend-utxo-display",children:e.utxos.map(a=>w.jsx("div",{children:`${Qe(a.txHash,4,6)}@${a.outputIndex}`},a.txHash+a.outputIndex))})]})]},e.utxos[0].txHash+e.utxos[0].outputIndex))}),w.jsx(V3,{})]})}function q3(){const n=Xt(),t=pt(v=>v.management.contracts),e=pt(v=>v.files.files),i=pt(v=>v.transact.mints),[a,s]=A.useState(()=>{if(t.length>0&&i.length===0)return t[0].scriptHash}),[_,c]=A.useState(""),[d,f]=A.useState(0n),[g,k]=A.useState("None"),[m,x]=A.useState({});Zr();const S=!!a&&Object.keys(m).length>0;a===void 0&&t.length>0&&s(t[0].scriptHash);const j=e.filter(v=>v.name.endsWith(".json")).map(v=>v.name).concat("None"),P=d>0&&_;return w.jsxs("div",{className:"transact-section transact-section-mint",children:[w.jsx("div",{className:"transact-spend-header",children:"Mint"}),w.jsx("div",{className:"transact-spend-message-container",children:`Minting ${i.length} set(s) of assets.`}),w.jsx("div",{className:"transact-mints-container",children:i.map((v,y)=>w.jsxs("div",{className:"transact-mint-container",children:[w.jsxs("div",{className:"transact-mint-policy-and-close",children:[w.jsx("div",{className:"transact-mint-policy",children:Qe(v.policyId,4,6)}),w.jsx("div",{className:"transact-mint-close",children:w.jsx("button",{className:"button",style:{fontSize:12},onClick:()=>{n(F3(y))},children:"Remove"})})]}),w.jsxs("div",{className:"transact-spend-source",children:[w.jsx("div",{className:"input-label",children:"Redeemer"}),w.jsx("div",{className:"transact-spend-source-text",children:v.redeemerFileName})]}),w.jsx("div",{className:"transact-mint-assets-container",children:"Assets:"}),w.jsx("div",{className:"transact-mint-body-container",children:Object.keys(v.assets).map(b=>w.jsx("div",{children:w.jsxs("div",{className:"transact-mint-source",children:[w.jsx("div",{className:"input-label",children:Ko(b.substring(56))}),w.jsx("div",{className:"transact-mint-source-text",children:v.assets[b]})]})},b))})]},y))}),w.jsxs("div",{className:"mint-add-container",children:[w.jsxs("div",{className:"mint-policy-selection-container",children:[w.jsx("div",{className:"input-label",children:"Policy ID"}),w.jsx("select",{className:"mint-source-select",value:a,onChange:v=>[s(v.target.value)],children:t.map(v=>w.jsx("option",{value:v.scriptHash,children:Qe(v.scriptHash,4,6)},v.scriptHash))})]}),w.jsxs("div",{className:"utxo-redeemer-selection-container",children:[w.jsx("div",{className:"input-label",children:"Redeemer"}),w.jsx("select",{className:"utxo-source-select",value:g,onChange:v=>{k(v.target.value)},children:j.map(v=>w.jsx("option",{value:v,children:v},v))})]}),w.jsx("div",{className:"add-mint-button-container",children:w.jsx("button",{disabled:!S,className:`add-mint-button button ${S?"":"disabled"}`,onClick:()=>{n(T3({policyId:a,assets:m,redeemerFileName:g})),f(0n),c(""),k("None"),x({})},children:"Add Mint"})})]}),w.jsxs("div",{className:"payment-asset-add",children:[w.jsxs("div",{className:"mint-asset-selection-container",children:[w.jsx("div",{className:"input-label",children:"Asset Name"}),w.jsx("input",{className:"text-input",type:"text",value:_,onChange:v=>{c(v.target.value)}})]}),w.jsxs("div",{className:"selection-container",children:[w.jsx("div",{className:"input-label",children:"Quantity"}),w.jsx("input",{type:"number",className:"text-input",value:d.toString(),onChange:v=>{try{const y=parseInt(v.target.value);f(y>0?BigInt(y):0n)}catch{f(0n)}}})]}),w.jsx("div",{className:"add-mint-button-container",children:w.jsx("button",{disabled:!P,className:`add-mint-button button-secondary button ${P?"":"disabled"}`,onClick:()=>{const v=a+kv(_);m[v]?x({...m,[v]:(d+BigInt(m[v])).toString()}):x({...m,[v]:d.toString()})},children:"Include Asset"})})]}),w.jsx("div",{className:"payments-added-assets-container",children:Object.keys(m).length===0?w.jsx("div",{className:"added-assets-empty",children:"To add a payment, add at least one asset."}):Object.keys(m).map(v=>w.jsxs("div",{className:"added-asset-container",children:[w.jsx("div",{className:"added-asset-name",children:Ko(v.substring(56))}),w.jsx("div",{className:"added-asset-quantity",children:m[v]}),w.jsx("div",{className:"added-asset-remove",onClick:()=>{x(({[v]:y,...b})=>b)},children:"\u274C"})]},v))})]})}function Q3(){const n=Xt(),t=pt(I=>I.transact.payments),e=pt(I=>I.transact.spends),i=pt(I=>I.transact.mints),a=pt(I=>I.files.files),{wallets:s,contracts:_}=pt(I=>I.management),c=_.map(I=>I.address).concat(s.map(I=>I.address)),[d,f]=A.useState(c[0]||""),[g,k]=A.useState("lovelace"),[m,x]=A.useState(0n),[S,j]=A.useState("None"),[P,v]=A.useState({}),{isLucidLoading:y,lucid:b}=Zr(),F=b,D=(()=>{try{return F.utils.getAddressDetails(d),!0}catch{return!1}})(),U=i.reduce((I,L)=>(Object.entries(L.assets).forEach(([Q,Ct])=>{I[Q]?I[Q]=(BigInt(I[Q])+BigInt(Ct)).toString():I[Q]=Ct.toString()}),I),{}),M=e.flatMap(I=>I.utxos).reduce((I,L)=>(Object.entries(L.assets).forEach(([Q,Ct])=>{I[Q]?I[Q]=(BigInt(I[Q])+BigInt(Ct)).toString():I[Q]=Ct.toString()}),I),U),$=(()=>{const I=t.reduce((L,Q)=>(Object.keys(Q.assets).forEach(Ct=>{L[Ct]||(L[Ct]="0"),L[Ct]=(BigInt(L[Ct])+BigInt(Q.assets[Ct])).toString()}),L),{});return Object.keys(I).every(L=>BigInt(M[L]||"0")>=BigInt(I[L]))})(),Y=Object.keys(M).length>0&&!Object.keys(M).includes(g)?"lovelace":g,W=m>0&&Y,St=Object.keys(P).length>0,Qt=D&&St,ue=a.filter(I=>I.type==="json").map(I=>I.name).concat(["None"]);return w.jsxs("div",{className:"transact-section transact-section-payment",children:[w.jsx("div",{className:"transact-spend-header",children:"Payment"}),w.jsx("div",{className:"transact-payment-message-container",children:t.length===0?w.jsxs("div",{children:[w.jsx("span",{style:{color:"#ff9353"},children:"\u26A0"})," Make at least one payment."]}):w.jsx("div",{children:`Making ${t.length} payment(s).`})}),w.jsx("div",{className:"transact-payment-error-container",children:$?"":"You cannot afford the transaction."}),w.jsx("div",{className:"transact-payments-container",children:t.map((I,L)=>w.jsxs("div",{className:"payment-container",children:[w.jsxs("div",{className:"transact-mint-policy-and-close",children:[w.jsx("div",{className:"transact-mint-policy",children:Qe(I.toAddress)}),w.jsx("div",{className:"transact-mint-close",children:w.jsx("button",{className:"button",style:{fontSize:12},onClick:()=>{n(M3(L))},children:"Remove"})})]}),w.jsxs("div",{className:"transact-mint-body-container",children:[w.jsxs("div",{className:"transact-spend-source",children:[w.jsx("div",{className:"input-label",children:"Datum"}),w.jsx("div",{className:"transact-spend-source-text",children:I.datumFileName})]}),w.jsxs("div",{className:"transact-spend-source",children:[w.jsx("div",{className:"input-label",children:"Assets"}),w.jsx("div",{className:"transact-spend-source-text",children:Object.keys(I.assets).map(Q=>w.jsxs("div",{children:[Q==="lovelace"?Q:Ko(Q.substring(56))," (",I.assets[Q],")"]},Q))})]})]})]},L))}),w.jsxs("div",{className:"payment-add-container",children:[w.jsxs("div",{className:"selection-container",children:[w.jsx("div",{className:"input-label",children:"To Address"}),w.jsx("select",{value:d,onChange:I=>f(I.target.value),children:c.map(I=>w.jsx("option",{value:I,children:`${_.find(L=>L.address===I)?"(Script) ":"(Wallet) "}${Qe(I)}`},I))})]}),w.jsxs("div",{className:"selection-container",children:[w.jsx("div",{className:"input-label",children:"Datum"}),w.jsx("select",{className:"select",value:S,onChange:I=>j(I.target.value),children:ue.map(I=>w.jsx("option",{value:I,children:I},I))})]}),w.jsx("div",{className:"add-mint-button-container",children:w.jsx("button",{disabled:!Qt,className:`add-mint-button button ${Qt?"":"disabled"}`,onClick:()=>{n(z3({datumFileName:S,assets:P,toAddress:d})),x(0n),j("None"),v({})},children:"Add Payment"})})]}),w.jsxs("div",{className:"payment-asset-add",children:[w.jsxs("div",{className:"selection-container",children:[w.jsx("div",{className:"input-label",children:"Asset"}),w.jsx("select",{value:Y,className:"select",onChange:I=>{k(I.target.value)},children:Object.keys(M).map(I=>w.jsx("option",{value:I,children:Qe(I.substring(0,55),4,6)+Ko(I.substring(56))},I))})]}),w.jsxs("div",{className:"selection-container",children:[w.jsx("div",{className:"input-label",children:"Quantity"}),w.jsx("input",{type:"number",className:"text-input",value:m.toString(),onChange:I=>{try{const L=parseInt(I.target.value);x(L>0?BigInt(L):0n)}catch{x(0n)}}})]}),w.jsx("div",{className:"add-mint-button-container",children:w.jsx("button",{disabled:!W,className:`add-mint-button button-secondary button ${W?"":"disabled"}`,onClick:()=>{P[Y]?v({...P,[Y]:(m+BigInt(P[Y])).toString()}):v({...P,[Y]:m.toString()})},children:"Include Asset"})})]}),w.jsx("div",{className:"payments-added-assets-container",children:Object.keys(P).length===0?w.jsx("div",{className:"added-assets-empty",children:"To add a payment, add at least one asset."}):Object.keys(P).map(I=>w.jsxs("div",{className:"added-asset-container",children:[w.jsx("div",{className:"added-asset-name",children:I==="lovelace"?I:Ko(I.substring(56))}),w.jsx("div",{className:"added-asset-quantity",children:P[I]}),w.jsx("div",{className:"added-asset-remove",onClick:()=>{v(({[I]:L,...Q})=>Q)},children:"\u274C"})]},I))})]})}function J3(){const n=Xt(),t=pt(c=>c.management.wallets),e=pt(c=>c.files.files),i=pt(c=>c.transact.extraSigners),a=pt(c=>c.transact.validity),s=pt(c=>c.transact.metadataFilename),_=["None"].concat(e.filter(c=>c.type==="json").map(c=>c.name));return w.jsxs("div",{className:"transact-section transact-section-extra",children:[w.jsx("div",{className:"transact-spend-header",children:"Extras"}),w.jsxs("div",{className:"transact-extras-container",children:[w.jsxs("div",{className:"extra-signers-container",children:[w.jsxs("div",{className:"input-label",children:["Extra Signers",w.jsx("span",{style:{fontWeight:"normal",fontSize:10},children:" (Ctrl / Cmd Click to remove)"})]}),w.jsx("div",{className:"extra-signers-input-container",children:w.jsx("select",{multiple:!0,className:"select select-multiple",value:i,onChange:c=>{const d=c.target.options,f=[];for(let g=0,k=d.length;gw.jsx("option",{value:c.address,children:Qe(c.address)},c.address))})})]}),w.jsxs("div",{className:"validity-container",children:[w.jsx("div",{className:"input-label",children:"Valid From"}),w.jsx("input",{type:"datetime-local",onChange:c=>{n(Lv({...a,from:c.target.value}))}})]}),w.jsxs("div",{className:"validity-container",children:[w.jsx("div",{className:"input-label",children:"Valid To"}),w.jsx("input",{type:"datetime-local",onChange:c=>{n(Lv({...a,to:c.target.value}))}})]}),w.jsxs("div",{className:"validity-container",children:[w.jsx("div",{className:"input-label",children:"Metadata"}),w.jsx("select",{value:s,onChange:c=>{n(A3(c.target.value))},children:_.map(c=>w.jsx("option",{value:c,children:c},c))})]})]})]})}function X3(){const n=pt(P=>P.transact),t=pt(P=>P.files.files),{contracts:e,wallets:i}=pt(P=>P.management),{mints:a,spends:s,payments:_}=n,{walletApi:c}=rf(),d=Xt(),{isLucidLoading:f,lucid:g}=Zr(),k=g,m=s.length!==0,x=_.length!==0,S=[];m||S.push(w.jsxs("div",{children:[w.jsx("span",{style:{color:"#ff9353"},children:"\u26A0"})," Choose at least one UTxO to spend."]},"atLeastOneInput")),x||S.push(w.jsxs("div",{children:[w.jsx("span",{style:{color:"#ff9353"},children:"\u26A0"})," Make at least one payment."]},"atLeastOnePayment")),Y3(a,s,_)||S.push(w.jsxs("div",{children:[w.jsx("span",{style:{color:"#ff9353"},children:"\u26A0"})," Insufficient inputs to fund payments."]},"bagTooSmall"));const j=S.length>0;return!j&&["failed","idle","completed"].includes(n.transactionSubmissionState)&&S.push(w.jsx("div",{children:"\u2714\uFE0F Ready to submit."},"readyToSubmit")),n.transactionSubmissionState==="building"&&S.push(w.jsx("div",{children:"\u{1F527} Building transaction..."},"building")),n.transactionSubmissionState==="submitting"?S.push(w.jsx("div",{children:"\u27F3 Submitting transaction..."},"building")):n.transactionSubmissionState==="submitted"?S.push(w.jsx("div",{children:"\u27F3 Awaiting confirmation..."},"submitted")):n.transactionSubmissionState==="completed"?S.push(w.jsx("div",{children:"\u2714\uFE0F Last transaction was successful!"},"completed")):n.transactionSubmissionState==="failed"&&S.push(w.jsxs("div",{children:["\u274C Transaction failed!",w.jsx("p",{children:n.transactionSubmissionError})]},"failed")),w.jsxs("div",{className:"transact-submit",children:[w.jsxs("div",{className:"transact-feedback-display",children:[w.jsx("div",{className:"transact-feedback-heading",children:"Submission"}),S]}),w.jsx("div",{className:"transact-submit-button-container",children:w.jsx("button",{disabled:j,className:`button submit-transaction-button ${j?"disabled":""}`,onClick:()=>{d(sf("building")),G3(k,n,t,e,i,c).then(P=>(d(sf("submitting")),P.submit())).then(P=>{if(d(sf("submitted")),k.network==="Custom")k.provider.awaitTx(P);else return Promise.resolve()}).then(()=>{d(B3(n))}).catch(P=>{d(U3(P.message))})},children:"Submit Transaction"})})]})}async function G3(n,t,e,i,a,s){const{mints:_,spends:c,payments:d,extraSigners:f,validity:g,metadataFilename:k}=t,m=n.newTx();for(const j of c){const P=e.find(b=>b.name===j.redeemerFileName),v=j.redeemerFileName&&j.redeemerFileName!=="None";if(v&&!P)throw Error(`Could not find ${j.redeemerFileName} to build redeemer`);if(j.source==="contract"){const b=j.utxos[0].address,F=i.find(D=>D.address===b);if(!F)throw Error(`Could not find script address ${b} in contracts.`);m.attachSpendingValidator(F.script)}let y;if(v&&P)try{const b=JSON.parse(P.content);y=Qs(b)}catch(b){throw b.message&&b.message.includes("JSON.parse")?Error(`Invalid JSON in ${P.name}`):Error(`JSON in ${P.name} cannot be converted to Data`)}y?m.collectFrom($v(j.utxos),ci.to(y)):m.collectFrom($v(j.utxos))}for(const j of _){const P=e.find(F=>F.name===j.redeemerFileName),v=j.redeemerFileName&&j.redeemerFileName!=="None";if(v&&!P)throw Error(`Could not find ${j.redeemerFileName} to build redeemer`);const y=i.find(F=>F.scriptHash===j.policyId);if(!y)throw Error(`Could not find script address ${j.policyId} in contracts`);m.attachMintingPolicy(y.script);let b;if(v&&P)try{const F=JSON.parse(P.content);b=Qs(F)}catch(F){throw F.message&&F.message.includes("JSON.parse")?Error(`Invalid JSON in ${P.name}`):Error(`JSON in ${P.name} cannot be converted to Data`)}b?m.mintAssets(ld(j.assets),ci.to(b)):m.mintAssets(ld(j.assets))}for(const j of d){const P=e.find(b=>b.name===j.datumFileName),v=j.datumFileName&&j.datumFileName!=="None";if(v&&!P)throw Error(`Could not find ${j.datumFileName} to build datum`);let y;if(v&&P)try{const b=JSON.parse(P.content);y=Qs(b)}catch(b){throw b.message&&b.message.includes("JSON.parse")?Error(`Invalid JSON in ${P.name}`):Error(`JSON in ${P.name} cannot be converted to Data`)}y?m.payToAddressWithData(j.toAddress,ci.to(y),ld(j.assets)):m.payToAddress(j.toAddress,ld(j.assets))}for(const j of f)m.addSigner(j);if(g.from&&m.validFrom(new Date(g.from).valueOf()),g.to&&m.validTo(new Date(g.to).valueOf()),k&&k!=="None"){const j=e.find(v=>v.name===k);if(!j)throw Error(`Could not find metadata file ${k}`);let P;try{P=JSON.parse(j.content)}catch{throw Error(`Invalid JSON in metadata file ${P}`)}for(const v of Object.keys(P))try{const y=parseInt(v);m.attachMetadata(y,P[v])}catch{throw Error(`Expected numeric label key in metadata, instead received key ${v}`)}}const x=await m.complete(),S=c.filter(j=>j.source==="wallet").map(j=>j.utxos[0].address);for(const j of f){if(S.includes(j))continue;const P=a.find(v=>v.address===j);if(!P)throw Error(`Could not find wallet for address ${j}`);if(P.seed)n.selectWalletFromSeed(P.seed);else if(s)n.selectWallet(s);else throw Error(`Unable to select wallet for signature for address ${j}`);x.partialSign()}for(const j of S){const P=a.find(v=>v.address===j);if(!P)throw Error(`Could not find wallet for adress ${j}`);if(P.seed)n.selectWalletFromSeed(P.seed);else if(s)n.selectWallet(s);else throw Error(`Unable to select wallet for signature for address ${j}`);await x.partialSign()}return await x.complete()}function Y3(n,t,e){const i=n.reduce((s,_)=>(Object.entries(_.assets).forEach(([c,d])=>{s[c]?s[c]=(BigInt(s[c])+BigInt(d)).toString():s[c]=d.toString()}),s),{}),a=t.flatMap(s=>s.utxos).reduce((s,_)=>(Object.entries(_.assets).forEach(([c,d])=>{s[c]?s[c]=(BigInt(s[c])+BigInt(d)).toString():s[c]=d.toString()}),s),i);return(()=>{const s=e.reduce((_,c)=>(Object.keys(c.assets).forEach(d=>{_[d]||(_[d]="0"),_[d]=(BigInt(_[d])+BigInt(c.assets[d])).toString()}),_),{});return Object.keys(s).every(_=>BigInt(a[_]||"0")>=BigInt(s[_]))})()}function Z3(){const{isLucidLoading:n,lucid:t}=Zr();return n||!t?w.jsx("div",{}):w.jsx("div",{className:"management-content-scroll-exclusion-wrapper",children:w.jsxs("div",{className:"management-content management-section-shadow",children:[w.jsx("div",{className:"management-section-heading",children:w.jsx("strong",{children:"Transact"})}),w.jsx(K3,{}),w.jsx(q3,{}),w.jsx(Q3,{}),w.jsx(J3,{}),w.jsx(X3,{})]})})}function tC(){const n=pt(t=>t.management);return(()=>{if(n.selectedTabIndex===0)return w.jsx(Cj,{});if(n.selectedTabIndex===1)return w.jsx(j3,{});if(n.selectedTabIndex===2)return w.jsx(O3,{});if(n.selectedTabIndex===3)return w.jsx(Z3,{})})()}function eC(){const n=pt(a=>a.files),t=Xt(),e=A.useRef(null),i=a=>{a.preventDefault(),e.current&&(e.current.scrollLeft+=a.deltaY*2)};return w.jsx("div",{className:"editor-tab-container",ref:e,onWheel:i,children:n.openFileIndices.map(a=>{const s=n.files[a],{name:_,extension:c}=Ib(s.name),d=n.currentFileFocusedInEditorIndex===a?"highlight-open-focused-tab":"";return w.jsx("div",{className:`editor-tab ${d}`,onMouseUp:f=>{f.preventDefault(),f.button===1&&t(_j(a))},onMouseDown:f=>{f.preventDefault(),f.button===0?t(Eb(a)):f.button===1&&t(Ob(a))},onMouseLeave:()=>{n.pendingCloseFileIndex===a&&t(Ob(-1))},children:w.jsxs("div",{className:"editor-tab-label unselectable",children:[w.jsx("span",{className:"filename-start",children:_}),w.jsx("span",{className:"filename-end",children:c})]})},a)})})}const nC={visible:!1,options:[],position:{x:0,y:0}},Wv=Di({name:"contextMenu",initialState:nC,reducers:{showContextMenu(n,t){n.visible=!0,n.options=t.payload.options,n.position=t.payload.position},hideContextMenu(n){n.visible=!1,n.options=[],n.position={x:0,y:0}}}}),{showContextMenu:Vv,hideContextMenu:Kv}=Wv.actions,rC=Wv.reducer;function aC(){const n=pt(i=>i.files),t=Xt(),e=A.useRef(null);return A.useEffect(()=>{n.beingRenamedFileIndex!==-1&&e.current&&(e.current.focus(),e.current.select())},[n.beingRenamedFileIndex]),nf(n.renameFileError||"",e,{x:100,y:-10},()=>{t(uj())}),w.jsxs("div",{className:"file-manager-container",children:[w.jsxs("div",{className:"file-manager-header unselectable",children:[w.jsx("div",{children:w.jsx("strong",{children:"Files"})}),w.jsxs("div",{className:"add-file-icon unselectable",onClick:()=>t(Nb()),children:[w.jsx("span",{className:"add-file-icon-plus",children:"+"}),"\u{1F5CE}"]})]}),w.jsx("div",{className:"file-manager-file-list ",onContextMenu:i=>{i.preventDefault(),t(Vv({options:[{name:"New File"}],position:{x:i.clientX,y:i.clientY}}))},children:w.jsx("div",{className:"file-entry-wrapper",children:n.files.map((i,a)=>{const{name:s,extension:_}=Ib(i.name),c=a===n.currentFileFocusedInEditorIndex?"highlight-open-focused-file":"",d=n.openFileIndices.includes(a)?"highlight-open-file":"";return a===n.beingRenamedFileIndex?w.jsx("div",{className:`file-manager-file-entry file-rename-entry ${c} ${d}`,children:w.jsx("input",{ref:e,className:"file-rename-input",type:"text",defaultValue:i.name,onKeyDown:f=>{var g;f.key==="Enter"?(t(Rb(((g=e.current)==null?void 0:g.value)||"error.error")),f.preventDefault()):f.key==="Escape"&&t(cj())},onBlur:()=>{var f;t(Rb(((f=e.current)==null?void 0:f.value)||"error.error"))}},"unique-id")},a):w.jsxs("div",{className:`file-manager-file-entry ${c} ${d} unselectable`,onClick:()=>{t(Eb(a))},onContextMenu:f=>{f.stopPropagation(),f.preventDefault(),t(Vv({options:[{name:"New File"},{name:"Delete File",data:{deletedFileIndex:a}},{name:"Rename File",data:{renamedFileIndex:a}}],position:{x:f.clientX,y:f.clientY}}))},children:[w.jsx("span",{className:"filename-start",children:s}),w.jsx("span",{className:"filename-end",children:_})]},a)})})})]})}function iC(){const n=pt(t=>t.tooltip.tooltips);return n.length===0?null:w.jsx(w.Fragment,{children:n.map(({id:t,message:e,position:i})=>w.jsx("div",{style:{position:"absolute",left:`${i.x}px`,top:`${i.y}px`},className:"tooltip",children:e},t))})}function sC(){const{visible:n,options:t,position:e}=pt(s=>s.contextMenu),i=Xt(),a=A.useRef(null);return A.useEffect(()=>{const s=_=>{a.current&&!a.current.contains(_.target)&&i(Kv())};return n&&document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}},[n,i]),n?w.jsx("div",{ref:a,style:{position:"absolute",left:`${e.x}px`,top:`${e.y}px`},className:"context-menu unselectable",children:t.map((s,_)=>w.jsx("div",{className:"context-menu-item",onClick:()=>{switch(s.name){case"New File":i(Nb());break;case"Delete File":i(lj(s.data.deletedFileIndex));break;case"Rename File":i(dj(s.data.renamedFileIndex));break}i(Kv())},children:s.name},_))}):null}function oC(){const n=pt(e=>e.management),t=Xt();return w.jsx("div",{className:"management-tab-container",children:l3.map((e,i)=>{const a=n.selectedTabIndex===i?"highlight-focused-management-tab":"";return w.jsx("div",{className:`management-tab ${a} unselectable`,onClick:()=>{t(u3(i))},children:e},i)})})}function _C(){const[n,t]=A.useState(!1),[e,i]=A.useState(""),a=pt(m=>m.settings),s=pt(m=>m.management.wallets),_=pt(m=>m.management.contracts),c=Xt(),d=["Emulator","Preview","Preprod","Mainnet"],f=a.form.network==="Emulator"?["emulator"]:["blockfrost"],g=a.form.providerKind==="emulator"?w.jsx("div",{}):a.form.providerKind==="blockfrost"?w.jsxs("div",{className:"settings-subsection",children:[w.jsxs("div",{className:"setting",children:[w.jsx("div",{className:"input-label",children:"API Key"}),w.jsx("input",{type:"text",value:a.form.blockfrost.apiKey,onChange:m=>{c(Ab({...a.form.blockfrost,apiKey:m.target.value}))}})]}),w.jsxs("div",{className:"setting",children:[w.jsx("div",{className:"input-label",children:"API URL"}),w.jsx("input",{type:"text",value:a.form.blockfrost.url,onChange:m=>{c(Ab({...a.form.blockfrost,url:m.target.value}))}})]})]}):w.jsx("div",{children:"Kupmios Settings"}),k=a.providerConfig.kind==="emulator"&&a.form.providerKind!=="emulator"||a.providerConfig.kind!=="emulator"&&a.form.providerKind==="emulator"?"Changing between emulated and live networks will clear the list of registered wallets and any emulator state.":"";return w.jsx("div",{children:a.open&&w.jsx("div",{className:"modal-overlay",onClick:()=>c(Vp()),children:w.jsxs("div",{className:"modal-content",onClick:m=>m.stopPropagation(),children:[w.jsxs("span",{className:"settings-header",children:["Settings",n?w.jsxs("div",{className:"lds-ring",children:[w.jsx("div",{}),w.jsx("div",{}),w.jsx("div",{}),w.jsx("div",{})]}):null]}),k?w.jsx("span",{className:"settings-warning",children:k}):null,w.jsx("span",{className:"settings-error",children:e}),w.jsx("div",{className:"settings-section-header",children:"Provider"}),w.jsxs("div",{className:"setting",children:[w.jsx("div",{className:"input-label",children:"Network"}),w.jsx("select",{value:a.form.network,onChange:m=>{c(xj(m.target.value))},children:d.map(m=>w.jsx("option",{value:m,children:m},m))})]}),w.jsxs("div",{className:"setting",children:[w.jsx("div",{className:"input-label",children:"Provider Type"}),w.jsx("select",{value:a.form.providerKind,onChange:m=>{c(kj(m.target.value))},children:f.map(m=>w.jsx("option",{value:m,children:wj(m)},m))})]}),g,w.jsxs("div",{className:"settings-form-buttons",children:[w.jsx("button",{onClick:()=>{if(i(""),a.form.providerKind==="blockfrost")t(!0),pc.new(new Ev(a.form.blockfrost.url,a.form.blockfrost.apiKey),a.form.network==="Emulator"?"Custom":a.form.network).then(m=>{if(a.providerConfig.kind==="emulator"&&a.form.providerKind!=="emulator"&&c(Rv()),a.network==="Mainnet"&&a.form.network!=="Mainnet"||a.network!=="Mainnet"&&a.form.network==="Mainnet"){const x={};for(const S of _)x[S.address]=m.utils.validatorToAddress(S.script);for(const S of s)x[S.address]=m.utils.credentialToAddress(m.utils.keyHashToCredential(S.pkh),m.utils.stakeCredentialOf(S.address));c(w3(x))}c(Db())}).catch(m=>{i("Unable to retrive protocol params from new provider. Check your settings?"),console.error(m.message)}).finally(()=>{t(!1)});else if(a.form.providerKind==="emulator")a.providerConfig.kind!=="emulator"&&a.form.providerKind==="emulator"&&c(Rv()),c(Db());else throw Error("not implemented")},className:"button settings-save-button",children:"Save"}),w.jsx("button",{onClick:()=>c(Vp()),className:"button settings-close-button",children:"Cancel"})]})]})})})}BigInt.prototype.toJSON=function(){return this.toString()};function cC(){const n=Lg(),[t,e]=A.useState(!0),[i,a]=A.useState(null),s=n.isLoading||t?"":"hidden",_=n.isLoading||t?"hidden":"";return w.jsxs(zb.Provider,{value:i,children:[w.jsx(_C,{}),w.jsx(iC,{}),w.jsx(sC,{}),w.jsx("div",{className:`main-layout-container ${s}`,children:"!!!Loading... "}),w.jsx("div",{className:`main-layout-container ${_}`,children:w.jsxs("div",{className:"editor-and-management-view-container",children:[w.jsxs("div",{className:"editor-container",children:[w.jsx(yj,{}),w.jsxs("div",{className:"editor-content-container",children:[w.jsx(aC,{}),w.jsxs("div",{className:"editor-and-tabs-container",children:[w.jsx(eC,{}),w.jsx(fj,{onLoad:c=>{a(c),e(!1)}})]})]})]}),w.jsxs("div",{className:"management-panel-container",children:[w.jsx(Sj,{}),w.jsx(oC,{}),w.jsx(tC,{})]})]})})]})}const lC={network:"Emulator",isLoading:!0},qv=Di({name:"lucid",initialState:lC,reducers:{setNetwork(n,t){n.network=t.payload},setIsLucidLoading(n,t){n.isLoading=t.payload}}});qv.actions;const dC=qv.reducer,uC=Ux({reducer:{project:gj,files:pj,tooltip:m3,contextMenu:rC,management:h3,lucid:dC,transact:L3,settings:jj}});gd.createRoot(document.getElementById("root")).render(w.jsx(ta.StrictMode,{children:w.jsx(U6,{store:uC,children:w.jsx(g3,{children:w.jsx(S3,{children:w.jsx(cC,{})})})})}))})(); +`)}}},pc=class{constructor(){Object.defineProperty(this,"txBuilderConfig",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"wallet",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"provider",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"network",{enumerable:!0,configurable:!0,writable:!0,value:"Mainnet"}),Object.defineProperty(this,"utils",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}static async new(n,t){let e=new this;if(t&&(e.network=t),n){e.provider=n;let i=await n.getProtocolParameters();e.provider instanceof kv&&(e.network="Custom",id[e.network]={zeroTime:e.provider.now(),zeroSlot:0,slotLength:1e3});let a=id[e.network];e.txBuilderConfig=ne.new().coins_per_utxo_byte(O.from_str(i.coinsPerUtxoByte.toString())).fee_algo(Bi.new(O.from_str(i.minFeeA.toString()),O.from_str(i.minFeeB.toString()))).key_deposit(O.from_str(i.keyDeposit.toString())).pool_deposit(O.from_str(i.poolDeposit.toString())).max_tx_size(i.maxTxSize).max_value_size(i.maxValSize).collateral_percentage(i.collateralPercentage).max_collateral_inputs(i.maxCollateralInputs).max_tx_ex_units(Je.new(O.from_str(i.maxTxExMem.toString()),O.from_str(i.maxTxExSteps.toString()))).ex_unit_prices(Mn.from_float(i.priceMem,i.priceStep)).slot_config(O.from_str(a.zeroTime.toString()),O.from_str(a.zeroSlot.toString()),a.slotLength).blockfrost(Rs.new(((n==null?void 0:n.url)||"")+"/utils/txs/evaluate",(n==null?void 0:n.projectId)||"")).costmdls(hS(i.costModels)).build()}return e.utils=new $S(e),e}async switchProvider(n,t){if(this.network==="Custom")throw new Error("Cannot switch when on custom network.");let e=await pc.new(n,t);return this.txBuilderConfig=e.txBuilderConfig,this.provider=n||this.provider,this.network=t||this.network,this.wallet=e.wallet,this}newTx(){return new t3(this)}fromTx(n){return new mv(this,xn.from_bytes(J(n)))}newMessage(n,t){return new a3(this,n,t)}verifyMessage(n,t,e){let{paymentCredential:i,stakeCredential:a,address:{hex:s}}=this.utils.getAddressDetails(n),_=(i==null?void 0:i.hash)||(a==null?void 0:a.hash);if(!_)throw new Error("Not a valid address provided.");return r3(s,_,t,e)}currentSlot(){return this.utils.unixTimeToSlot(Date.now())}utxosAt(n){return this.provider.getUtxos(n)}utxosAtWithUnit(n,t){return this.provider.getUtxosWithUnit(n,t)}utxoByUnit(n){return this.provider.getUtxoByUnit(n)}utxosByOutRef(n){return this.provider.getUtxosByOutRef(n)}delegationAt(n){return this.provider.getDelegation(n)}awaitTx(n,t=3e3){return this.provider.awaitTx(n,t)}async datumOf(n,t){if(!n.datum){if(!n.datumHash)throw new Error("This UTxO does not have a datum hash.");n.datum=await this.provider.getDatum(n.datumHash)}return ci.from(n.datum,t)}async metadataOf(n){let{policyId:t,name:e,label:i}=XS(n);switch(i){case 222:case 333:case 444:{let a=await this.utxoByUnit(JS(t,e,100)),s=await this.datumOf(a);return ci.toJson(s.fields[0])}default:throw new Error("No variant matched.")}}selectWalletFromPrivateKey(n){let t=Kt.from_bech32(n),e=t.to_public().hash();return this.wallet={address:async()=>Dn.new(this.network==="Mainnet"?1:0,q.from_keyhash(e)).to_address().to_bech32(void 0),rewardAddress:async()=>null,getUtxos:async()=>await this.utxosAt(Ks(await this.wallet.address())),getUtxosCore:async()=>{let i=await this.utxosAt(Ks(await this.wallet.address())),a=sr.new();return i.forEach(s=>{a.add(dc(s))}),a},getDelegation:async()=>({poolId:null,rewards:0n}),signTx:async i=>{let a=Io(fa(i.body()),t),s=Xa.new();return s.add_vkey(a),s.build()},signMessage:async(i,a)=>{let{paymentCredential:s,address:{hex:_}}=this.utils.getAddressDetails(i),c=s==null?void 0:s.hash,d=e.to_hex();if(!c||c!==d)throw new Error(`Cannot sign message for address: ${i}.`);return tf(_,a,n)},submitTx:async i=>await this.provider.submitTx(i)},this}selectWallet(n){let t=async()=>{let[e]=await n.getUsedAddresses();if(e)return e;let[i]=await n.getUnusedAddresses();return i};return this.wallet={address:async()=>jt.from_bytes(J(await t())).to_bech32(void 0),rewardAddress:async()=>{let[e]=await n.getRewardAddresses();return e?It.from_address(jt.from_bytes(J(e))).to_address().to_bech32(void 0):null},getUtxos:async()=>(await n.getUtxos()||[]).map(e=>{let i=Ae.from_bytes(J(e));return gv(i)}),getUtxosCore:async()=>{let e=sr.new();return(await n.getUtxos()||[]).forEach(i=>{e.add(Ae.from_bytes(J(i)))}),e},getDelegation:async()=>{let e=await this.wallet.rewardAddress();return e?await this.delegationAt(e):{poolId:null,rewards:0n}},signTx:async e=>{let i=await n.signTx(_t(e.to_bytes()),!0);return Be.from_bytes(J(i))},signMessage:async(e,i)=>{let a=_t(jt.from_bech32(e).to_bytes());return await n.signData(a,i)},submitTx:async e=>await n.submitTx(e)},this}selectWalletFrom({address:n,utxos:t,rewardAddress:e}){let i=this.utils.getAddressDetails(n);return this.wallet={address:async()=>n,rewardAddress:async()=>(!e&&i.stakeCredential?i.stakeCredential.type==="Key"?It.new(this.network==="Mainnet"?1:0,q.from_keyhash(et.from_hex(i.stakeCredential.hash))).to_address().to_bech32(void 0):It.new(this.network==="Mainnet"?1:0,q.from_scripthash(dt.from_hex(i.stakeCredential.hash))).to_address().to_bech32(void 0):e)||null,getUtxos:async()=>t||await this.utxosAt(Ks(n)),getUtxosCore:async()=>{let a=sr.new();return(t||await this.utxosAt(Ks(n))).forEach(s=>a.add(dc(s))),a},getDelegation:async()=>{let a=await this.wallet.rewardAddress();return a?await this.delegationAt(a):{poolId:null,rewards:0n}},signTx:async()=>{throw new Error("Not implemented")},signMessage:async()=>{throw new Error("Not implemented")},submitTx:async a=>await this.provider.submitTx(a)},this}selectWalletFromSeed(n,t){let{address:e,rewardAddress:i,paymentKey:a,stakeKey:s}=e3(n,{addressType:(t==null?void 0:t.addressType)||"Base",accountIndex:(t==null?void 0:t.accountIndex)||0,password:t==null?void 0:t.password,network:this.network}),_=Kt.from_bech32(a).to_public().hash().to_hex(),c=s?Kt.from_bech32(s).to_public().hash().to_hex():"",d={[_]:a,[c]:s};return this.wallet={address:async()=>e,rewardAddress:async()=>i||null,getUtxos:async()=>this.utxosAt(Ks(e)),getUtxosCore:async()=>{let f=sr.new();return(await this.utxosAt(Ks(e))).forEach(g=>f.add(dc(g))),f},getDelegation:async()=>{let f=await this.wallet.rewardAddress();return f?await this.delegationAt(f):{poolId:null,rewards:0n}},signTx:async f=>{let g=await this.utxosAt(e),k=n3(f,[_,c],g),m=Xa.new();return k.forEach(x=>{let S=Io(fa(f.body()),Kt.from_bech32(d[x]));m.add_vkey(S)}),m.build()},signMessage:async(f,g)=>{let{paymentCredential:k,stakeCredential:m,address:{hex:x}}=this.utils.getAddressDetails(f),S=(k==null?void 0:k.hash)||(m==null?void 0:m.hash),j=d[S];if(!j)throw new Error(`Cannot sign message for address: ${f}.`);return tf(x,g,j)},submitTx:async f=>await this.provider.submitTx(f)},this}},xv=class{constructor(n,t){Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"projectId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=n,this.projectId=t||""}async getProtocolParameters(){let n=await fetch(`${this.url}/epochs/latest/parameters`,{headers:{project_id:this.projectId,lucid:fr}}).then(t=>t.json());return{minFeeA:parseInt(n.min_fee_a),minFeeB:parseInt(n.min_fee_b),maxTxSize:parseInt(n.max_tx_size),maxValSize:parseInt(n.max_val_size),keyDeposit:BigInt(n.key_deposit),poolDeposit:BigInt(n.pool_deposit),priceMem:parseFloat(n.price_mem),priceStep:parseFloat(n.price_step),maxTxExMem:BigInt(n.max_tx_ex_mem),maxTxExSteps:BigInt(n.max_tx_ex_steps),coinsPerUtxoByte:BigInt(n.coins_per_utxo_size),collateralPercentage:parseInt(n.collateral_percent),maxCollateralInputs:parseInt(n.max_collateral_inputs),costModels:n.cost_models}}async getUtxos(n){let t=typeof n=="string"?n:n.type==="Key"?et.from_hex(n.hash).to_bech32("addr_vkh"):dt.from_hex(n.hash).to_bech32("addr_vkh"),e=[],i=1;for(;;){let a=await fetch(`${this.url}/addresses/${t}/utxos?page=${i}`,{headers:{project_id:this.projectId,lucid:fr}}).then(s=>s.json());if(a.error){if(a.status_code===404)return[];throw new Error("Could not fetch UTxOs from Blockfrost. Try again.")}if(e=e.concat(a),a.length<=0)break;i++}return this.blockfrostUtxosToUtxos(e)}async getUtxosWithUnit(n,t){let e=typeof n=="string"?n:n.type==="Key"?et.from_hex(n.hash).to_bech32("addr_vkh"):dt.from_hex(n.hash).to_bech32("addr_vkh"),i=[],a=1;for(;;){let s=await fetch(`${this.url}/addresses/${e}/utxos/${t}?page=${a}`,{headers:{project_id:this.projectId,lucid:fr}}).then(_=>_.json());if(s.error){if(s.status_code===404)return[];throw new Error("Could not fetch UTxOs from Blockfrost. Try again.")}if(i=i.concat(s),s.length<=0)break;a++}return this.blockfrostUtxosToUtxos(i)}async getUtxoByUnit(n){let t=await fetch(`${this.url}/assets/${n}/addresses?count=2`,{headers:{project_id:this.projectId,lucid:fr}}).then(a=>a.json());if(!t||t.error)throw new Error("Unit not found.");if(t.length>1)throw new Error("Unit needs to be an NFT or only held by one address.");let e=t[0].address,i=await this.getUtxosWithUnit(e,n);if(i.length>1)throw new Error("Unit needs to be an NFT or only held by one address.");return i[0]}async getUtxosByOutRef(n){let t=[...new Set(n.map(e=>e.txHash))];return(await Promise.all(t.map(async e=>{let i=await fetch(`${this.url}/txs/${e}/utxos`,{headers:{project_id:this.projectId,lucid:fr}}).then(s=>s.json());if(!i||i.error)return[];let a=i.outputs.map(s=>({...s,tx_hash:e}));return this.blockfrostUtxosToUtxos(a)}))).reduce((e,i)=>e.concat(i),[]).filter(e=>n.some(i=>e.txHash===i.txHash&&e.outputIndex===i.outputIndex))}async getDelegation(n){let t=await fetch(`${this.url}/accounts/${n}`,{headers:{project_id:this.projectId,lucid:fr}}).then(e=>e.json());return!t||t.error?{poolId:null,rewards:0n}:{poolId:t.pool_id||null,rewards:BigInt(t.withdrawable_amount)}}async getDatum(n){let t=await fetch(`${this.url}/scripts/datum/${n}/cbor`,{headers:{project_id:this.projectId,lucid:fr}}).then(e=>e.json()).then(e=>e.cbor);if(!t||t.error)throw new Error(`No datum found for datum hash: ${n}`);return t}awaitTx(n,t=3e3){return new Promise(e=>{let i=setInterval(async()=>{let a=await fetch(`${this.url}/txs/${n}`,{headers:{project_id:this.projectId,lucid:fr}}).then(s=>s.json());if(a&&!a.error)return clearInterval(i),await new Promise(s=>setTimeout(()=>s(1),1e3)),e(!0)},t)})}async submitTx(n){let t=await fetch(`${this.url}/tx/submit`,{method:"POST",headers:{"Content-Type":"application/cbor",project_id:this.projectId,lucid:fr},body:J(n)}).then(e=>e.json());if(!t||t.error)throw(t==null?void 0:t.status_code)===400?new Error(t.message):new Error("Could not submit transaction.");return t}async blockfrostUtxosToUtxos(n){return await Promise.all(n.map(async t=>({txHash:t.tx_hash,outputIndex:t.output_index,assets:Object.fromEntries(t.amount.map(({unit:e,quantity:i})=>[e,BigInt(i)])),address:t.address,datumHash:!t.inline_datum&&t.data_hash||void 0,datum:t.inline_datum||void 0,scriptRef:t.reference_script_hash?await(async()=>{let{type:e}=await fetch(`${this.url}/scripts/${t.reference_script_hash}`,{headers:{project_id:this.projectId,lucid:fr}}).then(a=>a.json());if(e==="Native"||e==="native")throw new Error("Native script ref not implemented!");let{cbor:i}=await fetch(`${this.url}/scripts/${t.reference_script_hash}/cbor`,{headers:{project_id:this.projectId,lucid:fr}}).then(a=>a.json());return{type:e==="plutusV1"?"PlutusV1":"PlutusV2",script:li(i)}})():void 0})))}},fr=Y0.version;const i3=["Build","Contracts","Wallets","Transact"],s3={selectedTabIndex:0,wallets:[],contracts:[],addContractError:void 0},jv=Mi({name:"management",initialState:s3,reducers:{selectTab(n,t){n.selectedTabIndex=t.payload},addWallet(n,t){if(t.payload.isCurrentlyConnected)for(let e=0;ee.pkh===t.payload.pkh)||n.wallets.push(t.payload)},removeWallet(n,t){n.wallets.filter(e=>e.address===t.payload)},setConnectedWallet(n,t){for(let e=0;e({...e,address:t.payload[e.address]})),n.wallets=n.wallets.map(e=>({...e,address:t.payload[e.address]}))},addContract(n,t){let e=0;for(let i of n.contracts){const a=i.name===t.payload.name,s=i.script.script===t.payload.script.script;if(a&&s){const _=`Contract already exists as ${i.name} v${i.version}.`;n.addContractError=_;return}i.name===t.payload.name&&i.version>=e&&(e=i.version+1)}n.contracts.unshift({...t.payload,version:e,createdAt:new Date().valueOf()})},removeContract(n,t){const{name:e,version:i}=t.payload;n.contracts=n.contracts.filter(a=>!(a.name===e&&a.version===i))},clearAddContractError(n){n.addContractError=void 0},setAddContractError(n,t){n.addContractError=t.payload}}}),{selectTab:o3,addWallet:_d,removeWallet:pC,setConnectedWallet:Sv,clearWallets:Cv,addContract:Ev,removeContract:_3,clearAddContractError:c3,setAddContractError:cd,updateWalletAndContractAddresses:l3}=jv.actions,d3=jv.reducer,Ov=A.createContext({lucid:null,isLucidLoading:!1}),Nv=Yp(),u3=({children:n})=>{const[t,e]=A.useState(null),[i,a]=A.useState(!1),[s,_]=A.useState(""),c=pt(g=>g.settings),d=Xt(),f=A.useMemo(()=>({lucid:t,isLucidLoading:i}),[t,i]);return A.useEffect(()=>{a(!0),pc.new(void 0,"Custom").then(g=>(g.selectWalletFromSeed(Nv),g.wallet.address())).then(g=>{_(g)})},[]),A.useEffect(()=>{!s&&c.providerConfig.kind==="emulator"||(async()=>{a(!0);const g=c.providerConfig.kind==="emulator"?"Custom":c.network;let k;if(c.providerConfig.kind==="emulator"){const m=new kv([{address:s,assets:{lovelace:20000000000n}}]);k=await pc.new(m,g)}else if(c.providerConfig.kind==="blockfrost")k=await pc.new(new xv(c.providerConfig.url,c.providerConfig.apiKey),g);else throw Error("not implemented");if(!k)throw Error("could not create lucid");return k})().then(g=>{var k;c.providerConfig.kind==="emulator"&&d(_d({address:s,seed:Nv,pkh:(k=g.utils.getAddressDetails(s).paymentCredential)==null?void 0:k.hash,walletVendor:null,isCurrentlyConnected:!1})),e(g),a(!1)}).catch(g=>{a(!1),console.error(g)})},[s,c.network,c.providerConfig]),w.jsx(Ov.Provider,{value:f,children:n})};function Zr(){return A.useContext(Ov)}const p3={tooltips:[]},Rv=Mi({name:"tooltip",initialState:p3,reducers:{showTooltip(n,t){const{id:e,message:i,position:a}=t.payload,s=n.tooltips.findIndex(_=>_.id===e);s!==-1?n.tooltips[s]={id:e,message:i,position:a}:n.tooltips.push({id:e,message:i,position:a})},hideTooltip(n,t){n.tooltips=n.tooltips.filter(e=>e.id!==t.payload)}}}),{showTooltip:f3,hideTooltip:Pv}=Rv.actions,w3=Rv.reducer,h3=1500;let Iv=0;function g3(){return Iv++,Iv.toString()}function ef(n,t,e={x:0,y:0},i=()=>{}){var _;const a=Xt(),s=A.useRef(null);t.current&&!((_=t.current)!=null&&_.id)&&(t.current.id=g3()),A.useEffect(()=>{var c,d;if(!n&&s.current)clearTimeout(s.current),a(Pv(((c=t.current)==null?void 0:c.id)||"")),i();else if(n&&t.current){s.current!==null&&clearTimeout(s.current);const f=t.current.getBoundingClientRect();a(f3({id:(d=t.current)==null?void 0:d.id,message:n,position:{x:f.left+e.x,y:f.top+e.y}})),s.current=setTimeout(()=>{var g;a(Pv(((g=t.current)==null?void 0:g.id)||"")),i()},h3)}return()=>{s.current&&clearTimeout(s.current)}},[n,t])}function Qs(n){if(Array.isArray(n))return n.map(t=>Qs(t));if("constructor"in n&&Array.isArray(n.fields)){const t=n.fields.map(e=>typeof e=="object"&&e!==null?Qs(e):e);return new Ue(n.constructor,t)}else{if("bytes"in n)return n.bytes;if("int"in n)return n.int;throw"map_0"in n?new Error("Map type encountered, operation not supported"):new Error("Unknown type in JSON structure")}}function b3(){const n=A.useRef(null),{isLucidLoading:t,lucid:e}=Zr(),[i,a]=A.useState("aiken"),[s,_]=A.useState(void 0),[c,d]=A.useState(void 0),f=pt(b=>b.project.buildResults),g=pt(b=>b.files.files),k=pt(b=>b.management.addContractError),m=Xt();if(ef(k||"",n,{x:-100,y:-50},()=>{m(c3())}),t||!e)return w.jsx("div",{});const x=e,S=f==null?void 0:f.flatMap(b=>b.validators),j=(S==null?void 0:S.map(b=>b.name))||[],P=g.filter(b=>b.type==="json"),v=P.map(b=>b.name).concat(["None"]);s===void 0&&i==="aiken"&&j.length>0&&_(j[0]),s===void 0&&i==="native"&&v.length>0&&_(v[0]),c===void 0&&v.length>0&&d(v[0]);const y=i==="aiken"&&j.length===0||i==="native"&&v.length===1?"disabled":"";return w.jsxs("div",{className:"add-contract-container",children:[w.jsx("div",{className:"add-contract-header",children:"Add a Contract"}),w.jsx("div",{className:"add-contract-help-text",children:"Create a parameterized validator from a compiled Aiken program or a Native Script."}),w.jsxs("div",{className:"add-contract-content",children:[w.jsxs("div",{className:"add-contract-selection-container",children:[w.jsx("div",{className:"input-label",children:"Script Kind "}),w.jsxs("select",{className:"select",defaultValue:i,onChange:b=>{a(b.target.value)},children:[w.jsx("option",{value:"aiken",children:"Aiken"}),w.jsx("option",{value:"native",children:"Native Script"})]})]}),w.jsxs("div",{className:"add-contract-selection-container",children:[w.jsx("div",{className:"input-label",children:"Validator Name "}),i==="aiken"?w.jsx("select",{className:"select",onChange:b=>{_(b.target.value)},children:j==null?void 0:j.map((b,I)=>w.jsx("option",{value:b,children:b},b+I))}):w.jsx("select",{className:"select",onChange:b=>{_(b.target.value)},children:v==null?void 0:v.map(b=>b==="None"?null:w.jsx("option",{value:b,children:b},b))})]}),w.jsxs("div",{className:"add-contract-selection-container",children:[i==="aiken"?w.jsx("div",{className:"input-label",children:"Params File Name "}):null,i==="aiken"?w.jsx("select",{className:"select",onChange:b=>{d(b.target.value)},children:v==null?void 0:v.map(b=>w.jsx("option",{value:b,children:b},b))}):null]})]}),w.jsx("div",{className:"add-contract-selection-container add-contract-button-container",children:w.jsx("button",{ref:n,className:`add-contract-button button ${y}`,onClick:()=>{if(i==="aiken"){const b=P.find(W=>W.name===c),I=b==null?void 0:b.content,M=(S==null?void 0:S.find(W=>W.name===s))||(S==null?void 0:S[0]);if(!M){console.error(`No known validator ${s}`);return}let U=[];if(I)try{const W=JSON.parse(I);U=Qs(W)}catch(W){return W.message&&W.message.includes("JSON.parse")?m(cd(`Invalid JSON in ${b.name}`)):m(cd(`JSON in ${b.name} cannot be converted to Data`))}const D={type:"PlutusV2",script:li(YS(M.program,U))},$=x.utils.validatorToAddress(D),Y=x.utils.validatorToScriptHash(D);m(Ev({script:D,name:M.name,paramsFileName:(b==null?void 0:b.name)||"None",paramsContent:(b==null?void 0:b.content)||"",address:$,scriptHash:Y}))}else if(i==="native"){const b=P.find(M=>M.name===s),I=b==null?void 0:b.content;if(I)try{const M=JSON.parse(I),U=x.utils.nativeScriptFromJson(M),D=x.utils.validatorToAddress(U),$=x.utils.validatorToScriptHash(U);m(Ev({script:U,name:s.split(".")[0],paramsFileName:b==null?void 0:b.name,paramsContent:I||"",address:D,scriptHash:$}))}catch(M){return M.message&&M.message.includes("JSON.parse")?m(cd(`Invalid JSON in ${b.name}`)):m(cd(`JSON in ${b.name} is not a valid native script`))}}},children:"Create Contract"})})]})}function fc({value:n}){const[t,e]=A.useState(!1);let i=null;const a=()=>{navigator.clipboard.writeText(n),e(!0),i&&clearTimeout(i),i=setTimeout(()=>e(!1),1e3)};return w.jsx("span",{title:"Copy",onClick:a,className:"copy-widget",style:{cursor:"pointer"},children:t?"\u2713":"\u{1F4CB}"})}function y3(){const{isLucidLoading:n,lucid:t}=Zr(),e=pt(a=>a.management.contracts),i=Xt();return n||!t?w.jsx("div",{}):w.jsx("div",{className:"management-content-scroll-exclusion-wrapper",children:w.jsxs("div",{className:"management-content management-section-shadow",children:[w.jsx("div",{className:"management-section-heading",children:"Contracts"}),w.jsx(b3,{}),w.jsxs("div",{className:"flex-column",children:[w.jsx("div",{className:"contracts-subheading",children:"Your Contracts"}),w.jsxs("div",{className:"contracts-container",children:[e.length===0?w.jsxs("span",{className:"add-contract-warning",children:["No contracts have been added to the workspace yet.",w.jsx("br",{})," Add a contract to get started."]}):null,e.map(a=>w.jsxs("div",{className:"contract-container",children:[w.jsxs("div",{className:"contract-header",children:[w.jsx("div",{className:"contract-name",children:a.name}),w.jsxs("div",{className:"contract-version",children:["Version ",a.version]})]}),w.jsxs("div",{className:"contract-data",children:[w.jsx("div",{className:"contract-data-holder",children:w.jsxs("div",{className:"contract-params",children:[w.jsx("div",{className:"contract-params-label",children:"Address"}),w.jsxs("div",{className:"contract-params-content",children:[Qe(a.address)," ",w.jsx(fc,{value:a.address})]})]})}),w.jsx("div",{className:"contract-data-holder",children:w.jsxs("div",{className:"contract-params",children:[w.jsx("div",{className:"contract-params-label",children:"Script Hash"}),w.jsxs("div",{className:"contract-params-content",children:[Qe(a.scriptHash)," ",w.jsx(fc,{value:a.scriptHash})]})]})}),w.jsx("div",{className:"contract-data-holder"}),w.jsxs("div",{className:"delete-contract-button-container",children:[w.jsxs("div",{className:"contract-params params-label-container",children:[w.jsx("div",{className:"contract-params-label",children:"Parameters"}),w.jsx("div",{className:"contract-params-content",children:a.paramsFileName})]}),w.jsx("button",{className:"button danger-button",onClick:()=>i(_3({version:a.version,name:a.name})),children:"Delete"})]})]})]},`${a.name}${a.version}`))]})]})]})})}const Tv=A.createContext(null);function nf(){const n=A.useContext(Tv);if(!n)throw new Error("useWallet must be used within a WalletProvider");return n}function m3({children:n}){var m;const{lucid:t,isLucidLoading:e}=Zr(),i=Xt(),[a,s]=A.useState(null),[_,c]=A.useState(!1),d=pt(x=>x.management.wallets),f=(m=pt(x=>x.management.wallets).filter(x=>x.isCurrentlyConnected).map(x=>x.walletVendor))==null?void 0:m[0],g=A.useCallback(()=>{c(!0)},[c]),k=A.useMemo(()=>({walletApi:a,onAccountChange:g}),[a,g]);return A.useEffect(()=>{async function x(){if(f&&!a){const S=await window.cardano[f].enable();s(S)}}x()},[f,a]),A.useEffect(()=>{(async()=>{var P;if(!_||!t||!a||!f)return;c(!1),await window.cardano[f].enable(),t.selectWallet(a);const x=await t.wallet.address(),S=(P=t.utils.getAddressDetails(x).paymentCredential)==null?void 0:P.hash,j=d.find(v=>v.pkh===S);i(j?Sv(S):_d({address:x,pkh:S,seed:null,isCurrentlyConnected:!0,walletVendor:f}))})()},[_,t===void 0,f,a]),w.jsx(Tv.Provider,{value:k,children:n})}function Fv({utxo:n,className:t,withCopy:e=!0}){return w.jsxs("div",{className:`utxo-container ${t||""}`,children:[w.jsxs("div",{className:"txid",children:[`${Qe(n.txHash,5,5)}@${n.outputIndex}`," ",w.jsx("span",{children:e?w.jsx(fc,{value:n.txHash}):null})]}),w.jsx("div",{className:"asset-container-container",children:Object.keys(n.assets).map(i=>w.jsxs("div",{className:"asset-container",children:[w.jsxs("div",{className:"asset-label",children:[i==="lovelace"?"lovelace":Ko(i.substring(56))," "]}),w.jsx("div",{className:"asset-value",children:n.assets[i].toString()})]},i))})]})}function v3({wallet:n}){const{walletApi:t,onAccountChange:e}=nf(),[i,a]=A.useState(void 0),[s,_]=A.useState(void 0),{lucid:c,isLucidLoading:d}=Zr();if(A.useEffect(()=>{!c||d||(async()=>{try{if(n.seed!==null){c.selectWalletFromSeed(n.seed);const k=await c.wallet.getUtxos();a(k)}else if(t&&n.isCurrentlyConnected){c.selectWallet(t);try{const k=await c.wallet.getUtxos();a(k)}catch(k){k.message.includes("account changed")?e():_(k.message)}}else if(!n.isCurrentlyConnected){const k=await c.provider.getUtxos(n.address);a(k)}}catch(k){_(k.message)}})()},[n.isCurrentlyConnected,c,d,t]),!c||d)return;const f=Qe(n.address),g=n.pkh;return w.jsxs("div",{className:"wallet-utxos-container",children:[w.jsxs("div",{className:"wallet-utxos-address",children:[f," ",w.jsx(fc,{value:n.address})," ",n.isCurrentlyConnected?w.jsx("span",{title:"Connected",children:"\u26A1"}):null]}),w.jsxs("div",{className:"wallet-utxos-pkh",children:[w.jsx("div",{className:"input-label",children:"pkh"}),w.jsxs("div",{children:[Qe(g,4,4)," ",w.jsx(fc,{value:g})]})]}),s===void 0?w.jsx("div",{className:"wallet-utxos",children:i!=null&&i.length?i==null?void 0:i.map(k=>w.jsx(Fv,{utxo:k},k.txHash+k.outputIndex)):w.jsx("div",{children:"No UTxOs at this address."})}):w.jsx("div",{children:"utxoError"})]},n.address)}const k3=["eternl","nami","flint","typhon","yoroi","lace","vespr"],rf=Object.keys(window.cardano).filter(n=>k3.includes(n.toLowerCase()));function x3(){const{lucid:n}=Zr(),t=pt(x=>x.settings.providerConfig.kind),e=pt(x=>x.management.wallets),[i,a]=A.useState(""),[s,_]=A.useState(!1);A.useState(!1);const c=Xt(),d=e.find(x=>x.isCurrentlyConnected);!i&&rf.length>0&&a(rf[0]);const f=w.jsx("button",{className:"button",onClick:()=>{if(!n)return;const x=n,S=Yp();x.selectWalletFromSeed(S),x.wallet.address().then(j=>{var v;const P=(v=x.utils.getAddressDetails(j).paymentCredential)==null?void 0:v.hash;c(_d({seed:S,address:j,pkh:P,isCurrentlyConnected:!1,walletVendor:null}))})},children:"Generate New Wallet"}),g=w.jsx("button",{className:`button ${s?"disabled":""}`,onClick:()=>{if(i===""){console.error("No wallet selected");return}const x=window.cardano[i];if(!x){console.error("Selected wallet not available in environment");return}if(!n){console.error("Wallet connect attempt before loading finished");return}_(!0);const S=n;x.enable().then(j=>(S==null||S.selectWallet(j),S.wallet.address())).then(j=>{var v;const P=(v=S.utils.getAddressDetails(j).paymentCredential)==null?void 0:v.hash;c(_d({seed:null,walletVendor:i,address:j,pkh:P,isCurrentlyConnected:!0}))}).finally(()=>{_(!1)})},children:"Connect Wallet"}),k=w.jsx("button",{className:"button",onClick:()=>{c(Sv(""))},children:"Disconnect Wallet"}),m=w.jsx("select",{className:"select",value:i,onChange:x=>{a(x.target.value)},children:rf.map(x=>w.jsx("option",{value:x,children:x},x))});return w.jsx("div",{className:"management-content-scroll-exclusion-wrapper",children:w.jsxs("div",{className:"management-content management-section-shadow",children:[w.jsx("div",{className:"management-section-heading",children:"Wallets"}),w.jsxs("div",{className:"wallet-buttons",children:[t==="emulator"||d?null:m,t==="emulator"?f:d?null:g,d?k:null]}),e.map(x=>w.jsx(v3,{wallet:x},x.address))]})})}const j3={addSpendError:void 0,spends:[],mints:[],payments:[],extraSigners:[],validity:{from:"",to:""},metadataFilename:"None",transactionHistory:[],transactionSubmissionState:"idle",transactionSubmissionError:null},zv=Mi({name:"transact",initialState:j3,reducers:{addSpend(n,t){n.spends=[...n.spends,t.payload]},removeSpend(n,t){n.spends.splice(t.payload,1)},addMint(n,t){n.mints=[...n.mints,t.payload]},removeMint(n,t){n.mints.splice(t.payload,1)},addPayment(n,t){n.payments=[...n.payments,t.payload]},removePayment(n,t){n.payments.splice(t.payload,1)},setExtraSigners(n,t){n.extraSigners=t.payload},setValidityInterval(n,t){n.validity=t.payload},setMetadata(n,t){n.metadataFilename=t.payload},setAddSpendError(n,t){n.addSpendError=t.payload},onSuccessfulTransaction(n,t){n.transactionHistory.push(t.payload),n.mints=[],n.spends=[],n.payments=[],n.extraSigners=[],n.validity.from="",n.validity.to="",n.metadataFilename="None",n.transactionSubmissionState="completed",n.transactionSubmissionError=null},setTransactionSubmissionState(n,t){n.transactionSubmissionState=t.payload},setTransactionSubmissionError(n,t){n.transactionSubmissionError=t.payload,n.transactionSubmissionState="failed"},clearAddSpendError(n){n.addSpendError=void 0}}}),{setAddSpendError:Dv,clearAddSpendError:S3,addSpend:C3,removeSpend:E3,addMint:O3,removeMint:N3,addPayment:R3,removePayment:P3,setExtraSigners:I3,setValidityInterval:Mv,setMetadata:T3,onSuccessfulTransaction:F3,setTransactionSubmissionState:af,setTransactionSubmissionError:z3}=zv.actions,D3=zv.reducer;function M3(n){return{...n,assets:Object.fromEntries(Object.entries(n.assets).map(([t,e])=>[t,e.toString()]))}}function A3(n){return{...n,assets:Object.fromEntries(Object.entries(n.assets).map(([t,e])=>[t,BigInt(e)]))}}function ld(n){return Object.fromEntries(Object.entries(n).map(([t,e])=>[t,BigInt(e)]))}function B3(n){return n.map(M3)}function Av(n){return n.map(A3)}function U3(){var Qt,ue;const n=pt(T=>T.management.wallets),t=pt(T=>T.management.contracts),e=pt(T=>T.files.files),i=pt(T=>T.transact.addSpendError),a=pt(T=>T.transact.spends),s=pt(T=>T.transact.transactionHistory).length,[_,c]=A.useState([]),[d,f]=A.useState("None"),{walletApi:g,onAccountChange:k}=nf(),m=Xt(),x=A.useRef(null);ef(i||"",x,{x:0,y:0},()=>m(S3()));const{isLucidLoading:S,lucid:j}=Zr(),[P,v]=A.useState([]),[y,b]=A.useState(n.length>0?"wallet":t.length>0?"contract":"wallet"),[I,M]=A.useState(y==="wallet"&&n.length?((Qt=n.find(T=>T.isCurrentlyConnected))==null?void 0:Qt.address)||n[0].address:y==="contract"&&t.length?t[0].address:""),U=a.reduce((T,L)=>T.concat(L.utxos.map(Q=>Q.txHash+Q.outputIndex)),[]),D=P.filter(T=>!U.includes(T.txHash+T.outputIndex));y==="wallet"&&n.length===0&&t.length>0&&b("contract");const $=(ue=n.find(T=>T.isCurrentlyConnected))==null?void 0:ue.pkh;A.useEffect(()=>{if(S||I==="")return;const T=j;if(y==="wallet"){const L=n.find(Q=>Q.address===I);if(!L)throw Error(`Expected to be able to find wallet with address ${I}`);L.seed?(T.selectWalletFromSeed(L.seed),T.wallet.getUtxos().then(Q=>{v(Q)}).catch(console.error)):L.isCurrentlyConnected&&g!==null?(T.selectWallet(g),T.wallet.getUtxos().then(Q=>{v(Q)}).catch(Q=>{Q.message.includes("account changed")?k():console.error(Q.message)})):T.provider.getUtxos(L.address).then(Q=>{v(Q)}).catch(console.error)}else if(y==="contract"){const L=t.find(Q=>Q.address===I);if(!L)throw Error(`Expected to be able to find contract with address ${I}`);L!=null&&L.address&&T.provider.getUtxos(L==null?void 0:L.address).then(Q=>{v(Q)})}},[S,y,I,s,$]);const Y=y==="wallet"?n.map(T=>T.address):y==="contract"?t.map(T=>T.address):[],W=e.filter(T=>T.name.endsWith(".json")).map(T=>T.name).concat("None"),St=w.jsx("select",{className:"utxo-source-select",value:I,onChange:T=>{n.find(L=>L.address===T.target.value)&&M(T.target.value)},children:Y.map(T=>w.jsx("option",{value:T,children:Qe(T)},T))});return S?w.jsx("div",{children:"Loading lol"}):w.jsxs("div",{className:"utxo-selection-container",children:[w.jsxs("div",{className:"utxo-selection-container-options",children:[w.jsxs("div",{className:"utxo-source-selection-container",children:[w.jsx("div",{className:"input-label",children:"Source"}),w.jsxs("select",{className:"utxo-source-select",value:y,onChange:T=>{b(T.target.value),f("None"),v([]),T.target.value==="wallet"&&n.length>0?M(n[0].address):T.target.value==="contract"&&t.length>0?M(t[0].address):M("")},children:[w.jsx("option",{value:"wallet",children:"Wallet"}),w.jsx("option",{value:"contract",children:"Contract"})]})]}),w.jsxs("div",{className:"utxo-address-selection-container",children:[w.jsx("div",{className:"input-label",children:"Address"}),St]}),y==="wallet"?null:w.jsxs("div",{className:"utxo-redeemer-selection-container",children:[w.jsx("div",{className:"input-label",children:"Redeemer"}),w.jsx("select",{className:"utxo-source-select",value:d,onChange:T=>{f(T.target.value)},children:W.map(T=>w.jsx("option",{value:T,children:T},T))})]}),w.jsx("div",{className:"utxo-selection-submit-container",children:w.jsx("button",{ref:x,className:`selection-submit-button button ${_.length===0?"disabled":""}`,disabled:_.length===0,onClick:()=>{let T=null;if(d&&d!=="None"){T=e.find(L=>L.name===d);try{const L=JSON.parse(T.content);Qs(L)}catch(L){return L.message&&L.message.includes("JSON.parse")?m(Dv(`Invalid JSON in ${T==null?void 0:T.name}`)):m(Dv(`JSON in ${T==null?void 0:T.name} cannot be converted to Data`))}}m(C3({utxos:B3(_),redeemerFileName:(T==null?void 0:T.name)||"None",source:y})),c([])},children:"Add Spend"})})]}),w.jsxs("div",{className:"utxo-utxo-selection-container",children:[D.length===0?w.jsx("div",{style:{fontSize:"13px"},children:"\u26A0 No unused UTxOs found at selected address."}):null,D.map(T=>{const L=!!_.find(Ct=>Bv(Ct,T)),Q=L?"selected-utxo-border":"";return w.jsxs("div",{className:"utxo-wrapper-with-checkbox",children:[w.jsx("input",{className:"utxo-selection-checkbox",type:"checkbox",checked:L,onChange:Ct=>{Ct.target.checked?c([..._,T]):c(_.filter(K=>!Bv(T,K)))}}),w.jsx(Fv,{className:Q,utxo:T,withCopy:!1},T.txHash+T.outputIndex)]},T.txHash+T.outputIndex)})]})]})}function Bv(n,t){return n.txHash===t.txHash&&n.outputIndex===t.outputIndex}function L3(){const n=pt(e=>e.transact.spends),t=Xt();return w.jsxs("div",{className:"transact-section",children:[w.jsx("div",{className:"transact-spend-header",children:"UTxO Selection"}),w.jsx("div",{className:"transact-spend-message-container",children:n.length===0?w.jsxs("div",{children:[w.jsx("span",{style:{color:"#ff9353"},children:"\u26A0"})," Choose at least one UTxO to spend."]}):w.jsx("div",{children:`${n.length} spend(s) selected.`})}),w.jsx("div",{className:"transact-spends-container",children:n.map((e,i)=>w.jsxs("div",{className:"transact-spend-container",children:[w.jsxs("div",{className:"transact-spend-address-and-close",children:[w.jsx("div",{className:"transact-spend-address",children:Qe(e.utxos[0].address)}),w.jsx("div",{className:"transact-spend-close",children:w.jsx("button",{className:"button",style:{fontSize:12},onClick:()=>{t(E3(i))},children:"Remove"})})]}),w.jsxs("div",{className:"transact-spend-source",children:[w.jsx("div",{className:"input-label",children:"Source"}),w.jsx("div",{className:"transact-spend-source-text",children:` ${e.source?e.source.charAt(0).toUpperCase()+e.source.slice(1):"Custom"}`})]}),w.jsxs("div",{className:"transact-spend-redeemer",children:[w.jsx("div",{className:"input-label",children:"Redeemer"}),w.jsx("div",{className:"transact-spend-redeemer-filename",children:` ${e.redeemerFileName||"None"}`})]}),w.jsxs("div",{className:"transact-spend-utxos",children:[w.jsx("div",{className:"input-label",children:"UTxOs"}),w.jsx("div",{className:"transact-spend-utxo-display",children:e.utxos.map(a=>w.jsx("div",{children:`${Qe(a.txHash,4,6)}@${a.outputIndex}`},a.txHash+a.outputIndex))})]})]},e.utxos[0].txHash+e.utxos[0].outputIndex))}),w.jsx(U3,{})]})}function $3(){const n=Xt(),t=pt(v=>v.management.contracts),e=pt(v=>v.files.files),i=pt(v=>v.transact.mints),[a,s]=A.useState(()=>{if(t.length>0&&i.length===0)return t[0].scriptHash}),[_,c]=A.useState(""),[d,f]=A.useState(0n),[g,k]=A.useState("None"),[m,x]=A.useState({});Zr();const S=!!a&&Object.keys(m).length>0;a===void 0&&t.length>0&&s(t[0].scriptHash);const j=e.filter(v=>v.name.endsWith(".json")).map(v=>v.name).concat("None"),P=d>0&&_;return w.jsxs("div",{className:"transact-section transact-section-mint",children:[w.jsx("div",{className:"transact-spend-header",children:"Mint"}),w.jsx("div",{className:"transact-spend-message-container",children:`Minting ${i.length} set(s) of assets.`}),w.jsx("div",{className:"transact-mints-container",children:i.map((v,y)=>w.jsxs("div",{className:"transact-mint-container",children:[w.jsxs("div",{className:"transact-mint-policy-and-close",children:[w.jsx("div",{className:"transact-mint-policy",children:Qe(v.policyId,4,6)}),w.jsx("div",{className:"transact-mint-close",children:w.jsx("button",{className:"button",style:{fontSize:12},onClick:()=>{n(N3(y))},children:"Remove"})})]}),w.jsxs("div",{className:"transact-spend-source",children:[w.jsx("div",{className:"input-label",children:"Redeemer"}),w.jsx("div",{className:"transact-spend-source-text",children:v.redeemerFileName})]}),w.jsx("div",{className:"transact-mint-assets-container",children:"Assets:"}),w.jsx("div",{className:"transact-mint-body-container",children:Object.keys(v.assets).map(b=>w.jsx("div",{children:w.jsxs("div",{className:"transact-mint-source",children:[w.jsx("div",{className:"input-label",children:Ko(b.substring(56))}),w.jsx("div",{className:"transact-mint-source-text",children:v.assets[b]})]})},b))})]},y))}),w.jsxs("div",{className:"mint-add-container",children:[w.jsxs("div",{className:"mint-policy-selection-container",children:[w.jsx("div",{className:"input-label",children:"Policy ID"}),w.jsx("select",{className:"mint-source-select",value:a,onChange:v=>[s(v.target.value)],children:t.map(v=>w.jsx("option",{value:v.scriptHash,children:Qe(v.scriptHash,4,6)},v.scriptHash))})]}),w.jsxs("div",{className:"utxo-redeemer-selection-container",children:[w.jsx("div",{className:"input-label",children:"Redeemer"}),w.jsx("select",{className:"utxo-source-select",value:g,onChange:v=>{k(v.target.value)},children:j.map(v=>w.jsx("option",{value:v,children:v},v))})]}),w.jsx("div",{className:"add-mint-button-container",children:w.jsx("button",{disabled:!S,className:`add-mint-button button ${S?"":"disabled"}`,onClick:()=>{n(O3({policyId:a,assets:m,redeemerFileName:g})),f(0n),c(""),k("None"),x({})},children:"Add Mint"})})]}),w.jsxs("div",{className:"payment-asset-add",children:[w.jsxs("div",{className:"mint-asset-selection-container",children:[w.jsx("div",{className:"input-label",children:"Asset Name"}),w.jsx("input",{className:"text-input",type:"text",value:_,onChange:v=>{c(v.target.value)}})]}),w.jsxs("div",{className:"selection-container",children:[w.jsx("div",{className:"input-label",children:"Quantity"}),w.jsx("input",{type:"number",className:"text-input",value:d.toString(),onChange:v=>{try{const y=parseInt(v.target.value);f(y>0?BigInt(y):0n)}catch{f(0n)}}})]}),w.jsx("div",{className:"add-mint-button-container",children:w.jsx("button",{disabled:!P,className:`add-mint-button button-secondary button ${P?"":"disabled"}`,onClick:()=>{const v=a+bv(_);m[v]?x({...m,[v]:(d+BigInt(m[v])).toString()}):x({...m,[v]:d.toString()})},children:"Include Asset"})})]}),w.jsx("div",{className:"payments-added-assets-container",children:Object.keys(m).length===0?w.jsx("div",{className:"added-assets-empty",children:"To add a payment, add at least one asset."}):Object.keys(m).map(v=>w.jsxs("div",{className:"added-asset-container",children:[w.jsx("div",{className:"added-asset-name",children:Ko(v.substring(56))}),w.jsx("div",{className:"added-asset-quantity",children:m[v]}),w.jsx("div",{className:"added-asset-remove",onClick:()=>{x(({[v]:y,...b})=>b)},children:"\u274C"})]},v))})]})}function H3(){const n=Xt(),t=pt(T=>T.transact.payments),e=pt(T=>T.transact.spends),i=pt(T=>T.transact.mints),a=pt(T=>T.files.files),{wallets:s,contracts:_}=pt(T=>T.management),c=_.map(T=>T.address).concat(s.map(T=>T.address)),[d,f]=A.useState(c[0]||""),[g,k]=A.useState("lovelace"),[m,x]=A.useState(0n),[S,j]=A.useState("None"),[P,v]=A.useState({}),{isLucidLoading:y,lucid:b}=Zr(),I=b,M=(()=>{try{return I.utils.getAddressDetails(d),!0}catch{return!1}})(),U=i.reduce((T,L)=>(Object.entries(L.assets).forEach(([Q,Ct])=>{T[Q]?T[Q]=(BigInt(T[Q])+BigInt(Ct)).toString():T[Q]=Ct.toString()}),T),{}),D=e.flatMap(T=>T.utxos).reduce((T,L)=>(Object.entries(L.assets).forEach(([Q,Ct])=>{T[Q]?T[Q]=(BigInt(T[Q])+BigInt(Ct)).toString():T[Q]=Ct.toString()}),T),U),$=(()=>{const T=t.reduce((L,Q)=>(Object.keys(Q.assets).forEach(Ct=>{L[Ct]||(L[Ct]="0"),L[Ct]=(BigInt(L[Ct])+BigInt(Q.assets[Ct])).toString()}),L),{});return Object.keys(T).every(L=>BigInt(D[L]||"0")>=BigInt(T[L]))})(),Y=Object.keys(D).length>0&&!Object.keys(D).includes(g)?"lovelace":g,W=m>0&&Y,St=Object.keys(P).length>0,Qt=M&&St,ue=a.filter(T=>T.type==="json").map(T=>T.name).concat(["None"]);return w.jsxs("div",{className:"transact-section transact-section-payment",children:[w.jsx("div",{className:"transact-spend-header",children:"Payment"}),w.jsx("div",{className:"transact-payment-message-container",children:t.length===0?w.jsxs("div",{children:[w.jsx("span",{style:{color:"#ff9353"},children:"\u26A0"})," Make at least one payment."]}):w.jsx("div",{children:`Making ${t.length} payment(s).`})}),w.jsx("div",{className:"transact-payment-error-container",children:$?"":"You cannot afford the transaction."}),w.jsx("div",{className:"transact-payments-container",children:t.map((T,L)=>w.jsxs("div",{className:"payment-container",children:[w.jsxs("div",{className:"transact-mint-policy-and-close",children:[w.jsx("div",{className:"transact-mint-policy",children:Qe(T.toAddress)}),w.jsx("div",{className:"transact-mint-close",children:w.jsx("button",{className:"button",style:{fontSize:12},onClick:()=>{n(P3(L))},children:"Remove"})})]}),w.jsxs("div",{className:"transact-mint-body-container",children:[w.jsxs("div",{className:"transact-spend-source",children:[w.jsx("div",{className:"input-label",children:"Datum"}),w.jsx("div",{className:"transact-spend-source-text",children:T.datumFileName})]}),w.jsxs("div",{className:"transact-spend-source",children:[w.jsx("div",{className:"input-label",children:"Assets"}),w.jsx("div",{className:"transact-spend-source-text",children:Object.keys(T.assets).map(Q=>w.jsxs("div",{children:[Q==="lovelace"?Q:Ko(Q.substring(56))," (",T.assets[Q],")"]},Q))})]})]})]},L))}),w.jsxs("div",{className:"payment-add-container",children:[w.jsxs("div",{className:"selection-container",children:[w.jsx("div",{className:"input-label",children:"To Address"}),w.jsx("select",{value:d,onChange:T=>f(T.target.value),children:c.map(T=>w.jsx("option",{value:T,children:`${_.find(L=>L.address===T)?"(Script) ":"(Wallet) "}${Qe(T)}`},T))})]}),w.jsxs("div",{className:"selection-container",children:[w.jsx("div",{className:"input-label",children:"Datum"}),w.jsx("select",{className:"select",value:S,onChange:T=>j(T.target.value),children:ue.map(T=>w.jsx("option",{value:T,children:T},T))})]}),w.jsx("div",{className:"add-mint-button-container",children:w.jsx("button",{disabled:!Qt,className:`add-mint-button button ${Qt?"":"disabled"}`,onClick:()=>{n(R3({datumFileName:S,assets:P,toAddress:d})),x(0n),j("None"),v({})},children:"Add Payment"})})]}),w.jsxs("div",{className:"payment-asset-add",children:[w.jsxs("div",{className:"selection-container",children:[w.jsx("div",{className:"input-label",children:"Asset"}),w.jsx("select",{value:Y,className:"select",onChange:T=>{k(T.target.value)},children:Object.keys(D).map(T=>w.jsx("option",{value:T,children:Qe(T.substring(0,55),4,6)+Ko(T.substring(56))},T))})]}),w.jsxs("div",{className:"selection-container",children:[w.jsx("div",{className:"input-label",children:"Quantity"}),w.jsx("input",{type:"number",className:"text-input",value:m.toString(),onChange:T=>{try{const L=parseInt(T.target.value);x(L>0?BigInt(L):0n)}catch{x(0n)}}})]}),w.jsx("div",{className:"add-mint-button-container",children:w.jsx("button",{disabled:!W,className:`add-mint-button button-secondary button ${W?"":"disabled"}`,onClick:()=>{P[Y]?v({...P,[Y]:(m+BigInt(P[Y])).toString()}):v({...P,[Y]:m.toString()})},children:"Include Asset"})})]}),w.jsx("div",{className:"payments-added-assets-container",children:Object.keys(P).length===0?w.jsx("div",{className:"added-assets-empty",children:"To add a payment, add at least one asset."}):Object.keys(P).map(T=>w.jsxs("div",{className:"added-asset-container",children:[w.jsx("div",{className:"added-asset-name",children:T==="lovelace"?T:Ko(T.substring(56))}),w.jsx("div",{className:"added-asset-quantity",children:P[T]}),w.jsx("div",{className:"added-asset-remove",onClick:()=>{v(({[T]:L,...Q})=>Q)},children:"\u274C"})]},T))})]})}function W3(){const n=Xt(),t=pt(c=>c.management.wallets),e=pt(c=>c.files.files),i=pt(c=>c.transact.extraSigners),a=pt(c=>c.transact.validity),s=pt(c=>c.transact.metadataFilename),_=["None"].concat(e.filter(c=>c.type==="json").map(c=>c.name));return w.jsxs("div",{className:"transact-section transact-section-extra",children:[w.jsx("div",{className:"transact-spend-header",children:"Extras"}),w.jsxs("div",{className:"transact-extras-container",children:[w.jsxs("div",{className:"extra-signers-container",children:[w.jsxs("div",{className:"input-label",children:["Extra Signers",w.jsx("span",{style:{fontWeight:"normal",fontSize:10},children:" (Ctrl / Cmd Click to remove)"})]}),w.jsx("div",{className:"extra-signers-input-container",children:w.jsx("select",{multiple:!0,className:"select select-multiple",value:i,onChange:c=>{const d=c.target.options,f=[];for(let g=0,k=d.length;gw.jsx("option",{value:c.address,children:Qe(c.address)},c.address))})})]}),w.jsxs("div",{className:"validity-container",children:[w.jsx("div",{className:"input-label",children:"Valid From"}),w.jsx("input",{type:"datetime-local",onChange:c=>{n(Mv({...a,from:c.target.value}))}})]}),w.jsxs("div",{className:"validity-container",children:[w.jsx("div",{className:"input-label",children:"Valid To"}),w.jsx("input",{type:"datetime-local",onChange:c=>{n(Mv({...a,to:c.target.value}))}})]}),w.jsxs("div",{className:"validity-container",children:[w.jsx("div",{className:"input-label",children:"Metadata"}),w.jsx("select",{value:s,onChange:c=>{n(T3(c.target.value))},children:_.map(c=>w.jsx("option",{value:c,children:c},c))})]})]})]})}function V3(){const n=pt(P=>P.transact),t=pt(P=>P.files.files),{contracts:e,wallets:i}=pt(P=>P.management),{mints:a,spends:s,payments:_}=n,{walletApi:c}=nf(),d=Xt(),{isLucidLoading:f,lucid:g}=Zr(),k=g,m=s.length!==0,x=_.length!==0,S=[];m||S.push(w.jsxs("div",{children:[w.jsx("span",{style:{color:"#ff9353"},children:"\u26A0"})," Choose at least one UTxO to spend."]},"atLeastOneInput")),x||S.push(w.jsxs("div",{children:[w.jsx("span",{style:{color:"#ff9353"},children:"\u26A0"})," Make at least one payment."]},"atLeastOnePayment")),q3(a,s,_)||S.push(w.jsxs("div",{children:[w.jsx("span",{style:{color:"#ff9353"},children:"\u26A0"})," Insufficient inputs to fund payments."]},"bagTooSmall"));const j=S.length>0;return!j&&["failed","idle","completed"].includes(n.transactionSubmissionState)&&S.push(w.jsx("div",{children:"\u2714\uFE0F Ready to submit."},"readyToSubmit")),n.transactionSubmissionState==="building"&&S.push(w.jsx("div",{children:"\u{1F527} Building transaction..."},"building")),n.transactionSubmissionState==="submitting"?S.push(w.jsx("div",{children:"\u27F3 Submitting transaction..."},"building")):n.transactionSubmissionState==="submitted"?S.push(w.jsx("div",{children:"\u27F3 Awaiting confirmation..."},"submitted")):n.transactionSubmissionState==="completed"?S.push(w.jsx("div",{children:"\u2714\uFE0F Last transaction was successful!"},"completed")):n.transactionSubmissionState==="failed"&&S.push(w.jsxs("div",{children:["\u274C Transaction failed!",w.jsx("p",{children:n.transactionSubmissionError})]},"failed")),w.jsxs("div",{className:"transact-submit",children:[w.jsxs("div",{className:"transact-feedback-display",children:[w.jsx("div",{className:"transact-feedback-heading",children:"Submission"}),S]}),w.jsx("div",{className:"transact-submit-button-container",children:w.jsx("button",{disabled:j,className:`button submit-transaction-button ${j?"disabled":""}`,onClick:()=>{d(af("building")),K3(k,n,t,e,i,c).then(P=>(d(af("submitting")),P.submit())).then(P=>{if(d(af("submitted")),k.network==="Custom")k.provider.awaitTx(P);else return Promise.resolve()}).then(()=>{d(F3(n))}).catch(P=>{d(z3(P.message))})},children:"Submit Transaction"})})]})}async function K3(n,t,e,i,a,s){const{mints:_,spends:c,payments:d,extraSigners:f,validity:g,metadataFilename:k}=t,m=n.newTx();for(const j of c){const P=e.find(b=>b.name===j.redeemerFileName),v=j.redeemerFileName&&j.redeemerFileName!=="None";if(v&&!P)throw Error(`Could not find ${j.redeemerFileName} to build redeemer`);if(j.source==="contract"){const b=j.utxos[0].address,I=i.find(M=>M.address===b);if(!I)throw Error(`Could not find script address ${b} in contracts.`);m.attachSpendingValidator(I.script)}let y;if(v&&P)try{const b=JSON.parse(P.content);y=Qs(b)}catch(b){throw b.message&&b.message.includes("JSON.parse")?Error(`Invalid JSON in ${P.name}`):Error(`JSON in ${P.name} cannot be converted to Data`)}y?m.collectFrom(Av(j.utxos),ci.to(y)):m.collectFrom(Av(j.utxos))}for(const j of _){const P=e.find(I=>I.name===j.redeemerFileName),v=j.redeemerFileName&&j.redeemerFileName!=="None";if(v&&!P)throw Error(`Could not find ${j.redeemerFileName} to build redeemer`);const y=i.find(I=>I.scriptHash===j.policyId);if(!y)throw Error(`Could not find script address ${j.policyId} in contracts`);m.attachMintingPolicy(y.script);let b;if(v&&P)try{const I=JSON.parse(P.content);b=Qs(I)}catch(I){throw I.message&&I.message.includes("JSON.parse")?Error(`Invalid JSON in ${P.name}`):Error(`JSON in ${P.name} cannot be converted to Data`)}b?m.mintAssets(ld(j.assets),ci.to(b)):m.mintAssets(ld(j.assets))}for(const j of d){const P=e.find(b=>b.name===j.datumFileName),v=j.datumFileName&&j.datumFileName!=="None";if(v&&!P)throw Error(`Could not find ${j.datumFileName} to build datum`);let y;if(v&&P)try{const b=JSON.parse(P.content);y=Qs(b)}catch(b){throw b.message&&b.message.includes("JSON.parse")?Error(`Invalid JSON in ${P.name}`):Error(`JSON in ${P.name} cannot be converted to Data`)}y?m.payToAddressWithData(j.toAddress,ci.to(y),ld(j.assets)):m.payToAddress(j.toAddress,ld(j.assets))}for(const j of f)m.addSigner(j);if(g.from&&m.validFrom(new Date(g.from).valueOf()),g.to&&m.validTo(new Date(g.to).valueOf()),k&&k!=="None"){const j=e.find(v=>v.name===k);if(!j)throw Error(`Could not find metadata file ${k}`);let P;try{P=JSON.parse(j.content)}catch{throw Error(`Invalid JSON in metadata file ${P}`)}for(const v of Object.keys(P))try{const y=parseInt(v);m.attachMetadata(y,P[v])}catch{throw Error(`Expected numeric label key in metadata, instead received key ${v}`)}}const x=await m.complete(),S=c.filter(j=>j.source==="wallet").map(j=>j.utxos[0].address);for(const j of f){if(S.includes(j))continue;const P=a.find(v=>v.address===j);if(!P)throw Error(`Could not find wallet for address ${j}`);if(P.seed)n.selectWalletFromSeed(P.seed);else if(s)n.selectWallet(s);else throw Error(`Unable to select wallet for signature for address ${j}`);x.partialSign()}for(const j of S){const P=a.find(v=>v.address===j);if(!P)throw Error(`Could not find wallet for adress ${j}`);if(P.seed)n.selectWalletFromSeed(P.seed);else if(s)n.selectWallet(s);else throw Error(`Unable to select wallet for signature for address ${j}`);await x.partialSign()}return await x.complete()}function q3(n,t,e){const i=n.reduce((s,_)=>(Object.entries(_.assets).forEach(([c,d])=>{s[c]?s[c]=(BigInt(s[c])+BigInt(d)).toString():s[c]=d.toString()}),s),{}),a=t.flatMap(s=>s.utxos).reduce((s,_)=>(Object.entries(_.assets).forEach(([c,d])=>{s[c]?s[c]=(BigInt(s[c])+BigInt(d)).toString():s[c]=d.toString()}),s),i);return(()=>{const s=e.reduce((_,c)=>(Object.keys(c.assets).forEach(d=>{_[d]||(_[d]="0"),_[d]=(BigInt(_[d])+BigInt(c.assets[d])).toString()}),_),{});return Object.keys(s).every(_=>BigInt(a[_]||"0")>=BigInt(s[_]))})()}function Q3(){const{isLucidLoading:n,lucid:t}=Zr();return n||!t?w.jsx("div",{}):w.jsx("div",{className:"management-content-scroll-exclusion-wrapper",children:w.jsxs("div",{className:"management-content management-section-shadow",children:[w.jsx("div",{className:"management-section-heading",children:"Transact"}),w.jsx(L3,{}),w.jsx($3,{}),w.jsx(H3,{}),w.jsx(W3,{}),w.jsx(V3,{})]})})}function J3(){const n=pt(t=>t.management);return(()=>{if(n.selectedTabIndex===0)return w.jsx(vj,{});if(n.selectedTabIndex===1)return w.jsx(y3,{});if(n.selectedTabIndex===2)return w.jsx(x3,{});if(n.selectedTabIndex===3)return w.jsx(Q3,{})})()}function X3(){const n=pt(a=>a.files),t=Xt(),e=A.useRef(null),i=a=>{a.preventDefault(),e.current&&(e.current.scrollLeft+=a.deltaY*2)};return w.jsx("div",{className:"editor-tab-container",ref:e,onWheel:i,children:n.openFileIndices.map(a=>{const s=n.files[a],{name:_,extension:c}=Pb(s.name),d=n.currentFileFocusedInEditorIndex===a?"highlight-open-focused-tab":"";return w.jsx("div",{className:`editor-tab ${d}`,onMouseUp:f=>{f.preventDefault(),f.button===1&&t(_j(a))},onMouseDown:f=>{f.preventDefault(),f.button===0?t(Cb(a)):f.button===1&&t(Eb(a))},onMouseLeave:()=>{n.pendingCloseFileIndex===a&&t(Eb(-1))},children:w.jsxs("div",{className:"editor-tab-label unselectable",children:[w.jsx("span",{className:"filename-start",children:_}),w.jsx("span",{className:"filename-end",children:c})]})},a)})})}const G3={visible:!1,options:[],position:{x:0,y:0}},Uv=Mi({name:"contextMenu",initialState:G3,reducers:{showContextMenu(n,t){n.visible=!0,n.options=t.payload.options,n.position=t.payload.position},hideContextMenu(n){n.visible=!1,n.options=[],n.position={x:0,y:0}}}}),{showContextMenu:Lv,hideContextMenu:$v}=Uv.actions,Y3=Uv.reducer;function Z3(){const n=pt(i=>i.files),t=Xt(),e=A.useRef(null);return A.useEffect(()=>{n.beingRenamedFileIndex!==-1&&e.current&&(e.current.focus(),e.current.select())},[n.beingRenamedFileIndex]),ef(n.renameFileError||"",e,{x:100,y:-10},()=>{t(uj())}),w.jsxs("div",{className:"file-manager-container",children:[w.jsxs("div",{className:"file-manager-header unselectable",children:[w.jsx("div",{children:w.jsx("strong",{children:"Files"})}),w.jsxs("div",{className:"add-file-icon unselectable",onClick:()=>t(Ob()),children:[w.jsx("span",{className:"add-file-icon-plus",children:"+"}),"\u{1F5CE}"]})]}),w.jsx("div",{className:"file-manager-file-list ",onContextMenu:i=>{i.preventDefault(),t(Lv({options:[{name:"New File"}],position:{x:i.clientX,y:i.clientY}}))},children:w.jsx("div",{className:"file-entry-wrapper",children:n.files.map((i,a)=>{const{name:s,extension:_}=Pb(i.name),c=a===n.currentFileFocusedInEditorIndex?"highlight-open-focused-file":"",d=n.openFileIndices.includes(a)?"highlight-open-file":"";return a===n.beingRenamedFileIndex?w.jsx("div",{className:`file-manager-file-entry file-rename-entry ${c} ${d}`,children:w.jsx("input",{ref:e,className:"file-rename-input",type:"text",defaultValue:i.name,onKeyDown:f=>{var g;f.key==="Enter"?(t(Nb(((g=e.current)==null?void 0:g.value)||"error.error")),f.preventDefault()):f.key==="Escape"&&t(cj())},onBlur:()=>{var f;t(Nb(((f=e.current)==null?void 0:f.value)||"error.error"))}},"unique-id")},a):w.jsxs("div",{className:`file-manager-file-entry ${c} ${d} unselectable`,onClick:()=>{t(Cb(a))},onContextMenu:f=>{f.stopPropagation(),f.preventDefault(),t(Lv({options:[{name:"New File"},{name:"Delete File",data:{deletedFileIndex:a}},{name:"Rename File",data:{renamedFileIndex:a}}],position:{x:f.clientX,y:f.clientY}}))},children:[w.jsx("span",{className:"filename-start",children:s}),w.jsx("span",{className:"filename-end",children:_})]},a)})})})]})}function tC(){const n=pt(t=>t.tooltip.tooltips);return n.length===0?null:w.jsx(w.Fragment,{children:n.map(({id:t,message:e,position:i})=>w.jsx("div",{style:{position:"absolute",left:`${i.x}px`,top:`${i.y}px`},className:"tooltip",children:e},t))})}function eC(){const{visible:n,options:t,position:e}=pt(s=>s.contextMenu),i=Xt(),a=A.useRef(null);return A.useEffect(()=>{const s=_=>{a.current&&!a.current.contains(_.target)&&i($v())};return n&&document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}},[n,i]),n?w.jsx("div",{ref:a,style:{position:"absolute",left:`${e.x}px`,top:`${e.y}px`},className:"context-menu unselectable",children:t.map((s,_)=>w.jsx("div",{className:"context-menu-item",onClick:()=>{switch(s.name){case"New File":i(Ob());break;case"Delete File":i(lj(s.data.deletedFileIndex));break;case"Rename File":i(dj(s.data.renamedFileIndex));break}i($v())},children:s.name},_))}):null}function nC(){const n=pt(e=>e.management),t=Xt();return w.jsx("div",{className:"management-tab-container",children:i3.map((e,i)=>{const a=n.selectedTabIndex===i?"highlight-focused-management-tab":"";return w.jsx("div",{className:`management-tab ${a} unselectable`,onClick:()=>{t(o3(i))},children:e},i)})})}var rC={BASE_URL:"/aiken-ide/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const aC={open:!1,network:"Custom",providerConfig:{kind:"emulator"},form:{providerKind:"emulator",network:"Emulator",blockfrost:{kind:"blockfrost",apiKey:rC.VITE_BLOCKFROST_API_KEY||"",url:"https://cardano-preview.blockfrost.io/api/v0"},kupmios:{kind:"kupmios",kupoUrl:"",ogmiosUrl:""}}},Hv=Mi({name:"tooltip",initialState:aC,reducers:{toggleSettings:n=>{n.open=!n.open},saveUpdatedSettings:n=>{if(n.open=!1,n.network=n.form.network==="Emulator"?"Custom":n.form.network,n.form.providerKind==="blockfrost")n.providerConfig=n.form.blockfrost;else if(n.form.providerKind==="kupmios")n.providerConfig=n.form.kupmios;else if(n.form.providerKind==="emulator")n.providerConfig={kind:"emulator"};else throw Error("not implemented")},setFormProviderKind:(n,t)=>{n.form.providerKind=t.payload},setFormNetwork:(n,t)=>{n.form.network=t.payload,n.form.network==="Emulator"&&n.form.providerKind!=="emulator"&&(n.form.providerKind="emulator"),n.form.network!=="Emulator"&&n.form.providerKind==="emulator"&&(n.form.providerKind="blockfrost")},setBlockfrostConfig:(n,t)=>{n.form.blockfrost=t.payload},setKupmiosConfig:(n,t)=>{n.form.blockfrost=t.payload}}}),{toggleSettings:Wv,saveUpdatedSettings:Vv,setFormProviderKind:iC,setBlockfrostConfig:Kv,setKupmiosConfig:fC,setFormNetwork:sC}=Hv.actions,oC=Hv.reducer;function _C(){const[n,t]=A.useState(!1),[e,i]=A.useState(""),a=pt(m=>m.settings),s=pt(m=>m.management.wallets),_=pt(m=>m.management.contracts),c=Xt(),d=["Emulator","Preview","Preprod","Mainnet"],f=a.form.network==="Emulator"?["emulator"]:["blockfrost"],g=a.form.providerKind==="emulator"?w.jsx("div",{}):a.form.providerKind==="blockfrost"?w.jsxs("div",{className:"settings-subsection",children:[w.jsxs("div",{className:"setting",children:[w.jsx("div",{className:"input-label",children:"API Key"}),w.jsx("input",{type:"text",value:a.form.blockfrost.apiKey,onChange:m=>{c(Kv({...a.form.blockfrost,apiKey:m.target.value}))}})]}),w.jsxs("div",{className:"setting",children:[w.jsx("div",{className:"input-label",children:"API URL"}),w.jsx("input",{type:"text",value:a.form.blockfrost.url,onChange:m=>{c(Kv({...a.form.blockfrost,url:m.target.value}))}})]})]}):w.jsx("div",{children:"Kupmios Settings"}),k=a.providerConfig.kind==="emulator"&&a.form.providerKind!=="emulator"||a.providerConfig.kind!=="emulator"&&a.form.providerKind==="emulator"?"Changing between emulated and live networks will clear the list of registered wallets and any emulator state.":"";return w.jsx("div",{children:a.open&&w.jsx("div",{className:"modal-overlay",onClick:()=>c(Wv()),children:w.jsxs("div",{className:"modal-content",onClick:m=>m.stopPropagation(),children:[w.jsxs("span",{className:"settings-header",children:["Settings",n?w.jsxs("div",{className:"lds-ring",children:[w.jsx("div",{}),w.jsx("div",{}),w.jsx("div",{}),w.jsx("div",{})]}):null]}),k?w.jsx("span",{className:"settings-warning",children:k}):null,w.jsx("span",{className:"settings-error",children:e}),w.jsx("div",{className:"settings-section-header",children:"Provider"}),w.jsxs("div",{className:"setting",children:[w.jsx("div",{className:"input-label",children:"Network"}),w.jsx("select",{value:a.form.network,onChange:m=>{c(sC(m.target.value))},children:d.map(m=>w.jsx("option",{value:m,children:m},m))})]}),w.jsxs("div",{className:"setting",children:[w.jsx("div",{className:"input-label",children:"Provider Type"}),w.jsx("select",{value:a.form.providerKind,onChange:m=>{c(iC(m.target.value))},children:f.map(m=>w.jsx("option",{value:m,children:wj(m)},m))})]}),g,w.jsxs("div",{className:"settings-form-buttons",children:[w.jsx("button",{onClick:()=>{if(i(""),a.form.providerKind==="blockfrost")t(!0),pc.new(new xv(a.form.blockfrost.url,a.form.blockfrost.apiKey),a.form.network==="Emulator"?"Custom":a.form.network).then(m=>{if(a.providerConfig.kind==="emulator"&&a.form.providerKind!=="emulator"&&c(Cv()),a.network==="Mainnet"&&a.form.network!=="Mainnet"||a.network!=="Mainnet"&&a.form.network==="Mainnet"){const x={};for(const S of _)x[S.address]=m.utils.validatorToAddress(S.script);for(const S of s)x[S.address]=m.utils.credentialToAddress(m.utils.keyHashToCredential(S.pkh),m.utils.stakeCredentialOf(S.address));c(l3(x))}c(Vv())}).catch(m=>{i("Unable to retrive protocol params from new provider. Check your settings?"),console.error(m.message)}).finally(()=>{t(!1)});else if(a.form.providerKind==="emulator")a.providerConfig.kind!=="emulator"&&a.form.providerKind==="emulator"&&c(Cv()),c(Vv());else throw Error("not implemented")},className:"button settings-save-button",children:"Save"}),w.jsx("button",{onClick:()=>c(Wv()),className:"button settings-close-button",children:"Cancel"})]})]})})})}BigInt.prototype.toJSON=function(){return this.toString()};function cC(){const n=Ug(),[t,e]=A.useState(!0),[i,a]=A.useState(null),s=n.isLoading||t?"":"hidden",_=n.isLoading||t?"hidden":"";return w.jsxs(Fb.Provider,{value:i,children:[w.jsx(_C,{}),w.jsx(tC,{}),w.jsx(eC,{}),w.jsx("div",{className:`main-layout-container ${s}`,children:"!!!Loading... "}),w.jsx("div",{className:`main-layout-container ${_}`,children:w.jsxs("div",{className:"editor-and-management-view-container",children:[w.jsxs("div",{className:"editor-container",children:[w.jsx(yj,{}),w.jsxs("div",{className:"editor-content-container",children:[w.jsx(Z3,{}),w.jsxs("div",{className:"editor-and-tabs-container",children:[w.jsx(X3,{}),w.jsx(fj,{onLoad:c=>{a(c),e(!1)}})]})]})]}),w.jsxs("div",{className:"management-panel-container",children:[w.jsx(mj,{}),w.jsx(nC,{}),w.jsx(J3,{})]})]})})]})}const lC={network:"Emulator",isLoading:!0},qv=Mi({name:"lucid",initialState:lC,reducers:{setNetwork(n,t){n.network=t.payload},setIsLucidLoading(n,t){n.isLoading=t.payload}}});qv.actions;const dC=qv.reducer,uC=Ux({reducer:{project:gj,files:pj,tooltip:w3,contextMenu:Y3,management:d3,lucid:dC,transact:D3,settings:oC}});gd.createRoot(document.getElementById("root")).render(w.jsx(ta.StrictMode,{children:w.jsx(U6,{store:uC,children:w.jsx(u3,{children:w.jsx(m3,{children:w.jsx(cC,{})})})})}))})(); diff --git a/assets/index-CRHpgSRd.css b/assets/index-CRHpgSRd.css deleted file mode 100644 index 3ec4b17..0000000 --- a/assets/index-CRHpgSRd.css +++ /dev/null @@ -1 +0,0 @@ -#root{margin:0 auto;text-align:center;height:100vh;max-height:100vh;color:#fafafa}body{overflow-y:hidden;padding:0;margin:0;background-color:#5a173c;background-image:linear-gradient(225deg,#5a173c,#331e43 45%,#154160)}.main-layout-container{display:flex;flex-direction:column;max-height:100%;height:100%}.editor-and-management-view-container{display:flex;flex-direction:row;width:100%;max-width:100%;max-height:100%;height:100%;margin-top:6px}.editor-container{display:flex;flex-direction:column;width:100%;max-width:60vw;height:100%;max-height:100%;flex:1}.editor-content-container{display:flex;flex-direction:row;max-height:100%}.editor-and-tabs-container{max-width:100%;min-width:50vw;max-height:100%;height:100%;display:flex;flex-direction:column}.management-panel-container{display:flex;flex-direction:column;max-width:40vw;max-height:100%;height:100%;flex:1;word-wrap:break-word}.tooltip{background-color:#262626f2;border:solid 1px rgb(94,94,94);color:#fff;padding:8px 10px;z-index:999;border-radius:4px;box-shadow:0 2px 10px #00000080;position:absolute;white-space:nowrap;pointer-events:none}.context-menu{min-width:200px;background-color:#262626f2;border:solid 1px rgb(94,94,94);color:#fff;z-index:999;border-radius:3px;box-shadow:0 2px 10px #00000080;position:absolute;white-space:nowrap;display:flex;flex-direction:column;align-items:start;justify-content:center}.context-menu-item{display:flex;width:100%;padding:5px;box-sizing:border-box}.context-menu-item:hover{background-color:#464646}.hidden{display:none}.unselectable{-webkit-user-select:none;user-select:none}.disabled{opacity:.5}.disabled:hover{background-color:#0000;cursor:default}.copy-widget{margin-left:10px}.input-label{font-size:12px;font-weight:700;margin-bottom:2px}.button{font-size:16px;background-color:#163173;border:solid 1px rgb(158,172,181);padding:2px}.button:hover{background-color:#205080;cursor:pointer}.button:active{background-color:#6794c1;cursor:pointer}::-webkit-scrollbar-track{background-color:#0000!important}::-webkit-scrollbar-thumb{background-color:#fff2!important}::-webkit-scrollbar{width:8px;height:8px}.top-bar{display:flex;align-items:center;justify-content:left;font-size:20px;height:4vh;max-height:4vh;min-height:45px;overflow:hidden;border:1px solid black;gap:20px;background-color:#0002;padding:5px 10px;box-shadow:inset 15px 0 25px 1px #0000002e}.editor-top-bar{display:flex;justify-content:space-between;gap:20px;margin-right:8px}.top-bar-item{padding:5px;margin-top:none}.editor-top-bar-item{margin-top:none}.editor-top-bar-item:hover{cursor:pointer}.no-last-build-notice{margin-left:10px}.editor-top-bar-right-side{display:flex;gap:20px;font-size:16px}.editor-top-bar-left-side{display:flex;gap:20px}.editor-top-bar-item .editor-top-bar-play-icon{transition:color .4s ease;display:inline;color:#fff}.editor-top-bar-item:hover .editor-top-bar-play-icon{color:#49cb49}.editor-top-bar-item .editor-top-bar-build-icon{transition:color .25s ease;display:inline;color:#fff}.editor-top-bar-item:hover .editor-top-bar-build-icon{color:#69b7b6}.editor-top-bar-item .editor-top-bar-format-icon{transition:color .25s ease;display:inline;color:#fff}.editor-top-bar-item:hover .editor-top-bar-format-icon{color:#f5d34e}.editor-top-bar-item .editor-top-bar-share-icon{transition:color .25s ease;display:inline;color:#fff}.editor-top-bar-item:hover .editor-top-bar-share-icon{color:#ff82c7}@supports (-moz-appearance:none){.management-content-scroll-exclusion-wrapper{scrollbar-width:thin;scrollbar-color:rgba(213,213,213,.163) #00000000;scrollbar-gutter:stable}}.management-section-shadow{box-shadow:inset 0 0 25px 5px #00000040}.management-section-heading{font-size:30px;margin-bottom:10px;width:100%;border-bottom:5px solid rgb(64,140,216);display:flex}.management-content-scroll-exclusion-wrapper{display:flex;flex-direction:column;align-items:start;overflow-y:scroll;overflow-x:hidden;width:100%;max-height:calc(97vh - 77px);padding:0;margin:0;flex:1}.management-content{display:flex;flex-direction:column;align-items:start;background-color:#0007;width:100%;flex-grow:1;margin:0;padding:20px;box-sizing:border-box}.summary{display:flex;flex-direction:row;padding:0;margin:0}.summary-entry{margin:5px}.build-result-heading{font-size:24px}.warning-number{color:#f6f679}.error-number{color:#f15151}.test-number{color:#5189f1}.build-results-section{display:flex;flex-direction:column;align-items:start;padding:0 10px 10px;margin-left:15px;margin-top:15px}.tests{border-left:3px solid rgb(81,137,241)}.warnings{border-left:3px solid rgb(246,246,121)}.build-results-individual-result{padding:5px;background-color:#232324;margin:10px;display:flex;flex-direction:column;align-items:start;font-family:monospace;text-align:left}.warning-item{padding:5px 5px 5px 15px}.errors{border-left:3px solid rgb(241,81,81)}.error-item{padding:5px 5px 5px 15px}.build-result-container{display:flex;flex-direction:column;align-items:start;width:100%;margin:0 10px 10px}.build-result-filename{padding:5px;margin-left:10px;font-size:26px;display:flex;box-sizing:border-box}.management-tab-container{display:flex;flex-direction:row;align-items:center;justify-content:start;max-width:100%;overflow-x:scroll;overflow-y:hidden;padding:0;background-color:#0000;height:35px;min-height:35px;font-size:13px}@supports (-moz-appearance:none){.management-tab-container{scrollbar-width:thin;scrollbar-color:rgba(213,213,213,.163) #00000000;scrollbar-gutter:stable}}.management-tab{min-width:100px;max-width:150px;height:100%;border-right:1px solid black;display:flex;justify-content:center;align-items:center;box-shadow:inset 0 -3px 3px #00000061;background-color:#0002}.management-tab-container .management-tab:first-child{border-left:1px solid black}.management-tab:not(.highlight-focused-management-tab):hover{background-color:#ffffff09}.highlight-focused-management-tab{background-color:#0005}.disabled{cursor:not-allowed!important;background-color:#ccc}.disabled:hover{cursor:not-allowed!important;background-color:#ccc!important}.contracts-container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:start;min-width:300px;padding:15px;margin-top:10px}.contract-container{margin-left:20px;margin-bottom:20px;min-width:250px;display:flex;flex-direction:column;align-items:start;background-color:#0b0b19;border:solid 1px rgb(158,172,181)}.contract-header{background-color:#25244c;border:solid 1px rgb(158,172,181);width:100%;padding:5px 5px 5px 10px;margin-bottom:5px;display:flex;box-sizing:border-box}.delete-contract-button{padding-left:5px;padding-right:5px;margin:10px}.delete-contract-button-container{display:flex;justify-content:end;width:100%}.contract-name{font-weight:700;font-size:16px}.contract-version{padding:5px;width:100%;text-align:right;box-sizing:border-box;font-size:12px}.contract-data-holder{display:flex;flex-direction:row;width:100%}.contract-params{margin-left:10px;margin-bottom:20px;display:flex;flex-direction:column;align-items:start;width:100%}.contract-params-content{margin-left:5px;font-size:12px}.contract-params-label{font-weight:700}.contracts-heading{font-size:30px;margin-bottom:10px;width:100%;border-bottom:5px solid rgb(64,140,216);display:flex}.add-contract-container{display:flex;flex-direction:column;align-items:start;margin-left:15px;border-left:2px solid rgb(64,140,216);border-bottom:2px solid rgb(64,140,216);min-width:200px;padding:10px}.add-contract-content{display:flex;flex-direction:row}.add-contract-header{font-size:18px;font-weight:700;margin-bottom:20px}.add-contract-selection-container{display:flex;flex-direction:column;justify-content:space-between;align-items:start;margin-right:10px}.add-contract-select{border-radius:0;border:1px solid rgb(158,172,181)}.add-contract-button{padding-left:5px;padding-right:5px}.add-contract-button:hover{background-color:#205080;cursor:pointer}.add-contract-button:active{background-color:#6794c1;cursor:pointer}.add-contract-button-container{margin-top:20px}@supports (-moz-appearance:none){.contracts-content{scrollbar-width:thin;scrollbar-color:rgba(213,213,213,.163) #00000000;scrollbar-gutter:stable}}.wallet-utxos-container{display:flex;flex-direction:column;align-items:start;width:100%;margin-top:25px;background-color:#0a0f10;border-top:2px solid white;border-bottom:2px solid white}.wallet-utxos-address{padding:5px 5px 5px 15px;width:100%;display:flex;align-items:center;font-size:22px}.wallet-utxos-address .copy-widget{font-size:16px}.utxo-container{display:flex;flex-direction:column;align-items:start;border:solid 1px rgb(158,172,181);background-color:#0b0b19}.wallet-utxos{min-width:325px;margin-left:30px;margin-bottom:15px}.asset-container{display:flex;flex-direction:row;margin-left:15px;justify-content:flex-start;align-items:center}.asset-label{margin-right:5px;font-weight:700;font-size:13px}.asset-value{margin-right:15px;font-size:12px}.txid{background-color:#25244c;width:100%;display:flex;padding-left:10px;padding-right:10px;box-sizing:border-box;justify-content:space-between}.asset-container-container{width:100%}.wallet-utxos-pkh{display:flex;flex-direction:column;align-items:start;margin-left:15px;font-size:12px;margin-bottom:20px}.wallet-buttons{align-self:flex-end;display:flex;gap:15px}.utxo-selection-container{width:calc(100% - 40px);margin:20px;display:flex;flex-direction:column;justify-content:start}.utxo-utxo-selection-container{margin-top:20px;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:20px}.utxo-selection-container-options{display:flex}.utxo-source-selection-container{display:flex;flex-direction:column;align-items:start}.utxo-address-selection-container,.utxo-redeemer-selection-container{display:flex;flex-direction:column;align-items:start;padding-left:10px}.utxo-selection-submit-container{display:flex;flex-direction:column;justify-content:end;padding-left:10px}.utxo-source-select{border-radius:0;border:1px solid rgb(158,172,181)}.transact-section{display:flex;flex-direction:column;align-items:start;border-left:solid 3px #408cd8;border-bottom:solid 3px #408cd8;margin-left:20px;width:calc(100% - 40px);margin-top:20px;word-wrap:break-word;word-break:normal}.transact-section-mint{border-left:solid 3px #40d891;border-bottom:solid 3px #40d891;padding-bottom:20px;margin-top:30px;display:flex;flex-direction:column}.transact-section-payment{border-left:solid 3px #ded285;border-bottom:solid 3px #ded285;margin-top:30px;display:flex;flex-direction:column}.transact-section-extra{border-left:solid 3px #cc85de;border-bottom:solid 3px #cc85de;margin-top:30px;display:flex;flex-direction:column}.address-text-input{border:1px solid white;font-size:16px;background-color:#0000;height:17px}.address-text-input:hover{border:1px solid white}.address-text-input:focus{border:1px solid white;outline:none}.utxo-wrapper-with-checkbox{display:flex;flex-direction:row}.utxo-selection-checkbox{margin-right:10px}.selected-utxo-border{border:solid 1px rgb(145,239,145)}.selection-submit-button{font-size:12.5px}.transact-spends-container{margin-left:20px;display:flex;flex-direction:row;gap:20px;flex-wrap:wrap}.transact-mint-policy-and-close{display:flex;background-color:#25244c;align-items:center;width:100%;justify-content:space-between}.transact-mint-policy{padding-left:5px;padding-right:5px;margin-right:20px}.transact-mint-close{padding:2px;cursor:pointer;font-size:1px}.transact-mints-container{display:flex;flex-wrap:wrap}.transact-mint-container{font-size:14px;display:flex;flex-direction:column;align-items:start;border:1px solid rgb(158,172,181);background-color:#052707;margin-left:20px;margin-bottom:20px;max-width:300px;min-width:225px;word-wrap:break-word;word-break:break-all;text-align:left}.transact-mint-body-container{margin-left:5px;margin-bottom:10px}.transact-spend-header{font-size:26px;margin-left:20px;margin-top:-10px}.transact-spend-container{font-size:14px;display:flex;flex-direction:column;align-items:start;border:1px solid rgb(158,172,181);background-color:#052707}.transact-spend-message-container{margin-left:20px;margin-bottom:10px;font-size:14px}.transact-spend-address{padding-left:5px;padding-right:5px;margin-right:20px}.transact-spend-close{padding:2px;cursor:pointer;font-size:1px}.transact-spend-redeemer{padding-left:5px;padding-right:5px;margin-top:5px;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:start}.transact-spend-redeemer-filename{margin-top:-5px;padding-left:10px}.transact-spend-source{padding-left:5px;padding-right:5px;margin-top:5px;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:start}.transact-spend-source-text{margin-top:-5px;padding-left:10px}.transact-spend-utxos{padding-left:5px;padding-right:5px;margin-top:5px;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:start}.transact-spend-utxo-display{padding:5px;margin-top:-5px}.transact-spend-address-and-close{display:flex;background-color:#25244c;align-items:center}.mint-add-container{display:flex;margin-left:10px}.mint-policy-selection-container,.mint-quantity-selection-container,.mint-asset-selection-container{display:flex;flex-direction:column;align-items:start;padding-left:10px}.mint-source-select{border-radius:0;border:1px solid rgb(158,172,181);min-width:100px}.add-mint-button{font-size:12.5px}.text-input{border:1px solid white;font-size:14px;background-color:#0000;height:17px;width:100px}.text-input:hover{border:1px solid white}.text-input:focus{border:1px solid white;outline:none}.add-mint-button-container{display:flex;flex-direction:column;justify-content:flex-end;padding-left:10px}.payment-add-container{display:flex;margin-left:10px}.selection-container{display:flex;flex-direction:column;align-items:start;padding-left:10px}.select{border-radius:0;border:1px solid rgb(158,172,181);min-width:100px}input{border-radius:0;border:1px solid rgb(158,172,181)}input:hover{border:1px solid rgb(158,172,181);outline:none}input:focus{border:1px solid rgb(158,172,181);outline:none}select{border-radius:0;border:1px solid rgb(158,172,181)}.text-input{border:1px solid white;font-size:15px;background-color:#0000;height:17px}.transact-payment-error-container{padding-left:20px;color:#ff9353;font-size:12px;margin-bottom:10px}.transact-payment-message-container{margin-left:20px;font-size:14px}.payments-added-assets-container{margin-left:20px;margin-bottom:20px;display:flex;flex-wrap:wrap;gap:10px}.added-asset-container{border:1px solid rgb(158,172,181);font-size:14px;display:flex;word-wrap:break-word;word-break:break-all}.added-asset-name{background-color:#141e78;padding:2px 5px}.added-asset-quantity{background-color:#160533;padding:2px}.added-asset-remove{color:#d57272;background-color:#160533;align-self:center;font-size:10px;padding:2px;cursor:pointer}.added-assets-empty{font-size:13px;margin-top:10px}.payment-asset-add{display:flex;margin:10px}.button-secondary{background-color:#073e07}.button-secondary:hover{background-color:#0f580f}.payment-container{font-size:14px;display:flex;flex-direction:column;align-items:start;border:1px solid rgb(158,172,181);background-color:#052707;margin-left:20px;margin-bottom:20px;max-width:300px;min-width:225px;word-wrap:break-word;word-break:break-all;text-align:left}.transact-extras-container{display:flex;flex-direction:column;margin-left:20px}.transact-payments-container{display:flex;flex-wrap:wrap}.select-multiple{max-height:75px}.extra-signers-input-container{margin-bottom:20px}.validity-container{display:flex;flex-direction:column;align-items:start;margin-bottom:10px}.extra-signers-container{display:flex;flex-direction:column;align-items:start}.transact-submit{min-height:300px;margin-right:20px;width:100%;display:flex;justify-content:flex-end;margin-top:20px}.transact-submit-button-container{padding-right:20px;padding-top:20px;width:calc(40% - 20px)}.submit-transaction-button{font-size:24px;padding:5px}.transact-feedback-display{display:flex;flex-direction:column;align-items:start;width:calc(60% - 40px);margin-left:40px}.transact-feedback-heading{font-size:24px}.transact-mint-assets-container{font-weight:700;margin-left:10px;font-size:20px}.transact-mint-source{padding-left:25px;padding-right:5px;margin-top:5px;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:start}.transact-mint-source-text{margin-top:-5px;padding-left:10px}.monaco-editor{--vscode-editorGutter-background: #00000077 !important;--vscode-editor-background: #00000000 !important}.monaco-mouse-cursor-text:after{content:"";position:absolute;right:8px;top:0;width:calc(100% - 8px);bottom:0;pointer-events:none;background-color:#0007;z-index:-100;box-shadow:inset -15px -25px 25px 1px #0000002e}.margin-view-overlays{box-shadow:inset 15px 0 25px 1px #0000002e}.scrollbar,.slider{width:8px!important}.decorationsOverviewRuler{width:8px!important;z-index:-99999}.editor-tab-container{display:flex;flex-direction:row;align-items:center;justify-content:start;max-width:100%;overflow-x:scroll;overflow-y:scroll;padding:0;background-color:#0000;min-height:35px;font-size:13px}@supports (-moz-appearance:none){.editor-tab-container{scrollbar-width:thin;scrollbar-color:rgba(213,213,213,.163) #00000000;scrollbar-gutter:stable}}.editor-tab{min-width:120px;max-width:120px;border-right:1px solid black;display:flex;height:100%;justify-content:center;align-items:center;border-bottom:1px solid black;box-sizing:border-box;box-shadow:inset 0 -3px 3px #00000061;background-color:#0002}.editor-tab-container .editor-tab:first-child{border-left:1px solid black}.highlight-open-focused-tab{background-color:#0005}.editor-tab:not(.highlight-open-focused-tab):hover{background-color:#ffffff09}.editor-tab:hover{cursor:pointer}.editor-tab-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;display:flex}.file-manager-container{display:flex;flex-direction:column;min-width:10vw;height:calc(97vh - 42px);background-color:#0000}.file-manager-header{display:flex;padding-left:10px;padding-right:10px;justify-content:space-between;align-items:center;height:35px}.file-manager-file-list{display:flex;flex-direction:column;align-items:start;padding:0;margin:0;width:100%;font-size:14px;overflow-y:scroll;overflow-x:hidden;flex:1;border-right:1px solid black}.file-entry-wrapper{display:flex;flex-direction:column;align-items:start;padding:0;margin:0;width:100%;background-color:#0004;flex-grow:1;box-shadow:inset -4px 0 25px 1px #0000002e}@supports (-moz-appearance:none){.file-manager-file-list{scrollbar-width:thin;scrollbar-color:rgba(213,213,213,.163) #00000000;scrollbar-gutter:stable}}.file-manager-file-entry{width:100%;border:1px solid transparent;display:flex;align-items:center;justify-content:start;padding-left:20px;padding-bottom:2px;box-sizing:border-box}.file-manager-file-entry:hover{cursor:pointer}.file-manager-file-entry:not(.highlight-open-focused-file):hover{background-color:#fff2}.management-tab:hover{cursor:pointer}.filename-start{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filename-end{flex-shrink:0;white-space:nowrap}.highlight-open-file{font-style:italic}.highlight-open-focused-file{background-color:#fff4}.add-file-icon{display:flex;align-items:center;justify-content:center}.add-file-icon:hover{color:#ffffff78;cursor:pointer}.add-file-icon-plus{color:#75dd75}.file-rename-entry{border:solid 1px rgba(255,255,255,.26);background-color:#0008}.file-rename-input{border:none;font-size:16px;background-color:#0000;width:100%}.file-rename-input:hover{border:none}.file-rename-input:focus{border:none;outline:none}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:9999}.modal-content{background-color:#1b1b1b;padding:20px;border-radius:5px;display:flex;flex-direction:column;align-items:start;gap:15px;min-width:30vw;min-height:60vh;font-size:13px}.setting{display:flex;flex-direction:column;align-items:start}.settings-header{font-size:28px}.settings-section-header{font-size:24px;font-weight:300;border-bottom:1px solid white}.settings-subsection{display:flex;flex-direction:column;gap:10px}.settings-form-buttons{display:flex;gap:10px}.settings-warning{color:orange}.settings-error{color:#ff7171;min-height:20px}.lds-ring{color:#eaeaea}.lds-ring,.lds-ring div{box-sizing:border-box;margin-left:10px}.lds-ring{display:inline-block;position:relative;width:20px;height:20px}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:20px;height:20px;margin:2%;border:2px solid currentColor;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:currentColor transparent transparent transparent}.lds-ring div:nth-child(1){animation-delay:-.45s}.lds-ring div:nth-child(2){animation-delay:-.3s}.lds-ring div:nth-child(3){animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale} diff --git a/assets/index-WXGqKltE.css b/assets/index-WXGqKltE.css new file mode 100644 index 0000000..f1df9ce --- /dev/null +++ b/assets/index-WXGqKltE.css @@ -0,0 +1 @@ +:root{--main-background-color: #34517d;--main-background-dark: #273d5e;--main-background-darker: #1e2e46;--main-background-darkest:rgb(20, 31, 47);--main-background-blackened:rgb(12, 18, 28);--button-primary: #12784d;--button-primary-hover: #1ba96e;--button-primary-active: #06995c;--button-danger: rgb(155, 48, 48);--button-danger-hover: rgb(184, 58, 58);--button-danger-active: rgb(185, 41, 41);--scrollbar-color: rgba(205, 210, 234, .509)}#root{margin:0 auto;text-align:center;height:100vh;max-height:100vh;color:#fafafa}body{overflow-y:hidden;padding:0;margin:0;background-color:var(--main-background-color)}.flex-row{display:flex;justify-content:start;align-items:center}.flex-column{display:flex;flex-direction:column;justify-content:center;align-items:start}.lr{justify-content:start;align-items:center}.main-layout-container{display:flex;flex-direction:column;max-height:100%;height:100%}.editor-and-management-view-container{display:flex;flex-direction:row;width:100%;max-width:100%;max-height:100%;height:100%}.editor-container{display:flex;flex-direction:column;width:100%;max-width:60vw;height:100%;max-height:100%;flex:1}.editor-content-container{display:flex;flex-direction:row;max-height:100%}.editor-and-tabs-container{max-width:100%;min-width:50vw;max-height:100%;height:100%;display:flex;flex-direction:column}.management-panel-container{display:flex;flex-direction:column;max-width:40vw;max-height:100%;height:100%;flex:1;word-wrap:break-word}.tooltip{background-color:#262626f2;border:solid 1px rgb(94,94,94);color:#fff;padding:8px 10px;z-index:999;border-radius:4px;box-shadow:0 2px 10px #00000080;position:absolute;white-space:nowrap;pointer-events:none}.context-menu{min-width:200px;background-color:#262626f2;border:solid 1px rgb(94,94,94);color:#fff;z-index:999;border-radius:3px;box-shadow:0 2px 10px #00000080;position:absolute;white-space:nowrap;display:flex;flex-direction:column;align-items:start;justify-content:center}.context-menu-item{display:flex;width:100%;padding:5px;box-sizing:border-box}.context-menu-item:hover{background-color:#464646}.hidden{display:none}.unselectable{-webkit-user-select:none;user-select:none}.disabled{opacity:.2;cursor:not-allowed!important}button.disabled,button.disabled:hover{background-color:#000}.disabled:hover{background-color:#0009;cursor:default}.copy-widget{margin-left:10px}.select{border-radius:0;border:none;border-bottom:solid 1px #ffffff55;min-width:100px;background-color:var(--main-background-darkest);padding:5px}input{border-radius:0;border:solid 1px #ffffff77}input:hover{border:1px solid rgb(158,172,181);outline:none}input:focus{border:1px solid rgb(158,172,181);outline:none}.text-input{border:1px solid white;font-size:15px;background-color:#0000;height:17px}.input-label{font-size:12px;margin-bottom:4px}.button{font-size:16px;outline:none;border:solid 1px black;padding:5px;background-color:var(--button-primary)}.button:hover{cursor:pointer;background-color:var(--button-primary-hover)}.button:active{cursor:pointer;background-color:var(--button-primary-active)}.danger-button{background-color:var(--button-danger)}.danger-button:hover{background-color:var(--button-danger-hover)}.danger-button:active{background-color:var(--button-danger-active)}::-webkit-scrollbar-track{background-color:#0000!important}::-webkit-scrollbar-thumb{background-color:#fff2!important}::-webkit-scrollbar{width:8px;height:8px}.top-bar{display:flex;align-items:center;justify-content:left;font-size:20px;height:4vh;max-height:4vh;min-height:45px;overflow:hidden;padding-top:5px;gap:20px;background-color:var(--main-background-darker);padding-left:10px}.editor-top-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:inset 7px 0 11px 1px #0000002e}.management-top-bar{box-shadow:inset -7px 0 11px 1px #0000002e}.top-bar-item{padding:5px;margin-top:none}.title-logo{margin-bottom:6px}.editor-top-bar-item{background-color:var(--main-background-color);border:1px solid rgba(0,0,0,1);min-width:50px;font-size:13px;transition:background-color linear .2s}.editor-top-bar-item:hover{cursor:pointer;background-color:var(--main-background-darkest);transition:background-color ease .2s}.editor-top-bar-right-side{display:flex;font-size:16px;gap:10px}.editor-top-bar-left-side{display:flex;gap:20px}.editor-top-bar-item .editor-top-bar-play-icon{transition:color .4s ease;display:inline;color:#fff}.editor-top-bar-item:hover .editor-top-bar-play-icon{color:#49cb49}.editor-top-bar-item .editor-top-bar-build-icon{transition:color .25s ease;display:inline;color:#fff}.editor-top-bar-item:hover .editor-top-bar-build-icon{color:#69b7b6}.editor-top-bar-item .editor-top-bar-format-icon{transition:color .25s ease;display:inline;color:#fff}.editor-top-bar-item:hover .editor-top-bar-format-icon{color:#f5d34e}.editor-top-bar-item .editor-top-bar-share-icon{transition:color .25s ease;display:inline;color:#fff}.editor-top-bar-item:hover .editor-top-bar-share-icon{color:#ff82c7}@supports (-moz-appearance:none){.management-content-scroll-exclusion-wrapper{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color) #0000;scrollbar-gutter:stable}}.management-section-shadow{box-shadow:inset 0 0 25px 5px #00000040}.management-section-heading{font-size:32px;font-weight:400;width:100%;display:flex}.management-content-scroll-exclusion-wrapper{display:flex;flex-direction:column;align-items:start;overflow-y:scroll;overflow-x:hidden;width:100%;max-height:calc(97vh - 60px);padding:0;margin:0;flex:1}.management-content{display:flex;flex-direction:column;align-items:start;background-color:var(--main-background-darkest);width:100%;flex-grow:1;margin:0;padding:20px;gap:20px;box-sizing:border-box}.summary{display:flex;flex-direction:row;padding:2px;margin-top:10px;margin-left:10px;font-size:12px;background-color:var(--main-background-darkest);border-radius:4px;border:solid 1px black;margin-bottom:10px}.summary-entry{border-radius:0;min-width:75px;display:flex;gap:5px;align-items:center;justify-content:center;font-size:13px}.warning-number{color:#f6f679}.error-number{color:#f15151}.test-number{color:#5189f1}.build-results-section{display:flex;flex-direction:column;align-items:start;margin-left:45px;margin-bottom:25px;border-radius:4px;width:90%}.build-results-individual-result{padding:5px;margin:10px;display:flex;flex-direction:column;align-items:start;font-family:monospace;text-align:left;background-color:var(--main-background-darkest);border-radius:4px;border:solid 1px rgb(0,0,0);box-shadow:2px 2px 2px #00000040}.no-last-build-notice{margin-left:10px}.card{border-radius:4px;font-size:13.5px}.tests-body-container{width:100%}.warning-item,.error-item{padding:5px 5px 5px 15px}.build-result-heading{font-size:24px}.build-result-container{display:flex;flex-direction:column;align-items:start;width:100%;margin-top:0;border:solid 1px black;box-shadow:3px 3px 5px 2px #00000040;background-color:var(--main-background-darker)}.build-result-filename{padding:5px 5px 5px 10px;box-sizing:border-box;width:100%;font-size:16px;display:flex;align-items:center;justify-content:start;text-align:left;border-bottom:solid 1px black;background-color:var(--main-background-color)}.management-tab-container{display:flex;flex-direction:row;align-items:center;justify-content:start;max-width:100%;overflow-x:scroll;overflow-y:hidden;padding:0;height:35px;min-height:35px;font-size:13px}@supports (-moz-appearance:none){.management-tab-container{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color) #0000;scrollbar-gutter:stable}}.management-tab{min-width:100px;max-width:150px;height:100%;border-right:1px solid black;display:flex;justify-content:center;align-items:center;box-shadow:inset 0 -3px 3px #00000061;background-color:var(--main-background-dark)}.management-tab-container .management-tab:first-child{border-left:1px solid black}.management-tab:not(.highlight-focused-management-tab):hover{background-color:var(--main-background-color)}.highlight-focused-management-tab{background-color:var(--main-background-darkest)}.contracts-container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:start;min-width:300px;padding:15px;gap:30px}.contract-container{min-width:250px;display:flex;flex-direction:column;align-items:start;border:solid 1px black;box-shadow:3px 3px 5px 2px #00000040}.contract-header{border-bottom:solid 1px black;background-color:var(--main-background-color);width:100%;padding:5px 5px 5px 10px;display:flex;box-sizing:border-box;align-items:center}.contract-data{width:100%;padding:10px;box-sizing:border-box;background-color:var(--main-background-darker)}.delete-contract-button-container{display:flex;justify-content:space-between;align-items:flex-end;margin-top:15px}.contract-created-at{display:flex;flex-direction:column;align-items:start;font-size:12px;margin-bottom:2px;color:#ddd}.contract-created-at-label{color:#ddd}.contracts-subheading{margin-left:15px;font-size:26px;margin-top:20px}.contract-name{font-size:13px}.contract-version{padding:5px;width:100%;text-align:right;box-sizing:border-box;font-size:11px}.contract-data-holder{display:flex;flex-direction:row;width:100%;margin-bottom:10px}.contract-params{display:flex;flex-direction:column;align-items:flex-start;width:100%}.add-contract-warning{font-size:14px;align-items:start;text-align:left;margin-left:10px}.contract-params-content{font-size:12px;color:#ddd;display:flex;width:100%;margin-left:4px}.contract-params-label{font-weight:600;font-size:12px}.params-label-container{display:flex;flex-direction:column}.add-contract-container{display:flex;flex-direction:column;align-items:start;margin-left:15px;min-width:500px;border:solid 1px black;box-shadow:3px 3px 5px 1px #00000040;background-color:var(--main-background-darker)}.add-contract-content{display:flex;flex-direction:row;padding-left:10px}.add-contract-header{font-size:16px;width:100%;box-sizing:border-box;border-bottom:solid 1px black;background-color:var(--main-background-color);border-top-left-radius:0;border-bottom-left-radius:0;padding:5px 10px;display:flex}.add-contract-help-text{font-size:13px;margin-bottom:10px;padding:10px}.add-contract-selection-container{display:flex;flex-direction:column;justify-content:space-between;align-items:start;margin-right:10px}.add-contract-button-container{margin-top:20px;align-self:flex-end;padding:10px}@supports (-moz-appearance:none){.contracts-content{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color) #0000;scrollbar-gutter:stable}}.wallet-utxos-container{display:flex;flex-direction:column;align-items:start;width:100%;margin-top:25px;background-color:#0a0f10;border-top:2px solid white;border-bottom:2px solid white}.wallet-utxos-address{padding:5px 5px 5px 15px;width:100%;display:flex;align-items:center;font-size:22px}.wallet-utxos-address .copy-widget{font-size:16px}.utxo-container{display:flex;flex-direction:column;align-items:start;border:solid 1px rgb(158,172,181);background-color:#0b0b19}.wallet-utxos{min-width:325px;margin-left:30px;margin-bottom:15px}.asset-container{display:flex;flex-direction:row;margin-left:15px;justify-content:flex-start;align-items:center}.asset-label{margin-right:5px;font-weight:700;font-size:13px}.asset-value{margin-right:15px;font-size:12px}.txid{background-color:#25244c;width:100%;display:flex;padding-left:10px;padding-right:10px;box-sizing:border-box;justify-content:space-between}.asset-container-container{width:100%}.wallet-utxos-pkh{display:flex;flex-direction:column;align-items:start;margin-left:15px;font-size:12px;margin-bottom:20px}.wallet-buttons{align-self:flex-end;display:flex;gap:15px}.utxo-selection-container{width:calc(100% - 40px);margin:20px;display:flex;flex-direction:column;justify-content:start}.utxo-utxo-selection-container{margin-top:20px;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:20px}.utxo-selection-container-options{display:flex}.utxo-source-selection-container{display:flex;flex-direction:column;align-items:start}.utxo-address-selection-container,.utxo-redeemer-selection-container{display:flex;flex-direction:column;align-items:start;padding-left:10px}.utxo-selection-submit-container{display:flex;flex-direction:column;justify-content:end;padding-left:10px}.utxo-source-select{border-radius:0;border:1px solid rgb(158,172,181)}.transact-section{display:flex;flex-direction:column;align-items:start;border-left:solid 3px #408cd8;border-bottom:solid 3px #408cd8;margin-left:20px;width:calc(100% - 40px);margin-top:20px;word-wrap:break-word;word-break:normal}.transact-section-mint{border-left:solid 3px #40d891;border-bottom:solid 3px #40d891;padding-bottom:20px;margin-top:30px;display:flex;flex-direction:column}.transact-section-payment{border-left:solid 3px #ded285;border-bottom:solid 3px #ded285;margin-top:30px;display:flex;flex-direction:column}.transact-section-extra{border-left:solid 3px #cc85de;border-bottom:solid 3px #cc85de;margin-top:30px;display:flex;flex-direction:column}.address-text-input{border:1px solid white;font-size:16px;background-color:#0000;height:17px}.address-text-input:hover{border:1px solid white}.address-text-input:focus{border:1px solid white;outline:none}.utxo-wrapper-with-checkbox{display:flex;flex-direction:row}.utxo-selection-checkbox{margin-right:10px}.selected-utxo-border{border:solid 1px rgb(145,239,145)}.selection-submit-button{font-size:12.5px}.transact-spends-container{margin-left:20px;display:flex;flex-direction:row;gap:20px;flex-wrap:wrap}.transact-mint-policy-and-close{display:flex;background-color:#25244c;align-items:center;width:100%;justify-content:space-between}.transact-mint-policy{padding-left:5px;padding-right:5px;margin-right:20px}.transact-mint-close{padding:2px;cursor:pointer;font-size:1px}.transact-mints-container{display:flex;flex-wrap:wrap}.transact-mint-container{font-size:14px;display:flex;flex-direction:column;align-items:start;border:1px solid rgb(158,172,181);background-color:#052707;margin-left:20px;margin-bottom:20px;max-width:300px;min-width:225px;word-wrap:break-word;word-break:break-all;text-align:left}.transact-mint-body-container{margin-left:5px;margin-bottom:10px}.transact-spend-header{font-size:26px;margin-left:20px;margin-top:-10px}.transact-spend-container{font-size:14px;display:flex;flex-direction:column;align-items:start;border:1px solid rgb(158,172,181);background-color:#052707}.transact-spend-message-container{margin-left:20px;margin-bottom:10px;font-size:14px}.transact-spend-address{padding-left:5px;padding-right:5px;margin-right:20px}.transact-spend-close{padding:2px;cursor:pointer;font-size:1px}.transact-spend-redeemer{padding-left:5px;padding-right:5px;margin-top:5px;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:start}.transact-spend-redeemer-filename{margin-top:-5px;padding-left:10px}.transact-spend-source{padding-left:5px;padding-right:5px;margin-top:5px;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:start}.transact-spend-source-text{margin-top:-5px;padding-left:10px}.transact-spend-utxos{padding-left:5px;padding-right:5px;margin-top:5px;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:start}.transact-spend-utxo-display{padding:5px;margin-top:-5px}.transact-spend-address-and-close{display:flex;background-color:#25244c;align-items:center}.mint-add-container{display:flex;margin-left:10px}.mint-policy-selection-container,.mint-quantity-selection-container,.mint-asset-selection-container{display:flex;flex-direction:column;align-items:start;padding-left:10px}.mint-source-select{border-radius:0;border:1px solid rgb(158,172,181);min-width:100px}.add-mint-button{font-size:12.5px}.text-input{border:1px solid white;font-size:14px;background-color:#0000;height:17px;width:100px}.text-input:hover{border:1px solid white}.text-input:focus{border:1px solid white;outline:none}.add-mint-button-container{display:flex;flex-direction:column;justify-content:flex-end;padding-left:10px}.payment-add-container{display:flex;margin-left:10px}.selection-container{display:flex;flex-direction:column;align-items:start;padding-left:10px}.transact-payment-error-container{padding-left:20px;color:#ff9353;font-size:12px;margin-bottom:10px}.transact-payment-message-container{margin-left:20px;font-size:14px}.payments-added-assets-container{margin-left:20px;margin-bottom:20px;display:flex;flex-wrap:wrap;gap:10px}.added-asset-container{border:1px solid rgb(158,172,181);font-size:14px;display:flex;word-wrap:break-word;word-break:break-all}.added-asset-name{background-color:#141e78;padding:2px 5px}.added-asset-quantity{background-color:#160533;padding:2px}.added-asset-remove{color:#d57272;background-color:#160533;align-self:center;font-size:10px;padding:2px;cursor:pointer}.added-assets-empty{font-size:13px;margin-top:10px}.payment-asset-add{display:flex;margin:10px}.button-secondary{background-color:#073e07}.button-secondary:hover{background-color:#0f580f}.payment-container{font-size:14px;display:flex;flex-direction:column;align-items:start;border:1px solid rgb(158,172,181);background-color:#052707;margin-left:20px;margin-bottom:20px;max-width:300px;min-width:225px;word-wrap:break-word;word-break:break-all;text-align:left}.transact-extras-container{display:flex;flex-direction:column;margin-left:20px}.transact-payments-container{display:flex;flex-wrap:wrap}.select-multiple{max-height:75px}.extra-signers-input-container{margin-bottom:20px}.validity-container{display:flex;flex-direction:column;align-items:start;margin-bottom:10px}.extra-signers-container{display:flex;flex-direction:column;align-items:start}.transact-submit{min-height:300px;margin-right:20px;width:100%;display:flex;justify-content:flex-end;margin-top:20px}.transact-submit-button-container{padding-right:20px;padding-top:20px;width:calc(40% - 20px)}.submit-transaction-button{font-size:24px;padding:5px}.transact-feedback-display{display:flex;flex-direction:column;align-items:start;width:calc(60% - 40px);margin-left:40px}.transact-feedback-heading{font-size:24px}.transact-mint-assets-container{font-weight:700;margin-left:10px;font-size:20px}.transact-mint-source{padding-left:25px;padding-right:5px;margin-top:5px;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:start}.transact-mint-source-text{margin-top:-5px;padding-left:10px}.monaco-editor{--vscode-editorGutter-background: var(--main-background-darkest) !important;--vscode-editor-background: #00000000 !important}.monaco-mouse-cursor-text:after{content:"";position:absolute;right:8px;top:0;width:calc(100% - 8px);bottom:0;pointer-events:none;z-index:-100;box-shadow:inset -15px -25px 25px 1px #0000002e;background-color:var(--main-background-darkest)}.margin-view-overlays{box-shadow:inset 15px 0 25px 1px #0000002e}.scrollbar{width:8px!important}.slider{width:8px!important;background:var(--scrollbar-color)}.decorationsOverviewRuler{width:8px!important;z-index:-99999}.editor-tab-container{display:flex;flex-direction:row;align-items:center;justify-content:start;max-width:100%;overflow-x:scroll;overflow-y:scroll;padding:0;background-color:#0000;min-height:35px;font-size:13px}@supports (-moz-appearance:none){.editor-tab-container{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color) #0000;scrollbar-gutter:stable}}.editor-tab{min-width:120px;max-width:120px;border-right:1px solid black;display:flex;height:100%;justify-content:center;align-items:center;border-bottom:1px solid black;box-sizing:border-box;box-shadow:inset 0 -3px 3px #00000061;background-color:var(--main-background-dark)}.editor-tab-container .editor-tab:first-child{border-left:1px solid black}.highlight-open-focused-tab{background-color:var(--main-background-darkest)}.editor-tab:not(.highlight-open-focused-tab):hover{background-color:var(--main-background-color)}.editor-tab:hover{cursor:pointer}.editor-tab-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;display:flex}.file-manager-container{display:flex;flex-direction:column;min-width:10vw;height:calc(97vh - 26px)}.file-manager-header{display:flex;padding-left:10px;padding-right:10px;justify-content:space-between;align-items:center;height:35px}.file-manager-file-list{display:flex;flex-direction:column;align-items:start;padding:0;margin:0;width:100%;font-size:14px;overflow-y:scroll;overflow-x:hidden;flex:1;border-right:1px solid black}.file-entry-wrapper{display:flex;flex-direction:column;align-items:start;padding:0;margin:0;width:100%;background-color:var(--main-background-darker);flex-grow:1;box-shadow:inset -4px 0 25px 1px #0000002e}@supports (-moz-appearance:none){.file-manager-file-list{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color) #0000;scrollbar-gutter:stable}}.file-manager-file-entry{width:100%;border:1px solid transparent;display:flex;align-items:center;justify-content:start;padding-left:20px;padding-bottom:2px;box-sizing:border-box}.file-manager-file-entry:hover{cursor:pointer}.file-manager-file-entry:not(.highlight-open-focused-file):hover{background-color:#fff2}.management-tab:hover{cursor:pointer}.filename-start{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filename-end{flex-shrink:0;white-space:nowrap}.highlight-open-file{font-style:italic}.highlight-open-focused-file{background-color:#fff4}.add-file-icon{display:flex;align-items:center;justify-content:center}.add-file-icon:hover{color:#ffffff78;cursor:pointer}.add-file-icon-plus{color:#75dd75}.file-rename-entry{border:solid 1px rgba(255,255,255,.26);background-color:#0008}.file-rename-input{border:none;font-size:16px;background-color:#0000;width:100%}.file-rename-input:hover{border:none}.file-rename-input:focus{border:none;outline:none}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:9999}.modal-content{background-color:#1b1b1b;padding:20px;border-radius:5px;display:flex;flex-direction:column;align-items:start;gap:15px;min-width:30vw;min-height:60vh;font-size:13px}.setting{display:flex;flex-direction:column;align-items:start}.settings-header{font-size:28px}.settings-section-header{font-size:24px;font-weight:300;border-bottom:1px solid white}.settings-subsection{display:flex;flex-direction:column;gap:10px}.settings-form-buttons{display:flex;gap:10px}.settings-warning{color:orange}.settings-error{color:#ff7171;min-height:20px}.lds-ring{color:#eaeaea}.lds-ring,.lds-ring div{box-sizing:border-box;margin-left:10px}.lds-ring{display:inline-block;position:relative;width:20px;height:20px}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:20px;height:20px;margin:2%;border:2px solid currentColor;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:currentColor transparent transparent transparent}.lds-ring div:nth-child(1){animation-delay:-.45s}.lds-ring div:nth-child(2){animation-delay:-.3s}.lds-ring div:nth-child(3){animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale} diff --git a/index.html b/index.html index 8334a93..e9232bd 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ (Cool Name Here) - - + +