@storm-trade/wallet-core 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wallet-core.d.ts +62 -8
- package/dist/wallet-core.js +25633 -54
- package/dist/wallet-core.js.map +1 -1
- package/dist/wallet-core.umd.cjs +13 -1
- package/dist/wallet-core.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wallet-core.umd.cjs
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
(function(s,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(s=typeof globalThis<"u"?globalThis:s||self,t(s.WalletCore={}))})(this,function(s){"use strict";var u=Object.defineProperty;var f=(s,t,o)=>t in s?u(s,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[t]=o;var i=(s,t,o)=>f(s,typeof t!="symbol"?t+"":t,o);class t{constructor(e){i(this,"host");i(this,"initTimeout");i(this,"connectTimeout");i(this,"signTimeout");i(this,"activeSessionTimeout");i(this,"waitingForResponse",new Map);i(this,"iframe");i(this,"state","not-ready");i(this,"handleMessage",e=>{if(typeof e.data!="object"||e.data===null||!("payload"in e.data)||!("id"in e.data)||!("status"in e.data)||typeof e.data.id!="string"||typeof e.data.status!="string")return;const n=this.waitingForResponse.get(e.data.id);if(!n)return;const[a,r]=n;e.data.status==="success"?a(e.data.payload):"error"in e.data?r(new Error(e.data.error)):r(new Error("Unknown error"))});this.host=e.host,this.initTimeout=e.initTimeout??5e3,this.connectTimeout=e.connectTimeout??6e4,this.signTimeout=e.signTimeout??6e4,this.activeSessionTimeout=e.activeSessionTimeout??5e3}async sendMessage(e,n){var d,c;const a=Math.random().toString(),r=Promise.race([new Promise((m,h)=>{this.waitingForResponse.set(a,[m,h])}),new Promise((m,h)=>{setTimeout(()=>{h(new Error("Response timeout"))},n)})]);return(c=(d=this.iframe)==null?void 0:d.contentWindow)==null||c.postMessage({id:a,payload:e},this.host),r}setupMessageListener(){window.addEventListener("message",this.handleMessage)}async attachIframe(e){return this.iframe=document.createElement("iframe"),this.iframe.src=this.host,this.iframe.frameBorder="0",e.appendChild(this.iframe),new Promise((n,a)=>{var r,d;(r=this.iframe)==null||r.addEventListener("load",async()=>{n()},{once:!0}),(d=this.iframe)==null||d.addEventListener("error",c=>{a(c)},{once:!0})})}async init(e){this.state==="not-ready"&&(this.state="initializing",await this.attachIframe(e),this.setupMessageListener(),await this.sendMessage({type:"ping"},this.initTimeout),this.state="ready")}destroy(){var e;this.state="not-ready",window.removeEventListener("message",this.handleMessage);for(const[n,a]of this.waitingForResponse.values())a(new Error("Iframe disconnected"));this.waitingForResponse.clear(),(e=this.iframe)==null||e.remove()}async connect(e){return this.sendMessage({type:"connect",address:e},this.connectTimeout)}async signMessage(e,n){return this.sendMessage({type:"sign",address:e,message:n},this.signTimeout)}async getActiveSessions(){return this.sendMessage({type:"active-sessions"},this.activeSessionTimeout)}async disconnect(e){return this.sendMessage({type:"disconnect",address:e},1e3)}}s.IframeAdapter=t,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(nr,ar){typeof exports=="object"&&typeof module<"u"?ar(exports):typeof define=="function"&&define.amd?define(["exports"],ar):(nr=typeof globalThis<"u"?globalThis:nr||self,ar(nr.WalletCore={}))})(this,function(nr){"use strict";var $d=Object.defineProperty;var Yd=(nr,ar,Hn)=>ar in nr?$d(nr,ar,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):nr[ar]=Hn;var Wn=(nr,ar,Hn)=>Yd(nr,typeof ar!="symbol"?ar+"":ar,Hn);class ar{constructor(c){Wn(this,"host");Wn(this,"timeouts");Wn(this,"waitingForResponse",new Map);Wn(this,"iframe");Wn(this,"state","not-ready");Wn(this,"handleMessage",c=>{if(typeof c.data!="object"||c.data===null||!("payload"in c.data)||!("id"in c.data)||!("status"in c.data)||typeof c.data.id!="string"||typeof c.data.status!="string")return;const d=this.waitingForResponse.get(c.data.id);if(!d)return;const[l,t]=d;c.data.status==="success"?l(c.data.payload):"error"in c.data?t(new Error(c.data.error)):t(new Error("Unknown error"))});this.host=c.host,this.timeouts={init:5e3,connect:6e4,disconnect:1e3,sign:1e3,createTransfer:1e3,activeSessions:1e3,...c.timeouts}}async sendMessage(c,d){var r,e;const l=Math.random().toString(),t=Promise.race([new Promise((o,i)=>{this.waitingForResponse.set(l,[o,i])}),new Promise((o,i)=>{setTimeout(()=>{i(new Error("Response timeout"))},d)})]);return(e=(r=this.iframe)==null?void 0:r.contentWindow)==null||e.postMessage({id:l,payload:c},this.host),t}setupMessageListener(){window.addEventListener("message",this.handleMessage)}async attachIframe(c){return this.iframe=document.createElement("iframe"),this.iframe.src=this.host,this.iframe.frameBorder="0",c.appendChild(this.iframe),new Promise((d,l)=>{var t,r;(t=this.iframe)==null||t.addEventListener("load",async()=>{d()},{once:!0}),(r=this.iframe)==null||r.addEventListener("error",e=>{l(e)},{once:!0})})}async init(c){this.state==="not-ready"&&(this.state="initializing",await this.attachIframe(c),this.setupMessageListener(),await this.sendMessage({type:"ping"},this.timeouts.init),this.state="ready")}destroy(){var c;this.state="not-ready",window.removeEventListener("message",this.handleMessage);for(const[d,l]of this.waitingForResponse.values())l(new Error("Iframe disconnected"));this.waitingForResponse.clear(),(c=this.iframe)==null||c.remove()}async connect(c){return this.sendMessage({type:"connect",address:c},this.timeouts.connect)}async signMessage(c,d){return this.sendMessage({type:"sign",address:c,message:d},this.timeouts.sign)}async createTransfer(c,d){return this.sendMessage({type:"create-transfer",address:c,data:d},this.timeouts.createTransfer)}async getActiveSessions(){return this.sendMessage({type:"active-sessions"},this.timeouts.activeSessions)}async disconnect(c){return this.sendMessage({type:"disconnect",address:c},this.timeouts.disconnect)}}var Hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bc(n){if(n.__esModule)return n;var c=n.default;if(typeof c=="function"){var d=function l(){return this instanceof l?Reflect.construct(c,arguments,this.constructor):c.apply(this,arguments)};d.prototype=c.prototype}else d={};return Object.defineProperty(d,"__esModule",{value:!0}),Object.keys(n).forEach(function(l){var t=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(d,l,t.get?t:{enumerable:!0,get:function(){return n[l]}})}),d}var Wr={},Hr={},vr={},wi,Xi;function Kn(){return Xi||(Xi=1,wi=Symbol.for("nodejs.util.inspect.custom")),wi}var Gn={},eo;function _i(){if(eo)return Gn;eo=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.crc16=void 0;function n(c){let l=0;const t=Buffer.alloc(c.length+2);t.set(c);for(let r of t){let e=128;for(;e>0;)l<<=1,r&e&&(l+=1),e>>=1,l>65535&&(l&=65535,l^=4129)}return Buffer.from([Math.floor(l/256),l%256])}return Gn.crc16=n,Gn}var to;function jr(){if(to)return vr;to=1;var n=vr&&vr.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},c;Object.defineProperty(vr,"__esModule",{value:!0}),vr.address=vr.Address=void 0;const d=n(Kn()),l=_i(),t=17,r=81,e=128;function o(s){if(typeof s=="string"&&!i.isFriendly(s))throw new Error("Unknown address type");const y=Buffer.isBuffer(s)?s:Buffer.from(s,"base64");if(y.length!==36)throw new Error("Unknown address type: byte length is not equal to 36");const B=y.subarray(0,34),k=y.subarray(34,36),j=(0,l.crc16)(B);if(!(j[0]===k[0]&&j[1]===k[1]))throw new Error("Invalid checksum: "+s);let P=B[0],R=!1,z=!1;if(P&e&&(R=!0,P=P^e),P!==t&&P!==r)throw"Unknown address tag";z=P===t;let V=null;B[1]===255?V=-1:V=B[1];const F=B.subarray(2,34);return{isTestOnly:R,isBounceable:z,workchain:V,hashPart:F}}let i=class Fr{static isAddress(y){return y instanceof Fr}static isFriendly(y){return!(y.length!==48||!/[A-Za-z0-9+/_-]+/.test(y))}static isRaw(y){if(y.indexOf(":")===-1)return!1;let[B,k]=y.split(":");return!(!Number.isInteger(parseFloat(B))||!/[a-f0-9]+/.test(k.toLowerCase())||k.length!==64)}static normalize(y){return typeof y=="string"?Fr.parse(y).toString():y.toString()}static parse(y){if(Fr.isFriendly(y))return this.parseFriendly(y).address;if(Fr.isRaw(y))return this.parseRaw(y);throw new Error("Unknown address type: "+y)}static parseRaw(y){let B=parseInt(y.split(":")[0]),k=Buffer.from(y.split(":")[1],"hex");return new Fr(B,k)}static parseFriendly(y){if(Buffer.isBuffer(y)){let B=o(y);return{isBounceable:B.isBounceable,isTestOnly:B.isTestOnly,address:new Fr(B.workchain,B.hashPart)}}else{let B=y.replace(/\-/g,"+").replace(/_/g,"/"),k=o(B);return{isBounceable:k.isBounceable,isTestOnly:k.isTestOnly,address:new Fr(k.workchain,k.hashPart)}}}constructor(y,B){if(this.toRawString=()=>this.workChain+":"+this.hash.toString("hex"),this.toRaw=()=>{const k=Buffer.alloc(36);return k.set(this.hash),k.set([this.workChain,this.workChain,this.workChain,this.workChain],32),k},this.toStringBuffer=k=>{let j=k&&k.testOnly!==void 0?k.testOnly:!1,R=(k&&k.bounceable!==void 0?k.bounceable:!0)?t:r;j&&(R|=e);const z=Buffer.alloc(34);z[0]=R,z[1]=this.workChain,z.set(this.hash,2);const V=Buffer.alloc(36);return V.set(z),V.set((0,l.crc16)(z),34),V},this.toString=k=>{let j=k&&k.urlSafe!==void 0?k.urlSafe:!0,P=this.toStringBuffer(k);return j?P.toString("base64").replace(/\+/g,"-").replace(/\//g,"_"):P.toString("base64")},this[c]=()=>this.toString(),B.length!==32)throw new Error("Invalid address hash length: "+B.length);this.workChain=y,this.hash=B,Object.freeze(this)}equals(y){return y.workChain!==this.workChain?!1:y.hash.equals(this.hash)}};vr.Address=i,c=d.default;function f(s){return i.parse(s)}return vr.address=f,vr}var Kr={},ro;function xi(){if(ro)return Kr;ro=1;var n=Kr&&Kr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},c;Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.ExternalAddress=void 0;const d=n(Kn());let l=class ec{static isAddress(r){return r instanceof ec}constructor(r,e){this[c]=()=>this.toString(),this.value=r,this.bits=e}toString(){return`External<${this.bits}:${this.value}>`}};return Kr.ExternalAddress=l,c=d.default,Kr}var $r={},Yr={},no;function ao(){if(no)return Yr;no=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.base32Decode=Yr.base32Encode=void 0;const n="abcdefghijklmnopqrstuvwxyz234567";function c(t){const r=t.byteLength;let e=0,o=0,i="";for(let f=0;f<r;f++)for(o=o<<8|t[f],e+=8;e>=5;)i+=n[o>>>e-5&31],e-=5;return e>0&&(i+=n[o<<5-e&31]),i}Yr.base32Encode=c;function d(t,r){const e=t.indexOf(r);if(e===-1)throw new Error("Invalid character found: "+r);return e}function l(t){let r;r=t.toLowerCase();const{length:e}=r;let o=0,i=0,f=0;const s=Buffer.alloc(e*5/8|0);for(let y=0;y<e;y++)i=i<<5|d(n,r[y]),o+=5,o>=8&&(s[f++]=i>>>o-8&255,o-=8);return s}return Yr.base32Decode=l,Yr}var io;function vc(){if(io)return $r;io=1;var n=$r&&$r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},c;Object.defineProperty($r,"__esModule",{value:!0}),$r.ADNLAddress=void 0;const d=n(Kn()),l=ao(),t=_i();let r=class Yi{static parseFriendly(o){if(o.length!==55)throw Error("Invalid address");o="f"+o;let i=(0,l.base32Decode)(o);if(i[0]!==45)throw Error("Invalid address");let f=i.slice(33);if(!(0,t.crc16)(i.slice(0,33)).equals(f))throw Error("Invalid address");return new Yi(i.slice(1,33))}static parseRaw(o){const i=Buffer.from(o,"base64");return new Yi(i)}constructor(o){if(this.toRaw=()=>this.address.toString("hex").toUpperCase(),this.toString=()=>{let i=Buffer.concat([Buffer.from([45]),this.address]),f=(0,t.crc16)(i);return i=Buffer.concat([i,f]),(0,l.base32Encode)(i).slice(1)},this[c]=()=>this.toString(),o.length!==32)throw Error("Invalid address");this.address=o}equals(o){return this.address.equals(o.address)}};return $r.ADNLAddress=r,c=d.default,$r}var Jn={},Gr={},Qn={},Jr={},Qr={},oo;function ii(){if(oo)return Qr;oo=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.paddedBufferToBits=Qr.bitsToPaddedBuffer=void 0;const n=oi(),c=Nr();function d(t){let r=new n.BitBuilder(Math.ceil(t.length/8)*8);r.writeBits(t);let e=Math.ceil(t.length/8)*8-t.length;for(let o=0;o<e;o++)o===0?r.writeBit(1):r.writeBit(0);return r.buffer()}Qr.bitsToPaddedBuffer=d;function l(t){let r=0;for(let e=t.length-1;e>=0;e--)if(t[e]!==0){const o=t[e];let i=o&-o;i&1||(i=Math.log2(i)+1),e>0&&(r=e<<3),r+=8-i;break}return new c.BitString(t,0,r)}return Qr.paddedBufferToBits=l,Qr}var so;function Nr(){if(so)return Jr;so=1;var n=Jr&&Jr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},c;Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.BitString=void 0;const d=ii(),l=n(Kn());let t=class vi{static isBitString(e){return e instanceof vi}constructor(e,o,i){if(this[c]=()=>this.toString(),i<0)throw new Error(`Length ${i} is out of bounds`);this._length=i,this._data=e,this._offset=o}get length(){return this._length}at(e){if(e>=this._length)throw new Error(`Index ${e} > ${this._length} is out of bounds`);if(e<0)throw new Error(`Index ${e} < 0 is out of bounds`);let o=this._offset+e>>3,i=7-(this._offset+e)%8;return(this._data[o]&1<<i)!==0}substring(e,o){if(e>this._length)throw new Error(`Offset(${e}) > ${this._length} is out of bounds`);if(e<0)throw new Error(`Offset(${e}) < 0 is out of bounds`);if(o===0)return vi.EMPTY;if(e+o>this._length)throw new Error(`Offset ${e} + Length ${o} > ${this._length} is out of bounds`);return new vi(this._data,this._offset+e,o)}subbuffer(e,o){if(e>this._length)throw new Error(`Offset ${e} is out of bounds`);if(e<0)throw new Error(`Offset ${e} is out of bounds`);if(e+o>this._length)throw new Error(`Offset + Lenght = ${e+o} is out of bounds`);if(o%8!==0||(this._offset+e)%8!==0)return null;let i=this._offset+e>>3,f=i+(o>>3);return this._data.subarray(i,f)}equals(e){if(this._length!==e._length)return!1;for(let o=0;o<this._length;o++)if(this.at(o)!==e.at(o))return!1;return!0}toString(){const e=(0,d.bitsToPaddedBuffer)(this);if(this._length%4===0){const o=e.subarray(0,Math.ceil(this._length/8)).toString("hex").toUpperCase();return this._length%8===0?o:o.substring(0,o.length-1)}else{const o=e.toString("hex").toUpperCase();return this._length%8<=4?o.substring(0,o.length-1)+"_":o+"_"}}};return Jr.BitString=t,c=l.default,t.EMPTY=new t(Buffer.alloc(0),0,0),Jr}var lo;function oi(){if(lo)return Qn;lo=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.BitBuilder=void 0;const n=jr(),c=xi(),d=Nr();let l=class{constructor(r=1023){this._buffer=Buffer.alloc(Math.ceil(r/8)),this._length=0}get length(){return this._length}writeBit(r){let e=this._length;if(e>this._buffer.length*8)throw new Error("BitBuilder overflow");(typeof r=="boolean"&&r===!0||typeof r=="number"&&r>0)&&(this._buffer[e/8|0]|=1<<7-e%8),this._length++}writeBits(r){for(let e=0;e<r.length;e++)this.writeBit(r.at(e))}writeBuffer(r){if(this._length%8===0){if(this._length+r.length*8>this._buffer.length*8)throw new Error("BitBuilder overflow");r.copy(this._buffer,this._length/8),this._length+=r.length*8}else for(let e=0;e<r.length;e++)this.writeUint(r[e],8)}writeUint(r,e){if(e<0||!Number.isSafeInteger(e))throw Error(`invalid bit length. Got ${e}`);const o=BigInt(r);if(e===0){if(o!==0n)throw Error(`value is not zero for ${e} bits. Got ${r}`);return}const i=1n<<BigInt(e);if(o<0||o>=i)throw Error(`bitLength is too small for a value ${r}. Got ${e}`);if(this._length+e>this._buffer.length*8)throw new Error("BitBuilder overflow");const f=8-this._length%8;if(f>0){const s=Math.floor(this._length/8);if(e<f){const y=Number(o);this._buffer[s]|=y<<f-e,this._length+=e}else{const y=Number(o>>BigInt(e-f));this._buffer[s]|=y,this._length+=f}}for(e-=f;e>0;)e>=8?(this._buffer[this._length/8]=Number(o>>BigInt(e-8)&0xffn),this._length+=8,e-=8):(this._buffer[this._length/8]=Number(o<<BigInt(8-e)&0xffn),this._length+=e,e=0)}writeInt(r,e){let o=BigInt(r);if(e<0||!Number.isSafeInteger(e))throw Error(`invalid bit length. Got ${e}`);if(e===0){if(r!==0n)throw Error(`value is not zero for ${e} bits. Got ${r}`);return}if(e===1){if(r!==-1n&&r!==0n)throw Error(`value is not zero or -1 for ${e} bits. Got ${r}`);this.writeBit(r===-1n);return}let i=1n<<BigInt(e)-1n;if(o<-i||o>=i)throw Error(`value is out of range for ${e} bits. Got ${r}`);o<0?(this.writeBit(!0),o=i+o):this.writeBit(!1),this.writeUint(o,e-1)}writeVarUint(r,e){let o=BigInt(r);if(e<0||!Number.isSafeInteger(e))throw Error(`invalid bit length. Got ${e}`);if(o<0)throw Error(`value is negative. Got ${r}`);if(o===0n){this.writeUint(0,e);return}const i=Math.ceil(o.toString(2).length/8),f=i*8;this.writeUint(i,e),this.writeUint(o,f)}writeVarInt(r,e){let o=BigInt(r);if(e<0||!Number.isSafeInteger(e))throw Error(`invalid bit length. Got ${e}`);if(o===0n){this.writeUint(0,e);return}let i=o>0?o:-o;const f=Math.ceil((i.toString(2).length+1)/8),s=f*8;this.writeUint(f,e),this.writeInt(o,s)}writeCoins(r){this.writeVarUint(r,4)}writeAddress(r){if(r==null){this.writeUint(0,2);return}if(n.Address.isAddress(r)){this.writeUint(2,2),this.writeUint(0,1),this.writeInt(r.workChain,8),this.writeBuffer(r.hash);return}if(c.ExternalAddress.isAddress(r)){this.writeUint(1,2),this.writeUint(r.bits,9),this.writeUint(r.value,r.bits);return}throw Error(`Invalid address. Got ${r}`)}build(){return new d.BitString(this._buffer,0,this._length)}buffer(){if(this._length%8!==0)throw new Error("BitBuilder buffer is not byte aligned");return this._buffer.subarray(0,this._length/8)}};return Qn.BitBuilder=l,Qn}var Xr={},Xn={},uo;function ea(){if(uo)return Xn;uo=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.CellType=void 0;var n;return function(c){c[c.Ordinary=-1]="Ordinary",c[c.PrunedBranch=1]="PrunedBranch",c[c.Library=2]="Library",c[c.MerkleProof=3]="MerkleProof",c[c.MerkleUpdate=4]="MerkleUpdate"}(n||(Xn.CellType=n={})),Xn}var en={},ta={},tn={},ra={},co;function wc(){if(co)return ra;co=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.readUnaryLength=void 0;function n(c){let d=0;for(;c.loadBit();)d++;return d}return ra.readUnaryLength=n,ra}var rn={},na={},fo;function Dr(){if(fo)return na;fo=1,Object.defineProperty(na,"__esModule",{value:!0}),na.BitReader=void 0;const n=jr(),c=xi();let d=class tc{constructor(t,r=0){this._checkpoints=[],this._bits=t,this._offset=r}get offset(){return this._offset}get remaining(){return this._bits.length-this._offset}skip(t){if(t<0||this._offset+t>this._bits.length)throw new Error(`Index ${this._offset+t} is out of bounds`);this._offset+=t}reset(){this._checkpoints.length>0?this._offset=this._checkpoints.pop():this._offset=0}save(){this._checkpoints.push(this._offset)}loadBit(){let t=this._bits.at(this._offset);return this._offset++,t}preloadBit(){return this._bits.at(this._offset)}loadBits(t){let r=this._bits.substring(this._offset,t);return this._offset+=t,r}preloadBits(t){return this._bits.substring(this._offset,t)}loadBuffer(t){let r=this._preloadBuffer(t,this._offset);return this._offset+=t*8,r}preloadBuffer(t){return this._preloadBuffer(t,this._offset)}loadUint(t){return this._toSafeInteger(this.loadUintBig(t),"loadUintBig")}loadUintBig(t){let r=this.preloadUintBig(t);return this._offset+=t,r}preloadUint(t){return this._toSafeInteger(this._preloadUint(t,this._offset),"preloadUintBig")}preloadUintBig(t){return this._preloadUint(t,this._offset)}loadInt(t){let r=this._preloadInt(t,this._offset);return this._offset+=t,this._toSafeInteger(r,"loadUintBig")}loadIntBig(t){let r=this._preloadInt(t,this._offset);return this._offset+=t,r}preloadInt(t){return this._toSafeInteger(this._preloadInt(t,this._offset),"preloadIntBig")}preloadIntBig(t){return this._preloadInt(t,this._offset)}loadVarUint(t){let r=Number(this.loadUint(t));return this._toSafeInteger(this.loadUintBig(r*8),"loadVarUintBig")}loadVarUintBig(t){let r=Number(this.loadUint(t));return this.loadUintBig(r*8)}preloadVarUint(t){let r=Number(this._preloadUint(t,this._offset));return this._toSafeInteger(this._preloadUint(r*8,this._offset+t),"preloadVarUintBig")}preloadVarUintBig(t){let r=Number(this._preloadUint(t,this._offset));return this._preloadUint(r*8,this._offset+t)}loadVarInt(t){let r=Number(this.loadUint(t));return this._toSafeInteger(this.loadIntBig(r*8),"loadVarIntBig")}loadVarIntBig(t){let r=Number(this.loadUint(t));return this.loadIntBig(r*8)}preloadVarInt(t){let r=Number(this._preloadUint(t,this._offset));return this._toSafeInteger(this._preloadInt(r*8,this._offset+t),"preloadVarIntBig")}preloadVarIntBig(t){let r=Number(this._preloadUint(t,this._offset));return this._preloadInt(r*8,this._offset+t)}loadCoins(){return this.loadVarUintBig(4)}preloadCoins(){return this.preloadVarUintBig(4)}loadAddress(){let t=Number(this._preloadUint(2,this._offset));if(t===2)return this._loadInternalAddress();throw new Error("Invalid address: "+t)}loadMaybeAddress(){let t=Number(this._preloadUint(2,this._offset));if(t===0)return this._offset+=2,null;if(t===2)return this._loadInternalAddress();throw new Error("Invalid address")}loadExternalAddress(){if(Number(this._preloadUint(2,this._offset))===1)return this._loadExternalAddress();throw new Error("Invalid address")}loadMaybeExternalAddress(){let t=Number(this._preloadUint(2,this._offset));if(t===0)return this._offset+=2,null;if(t===1)return this._loadExternalAddress();throw new Error("Invalid address")}loadAddressAny(){let t=Number(this._preloadUint(2,this._offset));if(t===0)return this._offset+=2,null;if(t===2)return this._loadInternalAddress();if(t===1)return this._loadExternalAddress();throw Error(t===3?"Unsupported":"Unreachable")}loadPaddedBits(t){if(t%8!==0)throw new Error("Invalid number of bits");let r=t;for(;;)if(this._bits.at(this._offset+r-1)){r--;break}else r--;let e=this._bits.substring(this._offset,r);return this._offset+=t,e}clone(){return new tc(this._bits,this._offset)}_preloadInt(t,r){if(t==0)return 0n;let e=this._bits.at(r),o=0n;for(let i=0;i<t-1;i++)this._bits.at(r+1+i)&&(o+=1n<<BigInt(t-i-1-1));return e&&(o=o-(1n<<BigInt(t-1))),o}_preloadUint(t,r){if(t==0)return 0n;let e=0n;for(let o=0;o<t;o++)this._bits.at(r+o)&&(e+=1n<<BigInt(t-o-1));return e}_preloadBuffer(t,r){let e=this._bits.subbuffer(r,t*8);if(e)return e;let o=Buffer.alloc(t);for(let i=0;i<t;i++)o[i]=Number(this._preloadUint(8,r+i*8));return o}_loadInternalAddress(){if(Number(this._preloadUint(2,this._offset))!==2||this._preloadUint(1,this._offset+2)!==0n)throw Error("Invalid address");let r=Number(this._preloadInt(8,this._offset+3)),e=this._preloadBuffer(32,this._offset+11);return this._offset+=267,new n.Address(r,e)}_loadExternalAddress(){if(Number(this._preloadUint(2,this._offset))!==1)throw Error("Invalid address");let r=Number(this._preloadUint(9,this._offset+2)),e=this._preloadUint(r,this._offset+11);return this._offset+=11+r,new c.ExternalAddress(e,r)}_toSafeInteger(t,r){if(BigInt(Number.MAX_SAFE_INTEGER)<t||t<BigInt(Number.MIN_SAFE_INTEGER))throw new TypeError(`${t} is out of safe integer range. Use ${r} instead`);return Number(t)}};return na.BitReader=d,na}var ho;function si(){if(ho)return rn;ho=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.convertToMerkleProof=rn.exoticMerkleProof=void 0;const n=Dr(),c=Tt();function d(t,r){const e=new n.BitReader(t);if(t.length!==280)throw new Error(`Merkle Proof cell must have exactly (8 + 256 + 16) bits, got "${t.length}"`);if(r.length!==1)throw new Error(`Merkle Proof cell must have exactly 1 ref, got "${r.length}"`);let i=e.loadUint(8);if(i!==3)throw new Error(`Merkle Proof cell must have type 3, got "${i}"`);const f=e.loadBuffer(32),s=e.loadUint(16),y=r[0].hash(0),B=r[0].depth(0);if(s!==B)throw new Error(`Merkle Proof cell ref depth must be exactly "${s}", got "${B}"`);if(!f.equals(y))throw new Error(`Merkle Proof cell ref hash must be exactly "${f.toString("hex")}", got "${y.toString("hex")}"`);return{proofDepth:s,proofHash:f}}rn.exoticMerkleProof=d;function l(t){return(0,c.beginCell)().storeUint(3,8).storeBuffer(t.hash(0)).storeUint(t.depth(0),16).storeRef(t).endCell({exotic:!0})}return rn.convertToMerkleProof=l,rn}var po;function ki(){if(po)return tn;po=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.generateMerkleProof=tn.generateMerkleProofDirect=void 0;const n=Tt(),c=wc(),d=si();function l(o){return(0,n.beginCell)().storeUint(1,8).storeUint(1,8).storeBuffer(o.hash(0)).storeUint(o.depth(0),16).endCell({exotic:!0})}function t(o,i,f,s){const y=i.asCell();if(s.length==0)return l(y);let B=i.loadBit()?1:0,k=0,j=o;if(B===0){k=(0,c.readUnaryLength)(i);for(let P=0;P<k;P++)j+=i.loadBit()?"1":"0"}else if((i.loadBit()?1:0)===0){k=i.loadUint(Math.ceil(Math.log2(f+1)));for(let R=0;R<k;R++)j+=i.loadBit()?"1":"0"}else{let R=i.loadBit()?"1":"0";k=i.loadUint(Math.ceil(Math.log2(f+1)));for(let z=0;z<k;z++)j+=R}if(f-k===0)return y;{let P=y.beginParse(),R=P.loadRef(),z=P.loadRef();if(!R.isExotic){const V=s.filter(F=>j+"0"===F.slice(0,j.length+1));R=t(j+"0",R.beginParse(),f-k-1,V)}if(!z.isExotic){const V=s.filter(F=>j+"1"===F.slice(0,j.length+1));z=t(j+"1",z.beginParse(),f-k-1,V)}return(0,n.beginCell)().storeSlice(P).storeRef(R).storeRef(z).endCell()}}function r(o,i,f){i.forEach(y=>{if(!o.has(y))throw new Error(`Trying to generate merkle proof for a missing key "${y}"`)});const s=(0,n.beginCell)().storeDictDirect(o).asSlice();return t("",s,f.bits,i.map(y=>f.serialize(y).toString(2).padStart(f.bits,"0")))}tn.generateMerkleProofDirect=r;function e(o,i,f){return(0,d.convertToMerkleProof)(r(o,i,f))}return tn.generateMerkleProof=e,tn}var aa={},go;function mo(){if(go)return aa;go=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.generateMerkleUpdate=void 0;const n=Tt(),c=ki();function d(t,r){return(0,n.beginCell)().storeUint(4,8).storeBuffer(t.hash(0)).storeBuffer(r.hash(0)).storeUint(t.depth(0),16).storeUint(r.depth(0),16).storeRef(t).storeRef(r).endCell({exotic:!0})}function l(t,r,e,o){const i=(0,c.generateMerkleProof)(t,[r],e).refs[0];t.set(r,o);const f=(0,c.generateMerkleProof)(t,[r],e).refs[0];return d(i,f)}return aa.generateMerkleUpdate=l,aa}var ia={},yo;function _c(){if(yo)return ia;yo=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.parseDict=void 0;function n(l){let t=0;for(;l.loadBit();)t++;return t}function c(l,t,r,e,o){let i=t.loadBit()?1:0,f=0,s=l;if(i===0){f=n(t);for(let y=0;y<f;y++)s+=t.loadBit()?"1":"0"}else if((t.loadBit()?1:0)===0){f=t.loadUint(Math.ceil(Math.log2(r+1)));for(let B=0;B<f;B++)s+=t.loadBit()?"1":"0"}else{let B=t.loadBit()?"1":"0";f=t.loadUint(Math.ceil(Math.log2(r+1)));for(let k=0;k<f;k++)s+=B}if(r-f===0)e.set(BigInt("0b"+s),o(t));else{let y=t.loadRef(),B=t.loadRef();y.isExotic||c(s+"0",y.beginParse(),r-f-1,e,o),B.isExotic||c(s+"1",B.beginParse(),r-f-1,e,o)}}function d(l,t,r){let e=new Map;return l&&c("",l,t,e,r),e}return ia.parseDict=d,ia}var Yt={},oa={},bo;function xc(){if(bo)return oa;bo=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.findCommonPrefix=void 0;function n(c,d=0){if(c.length===0)return"";let l=c[0].slice(d);for(let t=1;t<c.length;t++){const r=c[t];for(;r.indexOf(l,d)!==d;)if(l=l.substring(0,l.length-1),l==="")return l}return l}return oa.findCommonPrefix=n,oa}var vo;function kc(){if(vo)return Yt;vo=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.serializeDict=Yt.detectLabelType=Yt.writeLabelSame=Yt.writeLabelLong=Yt.writeLabelShort=Yt.buildTree=void 0;const n=Tt(),c=xc();function d(F,ee){for(;F.length<ee;)F="0"+F;return F}function l(F,ee){if(F.size===0)throw Error("Internal inconsistency");let he=new Map,$=new Map;for(let[Z,Q]of F.entries())Z[ee]==="0"?he.set(Z,Q):$.set(Z,Q);if(he.size===0)throw Error("Internal inconsistency. Left emtpy.");if($.size===0)throw Error("Internal inconsistency. Right emtpy.");return{left:he,right:$}}function t(F,ee){if(F.size===0)throw Error("Internal inconsistency");if(F.size===1)return{type:"leaf",value:Array.from(F.values())[0]};let{left:he,right:$}=l(F,ee);return{type:"fork",left:r(he,ee+1),right:r($,ee+1)}}function r(F,ee=0){if(F.size===0)throw Error("Internal inconsistency");const he=(0,c.findCommonPrefix)(Array.from(F.keys()),ee);return{label:he,node:t(F,he.length+ee)}}function e(F,ee){let he=new Map;for(let $ of Array.from(F.keys())){const Z=d($.toString(2),ee);he.set(Z,F.get($))}return r(he)}Yt.buildTree=e;function o(F,ee){ee.storeBit(0);for(let he=0;he<F.length;he++)ee.storeBit(1);return ee.storeBit(0),F.length>0&&ee.storeUint(BigInt("0b"+F),F.length),ee}Yt.writeLabelShort=o;function i(F){return 1+F.length+1+F.length}function f(F,ee,he){he.storeBit(1),he.storeBit(0);let $=Math.ceil(Math.log2(ee+1));return he.storeUint(F.length,$),F.length>0&&he.storeUint(BigInt("0b"+F),F.length),he}Yt.writeLabelLong=f;function s(F,ee){return 2+Math.ceil(Math.log2(ee+1))+F.length}function y(F,ee,he,$){$.storeBit(1),$.storeBit(1),$.storeBit(F);let Z=Math.ceil(Math.log2(he+1));$.storeUint(ee,Z)}Yt.writeLabelSame=y;function B(F){return 3+Math.ceil(Math.log2(F+1))}function k(F){if(F.length===0||F.length===1)return!0;for(let ee=1;ee<F.length;ee++)if(F[ee]!==F[0])return!1;return!0}function j(F,ee){let he="short",$=i(F),Z=s(F,ee);if(Z<$&&($=Z,he="long"),k(F)){let Q=B(ee);Q<$&&($=Q,he="same")}return he}Yt.detectLabelType=j;function P(F,ee,he){let $=j(F,ee);$==="short"?o(F,he):$==="long"?f(F,ee,he):$==="same"&&y(F[0]==="1",F.length,ee,he)}function R(F,ee,he,$){if(F.type==="leaf"&&he(F.value,$),F.type==="fork"){const Z=(0,n.beginCell)(),Q=(0,n.beginCell)();z(F.left,ee-1,he,Z),z(F.right,ee-1,he,Q),$.storeRef(Z),$.storeRef(Q)}}function z(F,ee,he,$){P(F.label,ee,$),R(F.node,ee-F.label.length,he,$)}function V(F,ee,he,$){const Z=e(F,ee);z(Z,ee,he,$)}return Yt.serializeDict=V,Yt}var nn={},wo;function Cc(){if(wo)return nn;wo=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.deserializeInternalKey=nn.serializeInternalKey=void 0;const n=jr(),c=Nr(),d=ii();function l(r){if(typeof r=="number"){if(!Number.isSafeInteger(r))throw Error("Invalid key type: not a safe integer: "+r);return"n:"+r.toString(10)}else{if(typeof r=="bigint")return"b:"+r.toString(10);if(n.Address.isAddress(r))return"a:"+r.toString();if(Buffer.isBuffer(r))return"f:"+r.toString("hex");if(c.BitString.isBitString(r))return"B:"+r.toString();throw Error("Invalid key type")}}nn.serializeInternalKey=l;function t(r){let e=r.slice(0,2),o=r.slice(2);if(e==="n:")return parseInt(o,10);if(e==="b:")return BigInt(o);if(e==="a:")return n.Address.parse(o);if(e==="f:")return Buffer.from(o,"hex");if(e==="B:"){const i=o.slice(-1)=="_";if(i||o.length%2!=0){let s=i?o.length-1:o.length;const y=o.substr(0,s)+"0";return!i&&s&1?new c.BitString(Buffer.from(y,"hex"),0,s<<2):(0,d.paddedBufferToBits)(Buffer.from(y,"hex"))}else return new c.BitString(Buffer.from(o,"hex"),0,o.length<<2)}throw Error("Invalid key type: "+e)}return nn.deserializeInternalKey=t,nn}var _o;function qr(){if(_o)return ta;_o=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.Dictionary=void 0;const n=jr(),c=Tt(),d=sn(),l=Nr(),t=ki(),r=mo(),e=_c(),o=kc(),i=Cc();let f=class Zr{static empty(Y,Ae){return Y&&Ae?new Zr(new Map,Y,Ae):new Zr(new Map,null,null)}static load(Y,Ae,C){let ye;if(C instanceof d.Cell){if(C.isExotic)return Zr.empty(Y,Ae);ye=C.beginParse()}else ye=C;let Pe=ye.loadMaybeRef();return Pe&&!Pe.isExotic?Zr.loadDirect(Y,Ae,Pe.beginParse()):Zr.empty(Y,Ae)}static loadDirect(Y,Ae,C){if(!C)return Zr.empty(Y,Ae);let ye;C instanceof d.Cell?ye=C.beginParse():ye=C;let Pe=(0,e.parseDict)(ye,Y.bits,Ae.parse),N=new Map;for(let[Se,se]of Pe)N.set((0,i.serializeInternalKey)(Y.parse(Se)),se);return new Zr(N,Y,Ae)}constructor(Y,Ae,C){this._key=Ae,this._value=C,this._map=Y}get size(){return this._map.size}get(Y){return this._map.get((0,i.serializeInternalKey)(Y))}has(Y){return this._map.has((0,i.serializeInternalKey)(Y))}set(Y,Ae){return this._map.set((0,i.serializeInternalKey)(Y),Ae),this}delete(Y){const Ae=(0,i.serializeInternalKey)(Y);return this._map.delete(Ae)}clear(){this._map.clear()}*[Symbol.iterator](){for(const[Y,Ae]of this._map)yield[(0,i.deserializeInternalKey)(Y),Ae]}keys(){return Array.from(this._map.keys()).map(Y=>(0,i.deserializeInternalKey)(Y))}values(){return Array.from(this._map.values())}store(Y,Ae,C){if(this._map.size===0)Y.storeBit(0);else{let ye=this._key;Ae!=null&&(ye=Ae);let Pe=this._value;if(C!=null&&(Pe=C),!ye)throw Error("Key serializer is not defined");if(!Pe)throw Error("Value serializer is not defined");let N=new Map;for(const[se,be]of this._map)N.set(ye.serialize((0,i.deserializeInternalKey)(se)),be);Y.storeBit(1);let Se=(0,c.beginCell)();(0,o.serializeDict)(N,ye.bits,Pe.serialize,Se),Y.storeRef(Se.endCell())}}storeDirect(Y,Ae,C){if(this._map.size===0)throw Error("Cannot store empty dictionary directly");let ye=this._key;Ae!=null&&(ye=Ae);let Pe=this._value;if(C!=null&&(Pe=C),!ye)throw Error("Key serializer is not defined");if(!Pe)throw Error("Value serializer is not defined");let N=new Map;for(const[Se,se]of this._map)N.set(ye.serialize((0,i.deserializeInternalKey)(Se)),se);(0,o.serializeDict)(N,ye.bits,Pe.serialize,Y)}generateMerkleProof(Y){return(0,t.generateMerkleProof)(this,Y,this._key)}generateMerkleProofDirect(Y){return(0,t.generateMerkleProofDirect)(this,Y,this._key)}generateMerkleUpdate(Y,Ae){return(0,r.generateMerkleUpdate)(this,Y,this._key,Ae)}};ta.Dictionary=f,f.Keys={Address:()=>s(),BigInt:re=>y(re),Int:re=>B(re),BigUint:re=>k(re),Uint:re=>j(re),Buffer:re=>P(re),BitString:re=>R(re)},f.Values={BigInt:re=>V(re),Int:re=>z(re),BigVarInt:re=>F(re),BigUint:re=>$(re),Uint:re=>he(re),BigVarUint:re=>ee(re),Bool:()=>Z(),Address:()=>Q(),Cell:()=>ie(),Buffer:re=>Oe(re),BitString:re=>Le(re),Dictionary:(re,Y)=>Ee(re,Y)};function s(){return{bits:267,serialize:re=>{if(!n.Address.isAddress(re))throw Error("Key is not an address");return(0,c.beginCell)().storeAddress(re).endCell().beginParse().preloadUintBig(267)},parse:re=>(0,c.beginCell)().storeUint(re,267).endCell().beginParse().loadAddress()}}function y(re){return{bits:re,serialize:Y=>{if(typeof Y!="bigint")throw Error("Key is not a bigint");return(0,c.beginCell)().storeInt(Y,re).endCell().beginParse().loadUintBig(re)},parse:Y=>(0,c.beginCell)().storeUint(Y,re).endCell().beginParse().loadIntBig(re)}}function B(re){return{bits:re,serialize:Y=>{if(typeof Y!="number")throw Error("Key is not a number");if(!Number.isSafeInteger(Y))throw Error("Key is not a safe integer: "+Y);return(0,c.beginCell)().storeInt(Y,re).endCell().beginParse().loadUintBig(re)},parse:Y=>(0,c.beginCell)().storeUint(Y,re).endCell().beginParse().loadInt(re)}}function k(re){return{bits:re,serialize:Y=>{if(typeof Y!="bigint")throw Error("Key is not a bigint");if(Y<0)throw Error("Key is negative: "+Y);return(0,c.beginCell)().storeUint(Y,re).endCell().beginParse().loadUintBig(re)},parse:Y=>(0,c.beginCell)().storeUint(Y,re).endCell().beginParse().loadUintBig(re)}}function j(re){return{bits:re,serialize:Y=>{if(typeof Y!="number")throw Error("Key is not a number");if(!Number.isSafeInteger(Y))throw Error("Key is not a safe integer: "+Y);if(Y<0)throw Error("Key is negative: "+Y);return(0,c.beginCell)().storeUint(Y,re).endCell().beginParse().loadUintBig(re)},parse:Y=>Number((0,c.beginCell)().storeUint(Y,re).endCell().beginParse().loadUint(re))}}function P(re){return{bits:re*8,serialize:Y=>{if(!Buffer.isBuffer(Y))throw Error("Key is not a buffer");return(0,c.beginCell)().storeBuffer(Y).endCell().beginParse().loadUintBig(re*8)},parse:Y=>(0,c.beginCell)().storeUint(Y,re*8).endCell().beginParse().loadBuffer(re)}}function R(re){return{bits:re,serialize:Y=>{if(!l.BitString.isBitString(Y))throw Error("Key is not a BitString");return(0,c.beginCell)().storeBits(Y).endCell().beginParse().loadUintBig(re)},parse:Y=>(0,c.beginCell)().storeUint(Y,re).endCell().beginParse().loadBits(re)}}function z(re){return{serialize:(Y,Ae)=>{Ae.storeInt(Y,re)},parse:Y=>Y.loadInt(re)}}function V(re){return{serialize:(Y,Ae)=>{Ae.storeInt(Y,re)},parse:Y=>Y.loadIntBig(re)}}function F(re){return{serialize:(Y,Ae)=>{Ae.storeVarInt(Y,re)},parse:Y=>Y.loadVarIntBig(re)}}function ee(re){return{serialize:(Y,Ae)=>{Ae.storeVarUint(Y,re)},parse:Y=>Y.loadVarUintBig(re)}}function he(re){return{serialize:(Y,Ae)=>{Ae.storeUint(Y,re)},parse:Y=>Y.loadUint(re)}}function $(re){return{serialize:(Y,Ae)=>{Ae.storeUint(Y,re)},parse:Y=>Y.loadUintBig(re)}}function Z(){return{serialize:(re,Y)=>{Y.storeBit(re)},parse:re=>re.loadBit()}}function Q(){return{serialize:(re,Y)=>{Y.storeAddress(re)},parse:re=>re.loadAddress()}}function ie(){return{serialize:(re,Y)=>{Y.storeRef(re)},parse:re=>re.loadRef()}}function Ee(re,Y){return{serialize:(Ae,C)=>{Ae.store(C)},parse:Ae=>f.load(re,Y,Ae)}}function Oe(re){return{serialize:(Y,Ae)=>{if(Y.length!==re)throw Error("Invalid buffer size");Ae.storeBuffer(Y)},parse:Y=>Y.loadBuffer(re)}}function Le(re){return{serialize:(Y,Ae)=>{if(Y.length!==re)throw Error("Invalid BitString size");Ae.storeBits(Y)},parse:Y=>Y.loadBits(re)}}return ta}var wr={},xo;function ko(){if(xo)return wr;xo=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.writeString=wr.stringToCell=wr.readString=void 0;const n=Tt();function c(e){if(e.remainingBits%8!==0)throw new Error(`Invalid string length: ${e.remainingBits}`);if(e.remainingRefs!==0&&e.remainingRefs!==1)throw new Error(`invalid number of refs: ${e.remainingRefs}`);let o;return e.remainingBits===0?o=Buffer.alloc(0):o=e.loadBuffer(e.remainingBits/8),e.remainingRefs===1&&(o=Buffer.concat([o,c(e.loadRef().beginParse())])),o}function d(e){return c(e).toString()}wr.readString=d;function l(e,o){if(e.length>0){let i=Math.floor(o.availableBits/8);if(e.length>i){let f=e.subarray(0,i),s=e.subarray(i);o=o.storeBuffer(f);let y=(0,n.beginCell)();l(s,y),o=o.storeRef(y.endCell())}else o=o.storeBuffer(e)}}function t(e){let o=(0,n.beginCell)();return l(Buffer.from(e),o),o.endCell()}wr.stringToCell=t;function r(e,o){l(Buffer.from(e),o)}return wr.writeString=r,wr}var Co;function Ci(){if(Co)return en;Co=1;var n=en&&en.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},c;Object.defineProperty(en,"__esModule",{value:!0}),en.Slice=void 0;const d=n(Kn()),l=qr(),t=Tt(),r=ko();let e=class Gi{constructor(i,f){this[c]=()=>this.toString(),this._reader=i.clone(),this._refs=[...f],this._refsOffset=0}get remainingBits(){return this._reader.remaining}get offsetBits(){return this._reader.offset}get remainingRefs(){return this._refs.length-this._refsOffset}get offsetRefs(){return this._refsOffset}skip(i){return this._reader.skip(i),this}loadBit(){return this._reader.loadBit()}preloadBit(){return this._reader.preloadBit()}loadBoolean(){return this.loadBit()}loadMaybeBoolean(){return this.loadBit()?this.loadBoolean():null}loadBits(i){return this._reader.loadBits(i)}preloadBits(i){return this._reader.preloadBits(i)}loadUint(i){return this._reader.loadUint(i)}loadUintBig(i){return this._reader.loadUintBig(i)}preloadUint(i){return this._reader.preloadUint(i)}preloadUintBig(i){return this._reader.preloadUintBig(i)}loadMaybeUint(i){return this.loadBit()?this.loadUint(i):null}loadMaybeUintBig(i){return this.loadBit()?this.loadUintBig(i):null}loadInt(i){return this._reader.loadInt(i)}loadIntBig(i){return this._reader.loadIntBig(i)}preloadInt(i){return this._reader.preloadInt(i)}preloadIntBig(i){return this._reader.preloadIntBig(i)}loadMaybeInt(i){return this.loadBit()?this.loadInt(i):null}loadMaybeIntBig(i){return this.loadBit()?this.loadIntBig(i):null}loadVarUint(i){return this._reader.loadVarUint(i)}loadVarUintBig(i){return this._reader.loadVarUintBig(i)}preloadVarUint(i){return this._reader.preloadVarUint(i)}preloadVarUintBig(i){return this._reader.preloadVarUintBig(i)}loadVarInt(i){return this._reader.loadVarInt(i)}loadVarIntBig(i){return this._reader.loadVarIntBig(i)}preloadVarInt(i){return this._reader.preloadVarInt(i)}preloadVarIntBig(i){return this._reader.preloadVarIntBig(i)}loadCoins(){return this._reader.loadCoins()}preloadCoins(){return this._reader.preloadCoins()}loadMaybeCoins(){return this._reader.loadBit()?this._reader.loadCoins():null}loadAddress(){return this._reader.loadAddress()}loadMaybeAddress(){return this._reader.loadMaybeAddress()}loadExternalAddress(){return this._reader.loadExternalAddress()}loadMaybeExternalAddress(){return this._reader.loadMaybeExternalAddress()}loadAddressAny(){return this._reader.loadAddressAny()}loadRef(){if(this._refsOffset>=this._refs.length)throw new Error("No more references");return this._refs[this._refsOffset++]}preloadRef(){if(this._refsOffset>=this._refs.length)throw new Error("No more references");return this._refs[this._refsOffset]}loadMaybeRef(){return this.loadBit()?this.loadRef():null}preloadMaybeRef(){return this.preloadBit()?this.preloadRef():null}loadBuffer(i){return this._reader.loadBuffer(i)}preloadBuffer(i){return this._reader.preloadBuffer(i)}loadStringTail(){return(0,r.readString)(this)}loadMaybeStringTail(){return this.loadBit()?(0,r.readString)(this):null}loadStringRefTail(){return(0,r.readString)(this.loadRef().beginParse())}loadMaybeStringRefTail(){const i=this.loadMaybeRef();return i?(0,r.readString)(i.beginParse()):null}loadDict(i,f){return l.Dictionary.load(i,f,this)}loadDictDirect(i,f){return l.Dictionary.loadDirect(i,f,this)}endParse(){if(this.remainingBits>0||this.remainingRefs>0)throw new Error("Slice is not empty")}asCell(){return(0,t.beginCell)().storeSlice(this).endCell()}asBuilder(){return(0,t.beginCell)().storeSlice(this)}clone(i=!1){if(i){let f=this._reader.clone();return f.reset(),new Gi(f,this._refs)}else{let f=new Gi(this._reader,this._refs);return f._refsOffset=this._refsOffset,f}}toString(){return this.asCell().toString()}};return en.Slice=e,c=d.default,en}var sa={},la={},So;function Bo(){if(So)return la;So=1,Object.defineProperty(la,"__esModule",{value:!0}),la.exoticLibrary=void 0;const n=Dr();function c(d,l){const t=new n.BitReader(d);if(d.length!==264)throw new Error(`Library cell must have exactly (8 + 256) bits, got "${d.length}"`);let e=t.loadUint(8);if(e!==2)throw new Error(`Library cell must have type 2, got "${e}"`);return{}}return la.exoticLibrary=c,la}var ua={},Ao;function Si(){if(Ao)return ua;Ao=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.exoticMerkleUpdate=void 0;const n=Dr();function c(d,l){const t=new n.BitReader(d),r=8+2*272;if(d.length!==r)throw new Error(`Merkle Update cell must have exactly (8 + (2 * (256 + 16))) bits, got "${d.length}"`);if(l.length!==2)throw new Error(`Merkle Update cell must have exactly 2 refs, got "${l.length}"`);let e=t.loadUint(8);if(e!==4)throw new Error(`Merkle Update cell type must be exactly 4, got "${e}"`);const o=t.loadBuffer(32),i=t.loadBuffer(32),f=t.loadUint(16),s=t.loadUint(16);if(f!==l[0].depth(0))throw new Error(`Merkle Update cell ref depth must be exactly "${f}", got "${l[0].depth(0)}"`);if(!o.equals(l[0].hash(0)))throw new Error(`Merkle Update cell ref hash must be exactly "${o.toString("hex")}", got "${l[0].hash(0).toString("hex")}"`);if(s!==l[1].depth(0))throw new Error(`Merkle Update cell ref depth must be exactly "${s}", got "${l[1].depth(0)}"`);if(!i.equals(l[1].hash(0)))throw new Error(`Merkle Update cell ref hash must be exactly "${i.toString("hex")}", got "${l[1].hash(0).toString("hex")}"`);return{proofDepth1:f,proofDepth2:s,proofHash1:o,proofHash2:i}}return ua.exoticMerkleUpdate=c,ua}var ca={},da={},Po;function Bi(){if(Po)return da;Po=1,Object.defineProperty(da,"__esModule",{value:!0}),da.LevelMask=void 0;let n=class rc{constructor(l=0){this._mask=0,this._mask=l,this._hashIndex=c(this._mask),this._hashCount=this._hashIndex+1}get value(){return this._mask}get level(){return 32-Math.clz32(this._mask)}get hashIndex(){return this._hashIndex}get hashCount(){return this._hashCount}apply(l){return new rc(this._mask&(1<<l)-1)}isSignificant(l){return l===0||(this._mask>>l-1)%2!==0}};da.LevelMask=n;function c(d){return d=d-(d>>1&1431655765),d=(d&858993459)+(d>>2&858993459),(d+(d>>4)&252645135)*16843009>>24}return da}var Eo;function Ai(){if(Eo)return ca;Eo=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.exoticPruned=void 0;const n=Dr(),c=Bi();function d(l,t){let r=new n.BitReader(l),e=r.loadUint(8);if(e!==1)throw new Error(`Pruned branch cell must have type 1, got "${e}"`);if(t.length!==0)throw new Error(`Pruned Branch cell can't has refs, got "${t.length}"`);let o;if(l.length===280)o=new c.LevelMask(1);else{if(o=new c.LevelMask(r.loadUint(8)),o.level<1||o.level>3)throw new Error(`Pruned Branch cell level must be >= 1 and <= 3, got "${o.level}/${o.value}"`);const y=16+o.apply(o.level-1).hashCount*272;if(l.length!==y)throw new Error(`Pruned branch cell must have exactly ${y} bits, got "${l.length}"`)}let i=[],f=[],s=[];for(let y=0;y<o.level;y++)f.push(r.loadBuffer(32));for(let y=0;y<o.level;y++)s.push(r.loadUint(16));for(let y=0;y<o.level;y++)i.push({depth:s[y],hash:f[y]});return{mask:o.value,pruned:i}}return ca.exoticPruned=d,ca}var Io;function Sc(){if(Io)return sa;Io=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.resolveExotic=void 0;const n=Dr(),c=ea(),d=Bo(),l=si(),t=Si(),r=Ai(),e=Bi();function o(B,k){let j=(0,r.exoticPruned)(B,k),P=[],R=[],z=new e.LevelMask(j.mask);for(let V=0;V<j.pruned.length;V++)P.push(j.pruned[V].depth),R.push(j.pruned[V].hash);return{type:c.CellType.PrunedBranch,depths:P,hashes:R,mask:z}}function i(B,k){(0,d.exoticLibrary)(B,k);let j=[],P=[],R=new e.LevelMask;return{type:c.CellType.Library,depths:j,hashes:P,mask:R}}function f(B,k){(0,l.exoticMerkleProof)(B,k);let j=[],P=[],R=new e.LevelMask(k[0].level()>>1);return{type:c.CellType.MerkleProof,depths:j,hashes:P,mask:R}}function s(B,k){(0,t.exoticMerkleUpdate)(B,k);let j=[],P=[],R=new e.LevelMask((k[0].level()|k[1].level())>>1);return{type:c.CellType.MerkleUpdate,depths:j,hashes:P,mask:R}}function y(B,k){let P=new n.BitReader(B).preloadUint(8);if(P===1)return o(B,k);if(P===2)return i(B,k);if(P===3)return f(B,k);if(P===4)return s(B,k);throw Error("Invalid exotic cell type: "+P)}return sa.resolveExotic=y,sa}var fa={},_r={},To;function Mo(){if(To)return _r;To=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.getRepr=_r.getBitsDescriptor=_r.getRefsDescriptor=void 0;const n=ea(),c=ii();function d(r,e,o){return r.length+(o!==n.CellType.Ordinary?1:0)*8+e*32}_r.getRefsDescriptor=d;function l(r){let e=r.length;return Math.ceil(e/8)+Math.floor(e/8)}_r.getBitsDescriptor=l;function t(r,e,o,i,f,s){const y=Math.ceil(e.length/8),B=Buffer.alloc(2+y+34*o.length);let k=0;B[k++]=d(o,f,s),B[k++]=l(r),(0,c.bitsToPaddedBuffer)(e).copy(B,k),k+=y;for(const j of o){let P;s==n.CellType.MerkleProof||s==n.CellType.MerkleUpdate?P=j.depth(i+1):P=j.depth(i),B[k++]=Math.floor(P/256),B[k++]=P%256}for(const j of o){let P;s==n.CellType.MerkleProof||s==n.CellType.MerkleUpdate?P=j.hash(i+1):P=j.hash(i),P.copy(B,k),k+=32}return B}return _r.getRepr=t,_r}var Pi={},dr={},li={exports:{}},Bc=li.exports,Ro;function Ei(){return Ro||(Ro=1,function(n,c){(function(d,l){n.exports=l()})(Bc,function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function l(L,g,U,q){var K,O,oe,ue=g||[0],fe=(U=U||0)>>>3,_e=q===-1?3:0;for(K=0;K<L.length;K+=1)O=(oe=K+fe)>>>2,ue.length<=O&&ue.push(0),ue[O]|=L[K]<<8*(_e+q*(oe%4));return{value:ue,binLen:8*L.length+U}}function t(L,g,U){switch(g){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(L){case"HEX":return function(q,K,O){return function(oe,ue,fe,_e){var Ne,ve,Ie,Ye;if(oe.length%2!=0)throw new Error("String of HEX type must be in byte increments");var we=ue||[0],dt=(fe=fe||0)>>>3,ut=_e===-1?3:0;for(Ne=0;Ne<oe.length;Ne+=2){if(ve=parseInt(oe.substr(Ne,2),16),isNaN(ve))throw new Error("String of HEX type contains invalid characters");for(Ie=(Ye=(Ne>>>1)+dt)>>>2;we.length<=Ie;)we.push(0);we[Ie]|=ve<<8*(ut+_e*(Ye%4))}return{value:we,binLen:4*oe.length+fe}}(q,K,O,U)};case"TEXT":return function(q,K,O){return function(oe,ue,fe,_e,Ne){var ve,Ie,Ye,we,dt,ut,gt,yt,Fe=0,St=fe||[0],It=(_e=_e||0)>>>3;if(ue==="UTF8")for(gt=Ne===-1?3:0,Ye=0;Ye<oe.length;Ye+=1)for(Ie=[],128>(ve=oe.charCodeAt(Ye))?Ie.push(ve):2048>ve?(Ie.push(192|ve>>>6),Ie.push(128|63&ve)):55296>ve||57344<=ve?Ie.push(224|ve>>>12,128|ve>>>6&63,128|63&ve):(Ye+=1,ve=65536+((1023&ve)<<10|1023&oe.charCodeAt(Ye)),Ie.push(240|ve>>>18,128|ve>>>12&63,128|ve>>>6&63,128|63&ve)),we=0;we<Ie.length;we+=1){for(dt=(ut=Fe+It)>>>2;St.length<=dt;)St.push(0);St[dt]|=Ie[we]<<8*(gt+Ne*(ut%4)),Fe+=1}else for(gt=Ne===-1?2:0,yt=ue==="UTF16LE"&&Ne!==1||ue!=="UTF16LE"&&Ne===1,Ye=0;Ye<oe.length;Ye+=1){for(ve=oe.charCodeAt(Ye),yt===!0&&(ve=(we=255&ve)<<8|ve>>>8),dt=(ut=Fe+It)>>>2;St.length<=dt;)St.push(0);St[dt]|=ve<<8*(gt+Ne*(ut%4)),Fe+=2}return{value:St,binLen:8*Fe+_e}}(q,g,K,O,U)};case"B64":return function(q,K,O){return function(oe,ue,fe,_e){var Ne,ve,Ie,Ye,we,dt,ut=0,gt=ue||[0],yt=(fe=fe||0)>>>3,Fe=_e===-1?3:0,St=oe.indexOf("=");if(oe.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(oe=oe.replace(/=/g,""),St!==-1&&St<oe.length)throw new Error("Invalid '=' found in base-64 string");for(Ne=0;Ne<oe.length;Ne+=4){for(Ye=oe.substr(Ne,4),Ie=0,ve=0;ve<Ye.length;ve+=1)Ie|=d.indexOf(Ye.charAt(ve))<<18-6*ve;for(ve=0;ve<Ye.length-1;ve+=1){for(we=(dt=ut+yt)>>>2;gt.length<=we;)gt.push(0);gt[we]|=(Ie>>>16-8*ve&255)<<8*(Fe+_e*(dt%4)),ut+=1}}return{value:gt,binLen:8*ut+fe}}(q,K,O,U)};case"BYTES":return function(q,K,O){return function(oe,ue,fe,_e){var Ne,ve,Ie,Ye,we=ue||[0],dt=(fe=fe||0)>>>3,ut=_e===-1?3:0;for(ve=0;ve<oe.length;ve+=1)Ne=oe.charCodeAt(ve),Ie=(Ye=ve+dt)>>>2,we.length<=Ie&&we.push(0),we[Ie]|=Ne<<8*(ut+_e*(Ye%4));return{value:we,binLen:8*oe.length+fe}}(q,K,O,U)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error("ARRAYBUFFER not supported by this environment")}return function(q,K,O){return function(oe,ue,fe,_e){return l(new Uint8Array(oe),ue,fe,_e)}(q,K,O,U)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error("UINT8ARRAY not supported by this environment")}return function(q,K,O){return l(q,K,O,U)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function r(L,g,U,q){switch(L){case"HEX":return function(K){return function(O,oe,ue,fe){var _e,Ne,ve="",Ie=oe/8,Ye=ue===-1?3:0;for(_e=0;_e<Ie;_e+=1)Ne=O[_e>>>2]>>>8*(Ye+ue*(_e%4)),ve+="0123456789abcdef".charAt(Ne>>>4&15)+"0123456789abcdef".charAt(15&Ne);return fe.outputUpper?ve.toUpperCase():ve}(K,g,U,q)};case"B64":return function(K){return function(O,oe,ue,fe){var _e,Ne,ve,Ie,Ye,we="",dt=oe/8,ut=ue===-1?3:0;for(_e=0;_e<dt;_e+=3)for(Ie=_e+1<dt?O[_e+1>>>2]:0,Ye=_e+2<dt?O[_e+2>>>2]:0,ve=(O[_e>>>2]>>>8*(ut+ue*(_e%4))&255)<<16|(Ie>>>8*(ut+ue*((_e+1)%4))&255)<<8|Ye>>>8*(ut+ue*((_e+2)%4))&255,Ne=0;Ne<4;Ne+=1)we+=8*_e+6*Ne<=oe?d.charAt(ve>>>6*(3-Ne)&63):fe.b64Pad;return we}(K,g,U,q)};case"BYTES":return function(K){return function(O,oe,ue){var fe,_e,Ne="",ve=oe/8,Ie=ue===-1?3:0;for(fe=0;fe<ve;fe+=1)_e=O[fe>>>2]>>>8*(Ie+ue*(fe%4))&255,Ne+=String.fromCharCode(_e);return Ne}(K,g,U)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error("ARRAYBUFFER not supported by this environment")}return function(K){return function(O,oe,ue){var fe,_e=oe/8,Ne=new ArrayBuffer(_e),ve=new Uint8Array(Ne),Ie=ue===-1?3:0;for(fe=0;fe<_e;fe+=1)ve[fe]=O[fe>>>2]>>>8*(Ie+ue*(fe%4))&255;return Ne}(K,g,U)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error("UINT8ARRAY not supported by this environment")}return function(K){return function(O,oe,ue){var fe,_e=oe/8,Ne=ue===-1?3:0,ve=new Uint8Array(_e);for(fe=0;fe<_e;fe+=1)ve[fe]=O[fe>>>2]>>>8*(Ne+ue*(fe%4))&255;return ve}(K,g,U)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}var e=[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],o=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],f="Chosen SHA variant is not supported";function s(L,g){var U,q,K=L.binLen>>>3,O=g.binLen>>>3,oe=K<<3,ue=4-K<<3;if(K%4!=0){for(U=0;U<O;U+=4)q=K+U>>>2,L.value[q]|=g.value[U>>>2]<<oe,L.value.push(0),L.value[q+1]|=g.value[U>>>2]>>>ue;return(L.value.length<<2)-4>=O+K&&L.value.pop(),{value:L.value,binLen:L.binLen+g.binLen}}return{value:L.value.concat(g.value),binLen:L.binLen+g.binLen}}function y(L){var g={outputUpper:!1,b64Pad:"=",outputLen:-1},U=L||{},q="Output length must be a multiple of 8";if(g.outputUpper=U.outputUpper||!1,U.b64Pad&&(g.b64Pad=U.b64Pad),U.outputLen){if(U.outputLen%8!=0)throw new Error(q);g.outputLen=U.outputLen}else if(U.shakeLen){if(U.shakeLen%8!=0)throw new Error(q);g.outputLen=U.shakeLen}if(typeof g.outputUpper!="boolean")throw new Error("Invalid outputUpper formatting option");if(typeof g.b64Pad!="string")throw new Error("Invalid b64Pad formatting option");return g}function B(L,g,U,q){var K=L+" must include a value and format";if(!g){if(!q)throw new Error(K);return q}if(g.value===void 0||!g.format)throw new Error(K);return t(g.format,g.encoding||"UTF8",U)(g.value)}var k=function(){function L(g,U,q){var K=q||{};if(this.t=U,this.i=K.encoding||"UTF8",this.numRounds=K.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.o=g,this.u=[],this.s=0,this.h=!1,this.v=0,this.A=!1,this.l=[],this.H=[]}return L.prototype.update=function(g){var U,q=0,K=this.S>>>5,O=this.p(g,this.u,this.s),oe=O.binLen,ue=O.value,fe=oe>>>5;for(U=0;U<fe;U+=K)q+this.S<=oe&&(this.m=this.R(ue.slice(U,U+K),this.m),q+=this.S);this.v+=q,this.u=ue.slice(q>>>5),this.s=oe%this.S,this.h=!0},L.prototype.getHash=function(g,U){var q,K,O=this.U,oe=y(U);if(this.T){if(oe.outputLen===-1)throw new Error("Output length must be specified in options");O=oe.outputLen}var ue=r(g,O,this.C,oe);if(this.A&&this.F)return ue(this.F(oe));for(K=this.K(this.u.slice(),this.s,this.v,this.B(this.m),O),q=1;q<this.numRounds;q+=1)this.T&&O%32!=0&&(K[K.length-1]&=16777215>>>24-O%32),K=this.K(K,O,0,this.L(this.o),O);return ue(K)},L.prototype.setHMACKey=function(g,U,q){if(!this.g)throw new Error("Variant does not support HMAC");if(this.h)throw new Error("Cannot set MAC key after calling update");var K=t(U,(q||{}).encoding||"UTF8",this.C);this.k(K(g))},L.prototype.k=function(g){var U,q=this.S>>>3,K=q/4-1;if(this.numRounds!==1)throw new Error("Cannot set numRounds with MAC");if(this.A)throw new Error("MAC key already set");for(q<g.binLen/8&&(g.value=this.K(g.value,g.binLen,0,this.L(this.o),this.U));g.value.length<=K;)g.value.push(0);for(U=0;U<=K;U+=1)this.l[U]=909522486^g.value[U],this.H[U]=1549556828^g.value[U];this.m=this.R(this.l,this.m),this.v=this.S,this.A=!0},L.prototype.getHMAC=function(g,U){var q=y(U);return r(g,this.U,this.C,q)(this.Y())},L.prototype.Y=function(){var g;if(!this.A)throw new Error("Cannot call getHMAC without first setting MAC key");var U=this.K(this.u.slice(),this.s,this.v,this.B(this.m),this.U);return g=this.R(this.H,this.L(this.o)),g=this.K(U,this.U,this.S,g,this.U)},L}(),j=function(L,g){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,q){U.__proto__=q}||function(U,q){for(var K in q)Object.prototype.hasOwnProperty.call(q,K)&&(U[K]=q[K])})(L,g)};function P(L,g){function U(){this.constructor=L}j(L,g),L.prototype=g===null?Object.create(g):(U.prototype=g.prototype,new U)}function R(L,g){return L<<g|L>>>32-g}function z(L,g){return L>>>g|L<<32-g}function V(L,g){return L>>>g}function F(L,g,U){return L^g^U}function ee(L,g,U){return L&g^~L&U}function he(L,g,U){return L&g^L&U^g&U}function $(L){return z(L,2)^z(L,13)^z(L,22)}function Z(L,g){var U=(65535&L)+(65535&g);return(65535&(L>>>16)+(g>>>16)+(U>>>16))<<16|65535&U}function Q(L,g,U,q){var K=(65535&L)+(65535&g)+(65535&U)+(65535&q);return(65535&(L>>>16)+(g>>>16)+(U>>>16)+(q>>>16)+(K>>>16))<<16|65535&K}function ie(L,g,U,q,K){var O=(65535&L)+(65535&g)+(65535&U)+(65535&q)+(65535&K);return(65535&(L>>>16)+(g>>>16)+(U>>>16)+(q>>>16)+(K>>>16)+(O>>>16))<<16|65535&O}function Ee(L){return z(L,7)^z(L,18)^V(L,3)}function Oe(L){return z(L,6)^z(L,11)^z(L,25)}function Le(L){return[1732584193,4023233417,2562383102,271733878,3285377520]}function re(L,g){var U,q,K,O,oe,ue,fe,_e=[];for(U=g[0],q=g[1],K=g[2],O=g[3],oe=g[4],fe=0;fe<80;fe+=1)_e[fe]=fe<16?L[fe]:R(_e[fe-3]^_e[fe-8]^_e[fe-14]^_e[fe-16],1),ue=fe<20?ie(R(U,5),ee(q,K,O),oe,1518500249,_e[fe]):fe<40?ie(R(U,5),F(q,K,O),oe,1859775393,_e[fe]):fe<60?ie(R(U,5),he(q,K,O),oe,2400959708,_e[fe]):ie(R(U,5),F(q,K,O),oe,3395469782,_e[fe]),oe=O,O=K,K=R(q,30),q=U,U=ue;return g[0]=Z(U,g[0]),g[1]=Z(q,g[1]),g[2]=Z(K,g[2]),g[3]=Z(O,g[3]),g[4]=Z(oe,g[4]),g}function Y(L,g,U,q){for(var K,O=15+(g+65>>>9<<4),oe=g+U;L.length<=O;)L.push(0);for(L[g>>>5]|=128<<24-g%32,L[O]=4294967295&oe,L[O-1]=oe/4294967296|0,K=0;K<L.length;K+=16)q=re(L.slice(K,K+16),q);return q}var Ae=function(L){function g(U,q,K){var O=this;if(U!=="SHA-1")throw new Error(f);var oe=K||{};return(O=L.call(this,U,q,K)||this).g=!0,O.F=O.Y,O.C=-1,O.p=t(O.t,O.i,O.C),O.R=re,O.B=function(ue){return ue.slice()},O.L=Le,O.K=Y,O.m=[1732584193,4023233417,2562383102,271733878,3285377520],O.S=512,O.U=160,O.T=!1,oe.hmacKey&&O.k(B("hmacKey",oe.hmacKey,O.C)),O}return P(g,L),g}(k);function C(L){return L=="SHA-224"?o.slice():i.slice()}function ye(L,g){var U,q,K,O,oe,ue,fe,_e,Ne,ve,Ie,Ye,we=[];for(U=g[0],q=g[1],K=g[2],O=g[3],oe=g[4],ue=g[5],fe=g[6],_e=g[7],Ie=0;Ie<64;Ie+=1)we[Ie]=Ie<16?L[Ie]:Q(z(Ye=we[Ie-2],17)^z(Ye,19)^V(Ye,10),we[Ie-7],Ee(we[Ie-15]),we[Ie-16]),Ne=ie(_e,Oe(oe),ee(oe,ue,fe),e[Ie],we[Ie]),ve=Z($(U),he(U,q,K)),_e=fe,fe=ue,ue=oe,oe=Z(O,Ne),O=K,K=q,q=U,U=Z(Ne,ve);return g[0]=Z(U,g[0]),g[1]=Z(q,g[1]),g[2]=Z(K,g[2]),g[3]=Z(O,g[3]),g[4]=Z(oe,g[4]),g[5]=Z(ue,g[5]),g[6]=Z(fe,g[6]),g[7]=Z(_e,g[7]),g}var Pe=function(L){function g(U,q,K){var O=this;if(U!=="SHA-224"&&U!=="SHA-256")throw new Error(f);var oe=K||{};return(O=L.call(this,U,q,K)||this).F=O.Y,O.g=!0,O.C=-1,O.p=t(O.t,O.i,O.C),O.R=ye,O.B=function(ue){return ue.slice()},O.L=C,O.K=function(ue,fe,_e,Ne){return function(ve,Ie,Ye,we,dt){for(var ut,gt=15+(Ie+65>>>9<<4),yt=Ie+Ye;ve.length<=gt;)ve.push(0);for(ve[Ie>>>5]|=128<<24-Ie%32,ve[gt]=4294967295&yt,ve[gt-1]=yt/4294967296|0,ut=0;ut<ve.length;ut+=16)we=ye(ve.slice(ut,ut+16),we);return dt==="SHA-224"?[we[0],we[1],we[2],we[3],we[4],we[5],we[6]]:we}(ue,fe,_e,Ne,U)},O.m=C(U),O.S=512,O.U=U==="SHA-224"?224:256,O.T=!1,oe.hmacKey&&O.k(B("hmacKey",oe.hmacKey,O.C)),O}return P(g,L),g}(k),N=function(L,g){this.N=L,this.I=g};function Se(L,g){var U;return g>32?(U=64-g,new N(L.I<<g|L.N>>>U,L.N<<g|L.I>>>U)):g!==0?(U=32-g,new N(L.N<<g|L.I>>>U,L.I<<g|L.N>>>U)):L}function se(L,g){var U;return g<32?(U=32-g,new N(L.N>>>g|L.I<<U,L.I>>>g|L.N<<U)):(U=64-g,new N(L.I>>>g|L.N<<U,L.N>>>g|L.I<<U))}function be(L,g){return new N(L.N>>>g,L.I>>>g|L.N<<32-g)}function ke(L,g,U){return new N(L.N&g.N^~L.N&U.N,L.I&g.I^~L.I&U.I)}function Te(L,g,U){return new N(L.N&g.N^L.N&U.N^g.N&U.N,L.I&g.I^L.I&U.I^g.I&U.I)}function de(L){var g=se(L,28),U=se(L,34),q=se(L,39);return new N(g.N^U.N^q.N,g.I^U.I^q.I)}function Ve(L,g){var U,q;U=(65535&L.I)+(65535&g.I);var K=(65535&(q=(L.I>>>16)+(g.I>>>16)+(U>>>16)))<<16|65535&U;return U=(65535&L.N)+(65535&g.N)+(q>>>16),q=(L.N>>>16)+(g.N>>>16)+(U>>>16),new N((65535&q)<<16|65535&U,K)}function it(L,g,U,q){var K,O;K=(65535&L.I)+(65535&g.I)+(65535&U.I)+(65535&q.I);var oe=(65535&(O=(L.I>>>16)+(g.I>>>16)+(U.I>>>16)+(q.I>>>16)+(K>>>16)))<<16|65535&K;return K=(65535&L.N)+(65535&g.N)+(65535&U.N)+(65535&q.N)+(O>>>16),O=(L.N>>>16)+(g.N>>>16)+(U.N>>>16)+(q.N>>>16)+(K>>>16),new N((65535&O)<<16|65535&K,oe)}function lt(L,g,U,q,K){var O,oe;O=(65535&L.I)+(65535&g.I)+(65535&U.I)+(65535&q.I)+(65535&K.I);var ue=(65535&(oe=(L.I>>>16)+(g.I>>>16)+(U.I>>>16)+(q.I>>>16)+(K.I>>>16)+(O>>>16)))<<16|65535&O;return O=(65535&L.N)+(65535&g.N)+(65535&U.N)+(65535&q.N)+(65535&K.N)+(oe>>>16),oe=(L.N>>>16)+(g.N>>>16)+(U.N>>>16)+(q.N>>>16)+(K.N>>>16)+(O>>>16),new N((65535&oe)<<16|65535&O,ue)}function ot(L,g){return new N(L.N^g.N,L.I^g.I)}function wt(L){var g=se(L,1),U=se(L,8),q=be(L,7);return new N(g.N^U.N^q.N,g.I^U.I^q.I)}function Ut(L){var g=se(L,14),U=se(L,18),q=se(L,41);return new N(g.N^U.N^q.N,g.I^U.I^q.I)}var Ot=[new N(e[0],3609767458),new N(e[1],602891725),new N(e[2],3964484399),new N(e[3],2173295548),new N(e[4],4081628472),new N(e[5],3053834265),new N(e[6],2937671579),new N(e[7],3664609560),new N(e[8],2734883394),new N(e[9],1164996542),new N(e[10],1323610764),new N(e[11],3590304994),new N(e[12],4068182383),new N(e[13],991336113),new N(e[14],633803317),new N(e[15],3479774868),new N(e[16],2666613458),new N(e[17],944711139),new N(e[18],2341262773),new N(e[19],2007800933),new N(e[20],1495990901),new N(e[21],1856431235),new N(e[22],3175218132),new N(e[23],2198950837),new N(e[24],3999719339),new N(e[25],766784016),new N(e[26],2566594879),new N(e[27],3203337956),new N(e[28],1034457026),new N(e[29],2466948901),new N(e[30],3758326383),new N(e[31],168717936),new N(e[32],1188179964),new N(e[33],1546045734),new N(e[34],1522805485),new N(e[35],2643833823),new N(e[36],2343527390),new N(e[37],1014477480),new N(e[38],1206759142),new N(e[39],344077627),new N(e[40],1290863460),new N(e[41],3158454273),new N(e[42],3505952657),new N(e[43],106217008),new N(e[44],3606008344),new N(e[45],1432725776),new N(e[46],1467031594),new N(e[47],851169720),new N(e[48],3100823752),new N(e[49],1363258195),new N(e[50],3750685593),new N(e[51],3785050280),new N(e[52],3318307427),new N(e[53],3812723403),new N(e[54],2003034995),new N(e[55],3602036899),new N(e[56],1575990012),new N(e[57],1125592928),new N(e[58],2716904306),new N(e[59],442776044),new N(e[60],593698344),new N(e[61],3733110249),new N(e[62],2999351573),new N(e[63],3815920427),new N(3391569614,3928383900),new N(3515267271,566280711),new N(3940187606,3454069534),new N(4118630271,4000239992),new N(116418474,1914138554),new N(174292421,2731055270),new N(289380356,3203993006),new N(460393269,320620315),new N(685471733,587496836),new N(852142971,1086792851),new N(1017036298,365543100),new N(1126000580,2618297676),new N(1288033470,3409855158),new N(1501505948,4234509866),new N(1607167915,987167468),new N(1816402316,1246189591)];function Qt(L){return L==="SHA-384"?[new N(3418070365,o[0]),new N(1654270250,o[1]),new N(2438529370,o[2]),new N(355462360,o[3]),new N(1731405415,o[4]),new N(41048885895,o[5]),new N(3675008525,o[6]),new N(1203062813,o[7])]:[new N(i[0],4089235720),new N(i[1],2227873595),new N(i[2],4271175723),new N(i[3],1595750129),new N(i[4],2917565137),new N(i[5],725511199),new N(i[6],4215389547),new N(i[7],327033209)]}function Nt(L,g){var U,q,K,O,oe,ue,fe,_e,Ne,ve,Ie,Ye,we,dt,ut,gt,yt=[];for(U=g[0],q=g[1],K=g[2],O=g[3],oe=g[4],ue=g[5],fe=g[6],_e=g[7],Ie=0;Ie<80;Ie+=1)Ie<16?(Ye=2*Ie,yt[Ie]=new N(L[Ye],L[Ye+1])):yt[Ie]=it((we=yt[Ie-2],dt=void 0,ut=void 0,gt=void 0,dt=se(we,19),ut=se(we,61),gt=be(we,6),new N(dt.N^ut.N^gt.N,dt.I^ut.I^gt.I)),yt[Ie-7],wt(yt[Ie-15]),yt[Ie-16]),Ne=lt(_e,Ut(oe),ke(oe,ue,fe),Ot[Ie],yt[Ie]),ve=Ve(de(U),Te(U,q,K)),_e=fe,fe=ue,ue=oe,oe=Ve(O,Ne),O=K,K=q,q=U,U=Ve(Ne,ve);return g[0]=Ve(U,g[0]),g[1]=Ve(q,g[1]),g[2]=Ve(K,g[2]),g[3]=Ve(O,g[3]),g[4]=Ve(oe,g[4]),g[5]=Ve(ue,g[5]),g[6]=Ve(fe,g[6]),g[7]=Ve(_e,g[7]),g}var Gt=function(L){function g(U,q,K){var O=this;if(U!=="SHA-384"&&U!=="SHA-512")throw new Error(f);var oe=K||{};return(O=L.call(this,U,q,K)||this).F=O.Y,O.g=!0,O.C=-1,O.p=t(O.t,O.i,O.C),O.R=Nt,O.B=function(ue){return ue.slice()},O.L=Qt,O.K=function(ue,fe,_e,Ne){return function(ve,Ie,Ye,we,dt){for(var ut,gt=31+(Ie+129>>>10<<5),yt=Ie+Ye;ve.length<=gt;)ve.push(0);for(ve[Ie>>>5]|=128<<24-Ie%32,ve[gt]=4294967295&yt,ve[gt-1]=yt/4294967296|0,ut=0;ut<ve.length;ut+=32)we=Nt(ve.slice(ut,ut+32),we);return dt==="SHA-384"?[(we=we)[0].N,we[0].I,we[1].N,we[1].I,we[2].N,we[2].I,we[3].N,we[3].I,we[4].N,we[4].I,we[5].N,we[5].I]:[we[0].N,we[0].I,we[1].N,we[1].I,we[2].N,we[2].I,we[3].N,we[3].I,we[4].N,we[4].I,we[5].N,we[5].I,we[6].N,we[6].I,we[7].N,we[7].I]}(ue,fe,_e,Ne,U)},O.m=Qt(U),O.S=1024,O.U=U==="SHA-384"?384:512,O.T=!1,oe.hmacKey&&O.k(B("hmacKey",oe.hmacKey,O.C)),O}return P(g,L),g}(k),mt=[new N(0,1),new N(0,32898),new N(2147483648,32906),new N(2147483648,2147516416),new N(0,32907),new N(0,2147483649),new N(2147483648,2147516545),new N(2147483648,32777),new N(0,138),new N(0,136),new N(0,2147516425),new N(0,2147483658),new N(0,2147516555),new N(2147483648,139),new N(2147483648,32905),new N(2147483648,32771),new N(2147483648,32770),new N(2147483648,128),new N(0,32778),new N(2147483648,2147483658),new N(2147483648,2147516545),new N(2147483648,32896),new N(0,2147483649),new N(2147483648,2147516424)],Kt=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function Mt(L){var g,U=[];for(g=0;g<5;g+=1)U[g]=[new N(0,0),new N(0,0),new N(0,0),new N(0,0),new N(0,0)];return U}function $t(L){var g,U=[];for(g=0;g<5;g+=1)U[g]=L[g].slice();return U}function Jt(L,g){var U,q,K,O,oe,ue,fe,_e,Ne,ve=[],Ie=[];if(L!==null)for(q=0;q<L.length;q+=2)g[(q>>>1)%5][(q>>>1)/5|0]=ot(g[(q>>>1)%5][(q>>>1)/5|0],new N(L[q+1],L[q]));for(U=0;U<24;U+=1){for(O=Mt(),q=0;q<5;q+=1)ve[q]=(oe=g[q][0],ue=g[q][1],fe=g[q][2],_e=g[q][3],Ne=g[q][4],new N(oe.N^ue.N^fe.N^_e.N^Ne.N,oe.I^ue.I^fe.I^_e.I^Ne.I));for(q=0;q<5;q+=1)Ie[q]=ot(ve[(q+4)%5],Se(ve[(q+1)%5],1));for(q=0;q<5;q+=1)for(K=0;K<5;K+=1)g[q][K]=ot(g[q][K],Ie[q]);for(q=0;q<5;q+=1)for(K=0;K<5;K+=1)O[K][(2*q+3*K)%5]=Se(g[q][K],Kt[q][K]);for(q=0;q<5;q+=1)for(K=0;K<5;K+=1)g[q][K]=ot(O[q][K],new N(~O[(q+1)%5][K].N&O[(q+2)%5][K].N,~O[(q+1)%5][K].I&O[(q+2)%5][K].I));g[0][0]=ot(g[0][0],mt[U])}return g}function sr(L){var g,U,q=0,K=[0,0],O=[4294967295&L,L/4294967296&2097151];for(g=6;g>=0;g--)(U=O[g>>2]>>>8*g&255)===0&&q===0||(K[q+1>>2]|=U<<8*(q+1),q+=1);return q=q!==0?q:1,K[0]|=q,{value:q+1>4?K:[K[0]],binLen:8+8*q}}function zt(L){return s(sr(L.binLen),L)}function Xt(L,g){var U,q=sr(g),K=g>>>2,O=(K-(q=s(q,L)).value.length%K)%K;for(U=0;U<O;U++)q.value.push(0);return q.value}var er=function(L){function g(U,q,K){var O=this,oe=6,ue=0,fe=K||{};if((O=L.call(this,U,q,K)||this).numRounds!==1){if(fe.kmacKey||fe.hmacKey)throw new Error("Cannot set numRounds with MAC");if(O.o==="CSHAKE128"||O.o==="CSHAKE256")throw new Error("Cannot set numRounds for CSHAKE variants")}switch(O.C=1,O.p=t(O.t,O.i,O.C),O.R=Jt,O.B=$t,O.L=Mt,O.m=Mt(),O.T=!1,U){case"SHA3-224":O.S=ue=1152,O.U=224,O.g=!0,O.F=O.Y;break;case"SHA3-256":O.S=ue=1088,O.U=256,O.g=!0,O.F=O.Y;break;case"SHA3-384":O.S=ue=832,O.U=384,O.g=!0,O.F=O.Y;break;case"SHA3-512":O.S=ue=576,O.U=512,O.g=!0,O.F=O.Y;break;case"SHAKE128":oe=31,O.S=ue=1344,O.U=-1,O.T=!0,O.g=!1,O.F=null;break;case"SHAKE256":oe=31,O.S=ue=1088,O.U=-1,O.T=!0,O.g=!1,O.F=null;break;case"KMAC128":oe=4,O.S=ue=1344,O.M(K),O.U=-1,O.T=!0,O.g=!1,O.F=O.X;break;case"KMAC256":oe=4,O.S=ue=1088,O.M(K),O.U=-1,O.T=!0,O.g=!1,O.F=O.X;break;case"CSHAKE128":O.S=ue=1344,oe=O.O(K),O.U=-1,O.T=!0,O.g=!1,O.F=null;break;case"CSHAKE256":O.S=ue=1088,oe=O.O(K),O.U=-1,O.T=!0,O.g=!1,O.F=null;break;default:throw new Error(f)}return O.K=function(_e,Ne,ve,Ie,Ye){return function(we,dt,ut,gt,yt,Fe,St){var It,ur,cr=0,tr=[],lr=yt>>>5,Dt=dt>>>5;for(It=0;It<Dt&&dt>=yt;It+=lr)gt=Jt(we.slice(It,It+lr),gt),dt-=yt;for(we=we.slice(It),dt%=yt;we.length<lr;)we.push(0);for(we[(It=dt>>>3)>>2]^=Fe<<It%4*8,we[lr-1]^=2147483648,gt=Jt(we,gt);32*tr.length<St&&(ur=gt[cr%5][cr/5|0],tr.push(ur.I),!(32*tr.length>=St));)tr.push(ur.N),64*(cr+=1)%yt==0&&(Jt(null,gt),cr=0);return tr}(_e,Ne,0,Ie,ue,oe,Ye)},fe.hmacKey&&O.k(B("hmacKey",fe.hmacKey,O.C)),O}return P(g,L),g.prototype.O=function(U,q){var K=function(fe){var _e=fe||{};return{funcName:B("funcName",_e.funcName,1,{value:[],binLen:0}),customization:B("Customization",_e.customization,1,{value:[],binLen:0})}}(U||{});q&&(K.funcName=q);var O=s(zt(K.funcName),zt(K.customization));if(K.customization.binLen!==0||K.funcName.binLen!==0){for(var oe=Xt(O,this.S>>>3),ue=0;ue<oe.length;ue+=this.S>>>5)this.m=this.R(oe.slice(ue,ue+(this.S>>>5)),this.m),this.v+=this.S;return 4}return 31},g.prototype.M=function(U){var q=function(oe){var ue=oe||{};return{kmacKey:B("kmacKey",ue.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:B("Customization",ue.customization,1,{value:[],binLen:0})}}(U||{});this.O(U,q.funcName);for(var K=Xt(zt(q.kmacKey),this.S>>>3),O=0;O<K.length;O+=this.S>>>5)this.m=this.R(K.slice(O,O+(this.S>>>5)),this.m),this.v+=this.S;this.A=!0},g.prototype.X=function(U){var q=s({value:this.u.slice(),binLen:this.s},function(K){var O,oe,ue=0,fe=[0,0],_e=[4294967295&K,K/4294967296&2097151];for(O=6;O>=0;O--)(oe=_e[O>>2]>>>8*O&255)==0&&ue===0||(fe[ue>>2]|=oe<<8*ue,ue+=1);return fe[(ue=ue!==0?ue:1)>>2]|=ue<<8*ue,{value:ue+1>4?fe:[fe[0]],binLen:8+8*ue}}(U.outputLen));return this.K(q.value,q.binLen,this.v,this.B(this.m),U.outputLen)},g}(k);return function(){function L(g,U,q){if(g=="SHA-1")this.j=new Ae(g,U,q);else if(g=="SHA-224"||g=="SHA-256")this.j=new Pe(g,U,q);else if(g=="SHA-384"||g=="SHA-512")this.j=new Gt(g,U,q);else{if(g!="SHA3-224"&&g!="SHA3-256"&&g!="SHA3-384"&&g!="SHA3-512"&&g!="SHAKE128"&&g!="SHAKE256"&&g!="CSHAKE128"&&g!="CSHAKE256"&&g!="KMAC128"&&g!="KMAC256")throw new Error(f);this.j=new er(g,U,q)}}return L.prototype.update=function(g){this.j.update(g)},L.prototype.getHash=function(g,U){return this.j.getHash(g,U)},L.prototype.setHMACKey=function(g,U,q){this.j.setHMACKey(g,U,q)},L.prototype.getHMAC=function(g,U){return this.j.getHMAC(g,U)},L}()})}(li)),li.exports}var Ii={},an={},Uo;function Ac(){if(Uo)return an;Uo=1,Object.defineProperty(an,"__esModule",{value:!0}),an.getSecureRandomWords=an.getSecureRandomBytes=void 0;function n(d){return Buffer.from(window.crypto.getRandomValues(new Uint8Array(d)))}an.getSecureRandomBytes=n;function c(d){return window.crypto.getRandomValues(new Uint16Array(d))}return an.getSecureRandomWords=c,an}var ha={},Oo;function Pc(){if(Oo)return ha;Oo=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.hmac_sha512=void 0;async function n(c,d){let l=typeof c=="string"?Buffer.from(c,"utf-8"):c,t=typeof d=="string"?Buffer.from(d,"utf-8"):d;const r={name:"HMAC",hash:"SHA-512"},e=await window.crypto.subtle.importKey("raw",l,r,!1,["sign"]);return Buffer.from(await crypto.subtle.sign(r,e,t))}return ha.hmac_sha512=n,ha}var pa={},zo;function Ec(){if(zo)return pa;zo=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.pbkdf2_sha512=void 0;async function n(c,d,l,t){const r=typeof c=="string"?Buffer.from(c,"utf-8"):c,e=typeof d=="string"?Buffer.from(d,"utf-8"):d,o=await window.crypto.subtle.importKey("raw",r,{name:"PBKDF2"},!1,["deriveBits"]),i=await window.crypto.subtle.deriveBits({name:"PBKDF2",hash:"SHA-512",salt:e,iterations:l},o,t*8);return Buffer.from(i)}return pa.pbkdf2_sha512=n,pa}var ga={},jo;function Ic(){if(jo)return ga;jo=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.sha256=void 0;async function n(c){return typeof c=="string"?Buffer.from(await crypto.subtle.digest("SHA-256",Buffer.from(c,"utf-8"))):Buffer.from(await crypto.subtle.digest("SHA-256",c))}return ga.sha256=n,ga}var ma={},No;function Tc(){if(No)return ma;No=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.sha512=void 0;async function n(c){return typeof c=="string"?Buffer.from(await crypto.subtle.digest("SHA-512",Buffer.from(c,"utf-8"))):Buffer.from(await crypto.subtle.digest("SHA-512",c))}return ma.sha512=n,ma}var Do;function ya(){return Do||(Do=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.sha512=n.sha256=n.pbkdf2_sha512=n.hmac_sha512=n.getSecureRandomWords=n.getSecureRandomBytes=void 0;var c=Ac();Object.defineProperty(n,"getSecureRandomBytes",{enumerable:!0,get:function(){return c.getSecureRandomBytes}}),Object.defineProperty(n,"getSecureRandomWords",{enumerable:!0,get:function(){return c.getSecureRandomWords}});var d=Pc();Object.defineProperty(n,"hmac_sha512",{enumerable:!0,get:function(){return d.hmac_sha512}});var l=Ec();Object.defineProperty(n,"pbkdf2_sha512",{enumerable:!0,get:function(){return l.pbkdf2_sha512}});var t=Ic();Object.defineProperty(n,"sha256",{enumerable:!0,get:function(){return t.sha256}});var r=Tc();Object.defineProperty(n,"sha512",{enumerable:!0,get:function(){return r.sha512}})}(Ii)),Ii}var qo;function Mc(){if(qo)return dr;qo=1;var n=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dr,"__esModule",{value:!0}),dr.sha256=dr.sha256_fallback=dr.sha256_sync=void 0;const c=n(Ei()),d=ya();function l(e){let o;typeof e=="string"?o=Buffer.from(e,"utf-8").toString("hex"):o=e.toString("hex");let i=new c.default("SHA-256","HEX");i.update(o);let f=i.getHash("HEX");return Buffer.from(f,"hex")}dr.sha256_sync=l;async function t(e){return l(e)}dr.sha256_fallback=t;function r(e){return(0,d.sha256)(e)}return dr.sha256=r,dr}var fr={},Lo;function Rc(){if(Lo)return fr;Lo=1;var n=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fr,"__esModule",{value:!0}),fr.sha512=fr.sha512_fallback=fr.sha512_sync=void 0;const c=n(Ei()),d=ya();function l(e){let o;typeof e=="string"?o=Buffer.from(e,"utf-8").toString("hex"):o=e.toString("hex");let i=new c.default("SHA-512","HEX");i.update(o);let f=i.getHash("HEX");return Buffer.from(f,"hex")}fr.sha512_sync=l;async function t(e){return l(e)}fr.sha512_fallback=t;async function r(e){return(0,d.sha512)(e)}return fr.sha512=r,fr}var ba={},Vo;function Fo(){if(Vo)return ba;Vo=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.pbkdf2_sha512=void 0;const n=ya();function c(d,l,t,r){return(0,n.pbkdf2_sha512)(d,l,t,r)}return ba.pbkdf2_sha512=c,ba}var xr={},Zo;function va(){if(Zo)return xr;Zo=1;var n=xr&&xr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(xr,"__esModule",{value:!0}),xr.hmac_sha512=xr.hmac_sha512_fallback=void 0;const c=n(Ei()),d=ya();async function l(r,e){let o=typeof r=="string"?Buffer.from(r,"utf-8"):r,i=typeof e=="string"?Buffer.from(e,"utf-8"):e;const f=new c.default("SHA-512","HEX",{hmacKey:{value:o.toString("hex"),format:"HEX"}});f.update(i.toString("hex"));const s=f.getHash("HEX");return Buffer.from(s,"hex")}xr.hmac_sha512_fallback=l;function t(r,e){return(0,d.hmac_sha512)(r,e)}return xr.hmac_sha512=t,xr}var kr={},Wo;function Ti(){if(Wo)return kr;Wo=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.getSecureRandomNumber=kr.getSecureRandomWords=kr.getSecureRandomBytes=void 0;const n=ya();async function c(t){return(0,n.getSecureRandomBytes)(t)}kr.getSecureRandomBytes=c;async function d(t){return d()}kr.getSecureRandomWords=d;async function l(t,r){let e=r-t;var o=Math.ceil(Math.log2(e));if(o>53)throw new Error("Range is too large");for(var i=Math.ceil(o/8),f=Math.pow(2,o)-1;;){let y=await c(o),B=(i-1)*8,k=0;for(var s=0;s<i;s++)k+=y[s]*Math.pow(2,B),B-=8;if(k=k&f,!(k>=e))return t+k}}return kr.getSecureRandomNumber=l,kr}var wa={},_a={},Ho;function Uc(){return Ho||(Ho=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.wordlist=void 0,_a.wordlist=["abacus","abdomen","abdominal","abide","abiding","ability","ablaze","able","abnormal","abrasion","abrasive","abreast","abridge","abroad","abruptly","absence","absentee","absently","absinthe","absolute","absolve","abstain","abstract","absurd","accent","acclaim","acclimate","accompany","account","accuracy","accurate","accustom","acetone","achiness","aching","acid","acorn","acquaint","acquire","acre","acrobat","acronym","acting","action","activate","activator","active","activism","activist","activity","actress","acts","acutely","acuteness","aeration","aerobics","aerosol","aerospace","afar","affair","affected","affecting","affection","affidavit","affiliate","affirm","affix","afflicted","affluent","afford","affront","aflame","afloat","aflutter","afoot","afraid","afterglow","afterlife","aftermath","aftermost","afternoon","aged","ageless","agency","agenda","agent","aggregate","aghast","agile","agility","aging","agnostic","agonize","agonizing","agony","agreeable","agreeably","agreed","agreeing","agreement","aground","ahead","ahoy","aide","aids","aim","ajar","alabaster","alarm","albatross","album","alfalfa","algebra","algorithm","alias","alibi","alienable","alienate","aliens","alike","alive","alkaline","alkalize","almanac","almighty","almost","aloe","aloft","aloha","alone","alongside","aloof","alphabet","alright","although","altitude","alto","aluminum","alumni","always","amaretto","amaze","amazingly","amber","ambiance","ambiguity","ambiguous","ambition","ambitious","ambulance","ambush","amendable","amendment","amends","amenity","amiable","amicably","amid","amigo","amino","amiss","ammonia","ammonium","amnesty","amniotic","among","amount","amperage","ample","amplifier","amplify","amply","amuck","amulet","amusable","amused","amusement","amuser","amusing","anaconda","anaerobic","anagram","anatomist","anatomy","anchor","anchovy","ancient","android","anemia","anemic","aneurism","anew","angelfish","angelic","anger","angled","angler","angles","angling","angrily","angriness","anguished","angular","animal","animate","animating","animation","animator","anime","animosity","ankle","annex","annotate","announcer","annoying","annually","annuity","anointer","another","answering","antacid","antarctic","anteater","antelope","antennae","anthem","anthill","anthology","antibody","antics","antidote","antihero","antiquely","antiques","antiquity","antirust","antitoxic","antitrust","antiviral","antivirus","antler","antonym","antsy","anvil","anybody","anyhow","anymore","anyone","anyplace","anything","anytime","anyway","anywhere","aorta","apache","apostle","appealing","appear","appease","appeasing","appendage","appendix","appetite","appetizer","applaud","applause","apple","appliance","applicant","applied","apply","appointee","appraisal","appraiser","apprehend","approach","approval","approve","apricot","april","apron","aptitude","aptly","aqua","aqueduct","arbitrary","arbitrate","ardently","area","arena","arguable","arguably","argue","arise","armadillo","armband","armchair","armed","armful","armhole","arming","armless","armoire","armored","armory","armrest","army","aroma","arose","around","arousal","arrange","array","arrest","arrival","arrive","arrogance","arrogant","arson","art","ascend","ascension","ascent","ascertain","ashamed","ashen","ashes","ashy","aside","askew","asleep","asparagus","aspect","aspirate","aspire","aspirin","astonish","astound","astride","astrology","astronaut","astronomy","astute","atlantic","atlas","atom","atonable","atop","atrium","atrocious","atrophy","attach","attain","attempt","attendant","attendee","attention","attentive","attest","attic","attire","attitude","attractor","attribute","atypical","auction","audacious","audacity","audible","audibly","audience","audio","audition","augmented","august","authentic","author","autism","autistic","autograph","automaker","automated","automatic","autopilot","available","avalanche","avatar","avenge","avenging","avenue","average","aversion","avert","aviation","aviator","avid","avoid","await","awaken","award","aware","awhile","awkward","awning","awoke","awry","axis","babble","babbling","babied","baboon","backache","backboard","backboned","backdrop","backed","backer","backfield","backfire","backhand","backing","backlands","backlash","backless","backlight","backlit","backlog","backpack","backpedal","backrest","backroom","backshift","backside","backslid","backspace","backspin","backstab","backstage","backtalk","backtrack","backup","backward","backwash","backwater","backyard","bacon","bacteria","bacterium","badass","badge","badland","badly","badness","baffle","baffling","bagel","bagful","baggage","bagged","baggie","bagginess","bagging","baggy","bagpipe","baguette","baked","bakery","bakeshop","baking","balance","balancing","balcony","balmy","balsamic","bamboo","banana","banish","banister","banjo","bankable","bankbook","banked","banker","banking","banknote","bankroll","banner","bannister","banshee","banter","barbecue","barbed","barbell","barber","barcode","barge","bargraph","barista","baritone","barley","barmaid","barman","barn","barometer","barrack","barracuda","barrel","barrette","barricade","barrier","barstool","bartender","barterer","bash","basically","basics","basil","basin","basis","basket","batboy","batch","bath","baton","bats","battalion","battered","battering","battery","batting","battle","bauble","bazooka","blabber","bladder","blade","blah","blame","blaming","blanching","blandness","blank","blaspheme","blasphemy","blast","blatancy","blatantly","blazer","blazing","bleach","bleak","bleep","blemish","blend","bless","blighted","blimp","bling","blinked","blinker","blinking","blinks","blip","blissful","blitz","blizzard","bloated","bloating","blob","blog","bloomers","blooming","blooper","blot","blouse","blubber","bluff","bluish","blunderer","blunt","blurb","blurred","blurry","blurt","blush","blustery","boaster","boastful","boasting","boat","bobbed","bobbing","bobble","bobcat","bobsled","bobtail","bodacious","body","bogged","boggle","bogus","boil","bok","bolster","bolt","bonanza","bonded","bonding","bondless","boned","bonehead","boneless","bonelike","boney","bonfire","bonnet","bonsai","bonus","bony","boogeyman","boogieman","book","boondocks","booted","booth","bootie","booting","bootlace","bootleg","boots","boozy","borax","boring","borough","borrower","borrowing","boss","botanical","botanist","botany","botch","both","bottle","bottling","bottom","bounce","bouncing","bouncy","bounding","boundless","bountiful","bovine","boxcar","boxer","boxing","boxlike","boxy","breach","breath","breeches","breeching","breeder","breeding","breeze","breezy","brethren","brewery","brewing","briar","bribe","brick","bride","bridged","brigade","bright","brilliant","brim","bring","brink","brisket","briskly","briskness","bristle","brittle","broadband","broadcast","broaden","broadly","broadness","broadside","broadways","broiler","broiling","broken","broker","bronchial","bronco","bronze","bronzing","brook","broom","brought","browbeat","brownnose","browse","browsing","bruising","brunch","brunette","brunt","brush","brussels","brute","brutishly","bubble","bubbling","bubbly","buccaneer","bucked","bucket","buckle","buckshot","buckskin","bucktooth","buckwheat","buddhism","buddhist","budding","buddy","budget","buffalo","buffed","buffer","buffing","buffoon","buggy","bulb","bulge","bulginess","bulgur","bulk","bulldog","bulldozer","bullfight","bullfrog","bullhorn","bullion","bullish","bullpen","bullring","bullseye","bullwhip","bully","bunch","bundle","bungee","bunion","bunkbed","bunkhouse","bunkmate","bunny","bunt","busboy","bush","busily","busload","bust","busybody","buzz","cabana","cabbage","cabbie","cabdriver","cable","caboose","cache","cackle","cacti","cactus","caddie","caddy","cadet","cadillac","cadmium","cage","cahoots","cake","calamari","calamity","calcium","calculate","calculus","caliber","calibrate","calm","caloric","calorie","calzone","camcorder","cameo","camera","camisole","camper","campfire","camping","campsite","campus","canal","canary","cancel","candied","candle","candy","cane","canine","canister","cannabis","canned","canning","cannon","cannot","canola","canon","canopener","canopy","canteen","canyon","capable","capably","capacity","cape","capillary","capital","capitol","capped","capricorn","capsize","capsule","caption","captivate","captive","captivity","capture","caramel","carat","caravan","carbon","cardboard","carded","cardiac","cardigan","cardinal","cardstock","carefully","caregiver","careless","caress","caretaker","cargo","caring","carless","carload","carmaker","carnage","carnation","carnival","carnivore","carol","carpenter","carpentry","carpool","carport","carried","carrot","carrousel","carry","cartel","cartload","carton","cartoon","cartridge","cartwheel","carve","carving","carwash","cascade","case","cash","casing","casino","casket","cassette","casually","casualty","catacomb","catalog","catalyst","catalyze","catapult","cataract","catatonic","catcall","catchable","catcher","catching","catchy","caterer","catering","catfight","catfish","cathedral","cathouse","catlike","catnap","catnip","catsup","cattail","cattishly","cattle","catty","catwalk","caucasian","caucus","causal","causation","cause","causing","cauterize","caution","cautious","cavalier","cavalry","caviar","cavity","cedar","celery","celestial","celibacy","celibate","celtic","cement","census","ceramics","ceremony","certainly","certainty","certified","certify","cesarean","cesspool","chafe","chaffing","chain","chair","chalice","challenge","chamber","chamomile","champion","chance","change","channel","chant","chaos","chaperone","chaplain","chapped","chaps","chapter","character","charbroil","charcoal","charger","charging","chariot","charity","charm","charred","charter","charting","chase","chasing","chaste","chastise","chastity","chatroom","chatter","chatting","chatty","cheating","cheddar","cheek","cheer","cheese","cheesy","chef","chemicals","chemist","chemo","cherisher","cherub","chess","chest","chevron","chevy","chewable","chewer","chewing","chewy","chief","chihuahua","childcare","childhood","childish","childless","childlike","chili","chill","chimp","chip","chirping","chirpy","chitchat","chivalry","chive","chloride","chlorine","choice","chokehold","choking","chomp","chooser","choosing","choosy","chop","chosen","chowder","chowtime","chrome","chubby","chuck","chug","chummy","chump","chunk","churn","chute","cider","cilantro","cinch","cinema","cinnamon","circle","circling","circular","circulate","circus","citable","citadel","citation","citizen","citric","citrus","city","civic","civil","clad","claim","clambake","clammy","clamor","clamp","clamshell","clang","clanking","clapped","clapper","clapping","clarify","clarinet","clarity","clash","clasp","class","clatter","clause","clavicle","claw","clay","clean","clear","cleat","cleaver","cleft","clench","clergyman","clerical","clerk","clever","clicker","client","climate","climatic","cling","clinic","clinking","clip","clique","cloak","clobber","clock","clone","cloning","closable","closure","clothes","clothing","cloud","clover","clubbed","clubbing","clubhouse","clump","clumsily","clumsy","clunky","clustered","clutch","clutter","coach","coagulant","coastal","coaster","coasting","coastland","coastline","coat","coauthor","cobalt","cobbler","cobweb","cocoa","coconut","cod","coeditor","coerce","coexist","coffee","cofounder","cognition","cognitive","cogwheel","coherence","coherent","cohesive","coil","coke","cola","cold","coleslaw","coliseum","collage","collapse","collar","collected","collector","collide","collie","collision","colonial","colonist","colonize","colony","colossal","colt","coma","come","comfort","comfy","comic","coming","comma","commence","commend","comment","commerce","commode","commodity","commodore","common","commotion","commute","commuting","compacted","compacter","compactly","compactor","companion","company","compare","compel","compile","comply","component","composed","composer","composite","compost","composure","compound","compress","comprised","computer","computing","comrade","concave","conceal","conceded","concept","concerned","concert","conch","concierge","concise","conclude","concrete","concur","condense","condiment","condition","condone","conducive","conductor","conduit","cone","confess","confetti","confidant","confident","confider","confiding","configure","confined","confining","confirm","conflict","conform","confound","confront","confused","confusing","confusion","congenial","congested","congrats","congress","conical","conjoined","conjure","conjuror","connected","connector","consensus","consent","console","consoling","consonant","constable","constant","constrain","constrict","construct","consult","consumer","consuming","contact","container","contempt","contend","contented","contently","contents","contest","context","contort","contour","contrite","control","contusion","convene","convent","copartner","cope","copied","copier","copilot","coping","copious","copper","copy","coral","cork","cornball","cornbread","corncob","cornea","corned","corner","cornfield","cornflake","cornhusk","cornmeal","cornstalk","corny","coronary","coroner","corporal","corporate","corral","correct","corridor","corrode","corroding","corrosive","corsage","corset","cortex","cosigner","cosmetics","cosmic","cosmos","cosponsor","cost","cottage","cotton","couch","cough","could","countable","countdown","counting","countless","country","county","courier","covenant","cover","coveted","coveting","coyness","cozily","coziness","cozy","crabbing","crabgrass","crablike","crabmeat","cradle","cradling","crafter","craftily","craftsman","craftwork","crafty","cramp","cranberry","crane","cranial","cranium","crank","crate","crave","craving","crawfish","crawlers","crawling","crayfish","crayon","crazed","crazily","craziness","crazy","creamed","creamer","creamlike","crease","creasing","creatable","create","creation","creative","creature","credible","credibly","credit","creed","creme","creole","crepe","crept","crescent","crested","cresting","crestless","crevice","crewless","crewman","crewmate","crib","cricket","cried","crier","crimp","crimson","cringe","cringing","crinkle","crinkly","crisped","crisping","crisply","crispness","crispy","criteria","critter","croak","crock","crook","croon","crop","cross","crouch","crouton","crowbar","crowd","crown","crucial","crudely","crudeness","cruelly","cruelness","cruelty","crumb","crummiest","crummy","crumpet","crumpled","cruncher","crunching","crunchy","crusader","crushable","crushed","crusher","crushing","crust","crux","crying","cryptic","crystal","cubbyhole","cube","cubical","cubicle","cucumber","cuddle","cuddly","cufflink","culinary","culminate","culpable","culprit","cultivate","cultural","culture","cupbearer","cupcake","cupid","cupped","cupping","curable","curator","curdle","cure","curfew","curing","curled","curler","curliness","curling","curly","curry","curse","cursive","cursor","curtain","curtly","curtsy","curvature","curve","curvy","cushy","cusp","cussed","custard","custodian","custody","customary","customer","customize","customs","cut","cycle","cyclic","cycling","cyclist","cylinder","cymbal","cytoplasm","cytoplast","dab","dad","daffodil","dagger","daily","daintily","dainty","dairy","daisy","dallying","dance","dancing","dandelion","dander","dandruff","dandy","danger","dangle","dangling","daredevil","dares","daringly","darkened","darkening","darkish","darkness","darkroom","darling","darn","dart","darwinism","dash","dastardly","data","datebook","dating","daughter","daunting","dawdler","dawn","daybed","daybreak","daycare","daydream","daylight","daylong","dayroom","daytime","dazzler","dazzling","deacon","deafening","deafness","dealer","dealing","dealmaker","dealt","dean","debatable","debate","debating","debit","debrief","debtless","debtor","debug","debunk","decade","decaf","decal","decathlon","decay","deceased","deceit","deceiver","deceiving","december","decency","decent","deception","deceptive","decibel","decidable","decimal","decimeter","decipher","deck","declared","decline","decode","decompose","decorated","decorator","decoy","decrease","decree","dedicate","dedicator","deduce","deduct","deed","deem","deepen","deeply","deepness","deface","defacing","defame","default","defeat","defection","defective","defendant","defender","defense","defensive","deferral","deferred","defiance","defiant","defile","defiling","define","definite","deflate","deflation","deflator","deflected","deflector","defog","deforest","defraud","defrost","deftly","defuse","defy","degraded","degrading","degrease","degree","dehydrate","deity","dejected","delay","delegate","delegator","delete","deletion","delicacy","delicate","delicious","delighted","delirious","delirium","deliverer","delivery","delouse","delta","deluge","delusion","deluxe","demanding","demeaning","demeanor","demise","democracy","democrat","demote","demotion","demystify","denatured","deniable","denial","denim","denote","dense","density","dental","dentist","denture","deny","deodorant","deodorize","departed","departure","depict","deplete","depletion","deplored","deploy","deport","depose","depraved","depravity","deprecate","depress","deprive","depth","deputize","deputy","derail","deranged","derby","derived","desecrate","deserve","deserving","designate","designed","designer","designing","deskbound","desktop","deskwork","desolate","despair","despise","despite","destiny","destitute","destruct","detached","detail","detection","detective","detector","detention","detergent","detest","detonate","detonator","detoxify","detract","deuce","devalue","deviancy","deviant","deviate","deviation","deviator","device","devious","devotedly","devotee","devotion","devourer","devouring","devoutly","dexterity","dexterous","diabetes","diabetic","diabolic","diagnoses","diagnosis","diagram","dial","diameter","diaper","diaphragm","diary","dice","dicing","dictate","dictation","dictator","difficult","diffused","diffuser","diffusion","diffusive","dig","dilation","diligence","diligent","dill","dilute","dime","diminish","dimly","dimmed","dimmer","dimness","dimple","diner","dingbat","dinghy","dinginess","dingo","dingy","dining","dinner","diocese","dioxide","diploma","dipped","dipper","dipping","directed","direction","directive","directly","directory","direness","dirtiness","disabled","disagree","disallow","disarm","disarray","disaster","disband","disbelief","disburse","discard","discern","discharge","disclose","discolor","discount","discourse","discover","discuss","disdain","disengage","disfigure","disgrace","dish","disinfect","disjoin","disk","dislike","disliking","dislocate","dislodge","disloyal","dismantle","dismay","dismiss","dismount","disobey","disorder","disown","disparate","disparity","dispatch","dispense","dispersal","dispersed","disperser","displace","display","displease","disposal","dispose","disprove","dispute","disregard","disrupt","dissuade","distance","distant","distaste","distill","distinct","distort","distract","distress","district","distrust","ditch","ditto","ditzy","dividable","divided","dividend","dividers","dividing","divinely","diving","divinity","divisible","divisibly","division","divisive","divorcee","dizziness","dizzy","doable","docile","dock","doctrine","document","dodge","dodgy","doily","doing","dole","dollar","dollhouse","dollop","dolly","dolphin","domain","domelike","domestic","dominion","dominoes","donated","donation","donator","donor","donut","doodle","doorbell","doorframe","doorknob","doorman","doormat","doornail","doorpost","doorstep","doorstop","doorway","doozy","dork","dormitory","dorsal","dosage","dose","dotted","doubling","douche","dove","down","dowry","doze","drab","dragging","dragonfly","dragonish","dragster","drainable","drainage","drained","drainer","drainpipe","dramatic","dramatize","drank","drapery","drastic","draw","dreaded","dreadful","dreadlock","dreamboat","dreamily","dreamland","dreamless","dreamlike","dreamt","dreamy","drearily","dreary","drench","dress","drew","dribble","dried","drier","drift","driller","drilling","drinkable","drinking","dripping","drippy","drivable","driven","driver","driveway","driving","drizzle","drizzly","drone","drool","droop","drop-down","dropbox","dropkick","droplet","dropout","dropper","drove","drown","drowsily","drudge","drum","dry","dubbed","dubiously","duchess","duckbill","ducking","duckling","ducktail","ducky","duct","dude","duffel","dugout","duh","duke","duller","dullness","duly","dumping","dumpling","dumpster","duo","dupe","duplex","duplicate","duplicity","durable","durably","duration","duress","during","dusk","dust","dutiful","duty","duvet","dwarf","dweeb","dwelled","dweller","dwelling","dwindle","dwindling","dynamic","dynamite","dynasty","dyslexia","dyslexic","each","eagle","earache","eardrum","earflap","earful","earlobe","early","earmark","earmuff","earphone","earpiece","earplugs","earring","earshot","earthen","earthlike","earthling","earthly","earthworm","earthy","earwig","easeful","easel","easiest","easily","easiness","easing","eastbound","eastcoast","easter","eastward","eatable","eaten","eatery","eating","eats","ebay","ebony","ebook","ecard","eccentric","echo","eclair","eclipse","ecologist","ecology","economic","economist","economy","ecosphere","ecosystem","edge","edginess","edging","edgy","edition","editor","educated","education","educator","eel","effective","effects","efficient","effort","eggbeater","egging","eggnog","eggplant","eggshell","egomaniac","egotism","egotistic","either","eject","elaborate","elastic","elated","elbow","eldercare","elderly","eldest","electable","election","elective","elephant","elevate","elevating","elevation","elevator","eleven","elf","eligible","eligibly","eliminate","elite","elitism","elixir","elk","ellipse","elliptic","elm","elongated","elope","eloquence","eloquent","elsewhere","elude","elusive","elves","email","embargo","embark","embassy","embattled","embellish","ember","embezzle","emblaze","emblem","embody","embolism","emboss","embroider","emcee","emerald","emergency","emission","emit","emote","emoticon","emotion","empathic","empathy","emperor","emphases","emphasis","emphasize","emphatic","empirical","employed","employee","employer","emporium","empower","emptier","emptiness","empty","emu","enable","enactment","enamel","enchanted","enchilada","encircle","enclose","enclosure","encode","encore","encounter","encourage","encroach","encrust","encrypt","endanger","endeared","endearing","ended","ending","endless","endnote","endocrine","endorphin","endorse","endowment","endpoint","endurable","endurance","enduring","energetic","energize","energy","enforced","enforcer","engaged","engaging","engine","engorge","engraved","engraver","engraving","engross","engulf","enhance","enigmatic","enjoyable","enjoyably","enjoyer","enjoying","enjoyment","enlarged","enlarging","enlighten","enlisted","enquirer","enrage","enrich","enroll","enslave","ensnare","ensure","entail","entangled","entering","entertain","enticing","entire","entitle","entity","entomb","entourage","entrap","entree","entrench","entrust","entryway","entwine","enunciate","envelope","enviable","enviably","envious","envision","envoy","envy","enzyme","epic","epidemic","epidermal","epidermis","epidural","epilepsy","epileptic","epilogue","epiphany","episode","equal","equate","equation","equator","equinox","equipment","equity","equivocal","eradicate","erasable","erased","eraser","erasure","ergonomic","errand","errant","erratic","error","erupt","escalate","escalator","escapable","escapade","escapist","escargot","eskimo","esophagus","espionage","espresso","esquire","essay","essence","essential","establish","estate","esteemed","estimate","estimator","estranged","estrogen","etching","eternal","eternity","ethanol","ether","ethically","ethics","euphemism","evacuate","evacuee","evade","evaluate","evaluator","evaporate","evasion","evasive","even","everglade","evergreen","everybody","everyday","everyone","evict","evidence","evident","evil","evoke","evolution","evolve","exact","exalted","example","excavate","excavator","exceeding","exception","excess","exchange","excitable","exciting","exclaim","exclude","excluding","exclusion","exclusive","excretion","excretory","excursion","excusable","excusably","excuse","exemplary","exemplify","exemption","exerciser","exert","exes","exfoliate","exhale","exhaust","exhume","exile","existing","exit","exodus","exonerate","exorcism","exorcist","expand","expanse","expansion","expansive","expectant","expedited","expediter","expel","expend","expenses","expensive","expert","expire","expiring","explain","expletive","explicit","explode","exploit","explore","exploring","exponent","exporter","exposable","expose","exposure","express","expulsion","exquisite","extended","extending","extent","extenuate","exterior","external","extinct","extortion","extradite","extras","extrovert","extrude","extruding","exuberant","fable","fabric","fabulous","facebook","facecloth","facedown","faceless","facelift","faceplate","faceted","facial","facility","facing","facsimile","faction","factoid","factor","factsheet","factual","faculty","fade","fading","failing","falcon","fall","false","falsify","fame","familiar","family","famine","famished","fanatic","fancied","fanciness","fancy","fanfare","fang","fanning","fantasize","fantastic","fantasy","fascism","fastball","faster","fasting","fastness","faucet","favorable","favorably","favored","favoring","favorite","fax","feast","federal","fedora","feeble","feed","feel","feisty","feline","felt-tip","feminine","feminism","feminist","feminize","femur","fence","fencing","fender","ferment","fernlike","ferocious","ferocity","ferret","ferris","ferry","fervor","fester","festival","festive","festivity","fetal","fetch","fever","fiber","fiction","fiddle","fiddling","fidelity","fidgeting","fidgety","fifteen","fifth","fiftieth","fifty","figment","figure","figurine","filing","filled","filler","filling","film","filter","filth","filtrate","finale","finalist","finalize","finally","finance","financial","finch","fineness","finer","finicky","finished","finisher","finishing","finite","finless","finlike","fiscally","fit","five","flaccid","flagman","flagpole","flagship","flagstick","flagstone","flail","flakily","flaky","flame","flammable","flanked","flanking","flannels","flap","flaring","flashback","flashbulb","flashcard","flashily","flashing","flashy","flask","flatbed","flatfoot","flatly","flatness","flatten","flattered","flatterer","flattery","flattop","flatware","flatworm","flavored","flavorful","flavoring","flaxseed","fled","fleshed","fleshy","flick","flier","flight","flinch","fling","flint","flip","flirt","float","flock","flogging","flop","floral","florist","floss","flounder","flyable","flyaway","flyer","flying","flyover","flypaper","foam","foe","fog","foil","folic","folk","follicle","follow","fondling","fondly","fondness","fondue","font","food","fool","footage","football","footbath","footboard","footer","footgear","foothill","foothold","footing","footless","footman","footnote","footpad","footpath","footprint","footrest","footsie","footsore","footwear","footwork","fossil","foster","founder","founding","fountain","fox","foyer","fraction","fracture","fragile","fragility","fragment","fragrance","fragrant","frail","frame","framing","frantic","fraternal","frayed","fraying","frays","freckled","freckles","freebase","freebee","freebie","freedom","freefall","freehand","freeing","freeload","freely","freemason","freeness","freestyle","freeware","freeway","freewill","freezable","freezing","freight","french","frenzied","frenzy","frequency","frequent","fresh","fretful","fretted","friction","friday","fridge","fried","friend","frighten","frightful","frigidity","frigidly","frill","fringe","frisbee","frisk","fritter","frivolous","frolic","from","front","frostbite","frosted","frostily","frosting","frostlike","frosty","froth","frown","frozen","fructose","frugality","frugally","fruit","frustrate","frying","gab","gaffe","gag","gainfully","gaining","gains","gala","gallantly","galleria","gallery","galley","gallon","gallows","gallstone","galore","galvanize","gambling","game","gaming","gamma","gander","gangly","gangrene","gangway","gap","garage","garbage","garden","gargle","garland","garlic","garment","garnet","garnish","garter","gas","gatherer","gathering","gating","gauging","gauntlet","gauze","gave","gawk","gazing","gear","gecko","geek","geiger","gem","gender","generic","generous","genetics","genre","gentile","gentleman","gently","gents","geography","geologic","geologist","geology","geometric","geometry","geranium","gerbil","geriatric","germicide","germinate","germless","germproof","gestate","gestation","gesture","getaway","getting","getup","giant","gibberish","giblet","giddily","giddiness","giddy","gift","gigabyte","gigahertz","gigantic","giggle","giggling","giggly","gigolo","gilled","gills","gimmick","girdle","giveaway","given","giver","giving","gizmo","gizzard","glacial","glacier","glade","gladiator","gladly","glamorous","glamour","glance","glancing","glandular","glare","glaring","glass","glaucoma","glazing","gleaming","gleeful","glider","gliding","glimmer","glimpse","glisten","glitch","glitter","glitzy","gloater","gloating","gloomily","gloomy","glorified","glorifier","glorify","glorious","glory","gloss","glove","glowing","glowworm","glucose","glue","gluten","glutinous","glutton","gnarly","gnat","goal","goatskin","goes","goggles","going","goldfish","goldmine","goldsmith","golf","goliath","gonad","gondola","gone","gong","good","gooey","goofball","goofiness","goofy","google","goon","gopher","gore","gorged","gorgeous","gory","gosling","gossip","gothic","gotten","gout","gown","grab","graceful","graceless","gracious","gradation","graded","grader","gradient","grading","gradually","graduate","graffiti","grafted","grafting","grain","granddad","grandkid","grandly","grandma","grandpa","grandson","granite","granny","granola","grant","granular","grape","graph","grapple","grappling","grasp","grass","gratified","gratify","grating","gratitude","gratuity","gravel","graveness","graves","graveyard","gravitate","gravity","gravy","gray","grazing","greasily","greedily","greedless","greedy","green","greeter","greeting","grew","greyhound","grid","grief","grievance","grieving","grievous","grill","grimace","grimacing","grime","griminess","grimy","grinch","grinning","grip","gristle","grit","groggily","groggy","groin","groom","groove","grooving","groovy","grope","ground","grouped","grout","grove","grower","growing","growl","grub","grudge","grudging","grueling","gruffly","grumble","grumbling","grumbly","grumpily","grunge","grunt","guacamole","guidable","guidance","guide","guiding","guileless","guise","gulf","gullible","gully","gulp","gumball","gumdrop","gumminess","gumming","gummy","gurgle","gurgling","guru","gush","gusto","gusty","gutless","guts","gutter","guy","guzzler","gyration","habitable","habitant","habitat","habitual","hacked","hacker","hacking","hacksaw","had","haggler","haiku","half","halogen","halt","halved","halves","hamburger","hamlet","hammock","hamper","hamster","hamstring","handbag","handball","handbook","handbrake","handcart","handclap","handclasp","handcraft","handcuff","handed","handful","handgrip","handgun","handheld","handiness","handiwork","handlebar","handled","handler","handling","handmade","handoff","handpick","handprint","handrail","handsaw","handset","handsfree","handshake","handstand","handwash","handwork","handwoven","handwrite","handyman","hangnail","hangout","hangover","hangup","hankering","hankie","hanky","haphazard","happening","happier","happiest","happily","happiness","happy","harbor","hardcopy","hardcore","hardcover","harddisk","hardened","hardener","hardening","hardhat","hardhead","hardiness","hardly","hardness","hardship","hardware","hardwired","hardwood","hardy","harmful","harmless","harmonica","harmonics","harmonize","harmony","harness","harpist","harsh","harvest","hash","hassle","haste","hastily","hastiness","hasty","hatbox","hatchback","hatchery","hatchet","hatching","hatchling","hate","hatless","hatred","haunt","haven","hazard","hazelnut","hazily","haziness","hazing","hazy","headache","headband","headboard","headcount","headdress","headed","header","headfirst","headgear","heading","headlamp","headless","headlock","headphone","headpiece","headrest","headroom","headscarf","headset","headsman","headstand","headstone","headway","headwear","heap","heat","heave","heavily","heaviness","heaving","hedge","hedging","heftiness","hefty","helium","helmet","helper","helpful","helping","helpless","helpline","hemlock","hemstitch","hence","henchman","henna","herald","herbal","herbicide","herbs","heritage","hermit","heroics","heroism","herring","herself","hertz","hesitancy","hesitant","hesitate","hexagon","hexagram","hubcap","huddle","huddling","huff","hug","hula","hulk","hull","human","humble","humbling","humbly","humid","humiliate","humility","humming","hummus","humongous","humorist","humorless","humorous","humpback","humped","humvee","hunchback","hundredth","hunger","hungrily","hungry","hunk","hunter","hunting","huntress","huntsman","hurdle","hurled","hurler","hurling","hurray","hurricane","hurried","hurry","hurt","husband","hush","husked","huskiness","hut","hybrid","hydrant","hydrated","hydration","hydrogen","hydroxide","hyperlink","hypertext","hyphen","hypnoses","hypnosis","hypnotic","hypnotism","hypnotist","hypnotize","hypocrisy","hypocrite","ibuprofen","ice","iciness","icing","icky","icon","icy","idealism","idealist","idealize","ideally","idealness","identical","identify","identity","ideology","idiocy","idiom","idly","igloo","ignition","ignore","iguana","illicitly","illusion","illusive","image","imaginary","imagines","imaging","imbecile","imitate","imitation","immature","immerse","immersion","imminent","immobile","immodest","immorally","immortal","immovable","immovably","immunity","immunize","impaired","impale","impart","impatient","impeach","impeding","impending","imperfect","imperial","impish","implant","implement","implicate","implicit","implode","implosion","implosive","imply","impolite","important","importer","impose","imposing","impotence","impotency","impotent","impound","imprecise","imprint","imprison","impromptu","improper","improve","improving","improvise","imprudent","impulse","impulsive","impure","impurity","iodine","iodize","ion","ipad","iphone","ipod","irate","irk","iron","irregular","irrigate","irritable","irritably","irritant","irritate","islamic","islamist","isolated","isolating","isolation","isotope","issue","issuing","italicize","italics","item","itinerary","itunes","ivory","ivy","jab","jackal","jacket","jackknife","jackpot","jailbird","jailbreak","jailer","jailhouse","jalapeno","jam","janitor","january","jargon","jarring","jasmine","jaundice","jaunt","java","jawed","jawless","jawline","jaws","jaybird","jaywalker","jazz","jeep","jeeringly","jellied","jelly","jersey","jester","jet","jiffy","jigsaw","jimmy","jingle","jingling","jinx","jitters","jittery","job","jockey","jockstrap","jogger","jogging","john","joining","jokester","jokingly","jolliness","jolly","jolt","jot","jovial","joyfully","joylessly","joyous","joyride","joystick","jubilance","jubilant","judge","judgingly","judicial","judiciary","judo","juggle","juggling","jugular","juice","juiciness","juicy","jujitsu","jukebox","july","jumble","jumbo","jump","junction","juncture","june","junior","juniper","junkie","junkman","junkyard","jurist","juror","jury","justice","justifier","justify","justly","justness","juvenile","kabob","kangaroo","karaoke","karate","karma","kebab","keenly","keenness","keep","keg","kelp","kennel","kept","kerchief","kerosene","kettle","kick","kiln","kilobyte","kilogram","kilometer","kilowatt","kilt","kimono","kindle","kindling","kindly","kindness","kindred","kinetic","kinfolk","king","kinship","kinsman","kinswoman","kissable","kisser","kissing","kitchen","kite","kitten","kitty","kiwi","kleenex","knapsack","knee","knelt","knickers","knoll","koala","kooky","kosher","krypton","kudos","kung","labored","laborer","laboring","laborious","labrador","ladder","ladies","ladle","ladybug","ladylike","lagged","lagging","lagoon","lair","lake","lance","landed","landfall","landfill","landing","landlady","landless","landline","landlord","landmark","landmass","landmine","landowner","landscape","landside","landslide","language","lankiness","lanky","lantern","lapdog","lapel","lapped","lapping","laptop","lard","large","lark","lash","lasso","last","latch","late","lather","latitude","latrine","latter","latticed","launch","launder","laundry","laurel","lavender","lavish","laxative","lazily","laziness","lazy","lecturer","left","legacy","legal","legend","legged","leggings","legible","legibly","legislate","lego","legroom","legume","legwarmer","legwork","lemon","lend","length","lens","lent","leotard","lesser","letdown","lethargic","lethargy","letter","lettuce","level","leverage","levers","levitate","levitator","liability","liable","liberty","librarian","library","licking","licorice","lid","life","lifter","lifting","liftoff","ligament","likely","likeness","likewise","liking","lilac","lilly","lily","limb","limeade","limelight","limes","limit","limping","limpness","line","lingo","linguini","linguist","lining","linked","linoleum","linseed","lint","lion","lip","liquefy","liqueur","liquid","lisp","list","litigate","litigator","litmus","litter","little","livable","lived","lively","liver","livestock","lividly","living","lizard","lubricant","lubricate","lucid","luckily","luckiness","luckless","lucrative","ludicrous","lugged","lukewarm","lullaby","lumber","luminance","luminous","lumpiness","lumping","lumpish","lunacy","lunar","lunchbox","luncheon","lunchroom","lunchtime","lung","lurch","lure","luridness","lurk","lushly","lushness","luster","lustfully","lustily","lustiness","lustrous","lusty","luxurious","luxury","lying","lyrically","lyricism","lyricist","lyrics","macarena","macaroni","macaw","mace","machine","machinist","magazine","magenta","maggot","magical","magician","magma","magnesium","magnetic","magnetism","magnetize","magnifier","magnify","magnitude","magnolia","mahogany","maimed","majestic","majesty","majorette","majority","makeover","maker","makeshift","making","malformed","malt","mama","mammal","mammary","mammogram","manager","managing","manatee","mandarin","mandate","mandatory","mandolin","manger","mangle","mango","mangy","manhandle","manhole","manhood","manhunt","manicotti","manicure","manifesto","manila","mankind","manlike","manliness","manly","manmade","manned","mannish","manor","manpower","mantis","mantra","manual","many","map","marathon","marauding","marbled","marbles","marbling","march","mardi","margarine","margarita","margin","marigold","marina","marine","marital","maritime","marlin","marmalade","maroon","married","marrow","marry","marshland","marshy","marsupial","marvelous","marxism","mascot","masculine","mashed","mashing","massager","masses","massive","mastiff","matador","matchbook","matchbox","matcher","matching","matchless","material","maternal","maternity","math","mating","matriarch","matrimony","matrix","matron","matted","matter","maturely","maturing","maturity","mauve","maverick","maximize","maximum","maybe","mayday","mayflower","moaner","moaning","mobile","mobility","mobilize","mobster","mocha","mocker","mockup","modified","modify","modular","modulator","module","moisten","moistness","moisture","molar","molasses","mold","molecular","molecule","molehill","mollusk","mom","monastery","monday","monetary","monetize","moneybags","moneyless","moneywise","mongoose","mongrel","monitor","monkhood","monogamy","monogram","monologue","monopoly","monorail","monotone","monotype","monoxide","monsieur","monsoon","monstrous","monthly","monument","moocher","moodiness","moody","mooing","moonbeam","mooned","moonlight","moonlike","moonlit","moonrise","moonscape","moonshine","moonstone","moonwalk","mop","morale","morality","morally","morbidity","morbidly","morphine","morphing","morse","mortality","mortally","mortician","mortified","mortify","mortuary","mosaic","mossy","most","mothball","mothproof","motion","motivate","motivator","motive","motocross","motor","motto","mountable","mountain","mounted","mounting","mourner","mournful","mouse","mousiness","moustache","mousy","mouth","movable","move","movie","moving","mower","mowing","much","muck","mud","mug","mulberry","mulch","mule","mulled","mullets","multiple","multiply","multitask","multitude","mumble","mumbling","mumbo","mummified","mummify","mummy","mumps","munchkin","mundane","municipal","muppet","mural","murkiness","murky","murmuring","muscular","museum","mushily","mushiness","mushroom","mushy","music","musket","muskiness","musky","mustang","mustard","muster","mustiness","musty","mutable","mutate","mutation","mute","mutilated","mutilator","mutiny","mutt","mutual","muzzle","myself","myspace","mystified","mystify","myth","nacho","nag","nail","name","naming","nanny","nanometer","nape","napkin","napped","napping","nappy","narrow","nastily","nastiness","national","native","nativity","natural","nature","naturist","nautical","navigate","navigator","navy","nearby","nearest","nearly","nearness","neatly","neatness","nebula","nebulizer","nectar","negate","negation","negative","neglector","negligee","negligent","negotiate","nemeses","nemesis","neon","nephew","nerd","nervous","nervy","nest","net","neurology","neuron","neurosis","neurotic","neuter","neutron","never","next","nibble","nickname","nicotine","niece","nifty","nimble","nimbly","nineteen","ninetieth","ninja","nintendo","ninth","nuclear","nuclei","nucleus","nugget","nullify","number","numbing","numbly","numbness","numeral","numerate","numerator","numeric","numerous","nuptials","nursery","nursing","nurture","nutcase","nutlike","nutmeg","nutrient","nutshell","nuttiness","nutty","nuzzle","nylon","oaf","oak","oasis","oat","obedience","obedient","obituary","object","obligate","obliged","oblivion","oblivious","oblong","obnoxious","oboe","obscure","obscurity","observant","observer","observing","obsessed","obsession","obsessive","obsolete","obstacle","obstinate","obstruct","obtain","obtrusive","obtuse","obvious","occultist","occupancy","occupant","occupier","occupy","ocean","ocelot","octagon","octane","october","octopus","ogle","oil","oink","ointment","okay","old","olive","olympics","omega","omen","ominous","omission","omit","omnivore","onboard","oncoming","ongoing","onion","online","onlooker","only","onscreen","onset","onshore","onslaught","onstage","onto","onward","onyx","oops","ooze","oozy","opacity","opal","open","operable","operate","operating","operation","operative","operator","opium","opossum","opponent","oppose","opposing","opposite","oppressed","oppressor","opt","opulently","osmosis","other","otter","ouch","ought","ounce","outage","outback","outbid","outboard","outbound","outbreak","outburst","outcast","outclass","outcome","outdated","outdoors","outer","outfield","outfit","outflank","outgoing","outgrow","outhouse","outing","outlast","outlet","outline","outlook","outlying","outmatch","outmost","outnumber","outplayed","outpost","outpour","output","outrage","outrank","outreach","outright","outscore","outsell","outshine","outshoot","outsider","outskirts","outsmart","outsource","outspoken","outtakes","outthink","outward","outweigh","outwit","oval","ovary","oven","overact","overall","overarch","overbid","overbill","overbite","overblown","overboard","overbook","overbuilt","overcast","overcoat","overcome","overcook","overcrowd","overdraft","overdrawn","overdress","overdrive","overdue","overeager","overeater","overexert","overfed","overfeed","overfill","overflow","overfull","overgrown","overhand","overhang","overhaul","overhead","overhear","overheat","overhung","overjoyed","overkill","overlabor","overlaid","overlap","overlay","overload","overlook","overlord","overlying","overnight","overpass","overpay","overplant","overplay","overpower","overprice","overrate","overreach","overreact","override","overripe","overrule","overrun","overshoot","overshot","oversight","oversized","oversleep","oversold","overspend","overstate","overstay","overstep","overstock","overstuff","oversweet","overtake","overthrow","overtime","overtly","overtone","overture","overturn","overuse","overvalue","overview","overwrite","owl","oxford","oxidant","oxidation","oxidize","oxidizing","oxygen","oxymoron","oyster","ozone","paced","pacemaker","pacific","pacifier","pacifism","pacifist","pacify","padded","padding","paddle","paddling","padlock","pagan","pager","paging","pajamas","palace","palatable","palm","palpable","palpitate","paltry","pampered","pamperer","pampers","pamphlet","panama","pancake","pancreas","panda","pandemic","pang","panhandle","panic","panning","panorama","panoramic","panther","pantomime","pantry","pants","pantyhose","paparazzi","papaya","paper","paprika","papyrus","parabola","parachute","parade","paradox","paragraph","parakeet","paralegal","paralyses","paralysis","paralyze","paramedic","parameter","paramount","parasail","parasite","parasitic","parcel","parched","parchment","pardon","parish","parka","parking","parkway","parlor","parmesan","parole","parrot","parsley","parsnip","partake","parted","parting","partition","partly","partner","partridge","party","passable","passably","passage","passcode","passenger","passerby","passing","passion","passive","passivism","passover","passport","password","pasta","pasted","pastel","pastime","pastor","pastrami","pasture","pasty","patchwork","patchy","paternal","paternity","path","patience","patient","patio","patriarch","patriot","patrol","patronage","patronize","pauper","pavement","paver","pavestone","pavilion","paving","pawing","payable","payback","paycheck","payday","payee","payer","paying","payment","payphone","payroll","pebble","pebbly","pecan","pectin","peculiar","peddling","pediatric","pedicure","pedigree","pedometer","pegboard","pelican","pellet","pelt","pelvis","penalize","penalty","pencil","pendant","pending","penholder","penknife","pennant","penniless","penny","penpal","pension","pentagon","pentagram","pep","perceive","percent","perch","percolate","perennial","perfected","perfectly","perfume","periscope","perish","perjurer","perjury","perkiness","perky","perm","peroxide","perpetual","perplexed","persecute","persevere","persuaded","persuader","pesky","peso","pessimism","pessimist","pester","pesticide","petal","petite","petition","petri","petroleum","petted","petticoat","pettiness","petty","petunia","phantom","phobia","phoenix","phonebook","phoney","phonics","phoniness","phony","phosphate","photo","phrase","phrasing","placard","placate","placidly","plank","planner","plant","plasma","plaster","plastic","plated","platform","plating","platinum","platonic","platter","platypus","plausible","plausibly","playable","playback","player","playful","playgroup","playhouse","playing","playlist","playmaker","playmate","playoff","playpen","playroom","playset","plaything","playtime","plaza","pleading","pleat","pledge","plentiful","plenty","plethora","plexiglas","pliable","plod","plop","plot","plow","ploy","pluck","plug","plunder","plunging","plural","plus","plutonium","plywood","poach","pod","poem","poet","pogo","pointed","pointer","pointing","pointless","pointy","poise","poison","poker","poking","polar","police","policy","polio","polish","politely","polka","polo","polyester","polygon","polygraph","polymer","poncho","pond","pony","popcorn","pope","poplar","popper","poppy","popsicle","populace","popular","populate","porcupine","pork","porous","porridge","portable","portal","portfolio","porthole","portion","portly","portside","poser","posh","posing","possible","possibly","possum","postage","postal","postbox","postcard","posted","poster","posting","postnasal","posture","postwar","pouch","pounce","pouncing","pound","pouring","pout","powdered","powdering","powdery","power","powwow","pox","praising","prance","prancing","pranker","prankish","prankster","prayer","praying","preacher","preaching","preachy","preamble","precinct","precise","precision","precook","precut","predator","predefine","predict","preface","prefix","preflight","preformed","pregame","pregnancy","pregnant","preheated","prelaunch","prelaw","prelude","premiere","premises","premium","prenatal","preoccupy","preorder","prepaid","prepay","preplan","preppy","preschool","prescribe","preseason","preset","preshow","president","presoak","press","presume","presuming","preteen","pretended","pretender","pretense","pretext","pretty","pretzel","prevail","prevalent","prevent","preview","previous","prewar","prewashed","prideful","pried","primal","primarily","primary","primate","primer","primp","princess","print","prior","prism","prison","prissy","pristine","privacy","private","privatize","prize","proactive","probable","probably","probation","probe","probing","probiotic","problem","procedure","process","proclaim","procreate","procurer","prodigal","prodigy","produce","product","profane","profanity","professed","professor","profile","profound","profusely","progeny","prognosis","program","progress","projector","prologue","prolonged","promenade","prominent","promoter","promotion","prompter","promptly","prone","prong","pronounce","pronto","proofing","proofread","proofs","propeller","properly","property","proponent","proposal","propose","props","prorate","protector","protegee","proton","prototype","protozoan","protract","protrude","proud","provable","proved","proven","provided","provider","providing","province","proving","provoke","provoking","provolone","prowess","prowler","prowling","proximity","proxy","prozac","prude","prudishly","prune","pruning","pry","psychic","public","publisher","pucker","pueblo","pug","pull","pulmonary","pulp","pulsate","pulse","pulverize","puma","pumice","pummel","punch","punctual","punctuate","punctured","pungent","punisher","punk","pupil","puppet","puppy","purchase","pureblood","purebred","purely","pureness","purgatory","purge","purging","purifier","purify","purist","puritan","purity","purple","purplish","purposely","purr","purse","pursuable","pursuant","pursuit","purveyor","pushcart","pushchair","pusher","pushiness","pushing","pushover","pushpin","pushup","pushy","putdown","putt","puzzle","puzzling","pyramid","pyromania","python","quack","quadrant","quail","quaintly","quake","quaking","qualified","qualifier","qualify","quality","qualm","quantum","quarrel","quarry","quartered","quarterly","quarters","quartet","quench","query","quicken","quickly","quickness","quicksand","quickstep","quiet","quill","quilt","quintet","quintuple","quirk","quit","quiver","quizzical","quotable","quotation","quote","rabid","race","racing","racism","rack","racoon","radar","radial","radiance","radiantly","radiated","radiation","radiator","radio","radish","raffle","raft","rage","ragged","raging","ragweed","raider","railcar","railing","railroad","railway","raisin","rake","raking","rally","ramble","rambling","ramp","ramrod","ranch","rancidity","random","ranged","ranger","ranging","ranked","ranking","ransack","ranting","rants","rare","rarity","rascal","rash","rasping","ravage","raven","ravine","raving","ravioli","ravishing","reabsorb","reach","reacquire","reaction","reactive","reactor","reaffirm","ream","reanalyze","reappear","reapply","reappoint","reapprove","rearrange","rearview","reason","reassign","reassure","reattach","reawake","rebalance","rebate","rebel","rebirth","reboot","reborn","rebound","rebuff","rebuild","rebuilt","reburial","rebuttal","recall","recant","recapture","recast","recede","recent","recess","recharger","recipient","recital","recite","reckless","reclaim","recliner","reclining","recluse","reclusive","recognize","recoil","recollect","recolor","reconcile","reconfirm","reconvene","recopy","record","recount","recoup","recovery","recreate","rectal","rectangle","rectified","rectify","recycled","recycler","recycling","reemerge","reenact","reenter","reentry","reexamine","referable","referee","reference","refill","refinance","refined","refinery","refining","refinish","reflected","reflector","reflex","reflux","refocus","refold","reforest","reformat","reformed","reformer","reformist","refract","refrain","refreeze","refresh","refried","refueling","refund","refurbish","refurnish","refusal","refuse","refusing","refutable","refute","regain","regalia","regally","reggae","regime","region","register","registrar","registry","regress","regretful","regroup","regular","regulate","regulator","rehab","reheat","rehire","rehydrate","reimburse","reissue","reiterate","rejoice","rejoicing","rejoin","rekindle","relapse","relapsing","relatable","related","relation","relative","relax","relay","relearn","release","relenting","reliable","reliably","reliance","reliant","relic","relieve","relieving","relight","relish","relive","reload","relocate","relock","reluctant","rely","remake","remark","remarry","rematch","remedial","remedy","remember","reminder","remindful","remission","remix","remnant","remodeler","remold","remorse","remote","removable","removal","removed","remover","removing","rename","renderer","rendering","rendition","renegade","renewable","renewably","renewal","renewed","renounce","renovate","renovator","rentable","rental","rented","renter","reoccupy","reoccur","reopen","reorder","repackage","repacking","repaint","repair","repave","repaying","repayment","repeal","repeated","repeater","repent","rephrase","replace","replay","replica","reply","reporter","repose","repossess","repost","repressed","reprimand","reprint","reprise","reproach","reprocess","reproduce","reprogram","reps","reptile","reptilian","repugnant","repulsion","repulsive","repurpose","reputable","reputably","request","require","requisite","reroute","rerun","resale","resample","rescuer","reseal","research","reselect","reseller","resemble","resend","resent","reset","reshape","reshoot","reshuffle","residence","residency","resident","residual","residue","resigned","resilient","resistant","resisting","resize","resolute","resolved","resonant","resonate","resort","resource","respect","resubmit","result","resume","resupply","resurface","resurrect","retail","retainer","retaining","retake","retaliate","retention","rethink","retinal","retired","retiree","retiring","retold","retool","retorted","retouch","retrace","retract","retrain","retread","retreat","retrial","retrieval","retriever","retry","return","retying","retype","reunion","reunite","reusable","reuse","reveal","reveler","revenge","revenue","reverb","revered","reverence","reverend","reversal","reverse","reversing","reversion","revert","revisable","revise","revision","revisit","revivable","revival","reviver","reviving","revocable","revoke","revolt","revolver","revolving","reward","rewash","rewind","rewire","reword","rework","rewrap","rewrite","rhyme","ribbon","ribcage","rice","riches","richly","richness","rickety","ricotta","riddance","ridden","ride","riding","rifling","rift","rigging","rigid","rigor","rimless","rimmed","rind","rink","rinse","rinsing","riot","ripcord","ripeness","ripening","ripping","ripple","rippling","riptide","rise","rising","risk","risotto","ritalin","ritzy","rival","riverbank","riverbed","riverboat","riverside","riveter","riveting","roamer","roaming","roast","robbing","robe","robin","robotics","robust","rockband","rocker","rocket","rockfish","rockiness","rocking","rocklike","rockslide","rockstar","rocky","rogue","roman","romp","rope","roping","roster","rosy","rotten","rotting","rotunda","roulette","rounding","roundish","roundness","roundup","roundworm","routine","routing","rover","roving","royal","rubbed","rubber","rubbing","rubble","rubdown","ruby","ruckus","rudder","rug","ruined","rule","rumble","rumbling","rummage","rumor","runaround","rundown","runner","running","runny","runt","runway","rupture","rural","ruse","rush","rust","rut","sabbath","sabotage","sacrament","sacred","sacrifice","sadden","saddlebag","saddled","saddling","sadly","sadness","safari","safeguard","safehouse","safely","safeness","saffron","saga","sage","sagging","saggy","said","saint","sake","salad","salami","salaried","salary","saline","salon","saloon","salsa","salt","salutary","salute","salvage","salvaging","salvation","same","sample","sampling","sanction","sanctity","sanctuary","sandal","sandbag","sandbank","sandbar","sandblast","sandbox","sanded","sandfish","sanding","sandlot","sandpaper","sandpit","sandstone","sandstorm","sandworm","sandy","sanitary","sanitizer","sank","santa","sapling","sappiness","sappy","sarcasm","sarcastic","sardine","sash","sasquatch","sassy","satchel","satiable","satin","satirical","satisfied","satisfy","saturate","saturday","sauciness","saucy","sauna","savage","savanna","saved","savings","savior","savor","saxophone","say","scabbed","scabby","scalded","scalding","scale","scaling","scallion","scallop","scalping","scam","scandal","scanner","scanning","scant","scapegoat","scarce","scarcity","scarecrow","scared","scarf","scarily","scariness","scarring","scary","scavenger","scenic","schedule","schematic","scheme","scheming","schilling","schnapps","scholar","science","scientist","scion","scoff","scolding","scone","scoop","scooter","scope","scorch","scorebook","scorecard","scored","scoreless","scorer","scoring","scorn","scorpion","scotch","scoundrel","scoured","scouring","scouting","scouts","scowling","scrabble","scraggly","scrambled","scrambler","scrap","scratch","scrawny","screen","scribble","scribe","scribing","scrimmage","script","scroll","scrooge","scrounger","scrubbed","scrubber","scruffy","scrunch","scrutiny","scuba","scuff","sculptor","sculpture","scurvy","scuttle","secluded","secluding","seclusion","second","secrecy","secret","sectional","sector","secular","securely","security","sedan","sedate","sedation","sedative","sediment","seduce","seducing","segment","seismic","seizing","seldom","selected","selection","selective","selector","self","seltzer","semantic","semester","semicolon","semifinal","seminar","semisoft","semisweet","senate","senator","send","senior","senorita","sensation","sensitive","sensitize","sensually","sensuous","sepia","september","septic","septum","sequel","sequence","sequester","series","sermon","serotonin","serpent","serrated","serve","service","serving","sesame","sessions","setback","setting","settle","settling","setup","sevenfold","seventeen","seventh","seventy","severity","shabby","shack","shaded","shadily","shadiness","shading","shadow","shady","shaft","shakable","shakily","shakiness","shaking","shaky","shale","shallot","shallow","shame","shampoo","shamrock","shank","shanty","shape","shaping","share","sharpener","sharper","sharpie","sharply","sharpness","shawl","sheath","shed","sheep","sheet","shelf","shell","shelter","shelve","shelving","sherry","shield","shifter","shifting","shiftless","shifty","shimmer","shimmy","shindig","shine","shingle","shininess","shining","shiny","ship","shirt","shivering","shock","shone","shoplift","shopper","shopping","shoptalk","shore","shortage","shortcake","shortcut","shorten","shorter","shorthand","shortlist","shortly","shortness","shorts","shortwave","shorty","shout","shove","showbiz","showcase","showdown","shower","showgirl","showing","showman","shown","showoff","showpiece","showplace","showroom","showy","shrank","shrapnel","shredder","shredding","shrewdly","shriek","shrill","shrimp","shrine","shrink","shrivel","shrouded","shrubbery","shrubs","shrug","shrunk","shucking","shudder","shuffle","shuffling","shun","shush","shut","shy","siamese","siberian","sibling","siding","sierra","siesta","sift","sighing","silenced","silencer","silent","silica","silicon","silk","silliness","silly","silo","silt","silver","similarly","simile","simmering","simple","simplify","simply","sincere","sincerity","singer","singing","single","singular","sinister","sinless","sinner","sinuous","sip","siren","sister","sitcom","sitter","sitting","situated","situation","sixfold","sixteen","sixth","sixties","sixtieth","sixtyfold","sizable","sizably","size","sizing","sizzle","sizzling","skater","skating","skedaddle","skeletal","skeleton","skeptic","sketch","skewed","skewer","skid","skied","skier","skies","skiing","skilled","skillet","skillful","skimmed","skimmer","skimming","skimpily","skincare","skinhead","skinless","skinning","skinny","skintight","skipper","skipping","skirmish","skirt","skittle","skydiver","skylight","skyline","skype","skyrocket","skyward","slab","slacked","slacker","slacking","slackness","slacks","slain","slam","slander","slang","slapping","slapstick","slashed","slashing","slate","slather","slaw","sled","sleek","sleep","sleet","sleeve","slept","sliceable","sliced","slicer","slicing","slick","slider","slideshow","sliding","slighted","slighting","slightly","slimness","slimy","slinging","slingshot","slinky","slip","slit","sliver","slobbery","slogan","sloped","sloping","sloppily","sloppy","slot","slouching","slouchy","sludge","slug","slum","slurp","slush","sly","small","smartly","smartness","smasher","smashing","smashup","smell","smelting","smile","smilingly","smirk","smite","smith","smitten","smock","smog","smoked","smokeless","smokiness","smoking","smoky","smolder","smooth","smother","smudge","smudgy","smuggler","smuggling","smugly","smugness","snack","snagged","snaking","snap","snare","snarl","snazzy","sneak","sneer","sneeze","sneezing","snide","sniff","snippet","snipping","snitch","snooper","snooze","snore","snoring","snorkel","snort","snout","snowbird","snowboard","snowbound","snowcap","snowdrift","snowdrop","snowfall","snowfield","snowflake","snowiness","snowless","snowman","snowplow","snowshoe","snowstorm","snowsuit","snowy","snub","snuff","snuggle","snugly","snugness","speak","spearfish","spearhead","spearman","spearmint","species","specimen","specked","speckled","specks","spectacle","spectator","spectrum","speculate","speech","speed","spellbind","speller","spelling","spendable","spender","spending","spent","spew","sphere","spherical","sphinx","spider","spied","spiffy","spill","spilt","spinach","spinal","spindle","spinner","spinning","spinout","spinster","spiny","spiral","spirited","spiritism","spirits","spiritual","splashed","splashing","splashy","splatter","spleen","splendid","splendor","splice","splicing","splinter","splotchy","splurge","spoilage","spoiled","spoiler","spoiling","spoils","spoken","spokesman","sponge","spongy","sponsor","spoof","spookily","spooky","spool","spoon","spore","sporting","sports","sporty","spotless","spotlight","spotted","spotter","spotting","spotty","spousal","spouse","spout","sprain","sprang","sprawl","spray","spree","sprig","spring","sprinkled","sprinkler","sprint","sprite","sprout","spruce","sprung","spry","spud","spur","sputter","spyglass","squabble","squad","squall","squander","squash","squatted","squatter","squatting","squeak","squealer","squealing","squeamish","squeegee","squeeze","squeezing","squid","squiggle","squiggly","squint","squire","squirt","squishier","squishy","stability","stabilize","stable","stack","stadium","staff","stage","staging","stagnant","stagnate","stainable","stained","staining","stainless","stalemate","staleness","stalling","stallion","stamina","stammer","stamp","stand","stank","staple","stapling","starboard","starch","stardom","stardust","starfish","stargazer","staring","stark","starless","starlet","starlight","starlit","starring","starry","starship","starter","starting","startle","startling","startup","starved","starving","stash","state","static","statistic","statue","stature","status","statute","statutory","staunch","stays","steadfast","steadier","steadily","steadying","steam","steed","steep","steerable","steering","steersman","stegosaur","stellar","stem","stench","stencil","step","stereo","sterile","sterility","sterilize","sterling","sternness","sternum","stew","stick","stiffen","stiffly","stiffness","stifle","stifling","stillness","stilt","stimulant","stimulate","stimuli","stimulus","stinger","stingily","stinging","stingray","stingy","stinking","stinky","stipend","stipulate","stir","stitch","stock","stoic","stoke","stole","stomp","stonewall","stoneware","stonework","stoning","stony","stood","stooge","stool","stoop","stoplight","stoppable","stoppage","stopped","stopper","stopping","stopwatch","storable","storage","storeroom","storewide","storm","stout","stove","stowaway","stowing","straddle","straggler","strained","strainer","straining","strangely","stranger","strangle","strategic","strategy","stratus","straw","stray","streak","stream","street","strength","strenuous","strep","stress","stretch","strewn","stricken","strict","stride","strife","strike","striking","strive","striving","strobe","strode","stroller","strongbox","strongly","strongman","struck","structure","strudel","struggle","strum","strung","strut","stubbed","stubble","stubbly","stubborn","stucco","stuck","student","studied","studio","study","stuffed","stuffing","stuffy","stumble","stumbling","stump","stung","stunned","stunner","stunning","stunt","stupor","sturdily","sturdy","styling","stylishly","stylist","stylized","stylus","suave","subarctic","subatomic","subdivide","subdued","subduing","subfloor","subgroup","subheader","subject","sublease","sublet","sublevel","sublime","submarine","submerge","submersed","submitter","subpanel","subpar","subplot","subprime","subscribe","subscript","subsector","subside","subsiding","subsidize","subsidy","subsoil","subsonic","substance","subsystem","subtext","subtitle","subtly","subtotal","subtract","subtype","suburb","subway","subwoofer","subzero","succulent","such","suction","sudden","sudoku","suds","sufferer","suffering","suffice","suffix","suffocate","suffrage","sugar","suggest","suing","suitable","suitably","suitcase","suitor","sulfate","sulfide","sulfite","sulfur","sulk","sullen","sulphate","sulphuric","sultry","superbowl","superglue","superhero","superior","superjet","superman","supermom","supernova","supervise","supper","supplier","supply","support","supremacy","supreme","surcharge","surely","sureness","surface","surfacing","surfboard","surfer","surgery","surgical","surging","surname","surpass","surplus","surprise","surreal","surrender","surrogate","surround","survey","survival","survive","surviving","survivor","sushi","suspect","suspend","suspense","sustained","sustainer","swab","swaddling","swagger","swampland","swan","swapping","swarm","sway","swear","sweat","sweep","swell","swept","swerve","swifter","swiftly","swiftness","swimmable","swimmer","swimming","swimsuit","swimwear","swinger","swinging","swipe","swirl","switch","swivel","swizzle","swooned","swoop","swoosh","swore","sworn","swung","sycamore","sympathy","symphonic","symphony","symptom","synapse","syndrome","synergy","synopses","synopsis","synthesis","synthetic","syrup","system","t-shirt","tabasco","tabby","tableful","tables","tablet","tableware","tabloid","tackiness","tacking","tackle","tackling","tacky","taco","tactful","tactical","tactics","tactile","tactless","tadpole","taekwondo","tag","tainted","take","taking","talcum","talisman","tall","talon","tamale","tameness","tamer","tamper","tank","tanned","tannery","tanning","tantrum","tapeless","tapered","tapering","tapestry","tapioca","tapping","taps","tarantula","target","tarmac","tarnish","tarot","tartar","tartly","tartness","task","tassel","taste","tastiness","tasting","tasty","tattered","tattle","tattling","tattoo","taunt","tavern","thank","that","thaw","theater","theatrics","thee","theft","theme","theology","theorize","thermal","thermos","thesaurus","these","thesis","thespian","thicken","thicket","thickness","thieving","thievish","thigh","thimble","thing","think","thinly","thinner","thinness","thinning","thirstily","thirsting","thirsty","thirteen","thirty","thong","thorn","those","thousand","thrash","thread","threaten","threefold","thrift","thrill","thrive","thriving","throat","throbbing","throng","throttle","throwaway","throwback","thrower","throwing","thud","thumb","thumping","thursday","thus","thwarting","thyself","tiara","tibia","tidal","tidbit","tidiness","tidings","tidy","tiger","tighten","tightly","tightness","tightrope","tightwad","tigress","tile","tiling","till","tilt","timid","timing","timothy","tinderbox","tinfoil","tingle","tingling","tingly","tinker","tinkling","tinsel","tinsmith","tint","tinwork","tiny","tipoff","tipped","tipper","tipping","tiptoeing","tiptop","tiring","tissue","trace","tracing","track","traction","tractor","trade","trading","tradition","traffic","tragedy","trailing","trailside","train","traitor","trance","tranquil","transfer","transform","translate","transpire","transport","transpose","trapdoor","trapeze","trapezoid","trapped","trapper","trapping","traps","trash","travel","traverse","travesty","tray","treachery","treading","treadmill","treason","treat","treble","tree","trekker","tremble","trembling","tremor","trench","trend","trespass","triage","trial","triangle","tribesman","tribunal","tribune","tributary","tribute","triceps","trickery","trickily","tricking","trickle","trickster","tricky","tricolor","tricycle","trident","tried","trifle","trifocals","trillion","trilogy","trimester","trimmer","trimming","trimness","trinity","trio","tripod","tripping","triumph","trivial","trodden","trolling","trombone","trophy","tropical","tropics","trouble","troubling","trough","trousers","trout","trowel","truce","truck","truffle","trump","trunks","trustable","trustee","trustful","trusting","trustless","truth","try","tubby","tubeless","tubular","tucking","tuesday","tug","tuition","tulip","tumble","tumbling","tummy","turban","turbine","turbofan","turbojet","turbulent","turf","turkey","turmoil","turret","turtle","tusk","tutor","tutu","tux","tweak","tweed","tweet","tweezers","twelve","twentieth","twenty","twerp","twice","twiddle","twiddling","twig","twilight","twine","twins","twirl","twistable","twisted","twister","twisting","twisty","twitch","twitter","tycoon","tying","tyke","udder","ultimate","ultimatum","ultra","umbilical","umbrella","umpire","unabashed","unable","unadorned","unadvised","unafraid","unaired","unaligned","unaltered","unarmored","unashamed","unaudited","unawake","unaware","unbaked","unbalance","unbeaten","unbend","unbent","unbiased","unbitten","unblended","unblessed","unblock","unbolted","unbounded","unboxed","unbraided","unbridle","unbroken","unbuckled","unbundle","unburned","unbutton","uncanny","uncapped","uncaring","uncertain","unchain","unchanged","uncharted","uncheck","uncivil","unclad","unclaimed","unclamped","unclasp","uncle","unclip","uncloak","unclog","unclothed","uncoated","uncoiled","uncolored","uncombed","uncommon","uncooked","uncork","uncorrupt","uncounted","uncouple","uncouth","uncover","uncross","uncrown","uncrushed","uncured","uncurious","uncurled","uncut","undamaged","undated","undaunted","undead","undecided","undefined","underage","underarm","undercoat","undercook","undercut","underdog","underdone","underfed","underfeed","underfoot","undergo","undergrad","underhand","underline","underling","undermine","undermost","underpaid","underpass","underpay","underrate","undertake","undertone","undertook","undertow","underuse","underwear","underwent","underwire","undesired","undiluted","undivided","undocked","undoing","undone","undrafted","undress","undrilled","undusted","undying","unearned","unearth","unease","uneasily","uneasy","uneatable","uneaten","unedited","unelected","unending","unengaged","unenvied","unequal","unethical","uneven","unexpired","unexposed","unfailing","unfair","unfasten","unfazed","unfeeling","unfiled","unfilled","unfitted","unfitting","unfixable","unfixed","unflawed","unfocused","unfold","unfounded","unframed","unfreeze","unfrosted","unfrozen","unfunded","unglazed","ungloved","unglue","ungodly","ungraded","ungreased","unguarded","unguided","unhappily","unhappy","unharmed","unhealthy","unheard","unhearing","unheated","unhelpful","unhidden","unhinge","unhitched","unholy","unhook","unicorn","unicycle","unified","unifier","uniformed","uniformly","unify","unimpeded","uninjured","uninstall","uninsured","uninvited","union","uniquely","unisexual","unison","unissued","unit","universal","universe","unjustly","unkempt","unkind","unknotted","unknowing","unknown","unlaced","unlatch","unlawful","unleaded","unlearned","unleash","unless","unleveled","unlighted","unlikable","unlimited","unlined","unlinked","unlisted","unlit","unlivable","unloaded","unloader","unlocked","unlocking","unlovable","unloved","unlovely","unloving","unluckily","unlucky","unmade","unmanaged","unmanned","unmapped","unmarked","unmasked","unmasking","unmatched","unmindful","unmixable","unmixed","unmolded","unmoral","unmovable","unmoved","unmoving","unnamable","unnamed","unnatural","unneeded","unnerve","unnerving","unnoticed","unopened","unopposed","unpack","unpadded","unpaid","unpainted","unpaired","unpaved","unpeeled","unpicked","unpiloted","unpinned","unplanned","unplanted","unpleased","unpledged","unplowed","unplug","unpopular","unproven","unquote","unranked","unrated","unraveled","unreached","unread","unreal","unreeling","unrefined","unrelated","unrented","unrest","unretired","unrevised","unrigged","unripe","unrivaled","unroasted","unrobed","unroll","unruffled","unruly","unrushed","unsaddle","unsafe","unsaid","unsalted","unsaved","unsavory","unscathed","unscented","unscrew","unsealed","unseated","unsecured","unseeing","unseemly","unseen","unselect","unselfish","unsent","unsettled","unshackle","unshaken","unshaved","unshaven","unsheathe","unshipped","unsightly","unsigned","unskilled","unsliced","unsmooth","unsnap","unsocial","unsoiled","unsold","unsolved","unsorted","unspoiled","unspoken","unstable","unstaffed","unstamped","unsteady","unsterile","unstirred","unstitch","unstopped","unstuck","unstuffed","unstylish","unsubtle","unsubtly","unsuited","unsure","unsworn","untagged","untainted","untaken","untamed","untangled","untapped","untaxed","unthawed","unthread","untidy","untie","until","untimed","untimely","untitled","untoasted","untold","untouched","untracked","untrained","untreated","untried","untrimmed","untrue","untruth","unturned","untwist","untying","unusable","unused","unusual","unvalued","unvaried","unvarying","unveiled","unveiling","unvented","unviable","unvisited","unvocal","unwanted","unwarlike","unwary","unwashed","unwatched","unweave","unwed","unwelcome","unwell","unwieldy","unwilling","unwind","unwired","unwitting","unwomanly","unworldly","unworn","unworried","unworthy","unwound","unwoven","unwrapped","unwritten","unzip","upbeat","upchuck","upcoming","upcountry","update","upfront","upgrade","upheaval","upheld","uphill","uphold","uplifted","uplifting","upload","upon","upper","upright","uprising","upriver","uproar","uproot","upscale","upside","upstage","upstairs","upstart","upstate","upstream","upstroke","upswing","uptake","uptight","uptown","upturned","upward","upwind","uranium","urban","urchin","urethane","urgency","urgent","urging","urologist","urology","usable","usage","useable","used","uselessly","user","usher","usual","utensil","utility","utilize","utmost","utopia","utter","vacancy","vacant","vacate","vacation","vagabond","vagrancy","vagrantly","vaguely","vagueness","valiant","valid","valium","valley","valuables","value","vanilla","vanish","vanity","vanquish","vantage","vaporizer","variable","variably","varied","variety","various","varmint","varnish","varsity","varying","vascular","vaseline","vastly","vastness","veal","vegan","veggie","vehicular","velcro","velocity","velvet","vendetta","vending","vendor","veneering","vengeful","venomous","ventricle","venture","venue","venus","verbalize","verbally","verbose","verdict","verify","verse","version","versus","vertebrae","vertical","vertigo","very","vessel","vest","veteran","veto","vexingly","viability","viable","vibes","vice","vicinity","victory","video","viewable","viewer","viewing","viewless","viewpoint","vigorous","village","villain","vindicate","vineyard","vintage","violate","violation","violator","violet","violin","viper","viral","virtual","virtuous","virus","visa","viscosity","viscous","viselike","visible","visibly","vision","visiting","visitor","visor","vista","vitality","vitalize","vitally","vitamins","vivacious","vividly","vividness","vixen","vocalist","vocalize","vocally","vocation","voice","voicing","void","volatile","volley","voltage","volumes","voter","voting","voucher","vowed","vowel","voyage","wackiness","wad","wafer","waffle","waged","wager","wages","waggle","wagon","wake","waking","walk","walmart","walnut","walrus","waltz","wand","wannabe","wanted","wanting","wasabi","washable","washbasin","washboard","washbowl","washcloth","washday","washed","washer","washhouse","washing","washout","washroom","washstand","washtub","wasp","wasting","watch","water","waviness","waving","wavy","whacking","whacky","wham","wharf","wheat","whenever","whiff","whimsical","whinny","whiny","whisking","whoever","whole","whomever","whoopee","whooping","whoops","why","wick","widely","widen","widget","widow","width","wieldable","wielder","wife","wifi","wikipedia","wildcard","wildcat","wilder","wildfire","wildfowl","wildland","wildlife","wildly","wildness","willed","willfully","willing","willow","willpower","wilt","wimp","wince","wincing","wind","wing","winking","winner","winnings","winter","wipe","wired","wireless","wiring","wiry","wisdom","wise","wish","wisplike","wispy","wistful","wizard","wobble","wobbling","wobbly","wok","wolf","wolverine","womanhood","womankind","womanless","womanlike","womanly","womb","woof","wooing","wool","woozy","word","work","worried","worrier","worrisome","worry","worsening","worshiper","worst","wound","woven","wow","wrangle","wrath","wreath","wreckage","wrecker","wrecking","wrench","wriggle","wriggly","wrinkle","wrinkly","wrist","writing","written","wrongdoer","wronged","wrongful","wrongly","wrongness","wrought","xbox","xerox","yahoo","yam","yanking","yapping","yard","yarn","yeah","yearbook","yearling","yearly","yearning","yeast","yelling","yelp","yen","yesterday","yiddish","yield","yin","yippee","yo-yo","yodel","yoga","yogurt","yonder","yoyo","yummy","zap","zealous","zebra","zen","zeppelin","zero","zestfully","zesty","zigzagged","zipfile","zipping","zippy","zips","zit","zodiac","zombie","zone","zoning","zookeeper","zoologist","zoology","zoom"]),_a}var Ko;function Oc(){if(Ko)return wa;Ko=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.newSecureWords=void 0;const n=Ti(),c=Uc();async function d(l=6){let t=[];for(let r=0;r<l;r++)t.push(c.wordlist[await(0,n.getSecureRandomNumber)(0,c.wordlist.length)]);return t}return wa.newSecureWords=d,wa}var xa={},$o;function zc(){if($o)return xa;$o=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.newSecurePassphrase=void 0;const n=on();async function c(d=6){return(await(0,n.newSecureWords)(d)).join("-")}return xa.newSecurePassphrase=c,xa}var _t={};function jc(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Mi={exports:{}};const Nc=bc(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Yo;function Go(){return Yo||(Yo=1,function(n){(function(c){var d=function(h){var x,_=new Float64Array(16);if(h)for(x=0;x<h.length;x++)_[x]=h[x];return _},l=function(){throw new Error("no PRNG")},t=new Uint8Array(16),r=new Uint8Array(32);r[0]=9;var e=d(),o=d([1]),i=d([56129,1]),f=d([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),s=d([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),y=d([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),B=d([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),k=d([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function j(h,x,_,u){h[x]=_>>24&255,h[x+1]=_>>16&255,h[x+2]=_>>8&255,h[x+3]=_&255,h[x+4]=u>>24&255,h[x+5]=u>>16&255,h[x+6]=u>>8&255,h[x+7]=u&255}function P(h,x,_,u,A){var H,J=0;for(H=0;H<A;H++)J|=h[x+H]^_[u+H];return(1&J-1>>>8)-1}function R(h,x,_,u){return P(h,x,_,u,16)}function z(h,x,_,u){return P(h,x,_,u,32)}function V(h,x,_,u){for(var A=u[0]&255|(u[1]&255)<<8|(u[2]&255)<<16|(u[3]&255)<<24,H=_[0]&255|(_[1]&255)<<8|(_[2]&255)<<16|(_[3]&255)<<24,J=_[4]&255|(_[5]&255)<<8|(_[6]&255)<<16|(_[7]&255)<<24,ce=_[8]&255|(_[9]&255)<<8|(_[10]&255)<<16|(_[11]&255)<<24,Ce=_[12]&255|(_[13]&255)<<8|(_[14]&255)<<16|(_[15]&255)<<24,Ke=u[4]&255|(u[5]&255)<<8|(u[6]&255)<<16|(u[7]&255)<<24,ze=x[0]&255|(x[1]&255)<<8|(x[2]&255)<<16|(x[3]&255)<<24,pt=x[4]&255|(x[5]&255)<<8|(x[6]&255)<<16|(x[7]&255)<<24,De=x[8]&255|(x[9]&255)<<8|(x[10]&255)<<16|(x[11]&255)<<24,Ge=x[12]&255|(x[13]&255)<<8|(x[14]&255)<<16|(x[15]&255)<<24,Qe=u[8]&255|(u[9]&255)<<8|(u[10]&255)<<16|(u[11]&255)<<24,ct=_[16]&255|(_[17]&255)<<8|(_[18]&255)<<16|(_[19]&255)<<24,st=_[20]&255|(_[21]&255)<<8|(_[22]&255)<<16|(_[23]&255)<<24,tt=_[24]&255|(_[25]&255)<<8|(_[26]&255)<<16|(_[27]&255)<<24,at=_[28]&255|(_[29]&255)<<8|(_[30]&255)<<16|(_[31]&255)<<24,nt=u[12]&255|(u[13]&255)<<8|(u[14]&255)<<16|(u[15]&255)<<24,qe=A,Ze=H,Ue=J,He=ce,We=Ce,Me=Ke,ne=ze,ae=pt,ge=De,le=Ge,v=Qe,a=ct,p=st,w=tt,I=at,M=nt,S,te=0;te<20;te+=2)S=qe+p|0,We^=S<<7|S>>>25,S=We+qe|0,ge^=S<<9|S>>>23,S=ge+We|0,p^=S<<13|S>>>19,S=p+ge|0,qe^=S<<18|S>>>14,S=Me+Ze|0,le^=S<<7|S>>>25,S=le+Me|0,w^=S<<9|S>>>23,S=w+le|0,Ze^=S<<13|S>>>19,S=Ze+w|0,Me^=S<<18|S>>>14,S=v+ne|0,I^=S<<7|S>>>25,S=I+v|0,Ue^=S<<9|S>>>23,S=Ue+I|0,ne^=S<<13|S>>>19,S=ne+Ue|0,v^=S<<18|S>>>14,S=M+a|0,He^=S<<7|S>>>25,S=He+M|0,ae^=S<<9|S>>>23,S=ae+He|0,a^=S<<13|S>>>19,S=a+ae|0,M^=S<<18|S>>>14,S=qe+He|0,Ze^=S<<7|S>>>25,S=Ze+qe|0,Ue^=S<<9|S>>>23,S=Ue+Ze|0,He^=S<<13|S>>>19,S=He+Ue|0,qe^=S<<18|S>>>14,S=Me+We|0,ne^=S<<7|S>>>25,S=ne+Me|0,ae^=S<<9|S>>>23,S=ae+ne|0,We^=S<<13|S>>>19,S=We+ae|0,Me^=S<<18|S>>>14,S=v+le|0,a^=S<<7|S>>>25,S=a+v|0,ge^=S<<9|S>>>23,S=ge+a|0,le^=S<<13|S>>>19,S=le+ge|0,v^=S<<18|S>>>14,S=M+I|0,p^=S<<7|S>>>25,S=p+M|0,w^=S<<9|S>>>23,S=w+p|0,I^=S<<13|S>>>19,S=I+w|0,M^=S<<18|S>>>14;qe=qe+A|0,Ze=Ze+H|0,Ue=Ue+J|0,He=He+ce|0,We=We+Ce|0,Me=Me+Ke|0,ne=ne+ze|0,ae=ae+pt|0,ge=ge+De|0,le=le+Ge|0,v=v+Qe|0,a=a+ct|0,p=p+st|0,w=w+tt|0,I=I+at|0,M=M+nt|0,h[0]=qe>>>0&255,h[1]=qe>>>8&255,h[2]=qe>>>16&255,h[3]=qe>>>24&255,h[4]=Ze>>>0&255,h[5]=Ze>>>8&255,h[6]=Ze>>>16&255,h[7]=Ze>>>24&255,h[8]=Ue>>>0&255,h[9]=Ue>>>8&255,h[10]=Ue>>>16&255,h[11]=Ue>>>24&255,h[12]=He>>>0&255,h[13]=He>>>8&255,h[14]=He>>>16&255,h[15]=He>>>24&255,h[16]=We>>>0&255,h[17]=We>>>8&255,h[18]=We>>>16&255,h[19]=We>>>24&255,h[20]=Me>>>0&255,h[21]=Me>>>8&255,h[22]=Me>>>16&255,h[23]=Me>>>24&255,h[24]=ne>>>0&255,h[25]=ne>>>8&255,h[26]=ne>>>16&255,h[27]=ne>>>24&255,h[28]=ae>>>0&255,h[29]=ae>>>8&255,h[30]=ae>>>16&255,h[31]=ae>>>24&255,h[32]=ge>>>0&255,h[33]=ge>>>8&255,h[34]=ge>>>16&255,h[35]=ge>>>24&255,h[36]=le>>>0&255,h[37]=le>>>8&255,h[38]=le>>>16&255,h[39]=le>>>24&255,h[40]=v>>>0&255,h[41]=v>>>8&255,h[42]=v>>>16&255,h[43]=v>>>24&255,h[44]=a>>>0&255,h[45]=a>>>8&255,h[46]=a>>>16&255,h[47]=a>>>24&255,h[48]=p>>>0&255,h[49]=p>>>8&255,h[50]=p>>>16&255,h[51]=p>>>24&255,h[52]=w>>>0&255,h[53]=w>>>8&255,h[54]=w>>>16&255,h[55]=w>>>24&255,h[56]=I>>>0&255,h[57]=I>>>8&255,h[58]=I>>>16&255,h[59]=I>>>24&255,h[60]=M>>>0&255,h[61]=M>>>8&255,h[62]=M>>>16&255,h[63]=M>>>24&255}function F(h,x,_,u){for(var A=u[0]&255|(u[1]&255)<<8|(u[2]&255)<<16|(u[3]&255)<<24,H=_[0]&255|(_[1]&255)<<8|(_[2]&255)<<16|(_[3]&255)<<24,J=_[4]&255|(_[5]&255)<<8|(_[6]&255)<<16|(_[7]&255)<<24,ce=_[8]&255|(_[9]&255)<<8|(_[10]&255)<<16|(_[11]&255)<<24,Ce=_[12]&255|(_[13]&255)<<8|(_[14]&255)<<16|(_[15]&255)<<24,Ke=u[4]&255|(u[5]&255)<<8|(u[6]&255)<<16|(u[7]&255)<<24,ze=x[0]&255|(x[1]&255)<<8|(x[2]&255)<<16|(x[3]&255)<<24,pt=x[4]&255|(x[5]&255)<<8|(x[6]&255)<<16|(x[7]&255)<<24,De=x[8]&255|(x[9]&255)<<8|(x[10]&255)<<16|(x[11]&255)<<24,Ge=x[12]&255|(x[13]&255)<<8|(x[14]&255)<<16|(x[15]&255)<<24,Qe=u[8]&255|(u[9]&255)<<8|(u[10]&255)<<16|(u[11]&255)<<24,ct=_[16]&255|(_[17]&255)<<8|(_[18]&255)<<16|(_[19]&255)<<24,st=_[20]&255|(_[21]&255)<<8|(_[22]&255)<<16|(_[23]&255)<<24,tt=_[24]&255|(_[25]&255)<<8|(_[26]&255)<<16|(_[27]&255)<<24,at=_[28]&255|(_[29]&255)<<8|(_[30]&255)<<16|(_[31]&255)<<24,nt=u[12]&255|(u[13]&255)<<8|(u[14]&255)<<16|(u[15]&255)<<24,qe=A,Ze=H,Ue=J,He=ce,We=Ce,Me=Ke,ne=ze,ae=pt,ge=De,le=Ge,v=Qe,a=ct,p=st,w=tt,I=at,M=nt,S,te=0;te<20;te+=2)S=qe+p|0,We^=S<<7|S>>>25,S=We+qe|0,ge^=S<<9|S>>>23,S=ge+We|0,p^=S<<13|S>>>19,S=p+ge|0,qe^=S<<18|S>>>14,S=Me+Ze|0,le^=S<<7|S>>>25,S=le+Me|0,w^=S<<9|S>>>23,S=w+le|0,Ze^=S<<13|S>>>19,S=Ze+w|0,Me^=S<<18|S>>>14,S=v+ne|0,I^=S<<7|S>>>25,S=I+v|0,Ue^=S<<9|S>>>23,S=Ue+I|0,ne^=S<<13|S>>>19,S=ne+Ue|0,v^=S<<18|S>>>14,S=M+a|0,He^=S<<7|S>>>25,S=He+M|0,ae^=S<<9|S>>>23,S=ae+He|0,a^=S<<13|S>>>19,S=a+ae|0,M^=S<<18|S>>>14,S=qe+He|0,Ze^=S<<7|S>>>25,S=Ze+qe|0,Ue^=S<<9|S>>>23,S=Ue+Ze|0,He^=S<<13|S>>>19,S=He+Ue|0,qe^=S<<18|S>>>14,S=Me+We|0,ne^=S<<7|S>>>25,S=ne+Me|0,ae^=S<<9|S>>>23,S=ae+ne|0,We^=S<<13|S>>>19,S=We+ae|0,Me^=S<<18|S>>>14,S=v+le|0,a^=S<<7|S>>>25,S=a+v|0,ge^=S<<9|S>>>23,S=ge+a|0,le^=S<<13|S>>>19,S=le+ge|0,v^=S<<18|S>>>14,S=M+I|0,p^=S<<7|S>>>25,S=p+M|0,w^=S<<9|S>>>23,S=w+p|0,I^=S<<13|S>>>19,S=I+w|0,M^=S<<18|S>>>14;h[0]=qe>>>0&255,h[1]=qe>>>8&255,h[2]=qe>>>16&255,h[3]=qe>>>24&255,h[4]=Me>>>0&255,h[5]=Me>>>8&255,h[6]=Me>>>16&255,h[7]=Me>>>24&255,h[8]=v>>>0&255,h[9]=v>>>8&255,h[10]=v>>>16&255,h[11]=v>>>24&255,h[12]=M>>>0&255,h[13]=M>>>8&255,h[14]=M>>>16&255,h[15]=M>>>24&255,h[16]=ne>>>0&255,h[17]=ne>>>8&255,h[18]=ne>>>16&255,h[19]=ne>>>24&255,h[20]=ae>>>0&255,h[21]=ae>>>8&255,h[22]=ae>>>16&255,h[23]=ae>>>24&255,h[24]=ge>>>0&255,h[25]=ge>>>8&255,h[26]=ge>>>16&255,h[27]=ge>>>24&255,h[28]=le>>>0&255,h[29]=le>>>8&255,h[30]=le>>>16&255,h[31]=le>>>24&255}function ee(h,x,_,u){V(h,x,_,u)}function he(h,x,_,u){F(h,x,_,u)}var $=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Z(h,x,_,u,A,H,J){var ce=new Uint8Array(16),Ce=new Uint8Array(64),Ke,ze;for(ze=0;ze<16;ze++)ce[ze]=0;for(ze=0;ze<8;ze++)ce[ze]=H[ze];for(;A>=64;){for(ee(Ce,ce,J,$),ze=0;ze<64;ze++)h[x+ze]=_[u+ze]^Ce[ze];for(Ke=1,ze=8;ze<16;ze++)Ke=Ke+(ce[ze]&255)|0,ce[ze]=Ke&255,Ke>>>=8;A-=64,x+=64,u+=64}if(A>0)for(ee(Ce,ce,J,$),ze=0;ze<A;ze++)h[x+ze]=_[u+ze]^Ce[ze];return 0}function Q(h,x,_,u,A){var H=new Uint8Array(16),J=new Uint8Array(64),ce,Ce;for(Ce=0;Ce<16;Ce++)H[Ce]=0;for(Ce=0;Ce<8;Ce++)H[Ce]=u[Ce];for(;_>=64;){for(ee(J,H,A,$),Ce=0;Ce<64;Ce++)h[x+Ce]=J[Ce];for(ce=1,Ce=8;Ce<16;Ce++)ce=ce+(H[Ce]&255)|0,H[Ce]=ce&255,ce>>>=8;_-=64,x+=64}if(_>0)for(ee(J,H,A,$),Ce=0;Ce<_;Ce++)h[x+Ce]=J[Ce];return 0}function ie(h,x,_,u,A){var H=new Uint8Array(32);he(H,u,A,$);for(var J=new Uint8Array(8),ce=0;ce<8;ce++)J[ce]=u[ce+16];return Q(h,x,_,J,H)}function Ee(h,x,_,u,A,H,J){var ce=new Uint8Array(32);he(ce,H,J,$);for(var Ce=new Uint8Array(8),Ke=0;Ke<8;Ke++)Ce[Ke]=H[Ke+16];return Z(h,x,_,u,A,Ce,ce)}var Oe=function(h){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var x,_,u,A,H,J,ce,Ce;x=h[0]&255|(h[1]&255)<<8,this.r[0]=x&8191,_=h[2]&255|(h[3]&255)<<8,this.r[1]=(x>>>13|_<<3)&8191,u=h[4]&255|(h[5]&255)<<8,this.r[2]=(_>>>10|u<<6)&7939,A=h[6]&255|(h[7]&255)<<8,this.r[3]=(u>>>7|A<<9)&8191,H=h[8]&255|(h[9]&255)<<8,this.r[4]=(A>>>4|H<<12)&255,this.r[5]=H>>>1&8190,J=h[10]&255|(h[11]&255)<<8,this.r[6]=(H>>>14|J<<2)&8191,ce=h[12]&255|(h[13]&255)<<8,this.r[7]=(J>>>11|ce<<5)&8065,Ce=h[14]&255|(h[15]&255)<<8,this.r[8]=(ce>>>8|Ce<<8)&8191,this.r[9]=Ce>>>5&127,this.pad[0]=h[16]&255|(h[17]&255)<<8,this.pad[1]=h[18]&255|(h[19]&255)<<8,this.pad[2]=h[20]&255|(h[21]&255)<<8,this.pad[3]=h[22]&255|(h[23]&255)<<8,this.pad[4]=h[24]&255|(h[25]&255)<<8,this.pad[5]=h[26]&255|(h[27]&255)<<8,this.pad[6]=h[28]&255|(h[29]&255)<<8,this.pad[7]=h[30]&255|(h[31]&255)<<8};Oe.prototype.blocks=function(h,x,_){for(var u=this.fin?0:2048,A,H,J,ce,Ce,Ke,ze,pt,De,Ge,Qe,ct,st,tt,at,nt,qe,Ze,Ue,He=this.h[0],We=this.h[1],Me=this.h[2],ne=this.h[3],ae=this.h[4],ge=this.h[5],le=this.h[6],v=this.h[7],a=this.h[8],p=this.h[9],w=this.r[0],I=this.r[1],M=this.r[2],S=this.r[3],te=this.r[4],pe=this.r[5],me=this.r[6],Be=this.r[7],rt=this.r[8],ft=this.r[9];_>=16;)A=h[x+0]&255|(h[x+1]&255)<<8,He+=A&8191,H=h[x+2]&255|(h[x+3]&255)<<8,We+=(A>>>13|H<<3)&8191,J=h[x+4]&255|(h[x+5]&255)<<8,Me+=(H>>>10|J<<6)&8191,ce=h[x+6]&255|(h[x+7]&255)<<8,ne+=(J>>>7|ce<<9)&8191,Ce=h[x+8]&255|(h[x+9]&255)<<8,ae+=(ce>>>4|Ce<<12)&8191,ge+=Ce>>>1&8191,Ke=h[x+10]&255|(h[x+11]&255)<<8,le+=(Ce>>>14|Ke<<2)&8191,ze=h[x+12]&255|(h[x+13]&255)<<8,v+=(Ke>>>11|ze<<5)&8191,pt=h[x+14]&255|(h[x+15]&255)<<8,a+=(ze>>>8|pt<<8)&8191,p+=pt>>>5|u,De=0,Ge=De,Ge+=He*w,Ge+=We*(5*ft),Ge+=Me*(5*rt),Ge+=ne*(5*Be),Ge+=ae*(5*me),De=Ge>>>13,Ge&=8191,Ge+=ge*(5*pe),Ge+=le*(5*te),Ge+=v*(5*S),Ge+=a*(5*M),Ge+=p*(5*I),De+=Ge>>>13,Ge&=8191,Qe=De,Qe+=He*I,Qe+=We*w,Qe+=Me*(5*ft),Qe+=ne*(5*rt),Qe+=ae*(5*Be),De=Qe>>>13,Qe&=8191,Qe+=ge*(5*me),Qe+=le*(5*pe),Qe+=v*(5*te),Qe+=a*(5*S),Qe+=p*(5*M),De+=Qe>>>13,Qe&=8191,ct=De,ct+=He*M,ct+=We*I,ct+=Me*w,ct+=ne*(5*ft),ct+=ae*(5*rt),De=ct>>>13,ct&=8191,ct+=ge*(5*Be),ct+=le*(5*me),ct+=v*(5*pe),ct+=a*(5*te),ct+=p*(5*S),De+=ct>>>13,ct&=8191,st=De,st+=He*S,st+=We*M,st+=Me*I,st+=ne*w,st+=ae*(5*ft),De=st>>>13,st&=8191,st+=ge*(5*rt),st+=le*(5*Be),st+=v*(5*me),st+=a*(5*pe),st+=p*(5*te),De+=st>>>13,st&=8191,tt=De,tt+=He*te,tt+=We*S,tt+=Me*M,tt+=ne*I,tt+=ae*w,De=tt>>>13,tt&=8191,tt+=ge*(5*ft),tt+=le*(5*rt),tt+=v*(5*Be),tt+=a*(5*me),tt+=p*(5*pe),De+=tt>>>13,tt&=8191,at=De,at+=He*pe,at+=We*te,at+=Me*S,at+=ne*M,at+=ae*I,De=at>>>13,at&=8191,at+=ge*w,at+=le*(5*ft),at+=v*(5*rt),at+=a*(5*Be),at+=p*(5*me),De+=at>>>13,at&=8191,nt=De,nt+=He*me,nt+=We*pe,nt+=Me*te,nt+=ne*S,nt+=ae*M,De=nt>>>13,nt&=8191,nt+=ge*I,nt+=le*w,nt+=v*(5*ft),nt+=a*(5*rt),nt+=p*(5*Be),De+=nt>>>13,nt&=8191,qe=De,qe+=He*Be,qe+=We*me,qe+=Me*pe,qe+=ne*te,qe+=ae*S,De=qe>>>13,qe&=8191,qe+=ge*M,qe+=le*I,qe+=v*w,qe+=a*(5*ft),qe+=p*(5*rt),De+=qe>>>13,qe&=8191,Ze=De,Ze+=He*rt,Ze+=We*Be,Ze+=Me*me,Ze+=ne*pe,Ze+=ae*te,De=Ze>>>13,Ze&=8191,Ze+=ge*S,Ze+=le*M,Ze+=v*I,Ze+=a*w,Ze+=p*(5*ft),De+=Ze>>>13,Ze&=8191,Ue=De,Ue+=He*ft,Ue+=We*rt,Ue+=Me*Be,Ue+=ne*me,Ue+=ae*pe,De=Ue>>>13,Ue&=8191,Ue+=ge*te,Ue+=le*S,Ue+=v*M,Ue+=a*I,Ue+=p*w,De+=Ue>>>13,Ue&=8191,De=(De<<2)+De|0,De=De+Ge|0,Ge=De&8191,De=De>>>13,Qe+=De,He=Ge,We=Qe,Me=ct,ne=st,ae=tt,ge=at,le=nt,v=qe,a=Ze,p=Ue,x+=16,_-=16;this.h[0]=He,this.h[1]=We,this.h[2]=Me,this.h[3]=ne,this.h[4]=ae,this.h[5]=ge,this.h[6]=le,this.h[7]=v,this.h[8]=a,this.h[9]=p},Oe.prototype.finish=function(h,x){var _=new Uint16Array(10),u,A,H,J;if(this.leftover){for(J=this.leftover,this.buffer[J++]=1;J<16;J++)this.buffer[J]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(u=this.h[1]>>>13,this.h[1]&=8191,J=2;J<10;J++)this.h[J]+=u,u=this.h[J]>>>13,this.h[J]&=8191;for(this.h[0]+=u*5,u=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=u,u=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=u,_[0]=this.h[0]+5,u=_[0]>>>13,_[0]&=8191,J=1;J<10;J++)_[J]=this.h[J]+u,u=_[J]>>>13,_[J]&=8191;for(_[9]-=8192,A=(u^1)-1,J=0;J<10;J++)_[J]&=A;for(A=~A,J=0;J<10;J++)this.h[J]=this.h[J]&A|_[J];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,H=this.h[0]+this.pad[0],this.h[0]=H&65535,J=1;J<8;J++)H=(this.h[J]+this.pad[J]|0)+(H>>>16)|0,this.h[J]=H&65535;h[x+0]=this.h[0]>>>0&255,h[x+1]=this.h[0]>>>8&255,h[x+2]=this.h[1]>>>0&255,h[x+3]=this.h[1]>>>8&255,h[x+4]=this.h[2]>>>0&255,h[x+5]=this.h[2]>>>8&255,h[x+6]=this.h[3]>>>0&255,h[x+7]=this.h[3]>>>8&255,h[x+8]=this.h[4]>>>0&255,h[x+9]=this.h[4]>>>8&255,h[x+10]=this.h[5]>>>0&255,h[x+11]=this.h[5]>>>8&255,h[x+12]=this.h[6]>>>0&255,h[x+13]=this.h[6]>>>8&255,h[x+14]=this.h[7]>>>0&255,h[x+15]=this.h[7]>>>8&255},Oe.prototype.update=function(h,x,_){var u,A;if(this.leftover){for(A=16-this.leftover,A>_&&(A=_),u=0;u<A;u++)this.buffer[this.leftover+u]=h[x+u];if(_-=A,x+=A,this.leftover+=A,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(_>=16&&(A=_-_%16,this.blocks(h,x,A),x+=A,_-=A),_){for(u=0;u<_;u++)this.buffer[this.leftover+u]=h[x+u];this.leftover+=_}};function Le(h,x,_,u,A,H){var J=new Oe(H);return J.update(_,u,A),J.finish(h,x),0}function re(h,x,_,u,A,H){var J=new Uint8Array(16);return Le(J,0,_,u,A,H),R(h,x,J,0)}function Y(h,x,_,u,A){var H;if(_<32)return-1;for(Ee(h,0,x,0,_,u,A),Le(h,16,h,32,_-32,h),H=0;H<16;H++)h[H]=0;return 0}function Ae(h,x,_,u,A){var H,J=new Uint8Array(32);if(_<32||(ie(J,0,32,u,A),re(x,16,x,32,_-32,J)!==0))return-1;for(Ee(h,0,x,0,_,u,A),H=0;H<32;H++)h[H]=0;return 0}function C(h,x){var _;for(_=0;_<16;_++)h[_]=x[_]|0}function ye(h){var x,_,u=1;for(x=0;x<16;x++)_=h[x]+u+65535,u=Math.floor(_/65536),h[x]=_-u*65536;h[0]+=u-1+37*(u-1)}function Pe(h,x,_){for(var u,A=~(_-1),H=0;H<16;H++)u=A&(h[H]^x[H]),h[H]^=u,x[H]^=u}function N(h,x){var _,u,A,H=d(),J=d();for(_=0;_<16;_++)J[_]=x[_];for(ye(J),ye(J),ye(J),u=0;u<2;u++){for(H[0]=J[0]-65517,_=1;_<15;_++)H[_]=J[_]-65535-(H[_-1]>>16&1),H[_-1]&=65535;H[15]=J[15]-32767-(H[14]>>16&1),A=H[15]>>16&1,H[14]&=65535,Pe(J,H,1-A)}for(_=0;_<16;_++)h[2*_]=J[_]&255,h[2*_+1]=J[_]>>8}function Se(h,x){var _=new Uint8Array(32),u=new Uint8Array(32);return N(_,h),N(u,x),z(_,0,u,0)}function se(h){var x=new Uint8Array(32);return N(x,h),x[0]&1}function be(h,x){var _;for(_=0;_<16;_++)h[_]=x[2*_]+(x[2*_+1]<<8);h[15]&=32767}function ke(h,x,_){for(var u=0;u<16;u++)h[u]=x[u]+_[u]}function Te(h,x,_){for(var u=0;u<16;u++)h[u]=x[u]-_[u]}function de(h,x,_){var u,A,H=0,J=0,ce=0,Ce=0,Ke=0,ze=0,pt=0,De=0,Ge=0,Qe=0,ct=0,st=0,tt=0,at=0,nt=0,qe=0,Ze=0,Ue=0,He=0,We=0,Me=0,ne=0,ae=0,ge=0,le=0,v=0,a=0,p=0,w=0,I=0,M=0,S=_[0],te=_[1],pe=_[2],me=_[3],Be=_[4],rt=_[5],ft=_[6],xt=_[7],bt=_[8],At=_[9],Pt=_[10],Bt=_[11],Et=_[12],qt=_[13],Zt=_[14],Lt=_[15];u=x[0],H+=u*S,J+=u*te,ce+=u*pe,Ce+=u*me,Ke+=u*Be,ze+=u*rt,pt+=u*ft,De+=u*xt,Ge+=u*bt,Qe+=u*At,ct+=u*Pt,st+=u*Bt,tt+=u*Et,at+=u*qt,nt+=u*Zt,qe+=u*Lt,u=x[1],J+=u*S,ce+=u*te,Ce+=u*pe,Ke+=u*me,ze+=u*Be,pt+=u*rt,De+=u*ft,Ge+=u*xt,Qe+=u*bt,ct+=u*At,st+=u*Pt,tt+=u*Bt,at+=u*Et,nt+=u*qt,qe+=u*Zt,Ze+=u*Lt,u=x[2],ce+=u*S,Ce+=u*te,Ke+=u*pe,ze+=u*me,pt+=u*Be,De+=u*rt,Ge+=u*ft,Qe+=u*xt,ct+=u*bt,st+=u*At,tt+=u*Pt,at+=u*Bt,nt+=u*Et,qe+=u*qt,Ze+=u*Zt,Ue+=u*Lt,u=x[3],Ce+=u*S,Ke+=u*te,ze+=u*pe,pt+=u*me,De+=u*Be,Ge+=u*rt,Qe+=u*ft,ct+=u*xt,st+=u*bt,tt+=u*At,at+=u*Pt,nt+=u*Bt,qe+=u*Et,Ze+=u*qt,Ue+=u*Zt,He+=u*Lt,u=x[4],Ke+=u*S,ze+=u*te,pt+=u*pe,De+=u*me,Ge+=u*Be,Qe+=u*rt,ct+=u*ft,st+=u*xt,tt+=u*bt,at+=u*At,nt+=u*Pt,qe+=u*Bt,Ze+=u*Et,Ue+=u*qt,He+=u*Zt,We+=u*Lt,u=x[5],ze+=u*S,pt+=u*te,De+=u*pe,Ge+=u*me,Qe+=u*Be,ct+=u*rt,st+=u*ft,tt+=u*xt,at+=u*bt,nt+=u*At,qe+=u*Pt,Ze+=u*Bt,Ue+=u*Et,He+=u*qt,We+=u*Zt,Me+=u*Lt,u=x[6],pt+=u*S,De+=u*te,Ge+=u*pe,Qe+=u*me,ct+=u*Be,st+=u*rt,tt+=u*ft,at+=u*xt,nt+=u*bt,qe+=u*At,Ze+=u*Pt,Ue+=u*Bt,He+=u*Et,We+=u*qt,Me+=u*Zt,ne+=u*Lt,u=x[7],De+=u*S,Ge+=u*te,Qe+=u*pe,ct+=u*me,st+=u*Be,tt+=u*rt,at+=u*ft,nt+=u*xt,qe+=u*bt,Ze+=u*At,Ue+=u*Pt,He+=u*Bt,We+=u*Et,Me+=u*qt,ne+=u*Zt,ae+=u*Lt,u=x[8],Ge+=u*S,Qe+=u*te,ct+=u*pe,st+=u*me,tt+=u*Be,at+=u*rt,nt+=u*ft,qe+=u*xt,Ze+=u*bt,Ue+=u*At,He+=u*Pt,We+=u*Bt,Me+=u*Et,ne+=u*qt,ae+=u*Zt,ge+=u*Lt,u=x[9],Qe+=u*S,ct+=u*te,st+=u*pe,tt+=u*me,at+=u*Be,nt+=u*rt,qe+=u*ft,Ze+=u*xt,Ue+=u*bt,He+=u*At,We+=u*Pt,Me+=u*Bt,ne+=u*Et,ae+=u*qt,ge+=u*Zt,le+=u*Lt,u=x[10],ct+=u*S,st+=u*te,tt+=u*pe,at+=u*me,nt+=u*Be,qe+=u*rt,Ze+=u*ft,Ue+=u*xt,He+=u*bt,We+=u*At,Me+=u*Pt,ne+=u*Bt,ae+=u*Et,ge+=u*qt,le+=u*Zt,v+=u*Lt,u=x[11],st+=u*S,tt+=u*te,at+=u*pe,nt+=u*me,qe+=u*Be,Ze+=u*rt,Ue+=u*ft,He+=u*xt,We+=u*bt,Me+=u*At,ne+=u*Pt,ae+=u*Bt,ge+=u*Et,le+=u*qt,v+=u*Zt,a+=u*Lt,u=x[12],tt+=u*S,at+=u*te,nt+=u*pe,qe+=u*me,Ze+=u*Be,Ue+=u*rt,He+=u*ft,We+=u*xt,Me+=u*bt,ne+=u*At,ae+=u*Pt,ge+=u*Bt,le+=u*Et,v+=u*qt,a+=u*Zt,p+=u*Lt,u=x[13],at+=u*S,nt+=u*te,qe+=u*pe,Ze+=u*me,Ue+=u*Be,He+=u*rt,We+=u*ft,Me+=u*xt,ne+=u*bt,ae+=u*At,ge+=u*Pt,le+=u*Bt,v+=u*Et,a+=u*qt,p+=u*Zt,w+=u*Lt,u=x[14],nt+=u*S,qe+=u*te,Ze+=u*pe,Ue+=u*me,He+=u*Be,We+=u*rt,Me+=u*ft,ne+=u*xt,ae+=u*bt,ge+=u*At,le+=u*Pt,v+=u*Bt,a+=u*Et,p+=u*qt,w+=u*Zt,I+=u*Lt,u=x[15],qe+=u*S,Ze+=u*te,Ue+=u*pe,He+=u*me,We+=u*Be,Me+=u*rt,ne+=u*ft,ae+=u*xt,ge+=u*bt,le+=u*At,v+=u*Pt,a+=u*Bt,p+=u*Et,w+=u*qt,I+=u*Zt,M+=u*Lt,H+=38*Ze,J+=38*Ue,ce+=38*He,Ce+=38*We,Ke+=38*Me,ze+=38*ne,pt+=38*ae,De+=38*ge,Ge+=38*le,Qe+=38*v,ct+=38*a,st+=38*p,tt+=38*w,at+=38*I,nt+=38*M,A=1,u=H+A+65535,A=Math.floor(u/65536),H=u-A*65536,u=J+A+65535,A=Math.floor(u/65536),J=u-A*65536,u=ce+A+65535,A=Math.floor(u/65536),ce=u-A*65536,u=Ce+A+65535,A=Math.floor(u/65536),Ce=u-A*65536,u=Ke+A+65535,A=Math.floor(u/65536),Ke=u-A*65536,u=ze+A+65535,A=Math.floor(u/65536),ze=u-A*65536,u=pt+A+65535,A=Math.floor(u/65536),pt=u-A*65536,u=De+A+65535,A=Math.floor(u/65536),De=u-A*65536,u=Ge+A+65535,A=Math.floor(u/65536),Ge=u-A*65536,u=Qe+A+65535,A=Math.floor(u/65536),Qe=u-A*65536,u=ct+A+65535,A=Math.floor(u/65536),ct=u-A*65536,u=st+A+65535,A=Math.floor(u/65536),st=u-A*65536,u=tt+A+65535,A=Math.floor(u/65536),tt=u-A*65536,u=at+A+65535,A=Math.floor(u/65536),at=u-A*65536,u=nt+A+65535,A=Math.floor(u/65536),nt=u-A*65536,u=qe+A+65535,A=Math.floor(u/65536),qe=u-A*65536,H+=A-1+37*(A-1),A=1,u=H+A+65535,A=Math.floor(u/65536),H=u-A*65536,u=J+A+65535,A=Math.floor(u/65536),J=u-A*65536,u=ce+A+65535,A=Math.floor(u/65536),ce=u-A*65536,u=Ce+A+65535,A=Math.floor(u/65536),Ce=u-A*65536,u=Ke+A+65535,A=Math.floor(u/65536),Ke=u-A*65536,u=ze+A+65535,A=Math.floor(u/65536),ze=u-A*65536,u=pt+A+65535,A=Math.floor(u/65536),pt=u-A*65536,u=De+A+65535,A=Math.floor(u/65536),De=u-A*65536,u=Ge+A+65535,A=Math.floor(u/65536),Ge=u-A*65536,u=Qe+A+65535,A=Math.floor(u/65536),Qe=u-A*65536,u=ct+A+65535,A=Math.floor(u/65536),ct=u-A*65536,u=st+A+65535,A=Math.floor(u/65536),st=u-A*65536,u=tt+A+65535,A=Math.floor(u/65536),tt=u-A*65536,u=at+A+65535,A=Math.floor(u/65536),at=u-A*65536,u=nt+A+65535,A=Math.floor(u/65536),nt=u-A*65536,u=qe+A+65535,A=Math.floor(u/65536),qe=u-A*65536,H+=A-1+37*(A-1),h[0]=H,h[1]=J,h[2]=ce,h[3]=Ce,h[4]=Ke,h[5]=ze,h[6]=pt,h[7]=De,h[8]=Ge,h[9]=Qe,h[10]=ct,h[11]=st,h[12]=tt,h[13]=at,h[14]=nt,h[15]=qe}function Ve(h,x){de(h,x,x)}function it(h,x){var _=d(),u;for(u=0;u<16;u++)_[u]=x[u];for(u=253;u>=0;u--)Ve(_,_),u!==2&&u!==4&&de(_,_,x);for(u=0;u<16;u++)h[u]=_[u]}function lt(h,x){var _=d(),u;for(u=0;u<16;u++)_[u]=x[u];for(u=250;u>=0;u--)Ve(_,_),u!==1&&de(_,_,x);for(u=0;u<16;u++)h[u]=_[u]}function ot(h,x,_){var u=new Uint8Array(32),A=new Float64Array(80),H,J,ce=d(),Ce=d(),Ke=d(),ze=d(),pt=d(),De=d();for(J=0;J<31;J++)u[J]=x[J];for(u[31]=x[31]&127|64,u[0]&=248,be(A,_),J=0;J<16;J++)Ce[J]=A[J],ze[J]=ce[J]=Ke[J]=0;for(ce[0]=ze[0]=1,J=254;J>=0;--J)H=u[J>>>3]>>>(J&7)&1,Pe(ce,Ce,H),Pe(Ke,ze,H),ke(pt,ce,Ke),Te(ce,ce,Ke),ke(Ke,Ce,ze),Te(Ce,Ce,ze),Ve(ze,pt),Ve(De,ce),de(ce,Ke,ce),de(Ke,Ce,pt),ke(pt,ce,Ke),Te(ce,ce,Ke),Ve(Ce,ce),Te(Ke,ze,De),de(ce,Ke,i),ke(ce,ce,ze),de(Ke,Ke,ce),de(ce,ze,De),de(ze,Ce,A),Ve(Ce,pt),Pe(ce,Ce,H),Pe(Ke,ze,H);for(J=0;J<16;J++)A[J+16]=ce[J],A[J+32]=Ke[J],A[J+48]=Ce[J],A[J+64]=ze[J];var Ge=A.subarray(32),Qe=A.subarray(16);return it(Ge,Ge),de(Qe,Qe,Ge),N(h,Qe),0}function wt(h,x){return ot(h,x,r)}function Ut(h,x){return l(x,32),wt(h,x)}function Ot(h,x,_){var u=new Uint8Array(32);return ot(u,_,x),he(h,t,u,$)}var Qt=Y,Nt=Ae;function Gt(h,x,_,u,A,H){var J=new Uint8Array(32);return Ot(J,A,H),Qt(h,x,_,u,J)}function mt(h,x,_,u,A,H){var J=new Uint8Array(32);return Ot(J,A,H),Nt(h,x,_,u,J)}var Kt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Mt(h,x,_,u){for(var A=new Int32Array(16),H=new Int32Array(16),J,ce,Ce,Ke,ze,pt,De,Ge,Qe,ct,st,tt,at,nt,qe,Ze,Ue,He,We,Me,ne,ae,ge,le,v,a,p=h[0],w=h[1],I=h[2],M=h[3],S=h[4],te=h[5],pe=h[6],me=h[7],Be=x[0],rt=x[1],ft=x[2],xt=x[3],bt=x[4],At=x[5],Pt=x[6],Bt=x[7],Et=0;u>=128;){for(We=0;We<16;We++)Me=8*We+Et,A[We]=_[Me+0]<<24|_[Me+1]<<16|_[Me+2]<<8|_[Me+3],H[We]=_[Me+4]<<24|_[Me+5]<<16|_[Me+6]<<8|_[Me+7];for(We=0;We<80;We++)if(J=p,ce=w,Ce=I,Ke=M,ze=S,pt=te,De=pe,Ge=me,Qe=Be,ct=rt,st=ft,tt=xt,at=bt,nt=At,qe=Pt,Ze=Bt,ne=me,ae=Bt,ge=ae&65535,le=ae>>>16,v=ne&65535,a=ne>>>16,ne=(S>>>14|bt<<18)^(S>>>18|bt<<14)^(bt>>>9|S<<23),ae=(bt>>>14|S<<18)^(bt>>>18|S<<14)^(S>>>9|bt<<23),ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,ne=S&te^~S&pe,ae=bt&At^~bt&Pt,ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,ne=Kt[We*2],ae=Kt[We*2+1],ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,ne=A[We%16],ae=H[We%16],ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,le+=ge>>>16,v+=le>>>16,a+=v>>>16,Ue=v&65535|a<<16,He=ge&65535|le<<16,ne=Ue,ae=He,ge=ae&65535,le=ae>>>16,v=ne&65535,a=ne>>>16,ne=(p>>>28|Be<<4)^(Be>>>2|p<<30)^(Be>>>7|p<<25),ae=(Be>>>28|p<<4)^(p>>>2|Be<<30)^(p>>>7|Be<<25),ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,ne=p&w^p&I^w&I,ae=Be&rt^Be&ft^rt&ft,ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,le+=ge>>>16,v+=le>>>16,a+=v>>>16,Ge=v&65535|a<<16,Ze=ge&65535|le<<16,ne=Ke,ae=tt,ge=ae&65535,le=ae>>>16,v=ne&65535,a=ne>>>16,ne=Ue,ae=He,ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,le+=ge>>>16,v+=le>>>16,a+=v>>>16,Ke=v&65535|a<<16,tt=ge&65535|le<<16,w=J,I=ce,M=Ce,S=Ke,te=ze,pe=pt,me=De,p=Ge,rt=Qe,ft=ct,xt=st,bt=tt,At=at,Pt=nt,Bt=qe,Be=Ze,We%16===15)for(Me=0;Me<16;Me++)ne=A[Me],ae=H[Me],ge=ae&65535,le=ae>>>16,v=ne&65535,a=ne>>>16,ne=A[(Me+9)%16],ae=H[(Me+9)%16],ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,Ue=A[(Me+1)%16],He=H[(Me+1)%16],ne=(Ue>>>1|He<<31)^(Ue>>>8|He<<24)^Ue>>>7,ae=(He>>>1|Ue<<31)^(He>>>8|Ue<<24)^(He>>>7|Ue<<25),ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,Ue=A[(Me+14)%16],He=H[(Me+14)%16],ne=(Ue>>>19|He<<13)^(He>>>29|Ue<<3)^Ue>>>6,ae=(He>>>19|Ue<<13)^(Ue>>>29|He<<3)^(He>>>6|Ue<<26),ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,le+=ge>>>16,v+=le>>>16,a+=v>>>16,A[Me]=v&65535|a<<16,H[Me]=ge&65535|le<<16;ne=p,ae=Be,ge=ae&65535,le=ae>>>16,v=ne&65535,a=ne>>>16,ne=h[0],ae=x[0],ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,le+=ge>>>16,v+=le>>>16,a+=v>>>16,h[0]=p=v&65535|a<<16,x[0]=Be=ge&65535|le<<16,ne=w,ae=rt,ge=ae&65535,le=ae>>>16,v=ne&65535,a=ne>>>16,ne=h[1],ae=x[1],ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,le+=ge>>>16,v+=le>>>16,a+=v>>>16,h[1]=w=v&65535|a<<16,x[1]=rt=ge&65535|le<<16,ne=I,ae=ft,ge=ae&65535,le=ae>>>16,v=ne&65535,a=ne>>>16,ne=h[2],ae=x[2],ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,le+=ge>>>16,v+=le>>>16,a+=v>>>16,h[2]=I=v&65535|a<<16,x[2]=ft=ge&65535|le<<16,ne=M,ae=xt,ge=ae&65535,le=ae>>>16,v=ne&65535,a=ne>>>16,ne=h[3],ae=x[3],ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,le+=ge>>>16,v+=le>>>16,a+=v>>>16,h[3]=M=v&65535|a<<16,x[3]=xt=ge&65535|le<<16,ne=S,ae=bt,ge=ae&65535,le=ae>>>16,v=ne&65535,a=ne>>>16,ne=h[4],ae=x[4],ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,le+=ge>>>16,v+=le>>>16,a+=v>>>16,h[4]=S=v&65535|a<<16,x[4]=bt=ge&65535|le<<16,ne=te,ae=At,ge=ae&65535,le=ae>>>16,v=ne&65535,a=ne>>>16,ne=h[5],ae=x[5],ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,le+=ge>>>16,v+=le>>>16,a+=v>>>16,h[5]=te=v&65535|a<<16,x[5]=At=ge&65535|le<<16,ne=pe,ae=Pt,ge=ae&65535,le=ae>>>16,v=ne&65535,a=ne>>>16,ne=h[6],ae=x[6],ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,le+=ge>>>16,v+=le>>>16,a+=v>>>16,h[6]=pe=v&65535|a<<16,x[6]=Pt=ge&65535|le<<16,ne=me,ae=Bt,ge=ae&65535,le=ae>>>16,v=ne&65535,a=ne>>>16,ne=h[7],ae=x[7],ge+=ae&65535,le+=ae>>>16,v+=ne&65535,a+=ne>>>16,le+=ge>>>16,v+=le>>>16,a+=v>>>16,h[7]=me=v&65535|a<<16,x[7]=Bt=ge&65535|le<<16,Et+=128,u-=128}return u}function $t(h,x,_){var u=new Int32Array(8),A=new Int32Array(8),H=new Uint8Array(256),J,ce=_;for(u[0]=1779033703,u[1]=3144134277,u[2]=1013904242,u[3]=2773480762,u[4]=1359893119,u[5]=2600822924,u[6]=528734635,u[7]=1541459225,A[0]=4089235720,A[1]=2227873595,A[2]=4271175723,A[3]=1595750129,A[4]=2917565137,A[5]=725511199,A[6]=4215389547,A[7]=327033209,Mt(u,A,x,_),_%=128,J=0;J<_;J++)H[J]=x[ce-_+J];for(H[_]=128,_=256-128*(_<112?1:0),H[_-9]=0,j(H,_-8,ce/536870912|0,ce<<3),Mt(u,A,H,_),J=0;J<8;J++)j(h,8*J,u[J],A[J]);return 0}function Jt(h,x){var _=d(),u=d(),A=d(),H=d(),J=d(),ce=d(),Ce=d(),Ke=d(),ze=d();Te(_,h[1],h[0]),Te(ze,x[1],x[0]),de(_,_,ze),ke(u,h[0],h[1]),ke(ze,x[0],x[1]),de(u,u,ze),de(A,h[3],x[3]),de(A,A,s),de(H,h[2],x[2]),ke(H,H,H),Te(J,u,_),Te(ce,H,A),ke(Ce,H,A),ke(Ke,u,_),de(h[0],J,ce),de(h[1],Ke,Ce),de(h[2],Ce,ce),de(h[3],J,Ke)}function sr(h,x,_){var u;for(u=0;u<4;u++)Pe(h[u],x[u],_)}function zt(h,x){var _=d(),u=d(),A=d();it(A,x[2]),de(_,x[0],A),de(u,x[1],A),N(h,u),h[31]^=se(_)<<7}function Xt(h,x,_){var u,A;for(C(h[0],e),C(h[1],o),C(h[2],o),C(h[3],e),A=255;A>=0;--A)u=_[A/8|0]>>(A&7)&1,sr(h,x,u),Jt(x,h),Jt(h,h),sr(h,x,u)}function er(h,x){var _=[d(),d(),d(),d()];C(_[0],y),C(_[1],B),C(_[2],o),de(_[3],y,B),Xt(h,_,x)}function L(h,x,_){var u=new Uint8Array(64),A=[d(),d(),d(),d()],H;for(_||l(x,32),$t(u,x,32),u[0]&=248,u[31]&=127,u[31]|=64,er(A,u),zt(h,A),H=0;H<32;H++)x[H+32]=h[H];return 0}var g=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function U(h,x){var _,u,A,H;for(u=63;u>=32;--u){for(_=0,A=u-32,H=u-12;A<H;++A)x[A]+=_-16*x[u]*g[A-(u-32)],_=Math.floor((x[A]+128)/256),x[A]-=_*256;x[A]+=_,x[u]=0}for(_=0,A=0;A<32;A++)x[A]+=_-(x[31]>>4)*g[A],_=x[A]>>8,x[A]&=255;for(A=0;A<32;A++)x[A]-=_*g[A];for(u=0;u<32;u++)x[u+1]+=x[u]>>8,h[u]=x[u]&255}function q(h){var x=new Float64Array(64),_;for(_=0;_<64;_++)x[_]=h[_];for(_=0;_<64;_++)h[_]=0;U(h,x)}function K(h,x,_,u){var A=new Uint8Array(64),H=new Uint8Array(64),J=new Uint8Array(64),ce,Ce,Ke=new Float64Array(64),ze=[d(),d(),d(),d()];$t(A,u,32),A[0]&=248,A[31]&=127,A[31]|=64;var pt=_+64;for(ce=0;ce<_;ce++)h[64+ce]=x[ce];for(ce=0;ce<32;ce++)h[32+ce]=A[32+ce];for($t(J,h.subarray(32),_+32),q(J),er(ze,J),zt(h,ze),ce=32;ce<64;ce++)h[ce]=u[ce];for($t(H,h,_+64),q(H),ce=0;ce<64;ce++)Ke[ce]=0;for(ce=0;ce<32;ce++)Ke[ce]=J[ce];for(ce=0;ce<32;ce++)for(Ce=0;Ce<32;Ce++)Ke[ce+Ce]+=H[ce]*A[Ce];return U(h.subarray(32),Ke),pt}function O(h,x){var _=d(),u=d(),A=d(),H=d(),J=d(),ce=d(),Ce=d();return C(h[2],o),be(h[1],x),Ve(A,h[1]),de(H,A,f),Te(A,A,h[2]),ke(H,h[2],H),Ve(J,H),Ve(ce,J),de(Ce,ce,J),de(_,Ce,A),de(_,_,H),lt(_,_),de(_,_,A),de(_,_,H),de(_,_,H),de(h[0],_,H),Ve(u,h[0]),de(u,u,H),Se(u,A)&&de(h[0],h[0],k),Ve(u,h[0]),de(u,u,H),Se(u,A)?-1:(se(h[0])===x[31]>>7&&Te(h[0],e,h[0]),de(h[3],h[0],h[1]),0)}function oe(h,x,_,u){var A,H=new Uint8Array(32),J=new Uint8Array(64),ce=[d(),d(),d(),d()],Ce=[d(),d(),d(),d()];if(_<64||O(Ce,u))return-1;for(A=0;A<_;A++)h[A]=x[A];for(A=0;A<32;A++)h[A+32]=u[A];if($t(J,h,_),q(J),Xt(ce,Ce,J),er(Ce,x.subarray(32)),Jt(ce,Ce),zt(H,ce),_-=64,z(x,0,H,0)){for(A=0;A<_;A++)h[A]=0;return-1}for(A=0;A<_;A++)h[A]=x[A+64];return _}var ue=32,fe=24,_e=32,Ne=16,ve=32,Ie=32,Ye=32,we=32,dt=32,ut=fe,gt=_e,yt=Ne,Fe=64,St=32,It=64,ur=32,cr=64;c.lowlevel={crypto_core_hsalsa20:he,crypto_stream_xor:Ee,crypto_stream:ie,crypto_stream_salsa20_xor:Z,crypto_stream_salsa20:Q,crypto_onetimeauth:Le,crypto_onetimeauth_verify:re,crypto_verify_16:R,crypto_verify_32:z,crypto_secretbox:Y,crypto_secretbox_open:Ae,crypto_scalarmult:ot,crypto_scalarmult_base:wt,crypto_box_beforenm:Ot,crypto_box_afternm:Qt,crypto_box:Gt,crypto_box_open:mt,crypto_box_keypair:Ut,crypto_hash:$t,crypto_sign:K,crypto_sign_keypair:L,crypto_sign_open:oe,crypto_secretbox_KEYBYTES:ue,crypto_secretbox_NONCEBYTES:fe,crypto_secretbox_ZEROBYTES:_e,crypto_secretbox_BOXZEROBYTES:Ne,crypto_scalarmult_BYTES:ve,crypto_scalarmult_SCALARBYTES:Ie,crypto_box_PUBLICKEYBYTES:Ye,crypto_box_SECRETKEYBYTES:we,crypto_box_BEFORENMBYTES:dt,crypto_box_NONCEBYTES:ut,crypto_box_ZEROBYTES:gt,crypto_box_BOXZEROBYTES:yt,crypto_sign_BYTES:Fe,crypto_sign_PUBLICKEYBYTES:St,crypto_sign_SECRETKEYBYTES:It,crypto_sign_SEEDBYTES:ur,crypto_hash_BYTES:cr,gf:d,D:f,L:g,pack25519:N,unpack25519:be,M:de,A:ke,S:Ve,Z:Te,pow2523:lt,add:Jt,set25519:C,modL:U,scalarmult:Xt,scalarbase:er};function tr(h,x){if(h.length!==ue)throw new Error("bad key size");if(x.length!==fe)throw new Error("bad nonce size")}function lr(h,x){if(h.length!==Ye)throw new Error("bad public key size");if(x.length!==we)throw new Error("bad secret key size")}function Dt(){for(var h=0;h<arguments.length;h++)if(!(arguments[h]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Yn(h){for(var x=0;x<h.length;x++)h[x]=0}c.randomBytes=function(h){var x=new Uint8Array(h);return l(x,h),x},c.secretbox=function(h,x,_){Dt(h,x,_),tr(_,x);for(var u=new Uint8Array(_e+h.length),A=new Uint8Array(u.length),H=0;H<h.length;H++)u[H+_e]=h[H];return Y(A,u,u.length,x,_),A.subarray(Ne)},c.secretbox.open=function(h,x,_){Dt(h,x,_),tr(_,x);for(var u=new Uint8Array(Ne+h.length),A=new Uint8Array(u.length),H=0;H<h.length;H++)u[H+Ne]=h[H];return u.length<32||Ae(A,u,u.length,x,_)!==0?null:A.subarray(_e)},c.secretbox.keyLength=ue,c.secretbox.nonceLength=fe,c.secretbox.overheadLength=Ne,c.scalarMult=function(h,x){if(Dt(h,x),h.length!==Ie)throw new Error("bad n size");if(x.length!==ve)throw new Error("bad p size");var _=new Uint8Array(ve);return ot(_,h,x),_},c.scalarMult.base=function(h){if(Dt(h),h.length!==Ie)throw new Error("bad n size");var x=new Uint8Array(ve);return wt(x,h),x},c.scalarMult.scalarLength=Ie,c.scalarMult.groupElementLength=ve,c.box=function(h,x,_,u){var A=c.box.before(_,u);return c.secretbox(h,x,A)},c.box.before=function(h,x){Dt(h,x),lr(h,x);var _=new Uint8Array(dt);return Ot(_,h,x),_},c.box.after=c.secretbox,c.box.open=function(h,x,_,u){var A=c.box.before(_,u);return c.secretbox.open(h,x,A)},c.box.open.after=c.secretbox.open,c.box.keyPair=function(){var h=new Uint8Array(Ye),x=new Uint8Array(we);return Ut(h,x),{publicKey:h,secretKey:x}},c.box.keyPair.fromSecretKey=function(h){if(Dt(h),h.length!==we)throw new Error("bad secret key size");var x=new Uint8Array(Ye);return wt(x,h),{publicKey:x,secretKey:new Uint8Array(h)}},c.box.publicKeyLength=Ye,c.box.secretKeyLength=we,c.box.sharedKeyLength=dt,c.box.nonceLength=ut,c.box.overheadLength=c.secretbox.overheadLength,c.sign=function(h,x){if(Dt(h,x),x.length!==It)throw new Error("bad secret key size");var _=new Uint8Array(Fe+h.length);return K(_,h,h.length,x),_},c.sign.open=function(h,x){if(Dt(h,x),x.length!==St)throw new Error("bad public key size");var _=new Uint8Array(h.length),u=oe(_,h,h.length,x);if(u<0)return null;for(var A=new Uint8Array(u),H=0;H<A.length;H++)A[H]=_[H];return A},c.sign.detached=function(h,x){for(var _=c.sign(h,x),u=new Uint8Array(Fe),A=0;A<u.length;A++)u[A]=_[A];return u},c.sign.detached.verify=function(h,x,_){if(Dt(h,x,_),x.length!==Fe)throw new Error("bad signature size");if(_.length!==St)throw new Error("bad public key size");var u=new Uint8Array(Fe+h.length),A=new Uint8Array(Fe+h.length),H;for(H=0;H<Fe;H++)u[H]=x[H];for(H=0;H<h.length;H++)u[H+Fe]=h[H];return oe(A,u,u.length,_)>=0},c.sign.keyPair=function(){var h=new Uint8Array(St),x=new Uint8Array(It);return L(h,x),{publicKey:h,secretKey:x}},c.sign.keyPair.fromSecretKey=function(h){if(Dt(h),h.length!==It)throw new Error("bad secret key size");for(var x=new Uint8Array(St),_=0;_<x.length;_++)x[_]=h[32+_];return{publicKey:x,secretKey:new Uint8Array(h)}},c.sign.keyPair.fromSeed=function(h){if(Dt(h),h.length!==ur)throw new Error("bad seed size");for(var x=new Uint8Array(St),_=new Uint8Array(It),u=0;u<32;u++)_[u]=h[u];return L(x,_,!0),{publicKey:x,secretKey:_}},c.sign.publicKeyLength=St,c.sign.secretKeyLength=It,c.sign.seedLength=ur,c.sign.signatureLength=Fe,c.hash=function(h){Dt(h);var x=new Uint8Array(cr);return $t(x,h,h.length),x},c.hash.hashLength=cr,c.verify=function(h,x){return Dt(h,x),h.length===0||x.length===0||h.length!==x.length?!1:P(h,0,x,0,h.length)===0},c.setPRNG=function(h){l=h},function(){var h=typeof self<"u"?self.crypto||self.msCrypto:null;if(h&&h.getRandomValues){var x=65536;c.setPRNG(function(_,u){var A,H=new Uint8Array(u);for(A=0;A<u;A+=x)h.getRandomValues(H.subarray(A,A+Math.min(u-A,x)));for(A=0;A<u;A++)_[A]=H[A];Yn(H)})}else typeof jc<"u"&&(h=Nc,h&&h.randomBytes&&c.setPRNG(function(_,u){var A,H=h.randomBytes(u);for(A=0;A<u;A++)_[A]=H[A];Yn(H)}))}()})(n.exports?n.exports:self.nacl=self.nacl||{})}(Mi)),Mi.exports}var Cr={},Jo;function Dc(){if(Jo)return Cr;Jo=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.bitsToBytes=Cr.bytesToBits=Cr.lpad=void 0;function n(l,t,r){for(;l.length<r;)l=t+l;return l}Cr.lpad=n;function c(l){let t="";for(let r=0;r<l.length;r++){let e=l.at(r);t+=n(e.toString(2),"0",8)}return t}Cr.bytesToBits=c;function d(l){if(l.length%8!==0)throw Error("Uneven bits");let t=[];for(;l.length>0;)t.push(parseInt(l.slice(0,8),2)),l=l.slice(8);return Buffer.from(t)}return Cr.bitsToBytes=d,Cr}var ka={},Qo;function Xo(){if(Qo)return ka;Qo=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.wordlist=void 0;const n=["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"];return ka.wordlist=n,ka}var es;function ts(){if(es)return _t;es=1;var n=_t&&_t.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(_t,"__esModule",{value:!0}),_t.mnemonicFromRandomSeed=_t.mnemonicIndexesToBytes=_t.bytesToMnemonics=_t.bytesToMnemonicIndexes=_t.mnemonicNew=_t.mnemonicValidate=_t.mnemonicToHDSeed=_t.mnemonicToWalletKey=_t.mnemonicToPrivateKey=_t.mnemonicToSeed=_t.mnemonicToEntropy=void 0;const c=n(Go()),d=Ti(),l=va(),t=Fo(),r=Dc(),e=Xo(),o=1e5;async function i(Z){const Q=await B(Z);return await y(Q)&&!await s(Q)}function f(Z){return Z.map(Q=>Q.toLowerCase().trim())}async function s(Z){return(await(0,t.pbkdf2_sha512)(Z,"TON seed version",Math.max(1,Math.floor(o/256)),64))[0]==0}async function y(Z){return(await(0,t.pbkdf2_sha512)(Z,"TON fast seed version",1,64))[0]==1}async function B(Z,Q){return await(0,l.hmac_sha512)(Z.join(" "),Q&&Q.length>0?Q:"")}_t.mnemonicToEntropy=B;async function k(Z,Q,ie){const Ee=await B(Z,ie);return await(0,t.pbkdf2_sha512)(Ee,Q,o,64)}_t.mnemonicToSeed=k;async function j(Z,Q){Z=f(Z);const ie=await k(Z,"TON default seed",Q);let Ee=c.default.sign.keyPair.fromSeed(ie.slice(0,32));return{publicKey:Buffer.from(Ee.publicKey),secretKey:Buffer.from(Ee.secretKey)}}_t.mnemonicToPrivateKey=j;async function P(Z,Q){let Ee=(await j(Z,Q)).secretKey.slice(0,32);const Oe=c.default.sign.keyPair.fromSeed(Ee);return{publicKey:Buffer.from(Oe.publicKey),secretKey:Buffer.from(Oe.secretKey)}}_t.mnemonicToWalletKey=P;async function R(Z,Q){return Z=f(Z),await k(Z,"TON HD Keys seed",Q)}_t.mnemonicToHDSeed=R;async function z(Z,Q){Z=f(Z);for(let ie of Z)if(e.wordlist.indexOf(ie)<0)return!1;return Q&&Q.length>0&&!await i(Z)?!1:await s(await B(Z,Q))}_t.mnemonicValidate=z;async function V(Z=24,Q){let ie=[];for(;;){ie=[];for(let Ee=0;Ee<Z;Ee++){let Oe=await(0,d.getSecureRandomNumber)(0,e.wordlist.length);ie.push(e.wordlist[Oe])}if(!(Q&&Q.length>0&&!await i(ie))&&await s(await B(ie,Q)))break}return ie}_t.mnemonicNew=V;function F(Z,Q){let ie=(0,r.bytesToBits)(Z),Ee=[];for(let Oe=0;Oe<Q;Oe++){let Le=ie.slice(Oe*11,Oe*11+11);Ee.push(parseInt(Le,2))}return Ee}_t.bytesToMnemonicIndexes=F;function ee(Z,Q){let ie=F(Z,Q),Ee=[];for(let Oe of ie)Ee.push(e.wordlist[Oe]);return Ee}_t.bytesToMnemonics=ee;function he(Z){let Q="";for(let ie of Z){if(!Number.isSafeInteger(ie)||ie<0||ie>=2028)throw Error("Invalid input");Q+=(0,r.lpad)(ie.toString(2),"0",11)}for(;Q.length%8!==0;)Q=Q+"0";return(0,r.bitsToBytes)(Q)}_t.mnemonicIndexesToBytes=he;async function $(Z,Q=24,ie){const Ee=Math.ceil(Q*11/8);let Oe=Z;for(;;){let Le=await(0,t.pbkdf2_sha512)(Oe,"TON mnemonic seed",Math.max(1,Math.floor(o/256)),Ee),re=ee(Le,Q);if(await z(re,ie))return re;Oe=Le}}return _t.mnemonicFromRandomSeed=$,_t}var Ht={},rs;function ns(){if(rs)return Ht;rs=1;var n=Ht&&Ht.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.openBox=Ht.sealBox=Ht.signVerify=Ht.sign=Ht.keyPairFromSeed=Ht.keyPairFromSecretKey=void 0;const c=n(Go());function d(i){let f=c.default.sign.keyPair.fromSecretKey(new Uint8Array(i));return{publicKey:Buffer.from(f.publicKey),secretKey:Buffer.from(f.secretKey)}}Ht.keyPairFromSecretKey=d;function l(i){let f=c.default.sign.keyPair.fromSeed(new Uint8Array(i));return{publicKey:Buffer.from(f.publicKey),secretKey:Buffer.from(f.secretKey)}}Ht.keyPairFromSeed=l;function t(i,f){return Buffer.from(c.default.sign.detached(new Uint8Array(i),new Uint8Array(f)))}Ht.sign=t;function r(i,f,s){return c.default.sign.detached.verify(new Uint8Array(i),new Uint8Array(f),new Uint8Array(s))}Ht.signVerify=r;function e(i,f,s){return Buffer.from(c.default.secretbox(i,f,s))}Ht.sealBox=e;function o(i,f,s){let y=c.default.secretbox.open(i,f,s);return y?Buffer.from(y):null}return Ht.openBox=o,Ht}var Sr={},as;function qc(){if(as)return Sr;as=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.deriveEd25519Path=Sr.deriveED25519HardenedKey=Sr.getED25519MasterKeyFromSeed=void 0;const n=va(),c="ed25519 seed",d=2147483648;async function l(e){const o=await(0,n.hmac_sha512)(c,e),i=o.slice(0,32),f=o.slice(32);return{key:i,chainCode:f}}Sr.getED25519MasterKeyFromSeed=l;async function t(e,o){if(o>=d)throw Error("Key index must be less than offset");const i=Buffer.alloc(4);i.writeUInt32BE(o+d,0);const f=Buffer.concat([Buffer.alloc(1,0),e.key,i]),s=await(0,n.hmac_sha512)(e.chainCode,f),y=s.slice(0,32),B=s.slice(32);return{key:y,chainCode:B}}Sr.deriveED25519HardenedKey=t;async function r(e,o){let i=await l(e),f=[...o];for(;f.length>0;){let s=f[0];f=f.slice(1),i=await t(i,s)}return i.key}return Sr.deriveEd25519Path=r,Sr}var Br={},is;function Lc(){if(is)return Br;is=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.deriveSymmetricPath=Br.deriveSymmetricHardenedKey=Br.getSymmetricMasterKeyFromSeed=void 0;const n=va(),c="Symmetric key seed";async function d(r){const e=await(0,n.hmac_sha512)(c,r),o=e.slice(32),i=e.slice(0,32);return{key:o,chainCode:i}}Br.getSymmetricMasterKeyFromSeed=d;async function l(r,e){const o=Buffer.concat([Buffer.alloc(1,0),Buffer.from(e)]),i=await(0,n.hmac_sha512)(r.chainCode,o),f=i.slice(32),s=i.slice(0,32);return{key:f,chainCode:s}}Br.deriveSymmetricHardenedKey=l;async function t(r,e){let o=await d(r),i=[...e];for(;i.length>0;){let f=i[0];i=i.slice(1),o=await l(o,f)}return o.key}return Br.deriveSymmetricPath=t,Br}var Ar={},os;function Vc(){if(os)return Ar;os=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.deriveMnemonicsPath=Ar.deriveMnemonicHardenedKey=Ar.getMnemonicsMasterKeyFromSeed=void 0;const n=ts(),c=va(),d=2147483648,l="TON Mnemonics HD seed";async function t(o){const i=await(0,c.hmac_sha512)(l,o),f=i.slice(0,32),s=i.slice(32);return{key:f,chainCode:s}}Ar.getMnemonicsMasterKeyFromSeed=t;async function r(o,i){if(i>=d)throw Error("Key index must be less than offset");const f=Buffer.alloc(4);f.writeUInt32BE(i+d,0);const s=Buffer.concat([Buffer.alloc(1,0),o.key,f]),y=await(0,c.hmac_sha512)(o.chainCode,s),B=y.slice(0,32),k=y.slice(32);return{key:B,chainCode:k}}Ar.deriveMnemonicHardenedKey=r;async function e(o,i,f=24,s){let y=await t(o),B=[...i];for(;B.length>0;){let k=B[0];B=B.slice(1),y=await r(y,k)}return await(0,n.mnemonicFromRandomSeed)(y.key,f,s)}return Ar.deriveMnemonicsPath=e,Ar}var ss;function on(){return ss||(ss=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.getMnemonicsMasterKeyFromSeed=n.deriveMnemonicHardenedKey=n.deriveMnemonicsPath=n.deriveSymmetricPath=n.deriveSymmetricHardenedKey=n.getSymmetricMasterKeyFromSeed=n.deriveEd25519Path=n.deriveED25519HardenedKey=n.getED25519MasterKeyFromSeed=n.signVerify=n.sign=n.keyPairFromSecretKey=n.keyPairFromSeed=n.openBox=n.sealBox=n.mnemonicWordList=n.mnemonicToHDSeed=n.mnemonicToSeed=n.mnemonicToWalletKey=n.mnemonicToPrivateKey=n.mnemonicValidate=n.mnemonicNew=n.newSecurePassphrase=n.newSecureWords=n.getSecureRandomNumber=n.getSecureRandomWords=n.getSecureRandomBytes=n.hmac_sha512=n.pbkdf2_sha512=n.sha512_sync=n.sha512=n.sha256_sync=n.sha256=void 0;var c=Mc();Object.defineProperty(n,"sha256",{enumerable:!0,get:function(){return c.sha256}}),Object.defineProperty(n,"sha256_sync",{enumerable:!0,get:function(){return c.sha256_sync}});var d=Rc();Object.defineProperty(n,"sha512",{enumerable:!0,get:function(){return d.sha512}}),Object.defineProperty(n,"sha512_sync",{enumerable:!0,get:function(){return d.sha512_sync}});var l=Fo();Object.defineProperty(n,"pbkdf2_sha512",{enumerable:!0,get:function(){return l.pbkdf2_sha512}});var t=va();Object.defineProperty(n,"hmac_sha512",{enumerable:!0,get:function(){return t.hmac_sha512}});var r=Ti();Object.defineProperty(n,"getSecureRandomBytes",{enumerable:!0,get:function(){return r.getSecureRandomBytes}}),Object.defineProperty(n,"getSecureRandomWords",{enumerable:!0,get:function(){return r.getSecureRandomWords}}),Object.defineProperty(n,"getSecureRandomNumber",{enumerable:!0,get:function(){return r.getSecureRandomNumber}});var e=Oc();Object.defineProperty(n,"newSecureWords",{enumerable:!0,get:function(){return e.newSecureWords}});var o=zc();Object.defineProperty(n,"newSecurePassphrase",{enumerable:!0,get:function(){return o.newSecurePassphrase}});var i=ts();Object.defineProperty(n,"mnemonicNew",{enumerable:!0,get:function(){return i.mnemonicNew}}),Object.defineProperty(n,"mnemonicValidate",{enumerable:!0,get:function(){return i.mnemonicValidate}}),Object.defineProperty(n,"mnemonicToPrivateKey",{enumerable:!0,get:function(){return i.mnemonicToPrivateKey}}),Object.defineProperty(n,"mnemonicToWalletKey",{enumerable:!0,get:function(){return i.mnemonicToWalletKey}}),Object.defineProperty(n,"mnemonicToSeed",{enumerable:!0,get:function(){return i.mnemonicToSeed}}),Object.defineProperty(n,"mnemonicToHDSeed",{enumerable:!0,get:function(){return i.mnemonicToHDSeed}});var f=Xo();Object.defineProperty(n,"mnemonicWordList",{enumerable:!0,get:function(){return f.wordlist}});var s=ns();Object.defineProperty(n,"sealBox",{enumerable:!0,get:function(){return s.sealBox}}),Object.defineProperty(n,"openBox",{enumerable:!0,get:function(){return s.openBox}});var y=ns();Object.defineProperty(n,"keyPairFromSeed",{enumerable:!0,get:function(){return y.keyPairFromSeed}}),Object.defineProperty(n,"keyPairFromSecretKey",{enumerable:!0,get:function(){return y.keyPairFromSecretKey}}),Object.defineProperty(n,"sign",{enumerable:!0,get:function(){return y.sign}}),Object.defineProperty(n,"signVerify",{enumerable:!0,get:function(){return y.signVerify}});var B=qc();Object.defineProperty(n,"getED25519MasterKeyFromSeed",{enumerable:!0,get:function(){return B.getED25519MasterKeyFromSeed}}),Object.defineProperty(n,"deriveED25519HardenedKey",{enumerable:!0,get:function(){return B.deriveED25519HardenedKey}}),Object.defineProperty(n,"deriveEd25519Path",{enumerable:!0,get:function(){return B.deriveEd25519Path}});var k=Lc();Object.defineProperty(n,"getSymmetricMasterKeyFromSeed",{enumerable:!0,get:function(){return k.getSymmetricMasterKeyFromSeed}}),Object.defineProperty(n,"deriveSymmetricHardenedKey",{enumerable:!0,get:function(){return k.deriveSymmetricHardenedKey}}),Object.defineProperty(n,"deriveSymmetricPath",{enumerable:!0,get:function(){return k.deriveSymmetricPath}});var j=Vc();Object.defineProperty(n,"deriveMnemonicsPath",{enumerable:!0,get:function(){return j.deriveMnemonicsPath}}),Object.defineProperty(n,"deriveMnemonicHardenedKey",{enumerable:!0,get:function(){return j.deriveMnemonicHardenedKey}}),Object.defineProperty(n,"getMnemonicsMasterKeyFromSeed",{enumerable:!0,get:function(){return j.getMnemonicsMasterKeyFromSeed}})}(Pi)),Pi}var ls;function Fc(){if(ls)return fa;ls=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.wonderCalculator=void 0;const n=Nr(),c=ea(),d=Bi(),l=Ai(),t=si(),r=Mo(),e=on(),o=Si(),i=Bo();function f(s,y,B){let k,j=null;if(s===c.CellType.Ordinary){let $=0;for(let Z of B)$=$|Z.mask.value;k=new d.LevelMask($)}else if(s===c.CellType.PrunedBranch)j=(0,l.exoticPruned)(y,B),k=new d.LevelMask(j.mask);else if(s===c.CellType.MerkleProof)(0,t.exoticMerkleProof)(y,B),k=new d.LevelMask(B[0].mask.value>>1);else if(s===c.CellType.MerkleUpdate)(0,o.exoticMerkleUpdate)(y,B),k=new d.LevelMask((B[0].mask.value|B[1].mask.value)>>1);else if(s===c.CellType.Library)(0,i.exoticLibrary)(y,B),k=new d.LevelMask;else throw new Error("Unsupported exotic type");let P=[],R=[],z=s===c.CellType.PrunedBranch?1:k.hashCount,F=k.hashCount-z;for(let $=0,Z=0;$<=k.level;$++){if(!k.isSignificant($))continue;if(Z<F){Z++;continue}let Q;if(Z===F){if(!($===0||s===c.CellType.PrunedBranch))throw Error("Invalid");Q=y}else{if(!($!==0&&s!==c.CellType.PrunedBranch))throw Error("Invalid: "+$+", "+s);Q=new n.BitString(R[Z-F-1],0,256)}let ie=0;for(let re of B){let Y;s==c.CellType.MerkleProof||s==c.CellType.MerkleUpdate?Y=re.depth($+1):Y=re.depth($),ie=Math.max(ie,Y)}B.length>0&&ie++;let Ee=(0,r.getRepr)(y,Q,B,$,k.apply($).value,s),Oe=(0,e.sha256_sync)(Ee),Le=Z-F;P[Le]=ie,R[Le]=Oe,Z++}let ee=[],he=[];if(j)for(let $=0;$<4;$++){const{hashIndex:Z}=k.apply($),{hashIndex:Q}=k;Z!==Q?(ee.push(j.pruned[Z].hash),he.push(j.pruned[Z].depth)):(ee.push(R[0]),he.push(P[0]))}else for(let $=0;$<4;$++)ee.push(R[k.apply($).hashIndex]),he.push(P[k.apply($).hashIndex]);return{mask:k,hashes:ee,depths:he}}return fa.wonderCalculator=f,fa}var Pr={},Ca={},us;function Zc(){if(us)return Ca;us=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.topologicalSort=void 0;function n(c){let d=[c],l=new Map,t=new Set,r=[];for(;d.length>0;){const s=[...d];d=[];for(let y of s){const B=y.hash().toString("hex");if(!l.has(B)){t.add(B),l.set(B,{cell:y,refs:y.refs.map(k=>k.hash().toString("hex"))});for(let k of y.refs)d.push(k)}}}let e=new Set;function o(s){if(!t.has(s))return;if(e.has(s))throw Error("Not a DAG");e.add(s);let y=l.get(s).refs;for(let B=y.length-1;B>=0;B--)o(y[B]);r.push(s),e.delete(s),t.delete(s)}for(;t.size>0;){const s=Array.from(t)[0];o(s)}let i=new Map;for(let s=0;s<r.length;s++)i.set(r[r.length-s-1],s);let f=[];for(let s=r.length-1;s>=0;s--){let y=r[s];const B=l.get(y);f.push({cell:B.cell,refs:B.refs.map(k=>i.get(k))})}return f}return Ca.topologicalSort=n,Ca}var Sa={},cs;function Wc(){if(cs)return Sa;cs=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.bitsForNumber=void 0;function n(c,d){let l=BigInt(c);if(d==="int")return l===0n||l===-1n?1:(l>0?l:-l).toString(2).length+1;if(d==="uint"){if(l<0)throw Error(`value is negative. Got ${c}`);return l.toString(2).length}else throw Error(`invalid mode. Got ${d}`)}return Sa.bitsForNumber=n,Sa}var Ba={},ds;function fs(){if(ds)return Ba;ds=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.crc32c=void 0;const n=2197175160;function c(d){let l=-1;for(let r=0;r<d.length;r++)l^=d[r],l=l&1?l>>>1^n:l>>>1,l=l&1?l>>>1^n:l>>>1,l=l&1?l>>>1^n:l>>>1,l=l&1?l>>>1^n:l>>>1,l=l&1?l>>>1^n:l>>>1,l=l&1?l>>>1^n:l>>>1,l=l&1?l>>>1^n:l>>>1,l=l&1?l>>>1^n:l>>>1;l=l^4294967295;let t=Buffer.alloc(4);return t.writeInt32LE(l),t}return Ba.crc32c=c,Ba}var hs;function Hc(){if(hs)return Pr;hs=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.serializeBoc=Pr.deserializeBoc=Pr.parseBoc=void 0;const n=Dr(),c=Nr(),d=sn(),l=Zc(),t=Wc(),r=oi(),e=Mo(),o=ii(),i=fs();function f(z){return s(z&7)}function s(z){let V=0;for(let F=0;F<3;F++)V+=z&1,z=z>>1;return V+1}function y(z,V){const F=z.loadUint(8),ee=F%8,he=!!(F&8),$=z.loadUint(8),Z=Math.ceil($/2),Q=!!($%2),ie=F>>5,Ee=(F&16)!=0,Le=Ee?f(ie)*32:0,re=Ee?f(ie)*2:0;z.skip(Le*8),z.skip(re*8);let Y=c.BitString.EMPTY;Z>0&&(Q?Y=z.loadPaddedBits(Z*8):Y=z.loadBits(Z*8));let Ae=[];for(let C=0;C<ee;C++)Ae.push(z.loadUint(V*8));return{bits:Y,refs:Ae,exotic:he}}function B(z,V){return 2+Math.ceil(z.bits.length/8)+z.refs.length*V}function k(z){let V=new n.BitReader(new c.BitString(z,0,z.length*8)),F=V.loadUint(32);if(F===1761568243){let ee=V.loadUint(8),he=V.loadUint(8),$=V.loadUint(ee*8),Z=V.loadUint(ee*8),Q=V.loadUint(ee*8),ie=V.loadUint(he*8),Ee=V.loadBuffer($*he),Oe=V.loadBuffer(ie);return{size:ee,offBytes:he,cells:$,roots:Z,absent:Q,totalCellSize:ie,index:Ee,cellData:Oe,root:[0]}}else if(F===2898503464){let ee=V.loadUint(8),he=V.loadUint(8),$=V.loadUint(ee*8),Z=V.loadUint(ee*8),Q=V.loadUint(ee*8),ie=V.loadUint(he*8),Ee=V.loadBuffer($*he),Oe=V.loadBuffer(ie),Le=V.loadBuffer(4);if(!(0,i.crc32c)(z.subarray(0,z.length-4)).equals(Le))throw Error("Invalid CRC32C");return{size:ee,offBytes:he,cells:$,roots:Z,absent:Q,totalCellSize:ie,index:Ee,cellData:Oe,root:[0]}}else if(F===3052313714){let ee=V.loadUint(1),he=V.loadUint(1);V.loadUint(1),V.loadUint(2);let $=V.loadUint(3),Z=V.loadUint(8),Q=V.loadUint($*8),ie=V.loadUint($*8),Ee=V.loadUint($*8),Oe=V.loadUint(Z*8),Le=[];for(let Ae=0;Ae<ie;Ae++)Le.push(V.loadUint($*8));let re=null;ee&&(re=V.loadBuffer(Q*Z));let Y=V.loadBuffer(Oe);if(he){let Ae=V.loadBuffer(4);if(!(0,i.crc32c)(z.subarray(0,z.length-4)).equals(Ae))throw Error("Invalid CRC32C")}return{size:$,offBytes:Z,cells:Q,roots:ie,absent:Ee,totalCellSize:Oe,index:re,cellData:Y,root:Le}}else throw Error("Invalid magic")}Pr.parseBoc=k;function j(z){let V=k(z),F=new n.BitReader(new c.BitString(V.cellData,0,V.cellData.length*8)),ee=[];for(let $=0;$<V.cells;$++){let Z=y(F,V.size);ee.push({...Z,result:null})}for(let $=ee.length-1;$>=0;$--){if(ee[$].result)throw Error("Impossible");let Z=[];for(let Q of ee[$].refs){if(!ee[Q].result)throw Error("Invalid BOC file");Z.push(ee[Q].result)}ee[$].result=new d.Cell({bits:ee[$].bits,refs:Z,exotic:ee[$].exotic})}let he=[];for(let $=0;$<V.root.length;$++)he.push(ee[V.root[$]].result);return he}Pr.deserializeBoc=j;function P(z,V,F,ee){let he=(0,e.getRefsDescriptor)(z.refs,z.mask.value,z.type),$=(0,e.getBitsDescriptor)(z.bits);ee.writeUint(he,8),ee.writeUint($,8),ee.writeBuffer((0,o.bitsToPaddedBuffer)(z.bits));for(let Z of V)ee.writeUint(Z,F*8)}function R(z,V){let F=(0,l.topologicalSort)(z),ee=F.length,he=V.idx,$=V.crc32,Z=!1,Q=0,ie=Math.max(Math.ceil((0,t.bitsForNumber)(ee,"uint")/8),1),Ee=0,Oe=[];for(let C of F){let ye=B(C.cell,ie);Ee+=ye,Oe.push(Ee)}let Le=Math.max(Math.ceil((0,t.bitsForNumber)(Ee,"uint")/8),1),re=(6+3*ie+Le+1*ie+(he?ee*Le:0)+Ee+($?4:0))*8,Y=new r.BitBuilder(re);if(Y.writeUint(3052313714,32),Y.writeBit(he),Y.writeBit($),Y.writeBit(Z),Y.writeUint(Q,2),Y.writeUint(ie,3),Y.writeUint(Le,8),Y.writeUint(ee,ie*8),Y.writeUint(1,ie*8),Y.writeUint(0,ie*8),Y.writeUint(Ee,Le*8),Y.writeUint(0,ie*8),he)for(let C=0;C<ee;C++)Y.writeUint(Oe[C],Le*8);for(let C=0;C<ee;C++)P(F[C].cell,F[C].refs,ie,Y);if($){let C=(0,i.crc32c)(Y.buffer());Y.writeBuffer(C)}let Ae=Y.buffer();if(Ae.length!==re/8)throw Error("Internal error");return Ae}return Pr.serializeBoc=R,Pr}var ps;function sn(){if(ps)return Xr;ps=1;var n=Xr&&Xr.__importDefault||function(B){return B&&B.__esModule?B:{default:B}},c;Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.Cell=void 0;const d=n(Kn()),l=Nr(),t=ea(),r=Ci(),e=Sc(),o=Fc(),i=Hc(),f=Dr(),s=Tt();let y=class Ji{static fromBoc(k){return(0,i.deserializeBoc)(k)}static fromBase64(k){let j=Ji.fromBoc(Buffer.from(k,"base64"));if(j.length!==1)throw new Error("Deserialized more than one cell");return j[0]}static fromHex(k){let j=Ji.fromBoc(Buffer.from(k,"hex"));if(j.length!==1)throw new Error("Deserialized more than one cell");return j[0]}constructor(k){this._hashes=[],this._depths=[],this.beginParse=(ee=!1)=>{if(this.isExotic&&!ee)throw new Error("Exotic cells cannot be parsed");return new r.Slice(new f.BitReader(this.bits),this.refs)},this.hash=(ee=3)=>this._hashes[Math.min(this._hashes.length-1,ee)],this.depth=(ee=3)=>this._depths[Math.min(this._depths.length-1,ee)],this.level=()=>this.mask.level,this.equals=ee=>this.hash().equals(ee.hash()),this[c]=()=>this.toString();let j=l.BitString.EMPTY;k&&k.bits&&(j=k.bits);let P=[];k&&k.refs&&(P=[...k.refs]);let R,z,V,F=t.CellType.Ordinary;if(k&&k.exotic){let ee=(0,e.resolveExotic)(j,P),he=(0,o.wonderCalculator)(ee.type,j,P);V=he.mask,z=he.depths,R=he.hashes,F=ee.type}else{if(P.length>4)throw new Error("Invalid number of references");if(j.length>1023)throw new Error(`Bits overflow: ${j.length} > 1023`);let ee=(0,o.wonderCalculator)(t.CellType.Ordinary,j,P);V=ee.mask,z=ee.depths,R=ee.hashes,F=t.CellType.Ordinary}this.type=F,this.bits=j,this.refs=P,this.mask=V,this._depths=z,this._hashes=R,Object.freeze(this),Object.freeze(this.refs),Object.freeze(this.bits),Object.freeze(this.mask),Object.freeze(this._depths),Object.freeze(this._hashes)}get isExotic(){return this.type!==t.CellType.Ordinary}toBoc(k){let j=k&&k.idx!==null&&k.idx!==void 0?k.idx:!1,P=k&&k.crc32!==null&&k.crc32!==void 0?k.crc32:!0;return(0,i.serializeBoc)(this,{idx:j,crc32:P})}toString(k){let j=k||"",P="x";this.isExotic&&(this.type===t.CellType.MerkleProof?P="p":this.type===t.CellType.MerkleUpdate?P="u":this.type===t.CellType.PrunedBranch&&(P="p"));let R=j+(this.isExotic?P:"x")+"{"+this.bits.toString()+"}";for(let z in this.refs){const V=this.refs[z];R+=`
|
|
2
|
+
`+V.toString(j+" ")}return R}asSlice(){return this.beginParse()}asBuilder(){return(0,s.beginCell)().storeSlice(this.asSlice())}};return Xr.Cell=y,c=d.default,y.EMPTY=new y,Xr}var gs;function Tt(){if(gs)return Gr;gs=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.Builder=Gr.beginCell=void 0;const n=oi(),c=sn(),d=ko();function l(){return new t}Gr.beginCell=l;let t=class nc{constructor(){this._bits=new n.BitBuilder,this._refs=[]}get bits(){return this._bits.length}get refs(){return this._refs.length}get availableBits(){return 1023-this.bits}get availableRefs(){return 4-this.refs}storeBit(e){return this._bits.writeBit(e),this}storeBits(e){return this._bits.writeBits(e),this}storeBuffer(e,o){if(o!=null&&e.length!==o)throw Error(`Buffer length ${e.length} is not equal to ${o}`);return this._bits.writeBuffer(e),this}storeMaybeBuffer(e,o){return e!==null?(this.storeBit(1),this.storeBuffer(e,o)):this.storeBit(0),this}storeUint(e,o){return this._bits.writeUint(e,o),this}storeMaybeUint(e,o){return e!=null?(this.storeBit(1),this.storeUint(e,o)):this.storeBit(0),this}storeInt(e,o){return this._bits.writeInt(e,o),this}storeMaybeInt(e,o){return e!=null?(this.storeBit(1),this.storeInt(e,o)):this.storeBit(0),this}storeVarUint(e,o){return this._bits.writeVarUint(e,o),this}storeMaybeVarUint(e,o){return e!=null?(this.storeBit(1),this.storeVarUint(e,o)):this.storeBit(0),this}storeVarInt(e,o){return this._bits.writeVarInt(e,o),this}storeMaybeVarInt(e,o){return e!=null?(this.storeBit(1),this.storeVarInt(e,o)):this.storeBit(0),this}storeCoins(e){return this._bits.writeCoins(e),this}storeMaybeCoins(e){return e!=null?(this.storeBit(1),this.storeCoins(e)):this.storeBit(0),this}storeAddress(e){return this._bits.writeAddress(e),this}storeRef(e){if(this._refs.length>=4)throw new Error("Too many references");if(e instanceof c.Cell)this._refs.push(e);else if(e instanceof nc)this._refs.push(e.endCell());else throw new Error("Invalid argument");return this}storeMaybeRef(e){return e?(this.storeBit(1),this.storeRef(e)):this.storeBit(0),this}storeSlice(e){let o=e.clone();for(o.remainingBits>0&&this.storeBits(o.loadBits(o.remainingBits));o.remainingRefs>0;)this.storeRef(o.loadRef());return this}storeMaybeSlice(e){return e?(this.storeBit(1),this.storeSlice(e)):this.storeBit(0),this}storeBuilder(e){return this.storeSlice(e.endCell().beginParse())}storeMaybeBuilder(e){return e?(this.storeBit(1),this.storeBuilder(e)):this.storeBit(0),this}storeWritable(e){return typeof e=="object"?e.writeTo(this):e(this),this}storeMaybeWritable(e){return e?(this.storeBit(1),this.storeWritable(e)):this.storeBit(0),this}store(e){return this.storeWritable(e),this}storeStringTail(e){return(0,d.writeString)(e,this),this}storeMaybeStringTail(e){return e!=null?(this.storeBit(1),(0,d.writeString)(e,this)):this.storeBit(0),this}storeStringRefTail(e){return this.storeRef(l().storeStringTail(e)),this}storeMaybeStringRefTail(e){return e!=null?(this.storeBit(1),this.storeStringRefTail(e)):this.storeBit(0),this}storeDict(e,o,i){return e?e.store(this,o,i):this.storeBit(0),this}storeDictDirect(e,o,i){return e.storeDirect(this,o,i),this}endCell(e){return new c.Cell({bits:this._bits.build(),refs:this._refs,exotic:e==null?void 0:e.exotic})}asCell(){return this.endCell()}asSlice(){return this.endCell().beginParse()}};return Gr.Builder=t,Gr}var ln={},Er={},ms;function ys(){if(ms)return Er;ms=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.SimpleLibraryValue=Er.storeSimpleLibrary=Er.loadSimpleLibrary=void 0;function n(d){return{public:d.loadBit(),root:d.loadRef()}}Er.loadSimpleLibrary=n;function c(d){return l=>{l.storeBit(d.public),l.storeRef(d.root)}}return Er.storeSimpleLibrary=c,Er.SimpleLibraryValue={serialize(d,l){c(d)(l)},parse(d){return n(d)}},Er}var un={},bs;function vs(){if(bs)return un;bs=1,Object.defineProperty(un,"__esModule",{value:!0}),un.storeTickTock=un.loadTickTock=void 0;function n(d){return{tick:d.loadBit(),tock:d.loadBit()}}un.loadTickTock=n;function c(d){return l=>{l.storeBit(d.tick),l.storeBit(d.tock)}}return un.storeTickTock=c,un}var ws;function Aa(){if(ws)return ln;ws=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.storeStateInit=ln.loadStateInit=void 0;const n=qr(),c=ys(),d=vs();function l(r){let e;r.loadBit()&&(e=r.loadUint(5));let o;r.loadBit()&&(o=(0,d.loadTickTock)(r));let i=r.loadMaybeRef(),f=r.loadMaybeRef(),s=r.loadDict(n.Dictionary.Keys.BigUint(256),c.SimpleLibraryValue);return s.size===0&&(s=void 0),{splitDepth:e,special:o,code:i,data:f,libraries:s}}ln.loadStateInit=l;function t(r){return e=>{r.splitDepth!==null&&r.splitDepth!==void 0?(e.storeBit(!0),e.storeUint(r.splitDepth,5)):e.storeBit(!1),r.special!==null&&r.special!==void 0?(e.storeBit(!0),e.store((0,d.storeTickTock)(r.special))):e.storeBit(!1),e.storeMaybeRef(r.code),e.storeMaybeRef(r.data),e.storeDict(r.libraries)}}return ln.storeStateInit=t,ln}var _s;function Kc(){if(_s)return Jn;_s=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.contractAddress=void 0;const n=Tt(),c=Aa(),d=jr();function l(t,r){let e=(0,n.beginCell)().store((0,c.storeStateInit)(r)).endCell().hash();return new d.Address(t,e)}return Jn.contractAddress=l,Jn}var cn={},xs;function $c(){if(xs)return cn;xs=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.parseTuple=cn.serializeTuple=void 0;const n=Tt(),c=BigInt("-9223372036854775808"),d=BigInt("9223372036854775807");function l(i,f){if(i.type==="null")f.storeUint(0,8);else if(i.type==="int")i.value<=d&&i.value>=c?(f.storeUint(1,8),f.storeInt(i.value,64)):(f.storeUint(256,15),f.storeInt(i.value,257));else if(i.type==="nan")f.storeInt(767,16);else if(i.type==="cell")f.storeUint(3,8),f.storeRef(i.cell);else if(i.type==="slice")f.storeUint(4,8),f.storeUint(0,10),f.storeUint(i.cell.bits.length,10),f.storeUint(0,3),f.storeUint(i.cell.refs.length,3),f.storeRef(i.cell);else if(i.type==="builder")f.storeUint(5,8),f.storeRef(i.cell);else if(i.type==="tuple"){let s=null,y=null;for(let B=0;B<i.items.length;B++){let k=s;s=y,y=k,B>1&&(s=(0,n.beginCell)().storeRef(y).storeRef(s).endCell());let j=(0,n.beginCell)();l(i.items[B],j),y=j.endCell()}f.storeUint(7,8),f.storeUint(i.items.length,16),s&&f.storeRef(s),y&&f.storeRef(y)}else throw Error("Invalid value")}function t(i){let f=i.loadUint(8);if(f===0)return{type:"null"};if(f===1)return{type:"int",value:i.loadIntBig(64)};if(f===2)return i.loadUint(7)===0?{type:"int",value:i.loadIntBig(257)}:(i.loadBit(),{type:"nan"});if(f===3)return{type:"cell",cell:i.loadRef()};if(f===4){let s=i.loadUint(10),y=i.loadUint(10),B=i.loadUint(3),k=i.loadUint(3),j=i.loadRef().beginParse();j.skip(s);let P=j.loadBits(y-s),R=(0,n.beginCell)().storeBits(P);if(B<k){for(let z=0;z<B;z++)j.loadRef();for(let z=0;z<k-B;z++)R.storeRef(j.loadRef())}return{type:"slice",cell:R.endCell()}}else{if(f===5)return{type:"builder",cell:i.loadRef()};if(f===7){let s=i.loadUint(16),y=[];if(s>1){let B=i.loadRef().beginParse(),k=i.loadRef().beginParse();y.unshift(t(k));for(let j=0;j<s-2;j++){let P=B;B=P.loadRef().beginParse(),k=P.loadRef().beginParse(),y.unshift(t(k))}y.unshift(t(B))}else s===1&&y.push(t(i.loadRef().beginParse()));return{type:"tuple",items:y}}else throw Error("Unsupported stack item")}}function r(i,f){if(i.length>0){let s=(0,n.beginCell)();r(i.slice(0,i.length-1),s),f.storeRef(s.endCell()),l(i[i.length-1],f)}}function e(i){let f=(0,n.beginCell)();f.storeUint(i.length,24);let s=[...i];return r(s,f),f.endCell()}cn.serializeTuple=e;function o(i){let f=[],s=i.beginParse(),y=s.loadUint(24);for(let B=0;B<y;B++){let k=s.loadRef();f.unshift(t(s)),s=k.beginParse()}return f}return cn.parseTuple=o,cn}var Pa={},ks;function Yc(){if(ks)return Pa;ks=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.TupleReader=void 0;class n{constructor(d){this.items=[...d]}get remaining(){return this.items.length}peek(){if(this.items.length===0)throw Error("EOF");return this.items[0]}pop(){if(this.items.length===0)throw Error("EOF");let d=this.items[0];return this.items.splice(0,1),d}skip(d=1){for(let l=0;l<d;l++)this.pop();return this}readBigNumber(){let d=this.pop();if(d.type!=="int")throw Error("Not a number");return d.value}readBigNumberOpt(){let d=this.pop();if(d.type==="null")return null;if(d.type!=="int")throw Error("Not a number");return d.value}readNumber(){return Number(this.readBigNumber())}readNumberOpt(){let d=this.readBigNumberOpt();return d!==null?Number(d):null}readBoolean(){return this.readNumber()!==0}readBooleanOpt(){let d=this.readNumberOpt();return d!==null?d!==0:null}readAddress(){let d=this.readCell().beginParse().loadAddress();if(d!==null)return d;throw Error("Not an address")}readAddressOpt(){let d=this.readCellOpt();return d!==null?d.beginParse().loadMaybeAddress():null}readCell(){let d=this.pop();if(d.type!=="cell"&&d.type!=="slice"&&d.type!=="builder")throw Error("Not a cell: "+d.type);return d.cell}readCellOpt(){let d=this.pop();if(d.type==="null")return null;if(d.type!=="cell"&&d.type!=="slice"&&d.type!=="builder")throw Error("Not a cell");return d.cell}readTuple(){let d=this.pop();if(d.type!=="tuple")throw Error("Not a tuple");return new n(d.items)}readTupleOpt(){let d=this.pop();if(d.type==="null")return null;if(d.type!=="tuple")throw Error("Not a tuple");return new n(d.items)}static readLispList(d){const l=[];let t=d;for(;t!==null;){var r=t.pop();if(t.items.length===0||t.items[0].type!=="tuple"&&t.items[0].type!=="null")throw Error("Lisp list consists only from (any, tuple) elements and ends with null");t=t.readTupleOpt(),l.push(r)}return l}readLispListDirect(){return this.items.length===1&&this.items[0].type==="null"?[]:n.readLispList(this)}readLispList(){return n.readLispList(this.readTupleOpt())}readBuffer(){let d=this.readCell().beginParse();if(d.remainingRefs!==0||d.remainingBits%8!==0)throw Error("Not a buffer");return d.loadBuffer(d.remainingBits/8)}readBufferOpt(){let d=this.readCellOpt();if(d!==null){let l=d.beginParse();if(l.remainingRefs!==0||l.remainingBits%8!==0)throw Error("Not a buffer");return l.loadBuffer(l.remainingBits/8)}else return null}readString(){return this.readCell().beginParse().loadStringTail()}readStringOpt(){let d=this.readCellOpt();return d!==null?d.beginParse().loadStringTail():null}}return Pa.TupleReader=n,Pa}var Ea={},Cs;function Gc(){if(Cs)return Ea;Cs=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.TupleBuilder=void 0;const n=Tt(),c=sn(),d=Ci();class l{constructor(){this._tuple=[]}writeNumber(r){r==null?this._tuple.push({type:"null"}):this._tuple.push({type:"int",value:BigInt(r)})}writeBoolean(r){r==null?this._tuple.push({type:"null"}):this._tuple.push({type:"int",value:r?-1n:0n})}writeBuffer(r){r==null?this._tuple.push({type:"null"}):this._tuple.push({type:"slice",cell:(0,n.beginCell)().storeBuffer(r).endCell()})}writeString(r){r==null?this._tuple.push({type:"null"}):this._tuple.push({type:"slice",cell:(0,n.beginCell)().storeStringTail(r).endCell()})}writeCell(r){r==null?this._tuple.push({type:"null"}):r instanceof c.Cell?this._tuple.push({type:"cell",cell:r}):r instanceof d.Slice&&this._tuple.push({type:"cell",cell:r.asCell()})}writeSlice(r){r==null?this._tuple.push({type:"null"}):r instanceof c.Cell?this._tuple.push({type:"slice",cell:r}):r instanceof d.Slice&&this._tuple.push({type:"slice",cell:r.asCell()})}writeBuilder(r){r==null?this._tuple.push({type:"null"}):r instanceof c.Cell?this._tuple.push({type:"builder",cell:r}):r instanceof d.Slice&&this._tuple.push({type:"builder",cell:r.asCell()})}writeTuple(r){r==null?this._tuple.push({type:"null"}):this._tuple.push({type:"tuple",items:r})}writeAddress(r){r==null?this._tuple.push({type:"null"}):this._tuple.push({type:"slice",cell:(0,n.beginCell)().storeAddress(r).endCell()})}build(){return[...this._tuple]}}return Ea.TupleBuilder=l,Ea}var Ri={},Ir={},dn={},Ss;function Bs(){if(Ss)return dn;Ss=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.fromNano=dn.toNano=void 0;function n(d){if(typeof d=="bigint")return d*1000000000n;{if(typeof d=="number"){if(!Number.isFinite(d))throw Error("Invalid number");if(Math.log10(d)<=6)d=d.toLocaleString("en",{minimumFractionDigits:9,useGrouping:!1});else if(d-Math.trunc(d)===0)d=d.toLocaleString("en",{maximumFractionDigits:0,useGrouping:!1});else throw Error("Not enough precision for a number value. Use string value instead")}let l=!1;for(;d.startsWith("-");)l=!l,d=d.slice(1);if(d===".")throw Error("Invalid number");let t=d.split(".");if(t.length>2)throw Error("Invalid number");let r=t[0],e=t[1];if(r||(r="0"),e||(e="0"),e.length>9)throw Error("Invalid number");for(;e.length<9;)e+="0";let o=BigInt(r)*1000000000n+BigInt(e);return l&&(o=-o),o}}dn.toNano=n;function c(d){let l=BigInt(d),t=!1;l<0&&(t=!0,l=-l);let e=(l%1000000000n).toString();for(;e.length<9;)e="0"+e;e=e.match(/^([0-9]*[1-9]|0)(0*)/)[1];let f=`${(l/1000000000n).toString()}${e==="0"?"":`.${e}`}`;return t&&(f="-"+f),f}return dn.fromNano=c,dn}var ir={},As;function Ps(){if(As)return ir;As=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.packExtraCurrencyCell=ir.packExtraCurrencyDict=ir.storeExtraCurrency=ir.loadMaybeExtraCurrency=ir.loadExtraCurrency=void 0;const n=Tt(),c=qr();function d(o){let i=o instanceof c.Dictionary?o:c.Dictionary.loadDirect(c.Dictionary.Keys.Uint(32),c.Dictionary.Values.BigVarUint(5),o),f={};for(let[s,y]of i)f[s]=y;return f}ir.loadExtraCurrency=d;function l(o){const i=o.loadMaybeRef();return i===null?i:d(i)}ir.loadMaybeExtraCurrency=l;function t(o){return i=>{i.storeDict(r(o))}}ir.storeExtraCurrency=t;function r(o){const i=c.Dictionary.empty(c.Dictionary.Keys.Uint(32),c.Dictionary.Values.BigVarUint(5));return Object.entries(o).map(([f,s])=>i.set(Number(f),s)),i}ir.packExtraCurrencyDict=r;function e(o){return(0,n.beginCell)().storeDictDirect(r(o)).endCell()}return ir.packExtraCurrencyCell=e,ir}var Es;function Jc(){if(Es)return Ir;Es=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.comment=Ir.external=Ir.internal=void 0;const n=jr(),c=sn(),d=Tt(),l=Bs(),t=Ps();function r(i){let f=!0;i.bounce!==null&&i.bounce!==void 0&&(f=i.bounce);let s;if(typeof i.to=="string")s=n.Address.parse(i.to);else if(n.Address.isAddress(i.to))s=i.to;else throw new Error(`Invalid address ${i.to}`);let y;typeof i.value=="string"?y=(0,l.toNano)(i.value):y=i.value;let B;i.extracurrency&&(B=(0,t.packExtraCurrencyDict)(i.extracurrency));let k=c.Cell.EMPTY;return typeof i.body=="string"?k=(0,d.beginCell)().storeUint(0,32).storeStringTail(i.body).endCell():i.body&&(k=i.body),{info:{type:"internal",dest:s,value:{coins:y,other:B},bounce:f,ihrDisabled:!0,bounced:!1,ihrFee:0n,forwardFee:0n,createdAt:0,createdLt:0n},init:i.init??void 0,body:k}}Ir.internal=r;function e(i){let f;if(typeof i.to=="string")f=n.Address.parse(i.to);else if(n.Address.isAddress(i.to))f=i.to;else throw new Error(`Invalid address ${i.to}`);return{info:{type:"external-in",dest:f,importFee:0n},init:i.init??void 0,body:i.body||c.Cell.EMPTY}}Ir.external=e;function o(i){return(0,d.beginCell)().storeUint(0,32).storeStringTail(i).endCell()}return Ir.comment=o,Ir}var fn={},hn={},pn={},Is;function Ts(){if(Is)return pn;Is=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.storeAccountState=pn.loadAccountState=void 0;const n=Aa();function c(l){return l.loadBit()?{type:"active",state:(0,n.loadStateInit)(l)}:l.loadBit()?{type:"frozen",stateHash:l.loadUintBig(256)}:{type:"uninit"}}pn.loadAccountState=c;function d(l){return t=>{l.type==="active"?(t.storeBit(!0),t.store((0,n.storeStateInit)(l.state))):l.type==="frozen"?(t.storeBit(!1),t.storeBit(!0),t.storeUint(l.stateHash,256)):l.type==="uninit"&&(t.storeBit(!1),t.storeBit(!1))}}return pn.storeAccountState=d,pn}var gn={},Ms;function Tr(){if(Ms)return gn;Ms=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.storeCurrencyCollection=gn.loadCurrencyCollection=void 0;const n=qr();function c(l){const t=l.loadCoins(),r=l.loadDict(n.Dictionary.Keys.Uint(32),n.Dictionary.Values.BigVarUint(5));return r.size===0?{coins:t}:{other:r,coins:t}}gn.loadCurrencyCollection=c;function d(l){return t=>{t.storeCoins(l.coins),l.other?t.storeDict(l.other):t.storeBit(0)}}return gn.storeCurrencyCollection=d,gn}var Rs;function Us(){if(Rs)return hn;Rs=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.storeAccountStorage=hn.loadAccountStorage=void 0;const n=Ts(),c=Tr();function d(t){return{lastTransLt:t.loadUintBig(64),balance:(0,c.loadCurrencyCollection)(t),state:(0,n.loadAccountState)(t)}}hn.loadAccountStorage=d;function l(t){return r=>{r.storeUint(t.lastTransLt,64),r.store((0,c.storeCurrencyCollection)(t.balance)),r.store((0,n.storeAccountState)(t.state))}}return hn.storeAccountStorage=l,hn}var mn={},yn={},Os;function zs(){if(Os)return yn;Os=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.storeStorageUsed=yn.loadStorageUsed=void 0;function n(d){return{cells:d.loadVarUintBig(3),bits:d.loadVarUintBig(3),publicCells:d.loadVarUintBig(3)}}yn.loadStorageUsed=n;function c(d){return l=>{l.storeVarUint(d.cells,3),l.storeVarUint(d.bits,3),l.storeVarUint(d.publicCells,3)}}return yn.storeStorageUsed=c,yn}var js;function Ns(){if(js)return mn;js=1,Object.defineProperty(mn,"__esModule",{value:!0}),mn.storeStorageInfo=mn.loadStorageInfo=void 0;const n=zs();function c(l){return{used:(0,n.loadStorageUsed)(l),lastPaid:l.loadUint(32),duePayment:l.loadMaybeCoins()}}mn.loadStorageInfo=c;function d(l){return t=>{t.store((0,n.storeStorageUsed)(l.used)),t.storeUint(l.lastPaid,32),t.storeMaybeCoins(l.duePayment)}}return mn.storeStorageInfo=d,mn}var Ds;function qs(){if(Ds)return fn;Ds=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.storeAccount=fn.loadAccount=void 0;const n=Us(),c=Ns();function d(t){return{addr:t.loadAddress(),storageStats:(0,c.loadStorageInfo)(t),storage:(0,n.loadAccountStorage)(t)}}fn.loadAccount=d;function l(t){return r=>{r.storeAddress(t.addr),r.store((0,c.storeStorageInfo)(t.storageStats)),r.store((0,n.storeAccountStorage)(t.storage))}}return fn.storeAccount=l,fn}var bn={},Ls;function Vs(){if(Ls)return bn;Ls=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.storeAccountStatus=bn.loadAccountStatus=void 0;function n(d){const l=d.loadUint(2);if(l===0)return"uninitialized";if(l===1)return"frozen";if(l===2)return"active";if(l===3)return"non-existing";throw Error("Invalid data")}bn.loadAccountStatus=n;function c(d){return l=>{if(d==="uninitialized")l.storeUint(0,2);else if(d==="frozen")l.storeUint(1,2);else if(d==="active")l.storeUint(2,2);else if(d==="non-existing")l.storeUint(3,2);else throw Error("Invalid data");return l}}return bn.storeAccountStatus=c,bn}var vn={},Fs;function Ui(){if(Fs)return vn;Fs=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.storeAccountStatusChange=vn.loadAccountStatusChange=void 0;function n(d){return d.loadBit()?d.loadBit()?"deleted":"frozen":"unchanged"}vn.loadAccountStatusChange=n;function c(d){return l=>{if(d=="unchanged")l.storeBit(0);else if(d==="frozen")l.storeBit(1),l.storeBit(0);else if(d==="deleted")l.storeBit(1),l.storeBit(1);else throw Error("Invalid account status change")}}return vn.storeAccountStatusChange=c,vn}var hr={},wn={},_n={},Zs;function Ws(){if(Zs)return _n;Zs=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.storeCommonMessageInfoRelaxed=_n.loadCommonMessageInfoRelaxed=void 0;const n=Tr();function c(l){if(!l.loadBit()){const i=l.loadBit(),f=l.loadBit(),s=l.loadBit(),y=l.loadMaybeAddress(),B=l.loadAddress(),k=(0,n.loadCurrencyCollection)(l),j=l.loadCoins(),P=l.loadCoins(),R=l.loadUintBig(64),z=l.loadUint(32);return{type:"internal",ihrDisabled:i,bounce:f,bounced:s,src:y,dest:B,value:k,ihrFee:j,forwardFee:P,createdLt:R,createdAt:z}}if(!l.loadBit())throw Error("External In message is not possible for CommonMessageInfoRelaxed");const t=l.loadMaybeAddress(),r=l.loadMaybeExternalAddress(),e=l.loadUintBig(64),o=l.loadUint(32);return{type:"external-out",src:t,dest:r,createdLt:e,createdAt:o}}_n.loadCommonMessageInfoRelaxed=c;function d(l){return t=>{if(l.type==="internal")t.storeBit(0),t.storeBit(l.ihrDisabled),t.storeBit(l.bounce),t.storeBit(l.bounced),t.storeAddress(l.src),t.storeAddress(l.dest),t.store((0,n.storeCurrencyCollection)(l.value)),t.storeCoins(l.ihrFee),t.storeCoins(l.forwardFee),t.storeUint(l.createdLt,64),t.storeUint(l.createdAt,32);else if(l.type==="external-out")t.storeBit(1),t.storeBit(1),t.storeAddress(l.src),t.storeAddress(l.dest),t.storeUint(l.createdLt,64),t.storeUint(l.createdAt,32);else throw new Error("Unknown CommonMessageInfo type")}}return _n.storeCommonMessageInfoRelaxed=d,_n}var Hs;function Ks(){if(Hs)return wn;Hs=1,Object.defineProperty(wn,"__esModule",{value:!0}),wn.storeMessageRelaxed=wn.loadMessageRelaxed=void 0;const n=Tt(),c=Ws(),d=Aa();function l(r){const e=(0,c.loadCommonMessageInfoRelaxed)(r);let o=null;r.loadBit()&&(r.loadBit()?o=(0,d.loadStateInit)(r.loadRef().beginParse()):o=(0,d.loadStateInit)(r));const i=r.loadBit()?r.loadRef():r.asCell();return{info:e,init:o,body:i}}wn.loadMessageRelaxed=l;function t(r,e){return o=>{if(o.store((0,c.storeCommonMessageInfoRelaxed)(r.info)),r.init){o.storeBit(!0);let f=(0,n.beginCell)().store((0,d.storeStateInit)(r.init)),s=!1;e&&e.forceRef?s=!0:o.availableBits-2>=f.bits?s=!1:s=!0,s?(o.storeBit(!0),o.storeRef(f)):(o.storeBit(!1),o.storeBuilder(f))}else o.storeBit(!1);let i=!1;e&&e.forceRef?i=!0:o.availableBits-1>=r.body.bits.length&&o.refs+r.body.refs.length<=4&&!r.body.isExotic?i=!1:i=!0,i?(o.storeBit(!0),o.storeRef(r.body)):(o.storeBit(!1),o.storeBuilder(r.body.asBuilder()))}}return wn.storeMessageRelaxed=t,wn}var xn={},$s;function Ys(){if($s)return xn;$s=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.storeLibRef=xn.loadLibRef=void 0;function n(d){return d.loadUint(1)===0?{type:"hash",libHash:d.loadBuffer(32)}:{type:"ref",library:d.loadRef()}}xn.loadLibRef=n;function c(d){return l=>{d.type==="hash"?(l.storeUint(0,1),l.storeBuffer(d.libHash)):(l.storeUint(1,1),l.storeRef(d.library))}}return xn.storeLibRef=c,xn}var Gs;function Qc(){if(Gs)return hr;Gs=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.loadOutList=hr.storeOutList=hr.loadOutAction=hr.storeOutAction=void 0;const n=Ks(),c=Tt(),d=Tr(),l=Ys();function t(R){switch(R.type){case"sendMsg":return e(R);case"setCode":return i(R);case"reserve":return s(R);case"changeLibrary":return B(R);default:throw new Error(`Unknown action type ${R.type}`)}}hr.storeOutAction=t;const r=247711853;function e(R){return z=>{z.storeUint(r,32).storeUint(R.mode,8).storeRef((0,c.beginCell)().store((0,n.storeMessageRelaxed)(R.outMsg)).endCell())}}const o=2907562126;function i(R){return z=>{z.storeUint(o,32).storeRef(R.newCode)}}const f=921090057;function s(R){return z=>{z.storeUint(f,32).storeUint(R.mode,8).store((0,d.storeCurrencyCollection)(R.currency))}}const y=653925844;function B(R){return z=>{z.storeUint(y,32).storeUint(R.mode,7).store((0,l.storeLibRef)(R.libRef))}}function k(R){const z=R.loadUint(32);if(z===r){const V=R.loadUint(8),F=(0,n.loadMessageRelaxed)(R.loadRef().beginParse());return{type:"sendMsg",mode:V,outMsg:F}}if(z===o)return{type:"setCode",newCode:R.loadRef()};if(z===f){const V=R.loadUint(8),F=(0,d.loadCurrencyCollection)(R);return{type:"reserve",mode:V,currency:F}}if(z===y){const V=R.loadUint(7),F=(0,l.loadLibRef)(R);return{type:"changeLibrary",mode:V,libRef:F}}throw new Error(`Unknown out action tag 0x${z.toString(16)}`)}hr.loadOutAction=k;function j(R){const z=R.reduce((V,F)=>(0,c.beginCell)().storeRef(V).store(t(F)).endCell(),(0,c.beginCell)().endCell());return V=>{V.storeSlice(z.beginParse())}}hr.storeOutList=j;function P(R){const z=[];for(;R.remainingRefs;){const V=R.loadRef();z.push(k(R)),R=V.beginParse()}return z.reverse()}return hr.loadOutList=P,hr}var kn={},Js;function Qs(){if(Js)return kn;Js=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.storeCommonMessageInfo=kn.loadCommonMessageInfo=void 0;const n=Tr();function c(l){if(!l.loadBit()){const i=l.loadBit(),f=l.loadBit(),s=l.loadBit(),y=l.loadAddress(),B=l.loadAddress(),k=(0,n.loadCurrencyCollection)(l),j=l.loadCoins(),P=l.loadCoins(),R=l.loadUintBig(64),z=l.loadUint(32);return{type:"internal",ihrDisabled:i,bounce:f,bounced:s,src:y,dest:B,value:k,ihrFee:j,forwardFee:P,createdLt:R,createdAt:z}}if(!l.loadBit()){const i=l.loadMaybeExternalAddress(),f=l.loadAddress(),s=l.loadCoins();return{type:"external-in",src:i,dest:f,importFee:s}}const t=l.loadAddress(),r=l.loadMaybeExternalAddress(),e=l.loadUintBig(64),o=l.loadUint(32);return{type:"external-out",src:t,dest:r,createdLt:e,createdAt:o}}kn.loadCommonMessageInfo=c;function d(l){return t=>{if(l.type==="internal")t.storeBit(0),t.storeBit(l.ihrDisabled),t.storeBit(l.bounce),t.storeBit(l.bounced),t.storeAddress(l.src),t.storeAddress(l.dest),t.store((0,n.storeCurrencyCollection)(l.value)),t.storeCoins(l.ihrFee),t.storeCoins(l.forwardFee),t.storeUint(l.createdLt,64),t.storeUint(l.createdAt,32);else if(l.type==="external-in")t.storeBit(1),t.storeBit(0),t.storeAddress(l.src),t.storeAddress(l.dest),t.storeCoins(l.importFee);else if(l.type==="external-out")t.storeBit(1),t.storeBit(1),t.storeAddress(l.src),t.storeAddress(l.dest),t.storeUint(l.createdLt,64),t.storeUint(l.createdAt,32);else throw new Error("Unknown CommonMessageInfo type")}}return kn.storeCommonMessageInfo=d,kn}var Cn={},Xs;function el(){if(Xs)return Cn;Xs=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.storeComputeSkipReason=Cn.loadComputeSkipReason=void 0;function n(d){let l=d.loadUint(2);if(l===0)return"no-state";if(l===1)return"bad-state";if(l===2)return"no-gas";throw new Error(`Unknown ComputeSkipReason: ${l}`)}Cn.loadComputeSkipReason=n;function c(d){return l=>{if(d==="no-state")l.storeUint(0,2);else if(d==="bad-state")l.storeUint(1,2);else if(d==="no-gas")l.storeUint(2,2);else throw new Error(`Unknown ComputeSkipReason: ${d}`)}}return Cn.storeComputeSkipReason=c,Cn}var Sn={},tl;function rl(){if(tl)return Sn;tl=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.storeDepthBalanceInfo=Sn.loadDepthBalanceInfo=void 0;const n=Tr();function c(l){return{splitDepth:l.loadUint(5),balance:(0,n.loadCurrencyCollection)(l)}}Sn.loadDepthBalanceInfo=c;function d(l){return t=>{t.storeUint(l.splitDepth,5),t.store((0,n.storeCurrencyCollection)(l.balance))}}return Sn.storeDepthBalanceInfo=d,Sn}var Bn={},nl;function al(){if(nl)return Bn;nl=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.storeHashUpdate=Bn.loadHashUpdate=void 0;function n(d){if(d.loadUint(8)!==114)throw Error("Invalid data");const l=d.loadBuffer(32),t=d.loadBuffer(32);return{oldHash:l,newHash:t}}Bn.loadHashUpdate=n;function c(d){return l=>{l.storeUint(114,8),l.storeBuffer(d.oldHash),l.storeBuffer(d.newHash)}}return Bn.storeHashUpdate=c,Bn}var Ia={},il;function ol(){if(il)return Ia;il=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.loadMasterchainStateExtra=void 0;const n=qr(),c=Tr();function d(l){if(l.loadUint(16)!==52262)throw Error("Invalid data");l.loadBit()&&l.loadRef();let t=l.loadUintBig(256),r=n.Dictionary.load(n.Dictionary.Keys.Int(32),n.Dictionary.Values.Cell(),l);const e=(0,c.loadCurrencyCollection)(l);return{config:r,configAddress:t,globalBalance:e}}return Ia.loadMasterchainStateExtra=d,Ia}var Mr={},sl;function ll(){if(sl)return Mr;sl=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.MessageValue=Mr.storeMessage=Mr.loadMessage=void 0;const n=Tt(),c=Qs(),d=Aa();function l(r){const e=(0,c.loadCommonMessageInfo)(r);let o=null;r.loadBit()&&(r.loadBit()?o=(0,d.loadStateInit)(r.loadRef().beginParse()):o=(0,d.loadStateInit)(r));const i=r.loadBit()?r.loadRef():r.asCell();return{info:e,init:o,body:i}}Mr.loadMessage=l;function t(r,e){return o=>{if(o.store((0,c.storeCommonMessageInfo)(r.info)),r.init){o.storeBit(!0);let f=(0,n.beginCell)().store((0,d.storeStateInit)(r.init)),s=!1;e&&e.forceRef?s=!0:s=o.availableBits-2<f.bits+r.body.bits.length,s?(o.storeBit(!0),o.storeRef(f)):(o.storeBit(!1),o.storeBuilder(f))}else o.storeBit(!1);let i=!1;e&&e.forceRef?i=!0:i=o.availableBits-1<r.body.bits.length||o.refs+r.body.refs.length>4,i?(o.storeBit(!0),o.storeRef(r.body)):(o.storeBit(!1),o.storeBuilder(r.body.asBuilder()))}}return Mr.storeMessage=t,Mr.MessageValue={serialize(r,e){e.storeRef((0,n.beginCell)().store(t(r)))},parse(r){return l(r.loadRef().beginParse())}},Mr}var Ta={},ul;function Xc(){if(ul)return Ta;ul=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.SendMode=void 0;var n;return function(c){c[c.CARRY_ALL_REMAINING_BALANCE=128]="CARRY_ALL_REMAINING_BALANCE",c[c.CARRY_ALL_REMAINING_INCOMING_VALUE=64]="CARRY_ALL_REMAINING_INCOMING_VALUE",c[c.DESTROY_ACCOUNT_IF_ZERO=32]="DESTROY_ACCOUNT_IF_ZERO",c[c.PAY_GAS_SEPARATELY=1]="PAY_GAS_SEPARATELY",c[c.IGNORE_ERRORS=2]="IGNORE_ERRORS",c[c.NONE=0]="NONE"}(n||(Ta.SendMode=n={})),Ta}var Ma={},cl;function ed(){if(cl)return Ma;cl=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.ReserveMode=void 0;var n;return function(c){c[c.THIS_AMOUNT=0]="THIS_AMOUNT",c[c.LEAVE_THIS_AMOUNT=1]="LEAVE_THIS_AMOUNT",c[c.AT_MOST_THIS_AMOUNT=2]="AT_MOST_THIS_AMOUNT",c[c.LEAVE_MAX_THIS_AMOUNT=3]="LEAVE_MAX_THIS_AMOUNT",c[c.BEFORE_BALANCE_PLUS_THIS_AMOUNT=4]="BEFORE_BALANCE_PLUS_THIS_AMOUNT",c[c.LEAVE_BBALANCE_PLUS_THIS_AMOUNT=5]="LEAVE_BBALANCE_PLUS_THIS_AMOUNT",c[c.BEFORE_BALANCE_MINUS_THIS_AMOUNT=12]="BEFORE_BALANCE_MINUS_THIS_AMOUNT",c[c.LEAVE_BEFORE_BALANCE_MINUS_THIS_AMOUNT=13]="LEAVE_BEFORE_BALANCE_MINUS_THIS_AMOUNT"}(n||(Ma.ReserveMode=n={})),Ma}var An={},dl;function fl(){if(dl)return An;dl=1,Object.defineProperty(An,"__esModule",{value:!0}),An.storeShardAccount=An.loadShardAccount=void 0;const n=Tt(),c=qs();function d(t){let r=t.loadRef(),e;if(!r.isExotic){let o=r.beginParse();o.loadBit()&&(e=(0,c.loadAccount)(o))}return{account:e,lastTransactionHash:t.loadUintBig(256),lastTransactionLt:t.loadUintBig(64)}}An.loadShardAccount=d;function l(t){return r=>{t.account?r.storeRef((0,n.beginCell)().storeBit(!0).store((0,c.storeAccount)(t.account))):r.storeRef((0,n.beginCell)().storeBit(!1)),r.storeUint(t.lastTransactionHash,256),r.storeUint(t.lastTransactionLt,64)}}return An.storeShardAccount=l,An}var Oi={},hl;function pl(){return hl||(hl=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.storeShardAccounts=n.loadShardAccounts=n.ShardAccountRefValue=void 0;const c=qr(),d=rl(),l=fl();n.ShardAccountRefValue={parse:e=>{let o=(0,d.loadDepthBalanceInfo)(e),i=(0,l.loadShardAccount)(e);return{depthBalanceInfo:o,shardAccount:i}},serialize(e,o){o.store((0,d.storeDepthBalanceInfo)(e.depthBalanceInfo)),o.store((0,l.storeShardAccount)(e.shardAccount))}};function t(e){return c.Dictionary.load(c.Dictionary.Keys.BigUint(256),n.ShardAccountRefValue,e)}n.loadShardAccounts=t;function r(e){return o=>{o.storeDict(e)}}n.storeShardAccounts=r}(Oi)),Oi}var Pn={},gl;function ml(){if(gl)return Pn;gl=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.storeShardIdent=Pn.loadShardIdent=void 0;function n(d){if(d.loadUint(2)!==0)throw Error("Invalid data");return{shardPrefixBits:d.loadUint(6),workchainId:d.loadInt(32),shardPrefix:d.loadUintBig(64)}}Pn.loadShardIdent=n;function c(d){return l=>{l.storeUint(0,2),l.storeUint(d.shardPrefixBits,6),l.storeInt(d.workchainId,32),l.storeUint(d.shardPrefix,64)}}return Pn.storeShardIdent=c,Pn}var Ra={},yl;function td(){if(yl)return Ra;yl=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.loadShardStateUnsplit=void 0;const n=ol(),c=pl(),d=ml();function l(t){if(t.loadUint(32)!==2418257890)throw Error("Invalid data");let r=t.loadInt(32),e=(0,d.loadShardIdent)(t),o=t.loadUint(32),i=t.loadUint(32),f=t.loadUint(32),s=t.loadUintBig(64),y=t.loadUint(32);t.loadRef();let B=t.loadBit(),k=t.loadRef(),j;k.isExotic||(j=(0,c.loadShardAccounts)(k.beginParse())),t.loadRef();let P=t.loadBit(),R=null;if(P){let z=t.loadRef();z.isExotic||(R=(0,n.loadMasterchainStateExtra)(z.beginParse()))}return{globalId:r,shardId:e,seqno:o,vertSeqNo:i,genUtime:f,genLt:s,minRefMcSeqno:y,beforeSplit:B,accounts:j,extras:R}}return Ra.loadShardStateUnsplit=l,Ra}var En={},bl;function vl(){if(bl)return En;bl=1,Object.defineProperty(En,"__esModule",{value:!0}),En.storeSplitMergeInfo=En.loadSplitMergeInfo=void 0;function n(d){let l=d.loadUint(6),t=d.loadUint(6),r=d.loadUintBig(256),e=d.loadUintBig(256);return{currentShardPrefixLength:l,accountSplitDepth:t,thisAddress:r,siblingAddress:e}}En.loadSplitMergeInfo=n;function c(d){return l=>{l.storeUint(d.currentShardPrefixLength,6),l.storeUint(d.accountSplitDepth,6),l.storeUint(d.thisAddress,256),l.storeUint(d.siblingAddress,256)}}return En.storeSplitMergeInfo=c,En}var In={},wl;function zi(){if(wl)return In;wl=1,Object.defineProperty(In,"__esModule",{value:!0}),In.storeStorageUsedShort=In.loadStorageUsedShort=void 0;function n(d){let l=d.loadVarUintBig(3),t=d.loadVarUintBig(3);return{cells:l,bits:t}}In.loadStorageUsedShort=n;function c(d){return l=>{l.storeVarUint(d.cells,3),l.storeVarUint(d.bits,3)}}return In.storeStorageUsedShort=c,In}var Tn={},Mn={},Rn={},_l;function xl(){if(_l)return Rn;_l=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.storeTransactionActionPhase=Rn.loadTransactionActionPhase=void 0;const n=Ui(),c=zi();function d(t){let r=t.loadBit(),e=t.loadBit(),o=t.loadBit(),i=(0,n.loadAccountStatusChange)(t),f=t.loadBit()?t.loadCoins():void 0,s=t.loadBit()?t.loadCoins():void 0,y=t.loadInt(32),B=t.loadBit()?t.loadInt(32):void 0,k=t.loadUint(16),j=t.loadUint(16),P=t.loadUint(16),R=t.loadUint(16),z=t.loadUintBig(256),V=(0,c.loadStorageUsedShort)(t);return{success:r,valid:e,noFunds:o,statusChange:i,totalFwdFees:f,totalActionFees:s,resultCode:y,resultArg:B,totalActions:k,specActions:j,skippedActions:P,messagesCreated:R,actionListHash:z,totalMessageSize:V}}Rn.loadTransactionActionPhase=d;function l(t){return r=>{r.storeBit(t.success),r.storeBit(t.valid),r.storeBit(t.noFunds),r.store((0,n.storeAccountStatusChange)(t.statusChange)),r.storeMaybeCoins(t.totalFwdFees),r.storeMaybeCoins(t.totalActionFees),r.storeInt(t.resultCode,32),r.storeMaybeInt(t.resultArg,32),r.storeUint(t.totalActions,16),r.storeUint(t.specActions,16),r.storeUint(t.skippedActions,16),r.storeUint(t.messagesCreated,16),r.storeUint(t.actionListHash,256),r.store((0,c.storeStorageUsedShort)(t.totalMessageSize))}}return Rn.storeTransactionActionPhase=l,Rn}var Un={},kl;function Cl(){if(kl)return Un;kl=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.storeTransactionBouncePhase=Un.loadTransactionBouncePhase=void 0;const n=zi();function c(l){if(l.loadBit()){let t=(0,n.loadStorageUsedShort)(l),r=l.loadCoins(),e=l.loadCoins();return{type:"ok",messageSize:t,messageFees:r,forwardFees:e}}if(l.loadBit()){let t=(0,n.loadStorageUsedShort)(l),r=l.loadCoins();return{type:"no-funds",messageSize:t,requiredForwardFees:r}}return{type:"negative-funds"}}Un.loadTransactionBouncePhase=c;function d(l){return t=>{if(l.type==="ok")t.storeBit(!0),t.store((0,n.storeStorageUsedShort)(l.messageSize)),t.storeCoins(l.messageFees),t.storeCoins(l.forwardFees);else if(l.type==="negative-funds")t.storeBit(!1),t.storeBit(!1);else if(l.type==="no-funds")t.storeBit(!1),t.storeBit(!0),t.store((0,n.storeStorageUsedShort)(l.messageSize)),t.storeCoins(l.requiredForwardFees);else throw new Error("Invalid TransactionBouncePhase type")}}return Un.storeTransactionBouncePhase=d,Un}var On={},Sl;function Bl(){if(Sl)return On;Sl=1,Object.defineProperty(On,"__esModule",{value:!0}),On.storeTransactionComputePhase=On.loadTransactionComputePhase=void 0;const n=Tt(),c=el();function d(t){if(!t.loadBit())return{type:"skipped",reason:(0,c.loadComputeSkipReason)(t)};let r=t.loadBit(),e=t.loadBit(),o=t.loadBit(),i=t.loadCoins();const f=t.loadRef().beginParse();let s=f.loadVarUintBig(3),y=f.loadVarUintBig(3),B=f.loadBit()?f.loadVarUintBig(2):void 0,k=f.loadUint(8),j=f.loadInt(32),P=f.loadBit()?f.loadInt(32):void 0,R=f.loadUint(32),z=f.loadUintBig(256),V=f.loadUintBig(256);return{type:"vm",success:r,messageStateUsed:e,accountActivated:o,gasFees:i,gasUsed:s,gasLimit:y,gasCredit:B,mode:k,exitCode:j,exitArg:P,vmSteps:R,vmInitStateHash:z,vmFinalStateHash:V}}On.loadTransactionComputePhase=d;function l(t){return r=>{if(t.type==="skipped"){r.storeBit(0),r.store((0,c.storeComputeSkipReason)(t.reason));return}r.storeBit(1),r.storeBit(t.success),r.storeBit(t.messageStateUsed),r.storeBit(t.accountActivated),r.storeCoins(t.gasFees),r.storeRef((0,n.beginCell)().storeVarUint(t.gasUsed,3).storeVarUint(t.gasLimit,3).store(e=>t.gasCredit!==void 0&&t.gasCredit!==null?e.storeBit(1).storeVarUint(t.gasCredit,2):e.storeBit(0)).storeUint(t.mode,8).storeInt(t.exitCode,32).store(e=>t.exitArg!==void 0&&t.exitArg!==null?e.storeBit(1).storeInt(t.exitArg,32):e.storeBit(0)).storeUint(t.vmSteps,32).storeUint(t.vmInitStateHash,256).storeUint(t.vmFinalStateHash,256).endCell())}}return On.storeTransactionComputePhase=l,On}var zn={},Al;function Pl(){if(Al)return zn;Al=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.storeTransactionCreditPhase=zn.loadTransactionCreditPhase=void 0;const n=Tr();function c(l){const t=l.loadBit()?l.loadCoins():void 0,r=(0,n.loadCurrencyCollection)(l);return{dueFeesColelcted:t,credit:r}}zn.loadTransactionCreditPhase=c;function d(l){return t=>{l.dueFeesColelcted===null||l.dueFeesColelcted===void 0?t.storeBit(!1):(t.storeBit(!0),t.storeCoins(l.dueFeesColelcted)),t.store((0,n.storeCurrencyCollection)(l.credit))}}return zn.storeTransactionCreditPhase=d,zn}var jn={},El;function Il(){if(El)return jn;El=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.storeTransactionsStoragePhase=jn.loadTransactionStoragePhase=void 0;const n=Ui();function c(l){const t=l.loadCoins();let r;l.loadBit()&&(r=l.loadCoins());const e=(0,n.loadAccountStatusChange)(l);return{storageFeesCollected:t,storageFeesDue:r,statusChange:e}}jn.loadTransactionStoragePhase=c;function d(l){return t=>{t.storeCoins(l.storageFeesCollected),l.storageFeesDue===null||l.storageFeesDue===void 0?t.storeBit(!1):(t.storeBit(!0),t.storeCoins(l.storageFeesDue)),t.store((0,n.storeAccountStatusChange)(l.statusChange))}}return jn.storeTransactionsStoragePhase=d,jn}var Tl;function Ml(){if(Tl)return Mn;Tl=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.storeTransactionDescription=Mn.loadTransactionDescription=void 0;const n=Tt(),c=vl(),d=Ul(),l=xl(),t=Cl(),r=Bl(),e=Pl(),o=Il();function i(s){let y=s.loadUint(4);if(y===0){const B=s.loadBit();let k;s.loadBit()&&(k=(0,o.loadTransactionStoragePhase)(s));let j;s.loadBit()&&(j=(0,e.loadTransactionCreditPhase)(s));let P=(0,r.loadTransactionComputePhase)(s),R;s.loadBit()&&(R=(0,l.loadTransactionActionPhase)(s.loadRef().beginParse()));let z=s.loadBit(),V;s.loadBit()&&(V=(0,t.loadTransactionBouncePhase)(s));const F=s.loadBit();return{type:"generic",creditFirst:B,storagePhase:k,creditPhase:j,computePhase:P,actionPhase:R,bouncePhase:V,aborted:z,destroyed:F}}if(y===1)return{type:"storage",storagePhase:(0,o.loadTransactionStoragePhase)(s)};if(y===2||y===3){const B=y===3;let k=(0,o.loadTransactionStoragePhase)(s),j=(0,r.loadTransactionComputePhase)(s),P;s.loadBit()&&(P=(0,l.loadTransactionActionPhase)(s.loadRef().beginParse()));const R=s.loadBit(),z=s.loadBit();return{type:"tick-tock",isTock:B,storagePhase:k,computePhase:j,actionPhase:P,aborted:R,destroyed:z}}if(y===4){let B=(0,c.loadSplitMergeInfo)(s),k;s.loadBit()&&(k=(0,o.loadTransactionStoragePhase)(s));let j=(0,r.loadTransactionComputePhase)(s),P;s.loadBit()&&(P=(0,l.loadTransactionActionPhase)(s.loadRef().beginParse()));const R=s.loadBit(),z=s.loadBit();return{type:"split-prepare",splitInfo:B,storagePhase:k,computePhase:j,actionPhase:P,aborted:R,destroyed:z}}if(y===5){let B=(0,c.loadSplitMergeInfo)(s),k=(0,d.loadTransaction)(s.loadRef().beginParse());const j=s.loadBit();return{type:"split-install",splitInfo:B,prepareTransaction:k,installed:j}}throw Error(`Unsupported transaction description type ${y}`)}Mn.loadTransactionDescription=i;function f(s){return y=>{if(s.type==="generic")y.storeUint(0,4),y.storeBit(s.creditFirst),s.storagePhase?(y.storeBit(!0),y.store((0,o.storeTransactionsStoragePhase)(s.storagePhase))):y.storeBit(!1),s.creditPhase?(y.storeBit(!0),y.store((0,e.storeTransactionCreditPhase)(s.creditPhase))):y.storeBit(!1),y.store((0,r.storeTransactionComputePhase)(s.computePhase)),s.actionPhase?(y.storeBit(!0),y.storeRef((0,n.beginCell)().store((0,l.storeTransactionActionPhase)(s.actionPhase)))):y.storeBit(!1),y.storeBit(s.aborted),s.bouncePhase?(y.storeBit(!0),y.store((0,t.storeTransactionBouncePhase)(s.bouncePhase))):y.storeBit(!1),y.storeBit(s.destroyed);else if(s.type==="storage")y.storeUint(1,4),y.store((0,o.storeTransactionsStoragePhase)(s.storagePhase));else if(s.type==="tick-tock")y.storeUint(s.isTock?3:2,4),y.store((0,o.storeTransactionsStoragePhase)(s.storagePhase)),y.store((0,r.storeTransactionComputePhase)(s.computePhase)),s.actionPhase?(y.storeBit(!0),y.storeRef((0,n.beginCell)().store((0,l.storeTransactionActionPhase)(s.actionPhase)))):y.storeBit(!1),y.storeBit(s.aborted),y.storeBit(s.destroyed);else if(s.type==="split-prepare")y.storeUint(4,4),y.store((0,c.storeSplitMergeInfo)(s.splitInfo)),s.storagePhase?(y.storeBit(!0),y.store((0,o.storeTransactionsStoragePhase)(s.storagePhase))):y.storeBit(!1),y.store((0,r.storeTransactionComputePhase)(s.computePhase)),s.actionPhase?(y.storeBit(!0),y.store((0,l.storeTransactionActionPhase)(s.actionPhase))):y.storeBit(!1),y.storeBit(s.aborted),y.storeBit(s.destroyed);else if(s.type==="split-install")y.storeUint(5,4),y.store((0,c.storeSplitMergeInfo)(s.splitInfo)),y.storeRef((0,n.beginCell)().store((0,d.storeTransaction)(s.prepareTransaction))),y.storeBit(s.installed);else throw Error(`Unsupported transaction description type ${s.type}`)}}return Mn.storeTransactionDescription=f,Mn}var Rl;function Ul(){if(Rl)return Tn;Rl=1,Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.storeTransaction=Tn.loadTransaction=void 0;const n=Tt(),c=qr(),d=Vs(),l=Tr(),t=al(),r=ll(),e=Ml();function o(f){let s=f.asCell();if(f.loadUint(4)!==7)throw Error("Invalid data");let y=f.loadUintBig(256),B=f.loadUintBig(64),k=f.loadUintBig(256),j=f.loadUintBig(64),P=f.loadUint(32),R=f.loadUint(15),z=(0,d.loadAccountStatus)(f),V=(0,d.loadAccountStatus)(f),ee=f.loadRef().beginParse(),he=ee.loadBit()?(0,r.loadMessage)(ee.loadRef().beginParse()):void 0,$=ee.loadDict(c.Dictionary.Keys.Uint(15),r.MessageValue);ee.endParse();let Z=(0,l.loadCurrencyCollection)(f),Q=(0,t.loadHashUpdate)(f.loadRef().beginParse()),ie=(0,e.loadTransactionDescription)(f.loadRef().beginParse());return{address:y,lt:B,prevTransactionHash:k,prevTransactionLt:j,now:P,outMessagesCount:R,oldStatus:z,endStatus:V,inMessage:he,outMessages:$,totalFees:Z,stateUpdate:Q,description:ie,raw:s,hash:()=>s.hash()}}Tn.loadTransaction=o;function i(f){return s=>{s.storeUint(7,4),s.storeUint(f.address,256),s.storeUint(f.lt,64),s.storeUint(f.prevTransactionHash,256),s.storeUint(f.prevTransactionLt,64),s.storeUint(f.now,32),s.storeUint(f.outMessagesCount,15),s.store((0,d.storeAccountStatus)(f.oldStatus)),s.store((0,d.storeAccountStatus)(f.endStatus));let y=(0,n.beginCell)();f.inMessage?(y.storeBit(!0),y.storeRef((0,n.beginCell)().store((0,r.storeMessage)(f.inMessage)))):y.storeBit(!1),y.storeDict(f.outMessages),s.storeRef(y),s.store((0,l.storeCurrencyCollection)(f.totalFees)),s.storeRef((0,n.beginCell)().store((0,t.storeHashUpdate)(f.stateUpdate))),s.storeRef((0,n.beginCell)().store((0,e.storeTransactionDescription)(f.description)))}}return Tn.storeTransaction=i,Tn}var Ol;function rd(){return Ol||(Ol=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.loadSimpleLibrary=n.loadShardStateUnsplit=n.storeShardIdent=n.loadShardIdent=n.storeShardAccounts=n.loadShardAccounts=n.ShardAccountRefValue=n.storeShardAccount=n.loadShardAccount=n.ReserveMode=n.SendMode=n.storeMessageRelaxed=n.loadMessageRelaxed=n.storeMessage=n.loadMessage=n.loadMasterchainStateExtra=n.storeHashUpdate=n.loadHashUpdate=n.storeExtraCurrency=n.loadMaybeExtraCurrency=n.loadExtraCurrency=n.packExtraCurrencyDict=n.packExtraCurrencyCell=n.storeDepthBalanceInfo=n.loadDepthBalanceInfo=n.storeCurrencyCollection=n.loadCurrencyCollection=n.storeComputeSkipReason=n.loadComputeSkipReason=n.storeCommonMessageInfoRelaxed=n.loadCommonMessageInfoRelaxed=n.storeCommonMessageInfo=n.loadCommonMessageInfo=n.storeOutList=n.loadOutList=n.storeOutAction=n.loadOutAction=n.storeAccountStorage=n.loadAccountStorage=n.storeAccountStatusChange=n.loadAccountStatusChange=n.storeAccountStatus=n.loadAccountStatus=n.storeAccountState=n.loadAccountState=n.storeAccount=n.loadAccount=n.comment=n.external=n.internal=void 0,n.storeTransactionsStoragePhase=n.loadTransactionStoragePhase=n.storeTransactionDescription=n.loadTransactionDescription=n.storeTransactionCreditPhase=n.loadTransactionCreditPhase=n.storeTransactionComputePhase=n.loadTransactionComputePhase=n.storeTransactionBouncePhase=n.loadTransactionBouncePhase=n.storeTransactionActionPhase=n.loadTransactionActionPhase=n.storeTransaction=n.loadTransaction=n.storeTickTock=n.loadTickTock=n.storeStorageUsedShort=n.loadStorageUsedShort=n.storeStorageUsed=n.loadStorageUsed=n.storeStorageInfo=n.loadStorageInfo=n.storeStateInit=n.loadStateInit=n.storeSplitMergeInfo=n.loadSplitMergeInfo=n.storeLibRef=n.loadLibRef=n.storeSimpleLibrary=void 0;var c=Jc();Object.defineProperty(n,"internal",{enumerable:!0,get:function(){return c.internal}}),Object.defineProperty(n,"external",{enumerable:!0,get:function(){return c.external}}),Object.defineProperty(n,"comment",{enumerable:!0,get:function(){return c.comment}});var d=qs();Object.defineProperty(n,"loadAccount",{enumerable:!0,get:function(){return d.loadAccount}}),Object.defineProperty(n,"storeAccount",{enumerable:!0,get:function(){return d.storeAccount}});var l=Ts();Object.defineProperty(n,"loadAccountState",{enumerable:!0,get:function(){return l.loadAccountState}}),Object.defineProperty(n,"storeAccountState",{enumerable:!0,get:function(){return l.storeAccountState}});var t=Vs();Object.defineProperty(n,"loadAccountStatus",{enumerable:!0,get:function(){return t.loadAccountStatus}}),Object.defineProperty(n,"storeAccountStatus",{enumerable:!0,get:function(){return t.storeAccountStatus}});var r=Ui();Object.defineProperty(n,"loadAccountStatusChange",{enumerable:!0,get:function(){return r.loadAccountStatusChange}}),Object.defineProperty(n,"storeAccountStatusChange",{enumerable:!0,get:function(){return r.storeAccountStatusChange}});var e=Us();Object.defineProperty(n,"loadAccountStorage",{enumerable:!0,get:function(){return e.loadAccountStorage}}),Object.defineProperty(n,"storeAccountStorage",{enumerable:!0,get:function(){return e.storeAccountStorage}});var o=Qc();Object.defineProperty(n,"loadOutAction",{enumerable:!0,get:function(){return o.loadOutAction}}),Object.defineProperty(n,"storeOutAction",{enumerable:!0,get:function(){return o.storeOutAction}}),Object.defineProperty(n,"loadOutList",{enumerable:!0,get:function(){return o.loadOutList}}),Object.defineProperty(n,"storeOutList",{enumerable:!0,get:function(){return o.storeOutList}});var i=Qs();Object.defineProperty(n,"loadCommonMessageInfo",{enumerable:!0,get:function(){return i.loadCommonMessageInfo}}),Object.defineProperty(n,"storeCommonMessageInfo",{enumerable:!0,get:function(){return i.storeCommonMessageInfo}});var f=Ws();Object.defineProperty(n,"loadCommonMessageInfoRelaxed",{enumerable:!0,get:function(){return f.loadCommonMessageInfoRelaxed}}),Object.defineProperty(n,"storeCommonMessageInfoRelaxed",{enumerable:!0,get:function(){return f.storeCommonMessageInfoRelaxed}});var s=el();Object.defineProperty(n,"loadComputeSkipReason",{enumerable:!0,get:function(){return s.loadComputeSkipReason}}),Object.defineProperty(n,"storeComputeSkipReason",{enumerable:!0,get:function(){return s.storeComputeSkipReason}});var y=Tr();Object.defineProperty(n,"loadCurrencyCollection",{enumerable:!0,get:function(){return y.loadCurrencyCollection}}),Object.defineProperty(n,"storeCurrencyCollection",{enumerable:!0,get:function(){return y.storeCurrencyCollection}});var B=rl();Object.defineProperty(n,"loadDepthBalanceInfo",{enumerable:!0,get:function(){return B.loadDepthBalanceInfo}}),Object.defineProperty(n,"storeDepthBalanceInfo",{enumerable:!0,get:function(){return B.storeDepthBalanceInfo}});var k=Ps();Object.defineProperty(n,"packExtraCurrencyCell",{enumerable:!0,get:function(){return k.packExtraCurrencyCell}}),Object.defineProperty(n,"packExtraCurrencyDict",{enumerable:!0,get:function(){return k.packExtraCurrencyDict}}),Object.defineProperty(n,"loadExtraCurrency",{enumerable:!0,get:function(){return k.loadExtraCurrency}}),Object.defineProperty(n,"loadMaybeExtraCurrency",{enumerable:!0,get:function(){return k.loadMaybeExtraCurrency}}),Object.defineProperty(n,"storeExtraCurrency",{enumerable:!0,get:function(){return k.storeExtraCurrency}});var j=al();Object.defineProperty(n,"loadHashUpdate",{enumerable:!0,get:function(){return j.loadHashUpdate}}),Object.defineProperty(n,"storeHashUpdate",{enumerable:!0,get:function(){return j.storeHashUpdate}});var P=ol();Object.defineProperty(n,"loadMasterchainStateExtra",{enumerable:!0,get:function(){return P.loadMasterchainStateExtra}});var R=ll();Object.defineProperty(n,"loadMessage",{enumerable:!0,get:function(){return R.loadMessage}}),Object.defineProperty(n,"storeMessage",{enumerable:!0,get:function(){return R.storeMessage}});var z=Ks();Object.defineProperty(n,"loadMessageRelaxed",{enumerable:!0,get:function(){return z.loadMessageRelaxed}}),Object.defineProperty(n,"storeMessageRelaxed",{enumerable:!0,get:function(){return z.storeMessageRelaxed}});var V=Xc();Object.defineProperty(n,"SendMode",{enumerable:!0,get:function(){return V.SendMode}});var F=ed();Object.defineProperty(n,"ReserveMode",{enumerable:!0,get:function(){return F.ReserveMode}});var ee=fl();Object.defineProperty(n,"loadShardAccount",{enumerable:!0,get:function(){return ee.loadShardAccount}}),Object.defineProperty(n,"storeShardAccount",{enumerable:!0,get:function(){return ee.storeShardAccount}});var he=pl();Object.defineProperty(n,"ShardAccountRefValue",{enumerable:!0,get:function(){return he.ShardAccountRefValue}}),Object.defineProperty(n,"loadShardAccounts",{enumerable:!0,get:function(){return he.loadShardAccounts}}),Object.defineProperty(n,"storeShardAccounts",{enumerable:!0,get:function(){return he.storeShardAccounts}});var $=ml();Object.defineProperty(n,"loadShardIdent",{enumerable:!0,get:function(){return $.loadShardIdent}}),Object.defineProperty(n,"storeShardIdent",{enumerable:!0,get:function(){return $.storeShardIdent}});var Z=td();Object.defineProperty(n,"loadShardStateUnsplit",{enumerable:!0,get:function(){return Z.loadShardStateUnsplit}});var Q=ys();Object.defineProperty(n,"loadSimpleLibrary",{enumerable:!0,get:function(){return Q.loadSimpleLibrary}}),Object.defineProperty(n,"storeSimpleLibrary",{enumerable:!0,get:function(){return Q.storeSimpleLibrary}});var ie=Ys();Object.defineProperty(n,"loadLibRef",{enumerable:!0,get:function(){return ie.loadLibRef}}),Object.defineProperty(n,"storeLibRef",{enumerable:!0,get:function(){return ie.storeLibRef}});var Ee=vl();Object.defineProperty(n,"loadSplitMergeInfo",{enumerable:!0,get:function(){return Ee.loadSplitMergeInfo}}),Object.defineProperty(n,"storeSplitMergeInfo",{enumerable:!0,get:function(){return Ee.storeSplitMergeInfo}});var Oe=Aa();Object.defineProperty(n,"loadStateInit",{enumerable:!0,get:function(){return Oe.loadStateInit}}),Object.defineProperty(n,"storeStateInit",{enumerable:!0,get:function(){return Oe.storeStateInit}});var Le=Ns();Object.defineProperty(n,"loadStorageInfo",{enumerable:!0,get:function(){return Le.loadStorageInfo}}),Object.defineProperty(n,"storeStorageInfo",{enumerable:!0,get:function(){return Le.storeStorageInfo}});var re=zs();Object.defineProperty(n,"loadStorageUsed",{enumerable:!0,get:function(){return re.loadStorageUsed}}),Object.defineProperty(n,"storeStorageUsed",{enumerable:!0,get:function(){return re.storeStorageUsed}});var Y=zi();Object.defineProperty(n,"loadStorageUsedShort",{enumerable:!0,get:function(){return Y.loadStorageUsedShort}}),Object.defineProperty(n,"storeStorageUsedShort",{enumerable:!0,get:function(){return Y.storeStorageUsedShort}});var Ae=vs();Object.defineProperty(n,"loadTickTock",{enumerable:!0,get:function(){return Ae.loadTickTock}}),Object.defineProperty(n,"storeTickTock",{enumerable:!0,get:function(){return Ae.storeTickTock}});var C=Ul();Object.defineProperty(n,"loadTransaction",{enumerable:!0,get:function(){return C.loadTransaction}}),Object.defineProperty(n,"storeTransaction",{enumerable:!0,get:function(){return C.storeTransaction}});var ye=xl();Object.defineProperty(n,"loadTransactionActionPhase",{enumerable:!0,get:function(){return ye.loadTransactionActionPhase}}),Object.defineProperty(n,"storeTransactionActionPhase",{enumerable:!0,get:function(){return ye.storeTransactionActionPhase}});var Pe=Cl();Object.defineProperty(n,"loadTransactionBouncePhase",{enumerable:!0,get:function(){return Pe.loadTransactionBouncePhase}}),Object.defineProperty(n,"storeTransactionBouncePhase",{enumerable:!0,get:function(){return Pe.storeTransactionBouncePhase}});var N=Bl();Object.defineProperty(n,"loadTransactionComputePhase",{enumerable:!0,get:function(){return N.loadTransactionComputePhase}}),Object.defineProperty(n,"storeTransactionComputePhase",{enumerable:!0,get:function(){return N.storeTransactionComputePhase}});var Se=Pl();Object.defineProperty(n,"loadTransactionCreditPhase",{enumerable:!0,get:function(){return Se.loadTransactionCreditPhase}}),Object.defineProperty(n,"storeTransactionCreditPhase",{enumerable:!0,get:function(){return Se.storeTransactionCreditPhase}});var se=Ml();Object.defineProperty(n,"loadTransactionDescription",{enumerable:!0,get:function(){return se.loadTransactionDescription}}),Object.defineProperty(n,"storeTransactionDescription",{enumerable:!0,get:function(){return se.storeTransactionDescription}});var be=Il();Object.defineProperty(n,"loadTransactionStoragePhase",{enumerable:!0,get:function(){return be.loadTransactionStoragePhase}}),Object.defineProperty(n,"storeTransactionsStoragePhase",{enumerable:!0,get:function(){return be.storeTransactionsStoragePhase}})}(Ri)),Ri}var Ua={},zl;function nd(){if(zl)return Ua;zl=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.openContract=void 0;const n=jr(),c=sn();function d(l,t){let r,e=null;if(!n.Address.isAddress(l.address))throw Error("Invalid address");if(r=l.address,l.init){if(!(l.init.code instanceof c.Cell))throw Error("Invalid init.code");if(!(l.init.data instanceof c.Cell))throw Error("Invalid init.data");e=l.init}let o=t({address:r,init:e});return new Proxy(l,{get(i,f){const s=i[f];return typeof f=="string"&&(f.startsWith("get")||f.startsWith("send")||f.startsWith("is"))&&typeof s=="function"?(...y)=>s.apply(i,[o,...y]):s}})}return Ua.openContract=d,Ua}var Oa={},jl;function ad(){if(jl)return Oa;jl=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.ComputeError=void 0;let n=class ac extends Error{constructor(d,l,t){super(d),this.exitCode=l,this.debugLogs=t&&t.debugLogs?t.debugLogs:null,this.logs=t&&t.logs?t.logs:null,Object.setPrototypeOf(this,ac.prototype)}};return Oa.ComputeError=n,Oa}var za={},Nl;function id(){if(Nl)return za;Nl=1,Object.defineProperty(za,"__esModule",{value:!0}),za.getMethodId=void 0;const n=new Int16Array([0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920]);function c(l){l instanceof Buffer||(l=Buffer.from(l));let t=0;for(let r=0;r<l.length;r++){const e=l[r];t=(n[(t>>8^e)&255]^t<<8)&65535}return t}function d(l){return c(l)&65535|65536}return za.getMethodId=d,za}var Nn={},Dl;function od(){if(Dl)return Nn;Dl=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.safeSignVerify=Nn.safeSign=void 0;const n=on(),c=8,d=64;function l(e,o){let i=Buffer.from(o);if(i.length>d)throw Error("Seed can be longer than 64 bytes");if(i.length<c)throw Error("Seed must be at least 8 bytes");return(0,n.sha256_sync)(Buffer.concat([Buffer.from([255,255]),i,e.hash()]))}function t(e,o,i="ton-safe-sign-magic"){return(0,n.sign)(l(e,i),o)}Nn.safeSign=t;function r(e,o,i,f="ton-safe-sign-magic"){return(0,n.signVerify)(l(e,f),o,i)}return Nn.safeSignVerify=r,Nn}var ql;function Ct(){return ql||(ql=1,function(n){var c=Hr&&Hr.__createBinding||(Object.create?function(Ae,C,ye,Pe){Pe===void 0&&(Pe=ye);var N=Object.getOwnPropertyDescriptor(C,ye);(!N||("get"in N?!C.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return C[ye]}}),Object.defineProperty(Ae,Pe,N)}:function(Ae,C,ye,Pe){Pe===void 0&&(Pe=ye),Ae[Pe]=C[ye]}),d=Hr&&Hr.__exportStar||function(Ae,C){for(var ye in Ae)ye!=="default"&&!Object.prototype.hasOwnProperty.call(C,ye)&&c(C,Ae,ye)};Object.defineProperty(n,"__esModule",{value:!0}),n.safeSignVerify=n.safeSign=n.getMethodId=n.base32Encode=n.base32Decode=n.crc32c=n.crc16=n.fromNano=n.toNano=n.ComputeError=n.openContract=n.TupleBuilder=n.TupleReader=n.serializeTuple=n.parseTuple=n.generateMerkleUpdate=n.generateMerkleProofDirect=n.generateMerkleProof=n.exoticPruned=n.exoticMerkleUpdate=n.convertToMerkleProof=n.exoticMerkleProof=n.Dictionary=n.Cell=n.CellType=n.Slice=n.beginCell=n.Builder=n.BitBuilder=n.BitReader=n.BitString=n.contractAddress=n.ADNLAddress=n.ExternalAddress=n.address=n.Address=void 0;var l=jr();Object.defineProperty(n,"Address",{enumerable:!0,get:function(){return l.Address}}),Object.defineProperty(n,"address",{enumerable:!0,get:function(){return l.address}});var t=xi();Object.defineProperty(n,"ExternalAddress",{enumerable:!0,get:function(){return t.ExternalAddress}});var r=vc();Object.defineProperty(n,"ADNLAddress",{enumerable:!0,get:function(){return r.ADNLAddress}});var e=Kc();Object.defineProperty(n,"contractAddress",{enumerable:!0,get:function(){return e.contractAddress}});var o=Nr();Object.defineProperty(n,"BitString",{enumerable:!0,get:function(){return o.BitString}});var i=Dr();Object.defineProperty(n,"BitReader",{enumerable:!0,get:function(){return i.BitReader}});var f=oi();Object.defineProperty(n,"BitBuilder",{enumerable:!0,get:function(){return f.BitBuilder}});var s=Tt();Object.defineProperty(n,"Builder",{enumerable:!0,get:function(){return s.Builder}}),Object.defineProperty(n,"beginCell",{enumerable:!0,get:function(){return s.beginCell}});var y=Ci();Object.defineProperty(n,"Slice",{enumerable:!0,get:function(){return y.Slice}});var B=ea();Object.defineProperty(n,"CellType",{enumerable:!0,get:function(){return B.CellType}});var k=sn();Object.defineProperty(n,"Cell",{enumerable:!0,get:function(){return k.Cell}});var j=qr();Object.defineProperty(n,"Dictionary",{enumerable:!0,get:function(){return j.Dictionary}});var P=si();Object.defineProperty(n,"exoticMerkleProof",{enumerable:!0,get:function(){return P.exoticMerkleProof}}),Object.defineProperty(n,"convertToMerkleProof",{enumerable:!0,get:function(){return P.convertToMerkleProof}});var R=Si();Object.defineProperty(n,"exoticMerkleUpdate",{enumerable:!0,get:function(){return R.exoticMerkleUpdate}});var z=Ai();Object.defineProperty(n,"exoticPruned",{enumerable:!0,get:function(){return z.exoticPruned}});var V=ki();Object.defineProperty(n,"generateMerkleProof",{enumerable:!0,get:function(){return V.generateMerkleProof}}),Object.defineProperty(n,"generateMerkleProofDirect",{enumerable:!0,get:function(){return V.generateMerkleProofDirect}});var F=mo();Object.defineProperty(n,"generateMerkleUpdate",{enumerable:!0,get:function(){return F.generateMerkleUpdate}});var ee=$c();Object.defineProperty(n,"parseTuple",{enumerable:!0,get:function(){return ee.parseTuple}}),Object.defineProperty(n,"serializeTuple",{enumerable:!0,get:function(){return ee.serializeTuple}});var he=Yc();Object.defineProperty(n,"TupleReader",{enumerable:!0,get:function(){return he.TupleReader}});var $=Gc();Object.defineProperty(n,"TupleBuilder",{enumerable:!0,get:function(){return $.TupleBuilder}}),d(rd(),n);var Z=nd();Object.defineProperty(n,"openContract",{enumerable:!0,get:function(){return Z.openContract}});var Q=ad();Object.defineProperty(n,"ComputeError",{enumerable:!0,get:function(){return Q.ComputeError}});var ie=Bs();Object.defineProperty(n,"toNano",{enumerable:!0,get:function(){return ie.toNano}}),Object.defineProperty(n,"fromNano",{enumerable:!0,get:function(){return ie.fromNano}});var Ee=_i();Object.defineProperty(n,"crc16",{enumerable:!0,get:function(){return Ee.crc16}});var Oe=fs();Object.defineProperty(n,"crc32c",{enumerable:!0,get:function(){return Oe.crc32c}});var Le=ao();Object.defineProperty(n,"base32Decode",{enumerable:!0,get:function(){return Le.base32Decode}}),Object.defineProperty(n,"base32Encode",{enumerable:!0,get:function(){return Le.base32Encode}});var re=id();Object.defineProperty(n,"getMethodId",{enumerable:!0,get:function(){return re.getMethodId}});var Y=od();Object.defineProperty(n,"safeSign",{enumerable:!0,get:function(){return Y.safeSign}}),Object.defineProperty(n,"safeSignVerify",{enumerable:!0,get:function(){return Y.safeSignVerify}})}(Hr)),Hr}var Dn={},ja={},Ll;function sd(){if(Ll)return ja;Ll=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.InMemoryCache=void 0;class n{constructor(){this.cache=new Map,this.set=async(d,l,t)=>{t!==null?this.cache.set(d+"$$"+l,t):this.cache.delete(d+"$$"+l)},this.get=async(d,l)=>{let t=this.cache.get(d+"$$"+l);return t!==void 0?t:null}}}return ja.InMemoryCache=n,ja}var ji,Vl;function ld(){if(Vl)return ji;Vl=1;var n=function(){function k(P,R){if(typeof P!="function")throw new TypeError("DataLoader must be constructed with a function which accepts "+("Array<key> and returns Promise<Array<value>>, but got: "+P+"."));this._batchLoadFn=P,this._maxBatchSize=o(R),this._batchScheduleFn=i(R),this._cacheKeyFn=f(R),this._cacheMap=s(R),this._batch=null,this.name=y(R)}var j=k.prototype;return j.load=function(R){if(R==null)throw new TypeError("The loader.load() function must be called with a value, "+("but got: "+String(R)+"."));var z=l(this),V=this._cacheMap,F;if(V){F=this._cacheKeyFn(R);var ee=V.get(F);if(ee){var he=z.cacheHits||(z.cacheHits=[]);return new Promise(function(Z){he.push(function(){Z(ee)})})}}z.keys.push(R);var $=new Promise(function(Z,Q){z.callbacks.push({resolve:Z,reject:Q})});return V&&V.set(F,$),$},j.loadMany=function(R){if(!B(R))throw new TypeError("The loader.loadMany() function must be called with Array<key> "+("but got: "+R+"."));for(var z=[],V=0;V<R.length;V++)z.push(this.load(R[V]).catch(function(F){return F}));return Promise.all(z)},j.clear=function(R){var z=this._cacheMap;if(z){var V=this._cacheKeyFn(R);z.delete(V)}return this},j.clearAll=function(){var R=this._cacheMap;return R&&R.clear(),this},j.prime=function(R,z){var V=this._cacheMap;if(V){var F=this._cacheKeyFn(R);if(V.get(F)===void 0){var ee;z instanceof Error?(ee=Promise.reject(z),ee.catch(function(){})):ee=Promise.resolve(z),V.set(F,ee)}}return this},k}(),c=typeof process=="object"&&typeof process.nextTick=="function"?function(k){d||(d=Promise.resolve()),d.then(function(){process.nextTick(k)})}:typeof setImmediate=="function"?function(k){setImmediate(k)}:function(k){setTimeout(k)},d;function l(k){var j=k._batch;if(j!==null&&!j.hasDispatched&&j.keys.length<k._maxBatchSize)return j;var P={hasDispatched:!1,keys:[],callbacks:[]};return k._batch=P,k._batchScheduleFn(function(){t(k,P)}),P}function t(k,j){if(j.hasDispatched=!0,j.keys.length===0){e(j);return}var P;try{P=k._batchLoadFn(j.keys)}catch(R){return r(k,j,new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function "+("errored synchronously: "+String(R)+".")))}if(!P||typeof P.then!="function")return r(k,j,new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did "+("not return a Promise: "+String(P)+".")));P.then(function(R){if(!B(R))throw new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did "+("not return a Promise of an Array: "+String(R)+"."));if(R.length!==j.keys.length)throw new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys."+(`
|
|
3
|
+
|
|
4
|
+
Keys:
|
|
5
|
+
`+String(j.keys))+(`
|
|
6
|
+
|
|
7
|
+
Values:
|
|
8
|
+
`+String(R)));e(j);for(var z=0;z<j.callbacks.length;z++){var V=R[z];V instanceof Error?j.callbacks[z].reject(V):j.callbacks[z].resolve(V)}}).catch(function(R){r(k,j,R)})}function r(k,j,P){e(j);for(var R=0;R<j.keys.length;R++)k.clear(j.keys[R]),j.callbacks[R].reject(P)}function e(k){if(k.cacheHits)for(var j=0;j<k.cacheHits.length;j++)k.cacheHits[j]()}function o(k){var j=!k||k.batch!==!1;if(!j)return 1;var P=k&&k.maxBatchSize;if(P===void 0)return 1/0;if(typeof P!="number"||P<1)throw new TypeError("maxBatchSize must be a positive number: "+P);return P}function i(k){var j=k&&k.batchScheduleFn;if(j===void 0)return c;if(typeof j!="function")throw new TypeError("batchScheduleFn must be a function: "+j);return j}function f(k){var j=k&&k.cacheKeyFn;if(j===void 0)return function(P){return P};if(typeof j!="function")throw new TypeError("cacheKeyFn must be a function: "+j);return j}function s(k){var j=!k||k.cache!==!1;if(!j)return null;var P=k&&k.cacheMap;if(P===void 0)return new Map;if(P!==null){var R=["get","set","delete","clear"],z=R.filter(function(V){return P&&typeof P[V]!="function"});if(z.length!==0)throw new TypeError("Custom cacheMap missing methods: "+z.join(", "))}return P}function y(k){return k&&k.name?k.name:null}function B(k){return typeof k=="object"&&k!==null&&typeof k.length=="number"&&(k.length===0||k.length>0&&Object.prototype.hasOwnProperty.call(k,k.length-1))}return ji=n,ji}var Ni,Fl;function Zl(){if(Fl)return Ni;Fl=1;function n(m,b){return function(){return m.apply(b,arguments)}}const{toString:c}=Object.prototype,{getPrototypeOf:d}=Object,l=(m=>b=>{const E=c.call(b);return m[E]||(m[E]=E.slice(8,-1).toLowerCase())})(Object.create(null)),t=m=>(m=m.toLowerCase(),b=>l(b)===m),r=m=>b=>typeof b===m,{isArray:e}=Array,o=r("undefined");function i(m){return m!==null&&!o(m)&&m.constructor!==null&&!o(m.constructor)&&B(m.constructor.isBuffer)&&m.constructor.isBuffer(m)}const f=t("ArrayBuffer");function s(m){let b;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?b=ArrayBuffer.isView(m):b=m&&m.buffer&&f(m.buffer),b}const y=r("string"),B=r("function"),k=r("number"),j=m=>m!==null&&typeof m=="object",P=m=>m===!0||m===!1,R=m=>{if(l(m)!=="object")return!1;const b=d(m);return(b===null||b===Object.prototype||Object.getPrototypeOf(b)===null)&&!(Symbol.toStringTag in m)&&!(Symbol.iterator in m)},z=t("Date"),V=t("File"),F=t("Blob"),ee=t("FileList"),he=m=>j(m)&&B(m.pipe),$=m=>{let b;return m&&(typeof FormData=="function"&&m instanceof FormData||B(m.append)&&((b=l(m))==="formdata"||b==="object"&&B(m.toString)&&m.toString()==="[object FormData]"))},Z=t("URLSearchParams"),[Q,ie,Ee,Oe]=["ReadableStream","Request","Response","Headers"].map(t),Le=m=>m.trim?m.trim():m.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function re(m,b,{allOwnKeys:E=!1}={}){if(m===null||typeof m>"u")return;let T,D;if(typeof m!="object"&&(m=[m]),e(m))for(T=0,D=m.length;T<D;T++)b.call(null,m[T],T,m);else{const G=E?Object.getOwnPropertyNames(m):Object.keys(m),X=G.length;let xe;for(T=0;T<X;T++)xe=G[T],b.call(null,m[xe],xe,m)}}function Y(m,b){b=b.toLowerCase();const E=Object.keys(m);let T=E.length,D;for(;T-- >0;)if(D=E[T],b===D.toLowerCase())return D;return null}const Ae=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Hn,C=m=>!o(m)&&m!==Ae;function ye(){const{caseless:m}=C(this)&&this||{},b={},E=(T,D)=>{const G=m&&Y(b,D)||D;R(b[G])&&R(T)?b[G]=ye(b[G],T):R(T)?b[G]=ye({},T):e(T)?b[G]=T.slice():b[G]=T};for(let T=0,D=arguments.length;T<D;T++)arguments[T]&&re(arguments[T],E);return b}const Pe=(m,b,E,{allOwnKeys:T}={})=>(re(b,(D,G)=>{E&&B(D)?m[G]=n(D,E):m[G]=D},{allOwnKeys:T}),m),N=m=>(m.charCodeAt(0)===65279&&(m=m.slice(1)),m),Se=(m,b,E,T)=>{m.prototype=Object.create(b.prototype,T),m.prototype.constructor=m,Object.defineProperty(m,"super",{value:b.prototype}),E&&Object.assign(m.prototype,E)},se=(m,b,E,T)=>{let D,G,X;const xe={};if(b=b||{},m==null)return b;do{for(D=Object.getOwnPropertyNames(m),G=D.length;G-- >0;)X=D[G],(!T||T(X,m,b))&&!xe[X]&&(b[X]=m[X],xe[X]=!0);m=E!==!1&&d(m)}while(m&&(!E||E(m,b))&&m!==Object.prototype);return b},be=(m,b,E)=>{m=String(m),(E===void 0||E>m.length)&&(E=m.length),E-=b.length;const T=m.indexOf(b,E);return T!==-1&&T===E},ke=m=>{if(!m)return null;if(e(m))return m;let b=m.length;if(!k(b))return null;const E=new Array(b);for(;b-- >0;)E[b]=m[b];return E},Te=(m=>b=>m&&b instanceof m)(typeof Uint8Array<"u"&&d(Uint8Array)),de=(m,b)=>{const T=(m&&m[Symbol.iterator]).call(m);let D;for(;(D=T.next())&&!D.done;){const G=D.value;b.call(m,G[0],G[1])}},Ve=(m,b)=>{let E;const T=[];for(;(E=m.exec(b))!==null;)T.push(E);return T},it=t("HTMLFormElement"),lt=m=>m.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(E,T,D){return T.toUpperCase()+D}),ot=(({hasOwnProperty:m})=>(b,E)=>m.call(b,E))(Object.prototype),wt=t("RegExp"),Ut=(m,b)=>{const E=Object.getOwnPropertyDescriptors(m),T={};re(E,(D,G)=>{let X;(X=b(D,G,m))!==!1&&(T[G]=X||D)}),Object.defineProperties(m,T)},Ot=m=>{Ut(m,(b,E)=>{if(B(m)&&["arguments","caller","callee"].indexOf(E)!==-1)return!1;const T=m[E];if(B(T)){if(b.enumerable=!1,"writable"in b){b.writable=!1;return}b.set||(b.set=()=>{throw Error("Can not rewrite read-only method '"+E+"'")})}})},Qt=(m,b)=>{const E={},T=D=>{D.forEach(G=>{E[G]=!0})};return e(m)?T(m):T(String(m).split(b)),E},Nt=()=>{},Gt=(m,b)=>m!=null&&Number.isFinite(m=+m)?m:b,mt="abcdefghijklmnopqrstuvwxyz",Kt="0123456789",Mt={DIGIT:Kt,ALPHA:mt,ALPHA_DIGIT:mt+mt.toUpperCase()+Kt},$t=(m=16,b=Mt.ALPHA_DIGIT)=>{let E="";const{length:T}=b;for(;m--;)E+=b[Math.random()*T|0];return E};function Jt(m){return!!(m&&B(m.append)&&m[Symbol.toStringTag]==="FormData"&&m[Symbol.iterator])}const sr=m=>{const b=new Array(10),E=(T,D)=>{if(j(T)){if(b.indexOf(T)>=0)return;if(!("toJSON"in T)){b[D]=T;const G=e(T)?[]:{};return re(T,(X,xe)=>{const $e=E(X,D+1);!o($e)&&(G[xe]=$e)}),b[D]=void 0,G}}return T};return E(m,0)},zt=t("AsyncFunction"),Xt=m=>m&&(j(m)||B(m))&&B(m.then)&&B(m.catch),er=((m,b)=>m?setImmediate:b?((E,T)=>(Ae.addEventListener("message",({source:D,data:G})=>{D===Ae&&G===E&&T.length&&T.shift()()},!1),D=>{T.push(D),Ae.postMessage(E,"*")}))(`axios@${Math.random()}`,[]):E=>setTimeout(E))(typeof setImmediate=="function",B(Ae.postMessage)),L=typeof queueMicrotask<"u"?queueMicrotask.bind(Ae):typeof process<"u"&&process.nextTick||er;var g={isArray:e,isArrayBuffer:f,isBuffer:i,isFormData:$,isArrayBufferView:s,isString:y,isNumber:k,isBoolean:P,isObject:j,isPlainObject:R,isReadableStream:Q,isRequest:ie,isResponse:Ee,isHeaders:Oe,isUndefined:o,isDate:z,isFile:V,isBlob:F,isRegExp:wt,isFunction:B,isStream:he,isURLSearchParams:Z,isTypedArray:Te,isFileList:ee,forEach:re,merge:ye,extend:Pe,trim:Le,stripBOM:N,inherits:Se,toFlatObject:se,kindOf:l,kindOfTest:t,endsWith:be,toArray:ke,forEachEntry:de,matchAll:Ve,isHTMLForm:it,hasOwnProperty:ot,hasOwnProp:ot,reduceDescriptors:Ut,freezeMethods:Ot,toObjectSet:Qt,toCamelCase:lt,noop:Nt,toFiniteNumber:Gt,findKey:Y,global:Ae,isContextDefined:C,ALPHABET:Mt,generateString:$t,isSpecCompliantForm:Jt,toJSONObject:sr,isAsyncFn:zt,isThenable:Xt,setImmediate:er,asap:L};function U(m,b,E,T,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=m,this.name="AxiosError",b&&(this.code=b),E&&(this.config=E),T&&(this.request=T),D&&(this.response=D,this.status=D.status?D.status:null)}g.inherits(U,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.status}}});const q=U.prototype,K={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(m=>{K[m]={value:m}}),Object.defineProperties(U,K),Object.defineProperty(q,"isAxiosError",{value:!0}),U.from=(m,b,E,T,D,G)=>{const X=Object.create(q);return g.toFlatObject(m,X,function($e){return $e!==Error.prototype},xe=>xe!=="isAxiosError"),U.call(X,m.message,b,E,T,D),X.cause=m,X.name=m.name,G&&Object.assign(X,G),X};var O=null;function oe(m){return g.isPlainObject(m)||g.isArray(m)}function ue(m){return g.endsWith(m,"[]")?m.slice(0,-2):m}function fe(m,b,E){return m?m.concat(b).map(function(D,G){return D=ue(D),!E&&G?"["+D+"]":D}).join(E?".":""):b}function _e(m){return g.isArray(m)&&!m.some(oe)}const Ne=g.toFlatObject(g,{},null,function(b){return/^is[A-Z]/.test(b)});function ve(m,b,E){if(!g.isObject(m))throw new TypeError("target must be an object");b=b||new FormData,E=g.toFlatObject(E,{metaTokens:!0,dots:!1,indexes:!1},!1,function(ht,et){return!g.isUndefined(et[ht])});const T=E.metaTokens,D=E.visitor||je,G=E.dots,X=E.indexes,$e=(E.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(b);if(!g.isFunction(D))throw new TypeError("visitor must be a function");function Re(Xe){if(Xe===null)return"";if(g.isDate(Xe))return Xe.toISOString();if(!$e&&g.isBlob(Xe))throw new U("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(Xe)||g.isTypedArray(Xe)?$e&&typeof Blob=="function"?new Blob([Xe]):Buffer.from(Xe):Xe}function je(Xe,ht,et){let Rt=Xe;if(Xe&&!et&&typeof Xe=="object"){if(g.endsWith(ht,"{}"))ht=T?ht:ht.slice(0,-2),Xe=JSON.stringify(Xe);else if(g.isArray(Xe)&&_e(Xe)||(g.isFileList(Xe)||g.endsWith(ht,"[]"))&&(Rt=g.toArray(Xe)))return ht=ue(ht),Rt.forEach(function(Wt,zr){!(g.isUndefined(Wt)||Wt===null)&&b.append(X===!0?fe([ht],zr,G):X===null?ht:ht+"[]",Re(Wt))}),!1}return oe(Xe)?!0:(b.append(fe(et,ht,G),Re(Xe)),!1)}const Je=[],kt=Object.assign(Ne,{defaultVisitor:je,convertValue:Re,isVisitable:oe});function Vt(Xe,ht){if(!g.isUndefined(Xe)){if(Je.indexOf(Xe)!==-1)throw Error("Circular reference detected in "+ht.join("."));Je.push(Xe),g.forEach(Xe,function(Rt,Ft){(!(g.isUndefined(Rt)||Rt===null)&&D.call(b,Rt,g.isString(Ft)?Ft.trim():Ft,ht,kt))===!0&&Vt(Rt,ht?ht.concat(Ft):[Ft])}),Je.pop()}}if(!g.isObject(m))throw new TypeError("data must be an object");return Vt(m),b}function Ie(m){const b={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(m).replace(/[!'()~]|%20|%00/g,function(T){return b[T]})}function Ye(m,b){this._pairs=[],m&&ve(m,this,b)}const we=Ye.prototype;we.append=function(b,E){this._pairs.push([b,E])},we.toString=function(b){const E=b?function(T){return b.call(this,T,Ie)}:Ie;return this._pairs.map(function(D){return E(D[0])+"="+E(D[1])},"").join("&")};function dt(m){return encodeURIComponent(m).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ut(m,b,E){if(!b)return m;const T=E&&E.encode||dt;g.isFunction(E)&&(E={serialize:E});const D=E&&E.serialize;let G;if(D?G=D(b,E):G=g.isURLSearchParams(b)?b.toString():new Ye(b,E).toString(T),G){const X=m.indexOf("#");X!==-1&&(m=m.slice(0,X)),m+=(m.indexOf("?")===-1?"?":"&")+G}return m}class gt{constructor(){this.handlers=[]}use(b,E,T){return this.handlers.push({fulfilled:b,rejected:E,synchronous:T?T.synchronous:!1,runWhen:T?T.runWhen:null}),this.handlers.length-1}eject(b){this.handlers[b]&&(this.handlers[b]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(b){g.forEach(this.handlers,function(T){T!==null&&b(T)})}}var yt=gt,Fe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},St=typeof URLSearchParams<"u"?URLSearchParams:Ye,It=typeof FormData<"u"?FormData:null,ur=typeof Blob<"u"?Blob:null,cr={isBrowser:!0,classes:{URLSearchParams:St,FormData:It,Blob:ur},protocols:["http","https","file","blob","url","data"]};const tr=typeof window<"u"&&typeof document<"u",lr=typeof navigator=="object"&&navigator||void 0,Dt=tr&&(!lr||["ReactNative","NativeScript","NS"].indexOf(lr.product)<0),Yn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",h=tr&&window.location.href||"http://localhost";var x=Object.freeze({__proto__:null,hasBrowserEnv:tr,hasStandardBrowserWebWorkerEnv:Yn,hasStandardBrowserEnv:Dt,navigator:lr,origin:h}),_={...x,...cr};function u(m,b){return ve(m,new _.classes.URLSearchParams,Object.assign({visitor:function(E,T,D,G){return _.isNode&&g.isBuffer(E)?(this.append(T,E.toString("base64")),!1):G.defaultVisitor.apply(this,arguments)}},b))}function A(m){return g.matchAll(/\w+|\[(\w*)]/g,m).map(b=>b[0]==="[]"?"":b[1]||b[0])}function H(m){const b={},E=Object.keys(m);let T;const D=E.length;let G;for(T=0;T<D;T++)G=E[T],b[G]=m[G];return b}function J(m){function b(E,T,D,G){let X=E[G++];if(X==="__proto__")return!0;const xe=Number.isFinite(+X),$e=G>=E.length;return X=!X&&g.isArray(D)?D.length:X,$e?(g.hasOwnProp(D,X)?D[X]=[D[X],T]:D[X]=T,!xe):((!D[X]||!g.isObject(D[X]))&&(D[X]=[]),b(E,T,D[X],G)&&g.isArray(D[X])&&(D[X]=H(D[X])),!xe)}if(g.isFormData(m)&&g.isFunction(m.entries)){const E={};return g.forEachEntry(m,(T,D)=>{b(A(T),D,E,0)}),E}return null}function ce(m,b,E){if(g.isString(m))try{return(b||JSON.parse)(m),g.trim(m)}catch(T){if(T.name!=="SyntaxError")throw T}return(E||JSON.stringify)(m)}const Ce={transitional:Fe,adapter:["xhr","http","fetch"],transformRequest:[function(b,E){const T=E.getContentType()||"",D=T.indexOf("application/json")>-1,G=g.isObject(b);if(G&&g.isHTMLForm(b)&&(b=new FormData(b)),g.isFormData(b))return D?JSON.stringify(J(b)):b;if(g.isArrayBuffer(b)||g.isBuffer(b)||g.isStream(b)||g.isFile(b)||g.isBlob(b)||g.isReadableStream(b))return b;if(g.isArrayBufferView(b))return b.buffer;if(g.isURLSearchParams(b))return E.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),b.toString();let xe;if(G){if(T.indexOf("application/x-www-form-urlencoded")>-1)return u(b,this.formSerializer).toString();if((xe=g.isFileList(b))||T.indexOf("multipart/form-data")>-1){const $e=this.env&&this.env.FormData;return ve(xe?{"files[]":b}:b,$e&&new $e,this.formSerializer)}}return G||D?(E.setContentType("application/json",!1),ce(b)):b}],transformResponse:[function(b){const E=this.transitional||Ce.transitional,T=E&&E.forcedJSONParsing,D=this.responseType==="json";if(g.isResponse(b)||g.isReadableStream(b))return b;if(b&&g.isString(b)&&(T&&!this.responseType||D)){const X=!(E&&E.silentJSONParsing)&&D;try{return JSON.parse(b)}catch(xe){if(X)throw xe.name==="SyntaxError"?U.from(xe,U.ERR_BAD_RESPONSE,this,null,this.response):xe}}return b}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_.classes.FormData,Blob:_.classes.Blob},validateStatus:function(b){return b>=200&&b<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],m=>{Ce.headers[m]={}});var Ke=Ce;const ze=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var pt=m=>{const b={};let E,T,D;return m&&m.split(`
|
|
9
|
+
`).forEach(function(X){D=X.indexOf(":"),E=X.substring(0,D).trim().toLowerCase(),T=X.substring(D+1).trim(),!(!E||b[E]&&ze[E])&&(E==="set-cookie"?b[E]?b[E].push(T):b[E]=[T]:b[E]=b[E]?b[E]+", "+T:T)}),b};const De=Symbol("internals");function Ge(m){return m&&String(m).trim().toLowerCase()}function Qe(m){return m===!1||m==null?m:g.isArray(m)?m.map(Qe):String(m)}function ct(m){const b=Object.create(null),E=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let T;for(;T=E.exec(m);)b[T[1]]=T[2];return b}const st=m=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(m.trim());function tt(m,b,E,T,D){if(g.isFunction(T))return T.call(this,b,E);if(D&&(b=E),!!g.isString(b)){if(g.isString(T))return b.indexOf(T)!==-1;if(g.isRegExp(T))return T.test(b)}}function at(m){return m.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(b,E,T)=>E.toUpperCase()+T)}function nt(m,b){const E=g.toCamelCase(" "+b);["get","set","has"].forEach(T=>{Object.defineProperty(m,T+E,{value:function(D,G,X){return this[T].call(this,b,D,G,X)},configurable:!0})})}class qe{constructor(b){b&&this.set(b)}set(b,E,T){const D=this;function G(xe,$e,Re){const je=Ge($e);if(!je)throw new Error("header name must be a non-empty string");const Je=g.findKey(D,je);(!Je||D[Je]===void 0||Re===!0||Re===void 0&&D[Je]!==!1)&&(D[Je||$e]=Qe(xe))}const X=(xe,$e)=>g.forEach(xe,(Re,je)=>G(Re,je,$e));if(g.isPlainObject(b)||b instanceof this.constructor)X(b,E);else if(g.isString(b)&&(b=b.trim())&&!st(b))X(pt(b),E);else if(g.isHeaders(b))for(const[xe,$e]of b.entries())G($e,xe,T);else b!=null&&G(E,b,T);return this}get(b,E){if(b=Ge(b),b){const T=g.findKey(this,b);if(T){const D=this[T];if(!E)return D;if(E===!0)return ct(D);if(g.isFunction(E))return E.call(this,D,T);if(g.isRegExp(E))return E.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(b,E){if(b=Ge(b),b){const T=g.findKey(this,b);return!!(T&&this[T]!==void 0&&(!E||tt(this,this[T],T,E)))}return!1}delete(b,E){const T=this;let D=!1;function G(X){if(X=Ge(X),X){const xe=g.findKey(T,X);xe&&(!E||tt(T,T[xe],xe,E))&&(delete T[xe],D=!0)}}return g.isArray(b)?b.forEach(G):G(b),D}clear(b){const E=Object.keys(this);let T=E.length,D=!1;for(;T--;){const G=E[T];(!b||tt(this,this[G],G,b,!0))&&(delete this[G],D=!0)}return D}normalize(b){const E=this,T={};return g.forEach(this,(D,G)=>{const X=g.findKey(T,G);if(X){E[X]=Qe(D),delete E[G];return}const xe=b?at(G):String(G).trim();xe!==G&&delete E[G],E[xe]=Qe(D),T[xe]=!0}),this}concat(...b){return this.constructor.concat(this,...b)}toJSON(b){const E=Object.create(null);return g.forEach(this,(T,D)=>{T!=null&&T!==!1&&(E[D]=b&&g.isArray(T)?T.join(", "):T)}),E}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([b,E])=>b+": "+E).join(`
|
|
10
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(b){return b instanceof this?b:new this(b)}static concat(b,...E){const T=new this(b);return E.forEach(D=>T.set(D)),T}static accessor(b){const T=(this[De]=this[De]={accessors:{}}).accessors,D=this.prototype;function G(X){const xe=Ge(X);T[xe]||(nt(D,X),T[xe]=!0)}return g.isArray(b)?b.forEach(G):G(b),this}}qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),g.reduceDescriptors(qe.prototype,({value:m},b)=>{let E=b[0].toUpperCase()+b.slice(1);return{get:()=>m,set(T){this[E]=T}}}),g.freezeMethods(qe);var Ze=qe;function Ue(m,b){const E=this||Ke,T=b||E,D=Ze.from(T.headers);let G=T.data;return g.forEach(m,function(xe){G=xe.call(E,G,D.normalize(),b?b.status:void 0)}),D.normalize(),G}function He(m){return!!(m&&m.__CANCEL__)}function We(m,b,E){U.call(this,m??"canceled",U.ERR_CANCELED,b,E),this.name="CanceledError"}g.inherits(We,U,{__CANCEL__:!0});function Me(m,b,E){const T=E.config.validateStatus;!E.status||!T||T(E.status)?m(E):b(new U("Request failed with status code "+E.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(E.status/100)-4],E.config,E.request,E))}function ne(m){const b=/^([-+\w]{1,25})(:?\/\/|:)/.exec(m);return b&&b[1]||""}function ae(m,b){m=m||10;const E=new Array(m),T=new Array(m);let D=0,G=0,X;return b=b!==void 0?b:1e3,function($e){const Re=Date.now(),je=T[G];X||(X=Re),E[D]=$e,T[D]=Re;let Je=G,kt=0;for(;Je!==D;)kt+=E[Je++],Je=Je%m;if(D=(D+1)%m,D===G&&(G=(G+1)%m),Re-X<b)return;const Vt=je&&Re-je;return Vt?Math.round(kt*1e3/Vt):void 0}}function ge(m,b){let E=0,T=1e3/b,D,G;const X=(Re,je=Date.now())=>{E=je,D=null,G&&(clearTimeout(G),G=null),m.apply(null,Re)};return[(...Re)=>{const je=Date.now(),Je=je-E;Je>=T?X(Re,je):(D=Re,G||(G=setTimeout(()=>{G=null,X(D)},T-Je)))},()=>D&&X(D)]}const le=(m,b,E=3)=>{let T=0;const D=ae(50,250);return ge(G=>{const X=G.loaded,xe=G.lengthComputable?G.total:void 0,$e=X-T,Re=D($e),je=X<=xe;T=X;const Je={loaded:X,total:xe,progress:xe?X/xe:void 0,bytes:$e,rate:Re||void 0,estimated:Re&&xe&&je?(xe-X)/Re:void 0,event:G,lengthComputable:xe!=null,[b?"download":"upload"]:!0};m(Je)},E)},v=(m,b)=>{const E=m!=null;return[T=>b[0]({lengthComputable:E,total:m,loaded:T}),b[1]]},a=m=>(...b)=>g.asap(()=>m(...b));var p=_.hasStandardBrowserEnv?((m,b)=>E=>(E=new URL(E,_.origin),m.protocol===E.protocol&&m.host===E.host&&(b||m.port===E.port)))(new URL(_.origin),_.navigator&&/(msie|trident)/i.test(_.navigator.userAgent)):()=>!0,w=_.hasStandardBrowserEnv?{write(m,b,E,T,D,G){const X=[m+"="+encodeURIComponent(b)];g.isNumber(E)&&X.push("expires="+new Date(E).toGMTString()),g.isString(T)&&X.push("path="+T),g.isString(D)&&X.push("domain="+D),G===!0&&X.push("secure"),document.cookie=X.join("; ")},read(m){const b=document.cookie.match(new RegExp("(^|;\\s*)("+m+")=([^;]*)"));return b?decodeURIComponent(b[3]):null},remove(m){this.write(m,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function I(m){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(m)}function M(m,b){return b?m.replace(/\/?\/$/,"")+"/"+b.replace(/^\/+/,""):m}function S(m,b){return m&&!I(b)?M(m,b):b}const te=m=>m instanceof Ze?{...m}:m;function pe(m,b){b=b||{};const E={};function T(Re,je,Je,kt){return g.isPlainObject(Re)&&g.isPlainObject(je)?g.merge.call({caseless:kt},Re,je):g.isPlainObject(je)?g.merge({},je):g.isArray(je)?je.slice():je}function D(Re,je,Je,kt){if(g.isUndefined(je)){if(!g.isUndefined(Re))return T(void 0,Re,Je,kt)}else return T(Re,je,Je,kt)}function G(Re,je){if(!g.isUndefined(je))return T(void 0,je)}function X(Re,je){if(g.isUndefined(je)){if(!g.isUndefined(Re))return T(void 0,Re)}else return T(void 0,je)}function xe(Re,je,Je){if(Je in b)return T(Re,je);if(Je in m)return T(void 0,Re)}const $e={url:G,method:G,data:G,baseURL:X,transformRequest:X,transformResponse:X,paramsSerializer:X,timeout:X,timeoutMessage:X,withCredentials:X,withXSRFToken:X,adapter:X,responseType:X,xsrfCookieName:X,xsrfHeaderName:X,onUploadProgress:X,onDownloadProgress:X,decompress:X,maxContentLength:X,maxBodyLength:X,beforeRedirect:X,transport:X,httpAgent:X,httpsAgent:X,cancelToken:X,socketPath:X,responseEncoding:X,validateStatus:xe,headers:(Re,je,Je)=>D(te(Re),te(je),Je,!0)};return g.forEach(Object.keys(Object.assign({},m,b)),function(je){const Je=$e[je]||D,kt=Je(m[je],b[je],je);g.isUndefined(kt)&&Je!==xe||(E[je]=kt)}),E}var me=m=>{const b=pe({},m);let{data:E,withXSRFToken:T,xsrfHeaderName:D,xsrfCookieName:G,headers:X,auth:xe}=b;b.headers=X=Ze.from(X),b.url=ut(S(b.baseURL,b.url),m.params,m.paramsSerializer),xe&&X.set("Authorization","Basic "+btoa((xe.username||"")+":"+(xe.password?unescape(encodeURIComponent(xe.password)):"")));let $e;if(g.isFormData(E)){if(_.hasStandardBrowserEnv||_.hasStandardBrowserWebWorkerEnv)X.setContentType(void 0);else if(($e=X.getContentType())!==!1){const[Re,...je]=$e?$e.split(";").map(Je=>Je.trim()).filter(Boolean):[];X.setContentType([Re||"multipart/form-data",...je].join("; "))}}if(_.hasStandardBrowserEnv&&(T&&g.isFunction(T)&&(T=T(b)),T||T!==!1&&p(b.url))){const Re=D&&G&&w.read(G);Re&&X.set(D,Re)}return b},rt=typeof XMLHttpRequest<"u"&&function(m){return new Promise(function(E,T){const D=me(m);let G=D.data;const X=Ze.from(D.headers).normalize();let{responseType:xe,onUploadProgress:$e,onDownloadProgress:Re}=D,je,Je,kt,Vt,Xe;function ht(){Vt&&Vt(),Xe&&Xe(),D.cancelToken&&D.cancelToken.unsubscribe(je),D.signal&&D.signal.removeEventListener("abort",je)}let et=new XMLHttpRequest;et.open(D.method.toUpperCase(),D.url,!0),et.timeout=D.timeout;function Rt(){if(!et)return;const Wt=Ze.from("getAllResponseHeaders"in et&&et.getAllResponseHeaders()),rr={data:!xe||xe==="text"||xe==="json"?et.responseText:et.response,status:et.status,statusText:et.statusText,headers:Wt,config:m,request:et};Me(function(Zn){E(Zn),ht()},function(Zn){T(Zn),ht()},rr),et=null}"onloadend"in et?et.onloadend=Rt:et.onreadystatechange=function(){!et||et.readyState!==4||et.status===0&&!(et.responseURL&&et.responseURL.indexOf("file:")===0)||setTimeout(Rt)},et.onabort=function(){et&&(T(new U("Request aborted",U.ECONNABORTED,m,et)),et=null)},et.onerror=function(){T(new U("Network Error",U.ERR_NETWORK,m,et)),et=null},et.ontimeout=function(){let zr=D.timeout?"timeout of "+D.timeout+"ms exceeded":"timeout exceeded";const rr=D.transitional||Fe;D.timeoutErrorMessage&&(zr=D.timeoutErrorMessage),T(new U(zr,rr.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,m,et)),et=null},G===void 0&&X.setContentType(null),"setRequestHeader"in et&&g.forEach(X.toJSON(),function(zr,rr){et.setRequestHeader(rr,zr)}),g.isUndefined(D.withCredentials)||(et.withCredentials=!!D.withCredentials),xe&&xe!=="json"&&(et.responseType=D.responseType),Re&&([kt,Xe]=le(Re,!0),et.addEventListener("progress",kt)),$e&&et.upload&&([Je,Vt]=le($e),et.upload.addEventListener("progress",Je),et.upload.addEventListener("loadend",Vt)),(D.cancelToken||D.signal)&&(je=Wt=>{et&&(T(!Wt||Wt.type?new We(null,m,et):Wt),et.abort(),et=null)},D.cancelToken&&D.cancelToken.subscribe(je),D.signal&&(D.signal.aborted?je():D.signal.addEventListener("abort",je)));const Ft=ne(D.url);if(Ft&&_.protocols.indexOf(Ft)===-1){T(new U("Unsupported protocol "+Ft+":",U.ERR_BAD_REQUEST,m));return}et.send(G||null)})},xt=(m,b)=>{const{length:E}=m=m?m.filter(Boolean):[];if(b||E){let T=new AbortController,D;const G=function(Re){if(!D){D=!0,xe();const je=Re instanceof Error?Re:this.reason;T.abort(je instanceof U?je:new We(je instanceof Error?je.message:je))}};let X=b&&setTimeout(()=>{X=null,G(new U(`timeout ${b} of ms exceeded`,U.ETIMEDOUT))},b);const xe=()=>{m&&(X&&clearTimeout(X),X=null,m.forEach(Re=>{Re.unsubscribe?Re.unsubscribe(G):Re.removeEventListener("abort",G)}),m=null)};m.forEach(Re=>Re.addEventListener("abort",G));const{signal:$e}=T;return $e.unsubscribe=()=>g.asap(xe),$e}};const bt=function*(m,b){let E=m.byteLength;if(E<b){yield m;return}let T=0,D;for(;T<E;)D=T+b,yield m.slice(T,D),T=D},At=async function*(m,b){for await(const E of Pt(m))yield*bt(E,b)},Pt=async function*(m){if(m[Symbol.asyncIterator]){yield*m;return}const b=m.getReader();try{for(;;){const{done:E,value:T}=await b.read();if(E)break;yield T}}finally{await b.cancel()}},Bt=(m,b,E,T)=>{const D=At(m,b);let G=0,X,xe=$e=>{X||(X=!0,T&&T($e))};return new ReadableStream({async pull($e){try{const{done:Re,value:je}=await D.next();if(Re){xe(),$e.close();return}let Je=je.byteLength;if(E){let kt=G+=Je;E(kt)}$e.enqueue(new Uint8Array(je))}catch(Re){throw xe(Re),Re}},cancel($e){return xe($e),D.return()}},{highWaterMark:2})},Et=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qt=Et&&typeof ReadableStream=="function",Zt=Et&&(typeof TextEncoder=="function"?(m=>b=>m.encode(b))(new TextEncoder):async m=>new Uint8Array(await new Response(m).arrayBuffer())),Lt=(m,...b)=>{try{return!!m(...b)}catch{return!1}},Nd=qt&&Lt(()=>{let m=!1;const b=new Request(_.origin,{body:new ReadableStream,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!b}),Hu=64*1024,Zi=qt&&Lt(()=>g.isReadableStream(new Response("").body)),hi={stream:Zi&&(m=>m.body)};Et&&(m=>{["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!hi[b]&&(hi[b]=g.isFunction(m[b])?E=>E[b]():(E,T)=>{throw new U(`Response type '${b}' is not supported`,U.ERR_NOT_SUPPORT,T)})})})(new Response);const Dd=async m=>{if(m==null)return 0;if(g.isBlob(m))return m.size;if(g.isSpecCompliantForm(m))return(await new Request(_.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(g.isArrayBufferView(m)||g.isArrayBuffer(m))return m.byteLength;if(g.isURLSearchParams(m)&&(m=m+""),g.isString(m))return(await Zt(m)).byteLength},qd=async(m,b)=>{const E=g.toFiniteNumber(m.getContentLength());return E??Dd(b)};var Ld=Et&&(async m=>{let{url:b,method:E,data:T,signal:D,cancelToken:G,timeout:X,onDownloadProgress:xe,onUploadProgress:$e,responseType:Re,headers:je,withCredentials:Je="same-origin",fetchOptions:kt}=me(m);Re=Re?(Re+"").toLowerCase():"text";let Vt=xt([D,G&&G.toAbortSignal()],X),Xe;const ht=Vt&&Vt.unsubscribe&&(()=>{Vt.unsubscribe()});let et;try{if($e&&Nd&&E!=="get"&&E!=="head"&&(et=await qd(je,T))!==0){let rr=new Request(b,{method:"POST",body:T,duplex:"half"}),Vr;if(g.isFormData(T)&&(Vr=rr.headers.get("content-type"))&&je.setContentType(Vr),rr.body){const[Zn,bi]=v(et,le(a($e)));T=Bt(rr.body,Hu,Zn,bi)}}g.isString(Je)||(Je=Je?"include":"omit");const Rt="credentials"in Request.prototype;Xe=new Request(b,{...kt,signal:Vt,method:E.toUpperCase(),headers:je.normalize().toJSON(),body:T,duplex:"half",credentials:Rt?Je:void 0});let Ft=await fetch(Xe);const Wt=Zi&&(Re==="stream"||Re==="response");if(Zi&&(xe||Wt&&ht)){const rr={};["status","statusText","headers"].forEach(Xu=>{rr[Xu]=Ft[Xu]});const Vr=g.toFiniteNumber(Ft.headers.get("content-length")),[Zn,bi]=xe&&v(Vr,le(a(xe),!0))||[];Ft=new Response(Bt(Ft.body,Hu,Zn,()=>{bi&&bi(),ht&&ht()}),rr)}Re=Re||"text";let zr=await hi[g.findKey(hi,Re)||"text"](Ft,m);return!Wt&&ht&&ht(),await new Promise((rr,Vr)=>{Me(rr,Vr,{data:zr,headers:Ze.from(Ft.headers),status:Ft.status,statusText:Ft.statusText,config:m,request:Xe})})}catch(Rt){throw ht&&ht(),Rt&&Rt.name==="TypeError"&&/fetch/i.test(Rt.message)?Object.assign(new U("Network Error",U.ERR_NETWORK,m,Xe),{cause:Rt.cause||Rt}):U.from(Rt,Rt&&Rt.code,m,Xe)}});const Wi={http:O,xhr:rt,fetch:Ld};g.forEach(Wi,(m,b)=>{if(m){try{Object.defineProperty(m,"name",{value:b})}catch{}Object.defineProperty(m,"adapterName",{value:b})}});const Ku=m=>`- ${m}`,Vd=m=>g.isFunction(m)||m===null||m===!1;var $u={getAdapter:m=>{m=g.isArray(m)?m:[m];const{length:b}=m;let E,T;const D={};for(let G=0;G<b;G++){E=m[G];let X;if(T=E,!Vd(E)&&(T=Wi[(X=String(E)).toLowerCase()],T===void 0))throw new U(`Unknown adapter '${X}'`);if(T)break;D[X||"#"+G]=T}if(!T){const G=Object.entries(D).map(([xe,$e])=>`adapter ${xe} `+($e===!1?"is not supported by the environment":"is not available in the build"));let X=b?G.length>1?`since :
|
|
11
|
+
`+G.map(Ku).join(`
|
|
12
|
+
`):" "+Ku(G[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+X,"ERR_NOT_SUPPORT")}return T},adapters:Wi};function Hi(m){if(m.cancelToken&&m.cancelToken.throwIfRequested(),m.signal&&m.signal.aborted)throw new We(null,m)}function Yu(m){return Hi(m),m.headers=Ze.from(m.headers),m.data=Ue.call(m,m.transformRequest),["post","put","patch"].indexOf(m.method)!==-1&&m.headers.setContentType("application/x-www-form-urlencoded",!1),$u.getAdapter(m.adapter||Ke.adapter)(m).then(function(T){return Hi(m),T.data=Ue.call(m,m.transformResponse,T),T.headers=Ze.from(T.headers),T},function(T){return He(T)||(Hi(m),T&&T.response&&(T.response.data=Ue.call(m,m.transformResponse,T.response),T.response.headers=Ze.from(T.response.headers))),Promise.reject(T)})}const Gu="1.7.9",pi={};["object","boolean","number","function","string","symbol"].forEach((m,b)=>{pi[m]=function(T){return typeof T===m||"a"+(b<1?"n ":" ")+m}});const Ju={};pi.transitional=function(b,E,T){function D(G,X){return"[Axios v"+Gu+"] Transitional option '"+G+"'"+X+(T?". "+T:"")}return(G,X,xe)=>{if(b===!1)throw new U(D(X," has been removed"+(E?" in "+E:"")),U.ERR_DEPRECATED);return E&&!Ju[X]&&(Ju[X]=!0,console.warn(D(X," has been deprecated since v"+E+" and will be removed in the near future"))),b?b(G,X,xe):!0}},pi.spelling=function(b){return(E,T)=>(console.warn(`${T} is likely a misspelling of ${b}`),!0)};function Fd(m,b,E){if(typeof m!="object")throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const T=Object.keys(m);let D=T.length;for(;D-- >0;){const G=T[D],X=b[G];if(X){const xe=m[G],$e=xe===void 0||X(xe,G,m);if($e!==!0)throw new U("option "+G+" must be "+$e,U.ERR_BAD_OPTION_VALUE);continue}if(E!==!0)throw new U("Unknown option "+G,U.ERR_BAD_OPTION)}}var gi={assertOptions:Fd,validators:pi};const br=gi.validators;class mi{constructor(b){this.defaults=b,this.interceptors={request:new yt,response:new yt}}async request(b,E){try{return await this._request(b,E)}catch(T){if(T instanceof Error){let D={};Error.captureStackTrace?Error.captureStackTrace(D):D=new Error;const G=D.stack?D.stack.replace(/^.+\n/,""):"";try{T.stack?G&&!String(T.stack).endsWith(G.replace(/^.+\n.+\n/,""))&&(T.stack+=`
|
|
13
|
+
`+G):T.stack=G}catch{}}throw T}}_request(b,E){typeof b=="string"?(E=E||{},E.url=b):E=b||{},E=pe(this.defaults,E);const{transitional:T,paramsSerializer:D,headers:G}=E;T!==void 0&&gi.assertOptions(T,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean)},!1),D!=null&&(g.isFunction(D)?E.paramsSerializer={serialize:D}:gi.assertOptions(D,{encode:br.function,serialize:br.function},!0)),gi.assertOptions(E,{baseUrl:br.spelling("baseURL"),withXsrfToken:br.spelling("withXSRFToken")},!0),E.method=(E.method||this.defaults.method||"get").toLowerCase();let X=G&&g.merge(G.common,G[E.method]);G&&g.forEach(["delete","get","head","post","put","patch","common"],Xe=>{delete G[Xe]}),E.headers=Ze.concat(X,G);const xe=[];let $e=!0;this.interceptors.request.forEach(function(ht){typeof ht.runWhen=="function"&&ht.runWhen(E)===!1||($e=$e&&ht.synchronous,xe.unshift(ht.fulfilled,ht.rejected))});const Re=[];this.interceptors.response.forEach(function(ht){Re.push(ht.fulfilled,ht.rejected)});let je,Je=0,kt;if(!$e){const Xe=[Yu.bind(this),void 0];for(Xe.unshift.apply(Xe,xe),Xe.push.apply(Xe,Re),kt=Xe.length,je=Promise.resolve(E);Je<kt;)je=je.then(Xe[Je++],Xe[Je++]);return je}kt=xe.length;let Vt=E;for(Je=0;Je<kt;){const Xe=xe[Je++],ht=xe[Je++];try{Vt=Xe(Vt)}catch(et){ht.call(this,et);break}}try{je=Yu.call(this,Vt)}catch(Xe){return Promise.reject(Xe)}for(Je=0,kt=Re.length;Je<kt;)je=je.then(Re[Je++],Re[Je++]);return je}getUri(b){b=pe(this.defaults,b);const E=S(b.baseURL,b.url);return ut(E,b.params,b.paramsSerializer)}}g.forEach(["delete","get","head","options"],function(b){mi.prototype[b]=function(E,T){return this.request(pe(T||{},{method:b,url:E,data:(T||{}).data}))}}),g.forEach(["post","put","patch"],function(b){function E(T){return function(G,X,xe){return this.request(pe(xe||{},{method:b,headers:T?{"Content-Type":"multipart/form-data"}:{},url:G,data:X}))}}mi.prototype[b]=E(),mi.prototype[b+"Form"]=E(!0)});var yi=mi;class Ki{constructor(b){if(typeof b!="function")throw new TypeError("executor must be a function.");let E;this.promise=new Promise(function(G){E=G});const T=this;this.promise.then(D=>{if(!T._listeners)return;let G=T._listeners.length;for(;G-- >0;)T._listeners[G](D);T._listeners=null}),this.promise.then=D=>{let G;const X=new Promise(xe=>{T.subscribe(xe),G=xe}).then(D);return X.cancel=function(){T.unsubscribe(G)},X},b(function(G,X,xe){T.reason||(T.reason=new We(G,X,xe),E(T.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(b){if(this.reason){b(this.reason);return}this._listeners?this._listeners.push(b):this._listeners=[b]}unsubscribe(b){if(!this._listeners)return;const E=this._listeners.indexOf(b);E!==-1&&this._listeners.splice(E,1)}toAbortSignal(){const b=new AbortController,E=T=>{b.abort(T)};return this.subscribe(E),b.signal.unsubscribe=()=>this.unsubscribe(E),b.signal}static source(){let b;return{token:new Ki(function(D){b=D}),cancel:b}}}var Zd=Ki;function Wd(m){return function(E){return m.apply(null,E)}}function Hd(m){return g.isObject(m)&&m.isAxiosError===!0}const $i={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($i).forEach(([m,b])=>{$i[b]=m});var Kd=$i;function Qu(m){const b=new yi(m),E=n(yi.prototype.request,b);return g.extend(E,yi.prototype,b,{allOwnKeys:!0}),g.extend(E,b,null,{allOwnKeys:!0}),E.create=function(D){return Qu(pe(m,D))},E}const jt=Qu(Ke);return jt.Axios=yi,jt.CanceledError=We,jt.CancelToken=Zd,jt.isCancel=He,jt.VERSION=Gu,jt.toFormData=ve,jt.AxiosError=U,jt.Cancel=jt.CanceledError,jt.all=function(b){return Promise.all(b)},jt.spread=Wd,jt.isAxiosError=Hd,jt.mergeConfig=pe,jt.AxiosHeaders=Ze,jt.formToJSON=m=>J(g.isHTMLForm(m)?new FormData(m):m),jt.getAdapter=$u.getAdapter,jt.HttpStatusCode=Kd,jt.default=jt,Ni=jt,Ni}var pr={},qn={},gr={},ui={},Di={},Wl;function ci(){return Wl||(Wl=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.getParsedType=n.ZodParsedType=n.objectUtil=n.util=void 0;var c;(function(t){t.assertEqual=i=>i;function r(i){}t.assertIs=r;function e(i){throw new Error}t.assertNever=e,t.arrayToEnum=i=>{const f={};for(const s of i)f[s]=s;return f},t.getValidEnumValues=i=>{const f=t.objectKeys(i).filter(y=>typeof i[i[y]]!="number"),s={};for(const y of f)s[y]=i[y];return t.objectValues(s)},t.objectValues=i=>t.objectKeys(i).map(function(f){return i[f]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const f=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&f.push(s);return f},t.find=(i,f)=>{for(const s of i)if(f(s))return s},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function o(i,f=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(f)}t.joinValues=o,t.jsonStringifyReplacer=(i,f)=>typeof f=="bigint"?f.toString():f})(c||(n.util=c={}));var d;(function(t){t.mergeShapes=(r,e)=>({...r,...e})})(d||(n.objectUtil=d={})),n.ZodParsedType=c.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);const l=t=>{switch(typeof t){case"undefined":return n.ZodParsedType.undefined;case"string":return n.ZodParsedType.string;case"number":return isNaN(t)?n.ZodParsedType.nan:n.ZodParsedType.number;case"boolean":return n.ZodParsedType.boolean;case"function":return n.ZodParsedType.function;case"bigint":return n.ZodParsedType.bigint;case"symbol":return n.ZodParsedType.symbol;case"object":return Array.isArray(t)?n.ZodParsedType.array:t===null?n.ZodParsedType.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?n.ZodParsedType.promise:typeof Map<"u"&&t instanceof Map?n.ZodParsedType.map:typeof Set<"u"&&t instanceof Set?n.ZodParsedType.set:typeof Date<"u"&&t instanceof Date?n.ZodParsedType.date:n.ZodParsedType.object;default:return n.ZodParsedType.unknown}};n.getParsedType=l}(Di)),Di}var Rr={},Hl;function qi(){if(Hl)return Rr;Hl=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.ZodError=Rr.quotelessJson=Rr.ZodIssueCode=void 0;const n=ci();Rr.ZodIssueCode=n.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);const c=l=>JSON.stringify(l,null,2).replace(/"([^"]+)":/g,"$1:");Rr.quotelessJson=c;let d=class ic extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(i){return i.message},e={_errors:[]},o=i=>{for(const f of i.issues)if(f.code==="invalid_union")f.unionErrors.map(o);else if(f.code==="invalid_return_type")o(f.returnTypeError);else if(f.code==="invalid_arguments")o(f.argumentsError);else if(f.path.length===0)e._errors.push(r(f));else{let s=e,y=0;for(;y<f.path.length;){const B=f.path[y];y===f.path.length-1?(s[B]=s[B]||{_errors:[]},s[B]._errors.push(r(f))):s[B]=s[B]||{_errors:[]},s=s[B],y++}}};return o(this),e}static assert(t){if(!(t instanceof ic))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.util.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},e=[];for(const o of this.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):e.push(t(o));return{formErrors:e,fieldErrors:r}}get formErrors(){return this.flatten()}};return Rr.ZodError=d,d.create=l=>new d(l),Rr}var Kl;function $l(){if(Kl)return ui;Kl=1,Object.defineProperty(ui,"__esModule",{value:!0});const n=ci(),c=qi(),d=(l,t)=>{let r;switch(l.code){case c.ZodIssueCode.invalid_type:l.received===n.ZodParsedType.undefined?r="Required":r=`Expected ${l.expected}, received ${l.received}`;break;case c.ZodIssueCode.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(l.expected,n.util.jsonStringifyReplacer)}`;break;case c.ZodIssueCode.unrecognized_keys:r=`Unrecognized key(s) in object: ${n.util.joinValues(l.keys,", ")}`;break;case c.ZodIssueCode.invalid_union:r="Invalid input";break;case c.ZodIssueCode.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${n.util.joinValues(l.options)}`;break;case c.ZodIssueCode.invalid_enum_value:r=`Invalid enum value. Expected ${n.util.joinValues(l.options)}, received '${l.received}'`;break;case c.ZodIssueCode.invalid_arguments:r="Invalid function arguments";break;case c.ZodIssueCode.invalid_return_type:r="Invalid function return type";break;case c.ZodIssueCode.invalid_date:r="Invalid date";break;case c.ZodIssueCode.invalid_string:typeof l.validation=="object"?"includes"in l.validation?(r=`Invalid input: must include "${l.validation.includes}"`,typeof l.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${l.validation.position}`)):"startsWith"in l.validation?r=`Invalid input: must start with "${l.validation.startsWith}"`:"endsWith"in l.validation?r=`Invalid input: must end with "${l.validation.endsWith}"`:n.util.assertNever(l.validation):l.validation!=="regex"?r=`Invalid ${l.validation}`:r="Invalid";break;case c.ZodIssueCode.too_small:l.type==="array"?r=`Array must contain ${l.exact?"exactly":l.inclusive?"at least":"more than"} ${l.minimum} element(s)`:l.type==="string"?r=`String must contain ${l.exact?"exactly":l.inclusive?"at least":"over"} ${l.minimum} character(s)`:l.type==="number"?r=`Number must be ${l.exact?"exactly equal to ":l.inclusive?"greater than or equal to ":"greater than "}${l.minimum}`:l.type==="date"?r=`Date must be ${l.exact?"exactly equal to ":l.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(l.minimum))}`:r="Invalid input";break;case c.ZodIssueCode.too_big:l.type==="array"?r=`Array must contain ${l.exact?"exactly":l.inclusive?"at most":"less than"} ${l.maximum} element(s)`:l.type==="string"?r=`String must contain ${l.exact?"exactly":l.inclusive?"at most":"under"} ${l.maximum} character(s)`:l.type==="number"?r=`Number must be ${l.exact?"exactly":l.inclusive?"less than or equal to":"less than"} ${l.maximum}`:l.type==="bigint"?r=`BigInt must be ${l.exact?"exactly":l.inclusive?"less than or equal to":"less than"} ${l.maximum}`:l.type==="date"?r=`Date must be ${l.exact?"exactly":l.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(l.maximum))}`:r="Invalid input";break;case c.ZodIssueCode.custom:r="Invalid input";break;case c.ZodIssueCode.invalid_intersection_types:r="Intersection results could not be merged";break;case c.ZodIssueCode.not_multiple_of:r=`Number must be a multiple of ${l.multipleOf}`;break;case c.ZodIssueCode.not_finite:r="Number must be finite";break;default:r=t.defaultError,n.util.assertNever(l)}return{message:r}};return ui.default=d,ui}var Yl;function Li(){if(Yl)return gr;Yl=1;var n=gr&&gr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(gr,"__esModule",{value:!0}),gr.getErrorMap=gr.setErrorMap=gr.defaultErrorMap=void 0;const c=n($l());gr.defaultErrorMap=c.default;let d=c.default;function l(r){d=r}gr.setErrorMap=l;function t(){return d}return gr.getErrorMap=t,gr}var Na={},Gl;function Jl(){return Gl||(Gl=1,function(n){var c=Na&&Na.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(n,"__esModule",{value:!0}),n.isAsync=n.isValid=n.isDirty=n.isAborted=n.OK=n.DIRTY=n.INVALID=n.ParseStatus=n.addIssueToContext=n.EMPTY_PATH=n.makeIssue=void 0;const d=Li(),l=c($l()),t=k=>{const{data:j,path:P,errorMaps:R,issueData:z}=k,V=[...P,...z.path||[]],F={...z,path:V};if(z.message!==void 0)return{...z,path:V,message:z.message};let ee="";const he=R.filter($=>!!$).slice().reverse();for(const $ of he)ee=$(F,{data:j,defaultError:ee}).message;return{...z,path:V,message:ee}};n.makeIssue=t,n.EMPTY_PATH=[];function r(k,j){const P=(0,d.getErrorMap)(),R=(0,n.makeIssue)({issueData:j,data:k.data,path:k.path,errorMaps:[k.common.contextualErrorMap,k.schemaErrorMap,P,P===l.default?void 0:l.default].filter(z=>!!z)});k.common.issues.push(R)}n.addIssueToContext=r;class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(j,P){const R=[];for(const z of P){if(z.status==="aborted")return n.INVALID;z.status==="dirty"&&j.dirty(),R.push(z.value)}return{status:j.value,value:R}}static async mergeObjectAsync(j,P){const R=[];for(const z of P){const V=await z.key,F=await z.value;R.push({key:V,value:F})}return e.mergeObjectSync(j,R)}static mergeObjectSync(j,P){const R={};for(const z of P){const{key:V,value:F}=z;if(V.status==="aborted"||F.status==="aborted")return n.INVALID;V.status==="dirty"&&j.dirty(),F.status==="dirty"&&j.dirty(),V.value!=="__proto__"&&(typeof F.value<"u"||z.alwaysSet)&&(R[V.value]=F.value)}return{status:j.value,value:R}}}n.ParseStatus=e,n.INVALID=Object.freeze({status:"aborted"});const o=k=>({status:"dirty",value:k});n.DIRTY=o;const i=k=>({status:"valid",value:k});n.OK=i;const f=k=>k.status==="aborted";n.isAborted=f;const s=k=>k.status==="dirty";n.isDirty=s;const y=k=>k.status==="valid";n.isValid=y;const B=k=>typeof Promise<"u"&&k instanceof Promise;n.isAsync=B}(Na)),Na}var Vi={},Ql;function ud(){return Ql||(Ql=1,Object.defineProperty(Vi,"__esModule",{value:!0})),Vi}var W={},Da={},Xl;function cd(){if(Xl)return Da;Xl=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.errorUtil=void 0;var n;return function(c){c.errToObj=d=>typeof d=="string"?{message:d}:d||{},c.toString=d=>typeof d=="string"?d:d==null?void 0:d.message}(n||(Da.errorUtil=n={})),Da}var eu;function dd(){if(eu)return W;eu=1;var n=W&&W.__classPrivateFieldGet||function(v,a,p,w){if(p==="a"&&!w)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?v!==a||!w:!a.has(v))throw new TypeError("Cannot read private member from an object whose class did not declare it");return p==="m"?w:p==="a"?w.call(v):w?w.value:a.get(v)},c=W&&W.__classPrivateFieldSet||function(v,a,p,w,I){if(w==="m")throw new TypeError("Private method is not writable");if(w==="a"&&!I)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?v!==a||!I:!a.has(v))throw new TypeError("Cannot write private member to an object whose class did not declare it");return w==="a"?I.call(v,p):I?I.value=p:a.set(v,p),p},d,l;Object.defineProperty(W,"__esModule",{value:!0}),W.boolean=W.bigint=W.array=W.any=W.coerce=W.ZodFirstPartyTypeKind=W.late=W.ZodSchema=W.Schema=W.custom=W.ZodReadonly=W.ZodPipeline=W.ZodBranded=W.BRAND=W.ZodNaN=W.ZodCatch=W.ZodDefault=W.ZodNullable=W.ZodOptional=W.ZodTransformer=W.ZodEffects=W.ZodPromise=W.ZodNativeEnum=W.ZodEnum=W.ZodLiteral=W.ZodLazy=W.ZodFunction=W.ZodSet=W.ZodMap=W.ZodRecord=W.ZodTuple=W.ZodIntersection=W.ZodDiscriminatedUnion=W.ZodUnion=W.ZodObject=W.ZodArray=W.ZodVoid=W.ZodNever=W.ZodUnknown=W.ZodAny=W.ZodNull=W.ZodUndefined=W.ZodSymbol=W.ZodDate=W.ZodBoolean=W.ZodBigInt=W.ZodNumber=W.ZodString=W.datetimeRegex=W.ZodType=void 0,W.NEVER=W.void=W.unknown=W.union=W.undefined=W.tuple=W.transformer=W.symbol=W.string=W.strictObject=W.set=W.record=W.promise=W.preprocess=W.pipeline=W.ostring=W.optional=W.onumber=W.oboolean=W.object=W.number=W.nullable=W.null=W.never=W.nativeEnum=W.nan=W.map=W.literal=W.lazy=W.intersection=W.instanceof=W.function=W.enum=W.effect=W.discriminatedUnion=W.date=void 0;const t=Li(),r=cd(),e=Jl(),o=ci(),i=qi();class f{constructor(a,p,w,I){this._cachedPath=[],this.parent=a,this.data=p,this._path=w,this._key=I}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const s=(v,a)=>{if((0,e.isValid)(a))return{success:!0,data:a.value};if(!v.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const p=new i.ZodError(v.common.issues);return this._error=p,this._error}}};function y(v){if(!v)return{};const{errorMap:a,invalid_type_error:p,required_error:w,description:I}=v;if(a&&(p||w))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:I}:{errorMap:(S,te)=>{var pe,me;const{message:Be}=v;return S.code==="invalid_enum_value"?{message:Be??te.defaultError}:typeof te.data>"u"?{message:(pe=Be??w)!==null&&pe!==void 0?pe:te.defaultError}:S.code!=="invalid_type"?{message:te.defaultError}:{message:(me=Be??p)!==null&&me!==void 0?me:te.defaultError}},description:I}}class B{get description(){return this._def.description}_getType(a){return(0,o.getParsedType)(a.data)}_getOrReturnCtx(a,p){return p||{common:a.parent.common,data:a.data,parsedType:(0,o.getParsedType)(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new e.ParseStatus,ctx:{common:a.parent.common,data:a.data,parsedType:(0,o.getParsedType)(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const p=this._parse(a);if((0,e.isAsync)(p))throw new Error("Synchronous parse encountered promise.");return p}_parseAsync(a){const p=this._parse(a);return Promise.resolve(p)}parse(a,p){const w=this.safeParse(a,p);if(w.success)return w.data;throw w.error}safeParse(a,p){var w;const I={common:{issues:[],async:(w=p==null?void 0:p.async)!==null&&w!==void 0?w:!1,contextualErrorMap:p==null?void 0:p.errorMap},path:(p==null?void 0:p.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:(0,o.getParsedType)(a)},M=this._parseSync({data:a,path:I.path,parent:I});return s(I,M)}"~validate"(a){var p,w;const I={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:(0,o.getParsedType)(a)};if(!this["~standard"].async)try{const M=this._parseSync({data:a,path:[],parent:I});return(0,e.isValid)(M)?{value:M.value}:{issues:I.common.issues}}catch(M){!((w=(p=M==null?void 0:M.message)===null||p===void 0?void 0:p.toLowerCase())===null||w===void 0)&&w.includes("encountered")&&(this["~standard"].async=!0),I.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:I}).then(M=>(0,e.isValid)(M)?{value:M.value}:{issues:I.common.issues})}async parseAsync(a,p){const w=await this.safeParseAsync(a,p);if(w.success)return w.data;throw w.error}async safeParseAsync(a,p){const w={common:{issues:[],contextualErrorMap:p==null?void 0:p.errorMap,async:!0},path:(p==null?void 0:p.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:(0,o.getParsedType)(a)},I=this._parse({data:a,path:w.path,parent:w}),M=await((0,e.isAsync)(I)?I:Promise.resolve(I));return s(w,M)}refine(a,p){const w=I=>typeof p=="string"||typeof p>"u"?{message:p}:typeof p=="function"?p(I):p;return this._refinement((I,M)=>{const S=a(I),te=()=>M.addIssue({code:i.ZodIssueCode.custom,...w(I)});return typeof Promise<"u"&&S instanceof Promise?S.then(pe=>pe?!0:(te(),!1)):S?!0:(te(),!1)})}refinement(a,p){return this._refinement((w,I)=>a(w)?!0:(I.addIssue(typeof p=="function"?p(w,I):p),!1))}_refinement(a){return new fe({schema:this,typeName:Fe.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:p=>this["~validate"](p)}}optional(){return _e.create(this,this._def)}nullable(){return Ne.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Nt.create(this)}promise(){return ue.create(this,this._def)}or(a){return Kt.create([this,a],this._def)}and(a){return sr.create(this,a,this._def)}transform(a){return new fe({...y(this._def),schema:this,typeName:Fe.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const p=typeof a=="function"?a:()=>a;return new ve({...y(this._def),innerType:this,defaultValue:p,typeName:Fe.ZodDefault})}brand(){return new we({typeName:Fe.ZodBranded,type:this,...y(this._def)})}catch(a){const p=typeof a=="function"?a:()=>a;return new Ie({...y(this._def),innerType:this,catchValue:p,typeName:Fe.ZodCatch})}describe(a){const p=this.constructor;return new p({...this._def,description:a})}pipe(a){return dt.create(this,a)}readonly(){return ut.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}W.ZodType=B,W.Schema=B,W.ZodSchema=B;const k=/^c[^\s-]{8,}$/i,j=/^[0-9a-z]+$/,P=/^[0-9A-HJKMNP-TV-Z]{26}$/i,R=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,z=/^[a-z0-9_-]{21}$/i,V=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,F=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ee=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,he="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let $;const Z=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Q=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ie=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Ee=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Oe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Le=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,re="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Y=new RegExp(`^${re}$`);function Ae(v){let a="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return v.precision?a=`${a}\\.\\d{${v.precision}}`:v.precision==null&&(a=`${a}(\\.\\d+)?`),a}function C(v){return new RegExp(`^${Ae(v)}$`)}function ye(v){let a=`${re}T${Ae(v)}`;const p=[];return p.push(v.local?"Z?":"Z"),v.offset&&p.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${p.join("|")})`,new RegExp(`^${a}$`)}W.datetimeRegex=ye;function Pe(v,a){return!!((a==="v4"||!a)&&Z.test(v)||(a==="v6"||!a)&&ie.test(v))}function N(v,a){if(!V.test(v))return!1;try{const[p]=v.split("."),w=p.replace(/-/g,"+").replace(/_/g,"/").padEnd(p.length+(4-p.length%4)%4,"="),I=JSON.parse(atob(w));return!(typeof I!="object"||I===null||!I.typ||!I.alg||a&&I.alg!==a)}catch{return!1}}function Se(v,a){return!!((a==="v4"||!a)&&Q.test(v)||(a==="v6"||!a)&&Ee.test(v))}class se extends B{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==o.ZodParsedType.string){const M=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(M,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.string,received:M.parsedType}),e.INVALID}const w=new e.ParseStatus;let I;for(const M of this._def.checks)if(M.kind==="min")a.data.length<M.value&&(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{code:i.ZodIssueCode.too_small,minimum:M.value,type:"string",inclusive:!0,exact:!1,message:M.message}),w.dirty());else if(M.kind==="max")a.data.length>M.value&&(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{code:i.ZodIssueCode.too_big,maximum:M.value,type:"string",inclusive:!0,exact:!1,message:M.message}),w.dirty());else if(M.kind==="length"){const S=a.data.length>M.value,te=a.data.length<M.value;(S||te)&&(I=this._getOrReturnCtx(a,I),S?(0,e.addIssueToContext)(I,{code:i.ZodIssueCode.too_big,maximum:M.value,type:"string",inclusive:!0,exact:!0,message:M.message}):te&&(0,e.addIssueToContext)(I,{code:i.ZodIssueCode.too_small,minimum:M.value,type:"string",inclusive:!0,exact:!0,message:M.message}),w.dirty())}else if(M.kind==="email")ee.test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"email",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty());else if(M.kind==="emoji")$||($=new RegExp(he,"u")),$.test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"emoji",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty());else if(M.kind==="uuid")R.test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"uuid",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty());else if(M.kind==="nanoid")z.test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"nanoid",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty());else if(M.kind==="cuid")k.test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"cuid",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty());else if(M.kind==="cuid2")j.test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"cuid2",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty());else if(M.kind==="ulid")P.test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"ulid",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty());else if(M.kind==="url")try{new URL(a.data)}catch{I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"url",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty()}else M.kind==="regex"?(M.regex.lastIndex=0,M.regex.test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"regex",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty())):M.kind==="trim"?a.data=a.data.trim():M.kind==="includes"?a.data.includes(M.value,M.position)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{code:i.ZodIssueCode.invalid_string,validation:{includes:M.value,position:M.position},message:M.message}),w.dirty()):M.kind==="toLowerCase"?a.data=a.data.toLowerCase():M.kind==="toUpperCase"?a.data=a.data.toUpperCase():M.kind==="startsWith"?a.data.startsWith(M.value)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{code:i.ZodIssueCode.invalid_string,validation:{startsWith:M.value},message:M.message}),w.dirty()):M.kind==="endsWith"?a.data.endsWith(M.value)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{code:i.ZodIssueCode.invalid_string,validation:{endsWith:M.value},message:M.message}),w.dirty()):M.kind==="datetime"?ye(M).test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{code:i.ZodIssueCode.invalid_string,validation:"datetime",message:M.message}),w.dirty()):M.kind==="date"?Y.test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{code:i.ZodIssueCode.invalid_string,validation:"date",message:M.message}),w.dirty()):M.kind==="time"?C(M).test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{code:i.ZodIssueCode.invalid_string,validation:"time",message:M.message}),w.dirty()):M.kind==="duration"?F.test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"duration",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty()):M.kind==="ip"?Pe(a.data,M.version)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"ip",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty()):M.kind==="jwt"?N(a.data,M.alg)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"jwt",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty()):M.kind==="cidr"?Se(a.data,M.version)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"cidr",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty()):M.kind==="base64"?Oe.test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"base64",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty()):M.kind==="base64url"?Le.test(a.data)||(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{validation:"base64url",code:i.ZodIssueCode.invalid_string,message:M.message}),w.dirty()):o.util.assertNever(M);return{status:w.value,value:a.data}}_regex(a,p,w){return this.refinement(I=>a.test(I),{validation:p,code:i.ZodIssueCode.invalid_string,...r.errorUtil.errToObj(w)})}_addCheck(a){return new se({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...r.errorUtil.errToObj(a)})}url(a){return this._addCheck({kind:"url",...r.errorUtil.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...r.errorUtil.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...r.errorUtil.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...r.errorUtil.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...r.errorUtil.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...r.errorUtil.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...r.errorUtil.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...r.errorUtil.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...r.errorUtil.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...r.errorUtil.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...r.errorUtil.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...r.errorUtil.errToObj(a)})}datetime(a){var p,w;return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(p=a==null?void 0:a.offset)!==null&&p!==void 0?p:!1,local:(w=a==null?void 0:a.local)!==null&&w!==void 0?w:!1,...r.errorUtil.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...r.errorUtil.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...r.errorUtil.errToObj(a)})}regex(a,p){return this._addCheck({kind:"regex",regex:a,...r.errorUtil.errToObj(p)})}includes(a,p){return this._addCheck({kind:"includes",value:a,position:p==null?void 0:p.position,...r.errorUtil.errToObj(p==null?void 0:p.message)})}startsWith(a,p){return this._addCheck({kind:"startsWith",value:a,...r.errorUtil.errToObj(p)})}endsWith(a,p){return this._addCheck({kind:"endsWith",value:a,...r.errorUtil.errToObj(p)})}min(a,p){return this._addCheck({kind:"min",value:a,...r.errorUtil.errToObj(p)})}max(a,p){return this._addCheck({kind:"max",value:a,...r.errorUtil.errToObj(p)})}length(a,p){return this._addCheck({kind:"length",value:a,...r.errorUtil.errToObj(p)})}nonempty(a){return this.min(1,r.errorUtil.errToObj(a))}trim(){return new se({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new se({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new se({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const p of this._def.checks)p.kind==="min"&&(a===null||p.value>a)&&(a=p.value);return a}get maxLength(){let a=null;for(const p of this._def.checks)p.kind==="max"&&(a===null||p.value<a)&&(a=p.value);return a}}W.ZodString=se,se.create=v=>{var a;return new se({checks:[],typeName:Fe.ZodString,coerce:(a=v==null?void 0:v.coerce)!==null&&a!==void 0?a:!1,...y(v)})};function be(v,a){const p=(v.toString().split(".")[1]||"").length,w=(a.toString().split(".")[1]||"").length,I=p>w?p:w,M=parseInt(v.toFixed(I).replace(".","")),S=parseInt(a.toFixed(I).replace(".",""));return M%S/Math.pow(10,I)}class ke extends B{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==o.ZodParsedType.number){const M=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(M,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.number,received:M.parsedType}),e.INVALID}let w;const I=new e.ParseStatus;for(const M of this._def.checks)M.kind==="int"?o.util.isInteger(a.data)||(w=this._getOrReturnCtx(a,w),(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:M.message}),I.dirty()):M.kind==="min"?(M.inclusive?a.data<M.value:a.data<=M.value)&&(w=this._getOrReturnCtx(a,w),(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.too_small,minimum:M.value,type:"number",inclusive:M.inclusive,exact:!1,message:M.message}),I.dirty()):M.kind==="max"?(M.inclusive?a.data>M.value:a.data>=M.value)&&(w=this._getOrReturnCtx(a,w),(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.too_big,maximum:M.value,type:"number",inclusive:M.inclusive,exact:!1,message:M.message}),I.dirty()):M.kind==="multipleOf"?be(a.data,M.value)!==0&&(w=this._getOrReturnCtx(a,w),(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.not_multiple_of,multipleOf:M.value,message:M.message}),I.dirty()):M.kind==="finite"?Number.isFinite(a.data)||(w=this._getOrReturnCtx(a,w),(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.not_finite,message:M.message}),I.dirty()):o.util.assertNever(M);return{status:I.value,value:a.data}}gte(a,p){return this.setLimit("min",a,!0,r.errorUtil.toString(p))}gt(a,p){return this.setLimit("min",a,!1,r.errorUtil.toString(p))}lte(a,p){return this.setLimit("max",a,!0,r.errorUtil.toString(p))}lt(a,p){return this.setLimit("max",a,!1,r.errorUtil.toString(p))}setLimit(a,p,w,I){return new ke({...this._def,checks:[...this._def.checks,{kind:a,value:p,inclusive:w,message:r.errorUtil.toString(I)}]})}_addCheck(a){return new ke({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:r.errorUtil.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:r.errorUtil.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:r.errorUtil.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:r.errorUtil.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:r.errorUtil.toString(a)})}multipleOf(a,p){return this._addCheck({kind:"multipleOf",value:a,message:r.errorUtil.toString(p)})}finite(a){return this._addCheck({kind:"finite",message:r.errorUtil.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:r.errorUtil.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:r.errorUtil.toString(a)})}get minValue(){let a=null;for(const p of this._def.checks)p.kind==="min"&&(a===null||p.value>a)&&(a=p.value);return a}get maxValue(){let a=null;for(const p of this._def.checks)p.kind==="max"&&(a===null||p.value<a)&&(a=p.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&o.util.isInteger(a.value))}get isFinite(){let a=null,p=null;for(const w of this._def.checks){if(w.kind==="finite"||w.kind==="int"||w.kind==="multipleOf")return!0;w.kind==="min"?(p===null||w.value>p)&&(p=w.value):w.kind==="max"&&(a===null||w.value<a)&&(a=w.value)}return Number.isFinite(p)&&Number.isFinite(a)}}W.ZodNumber=ke,ke.create=v=>new ke({checks:[],typeName:Fe.ZodNumber,coerce:(v==null?void 0:v.coerce)||!1,...y(v)});class Te extends B{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==o.ZodParsedType.bigint)return this._getInvalidInput(a);let w;const I=new e.ParseStatus;for(const M of this._def.checks)M.kind==="min"?(M.inclusive?a.data<M.value:a.data<=M.value)&&(w=this._getOrReturnCtx(a,w),(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.too_small,type:"bigint",minimum:M.value,inclusive:M.inclusive,message:M.message}),I.dirty()):M.kind==="max"?(M.inclusive?a.data>M.value:a.data>=M.value)&&(w=this._getOrReturnCtx(a,w),(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.too_big,type:"bigint",maximum:M.value,inclusive:M.inclusive,message:M.message}),I.dirty()):M.kind==="multipleOf"?a.data%M.value!==BigInt(0)&&(w=this._getOrReturnCtx(a,w),(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.not_multiple_of,multipleOf:M.value,message:M.message}),I.dirty()):o.util.assertNever(M);return{status:I.value,value:a.data}}_getInvalidInput(a){const p=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(p,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.bigint,received:p.parsedType}),e.INVALID}gte(a,p){return this.setLimit("min",a,!0,r.errorUtil.toString(p))}gt(a,p){return this.setLimit("min",a,!1,r.errorUtil.toString(p))}lte(a,p){return this.setLimit("max",a,!0,r.errorUtil.toString(p))}lt(a,p){return this.setLimit("max",a,!1,r.errorUtil.toString(p))}setLimit(a,p,w,I){return new Te({...this._def,checks:[...this._def.checks,{kind:a,value:p,inclusive:w,message:r.errorUtil.toString(I)}]})}_addCheck(a){return new Te({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:r.errorUtil.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:r.errorUtil.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:r.errorUtil.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:r.errorUtil.toString(a)})}multipleOf(a,p){return this._addCheck({kind:"multipleOf",value:a,message:r.errorUtil.toString(p)})}get minValue(){let a=null;for(const p of this._def.checks)p.kind==="min"&&(a===null||p.value>a)&&(a=p.value);return a}get maxValue(){let a=null;for(const p of this._def.checks)p.kind==="max"&&(a===null||p.value<a)&&(a=p.value);return a}}W.ZodBigInt=Te,Te.create=v=>{var a;return new Te({checks:[],typeName:Fe.ZodBigInt,coerce:(a=v==null?void 0:v.coerce)!==null&&a!==void 0?a:!1,...y(v)})};class de extends B{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==o.ZodParsedType.boolean){const w=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.boolean,received:w.parsedType}),e.INVALID}return(0,e.OK)(a.data)}}W.ZodBoolean=de,de.create=v=>new de({typeName:Fe.ZodBoolean,coerce:(v==null?void 0:v.coerce)||!1,...y(v)});class Ve extends B{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==o.ZodParsedType.date){const M=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(M,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.date,received:M.parsedType}),e.INVALID}if(isNaN(a.data.getTime())){const M=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(M,{code:i.ZodIssueCode.invalid_date}),e.INVALID}const w=new e.ParseStatus;let I;for(const M of this._def.checks)M.kind==="min"?a.data.getTime()<M.value&&(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{code:i.ZodIssueCode.too_small,message:M.message,inclusive:!0,exact:!1,minimum:M.value,type:"date"}),w.dirty()):M.kind==="max"?a.data.getTime()>M.value&&(I=this._getOrReturnCtx(a,I),(0,e.addIssueToContext)(I,{code:i.ZodIssueCode.too_big,message:M.message,inclusive:!0,exact:!1,maximum:M.value,type:"date"}),w.dirty()):o.util.assertNever(M);return{status:w.value,value:new Date(a.data.getTime())}}_addCheck(a){return new Ve({...this._def,checks:[...this._def.checks,a]})}min(a,p){return this._addCheck({kind:"min",value:a.getTime(),message:r.errorUtil.toString(p)})}max(a,p){return this._addCheck({kind:"max",value:a.getTime(),message:r.errorUtil.toString(p)})}get minDate(){let a=null;for(const p of this._def.checks)p.kind==="min"&&(a===null||p.value>a)&&(a=p.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const p of this._def.checks)p.kind==="max"&&(a===null||p.value<a)&&(a=p.value);return a!=null?new Date(a):null}}W.ZodDate=Ve,Ve.create=v=>new Ve({checks:[],coerce:(v==null?void 0:v.coerce)||!1,typeName:Fe.ZodDate,...y(v)});class it extends B{_parse(a){if(this._getType(a)!==o.ZodParsedType.symbol){const w=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.symbol,received:w.parsedType}),e.INVALID}return(0,e.OK)(a.data)}}W.ZodSymbol=it,it.create=v=>new it({typeName:Fe.ZodSymbol,...y(v)});class lt extends B{_parse(a){if(this._getType(a)!==o.ZodParsedType.undefined){const w=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.undefined,received:w.parsedType}),e.INVALID}return(0,e.OK)(a.data)}}W.ZodUndefined=lt,lt.create=v=>new lt({typeName:Fe.ZodUndefined,...y(v)});class ot extends B{_parse(a){if(this._getType(a)!==o.ZodParsedType.null){const w=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.null,received:w.parsedType}),e.INVALID}return(0,e.OK)(a.data)}}W.ZodNull=ot,ot.create=v=>new ot({typeName:Fe.ZodNull,...y(v)});class wt extends B{constructor(){super(...arguments),this._any=!0}_parse(a){return(0,e.OK)(a.data)}}W.ZodAny=wt,wt.create=v=>new wt({typeName:Fe.ZodAny,...y(v)});class Ut extends B{constructor(){super(...arguments),this._unknown=!0}_parse(a){return(0,e.OK)(a.data)}}W.ZodUnknown=Ut,Ut.create=v=>new Ut({typeName:Fe.ZodUnknown,...y(v)});class Ot extends B{_parse(a){const p=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(p,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.never,received:p.parsedType}),e.INVALID}}W.ZodNever=Ot,Ot.create=v=>new Ot({typeName:Fe.ZodNever,...y(v)});class Qt extends B{_parse(a){if(this._getType(a)!==o.ZodParsedType.undefined){const w=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.void,received:w.parsedType}),e.INVALID}return(0,e.OK)(a.data)}}W.ZodVoid=Qt,Qt.create=v=>new Qt({typeName:Fe.ZodVoid,...y(v)});class Nt extends B{_parse(a){const{ctx:p,status:w}=this._processInputParams(a),I=this._def;if(p.parsedType!==o.ZodParsedType.array)return(0,e.addIssueToContext)(p,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.array,received:p.parsedType}),e.INVALID;if(I.exactLength!==null){const S=p.data.length>I.exactLength.value,te=p.data.length<I.exactLength.value;(S||te)&&((0,e.addIssueToContext)(p,{code:S?i.ZodIssueCode.too_big:i.ZodIssueCode.too_small,minimum:te?I.exactLength.value:void 0,maximum:S?I.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:I.exactLength.message}),w.dirty())}if(I.minLength!==null&&p.data.length<I.minLength.value&&((0,e.addIssueToContext)(p,{code:i.ZodIssueCode.too_small,minimum:I.minLength.value,type:"array",inclusive:!0,exact:!1,message:I.minLength.message}),w.dirty()),I.maxLength!==null&&p.data.length>I.maxLength.value&&((0,e.addIssueToContext)(p,{code:i.ZodIssueCode.too_big,maximum:I.maxLength.value,type:"array",inclusive:!0,exact:!1,message:I.maxLength.message}),w.dirty()),p.common.async)return Promise.all([...p.data].map((S,te)=>I.type._parseAsync(new f(p,S,p.path,te)))).then(S=>e.ParseStatus.mergeArray(w,S));const M=[...p.data].map((S,te)=>I.type._parseSync(new f(p,S,p.path,te)));return e.ParseStatus.mergeArray(w,M)}get element(){return this._def.type}min(a,p){return new Nt({...this._def,minLength:{value:a,message:r.errorUtil.toString(p)}})}max(a,p){return new Nt({...this._def,maxLength:{value:a,message:r.errorUtil.toString(p)}})}length(a,p){return new Nt({...this._def,exactLength:{value:a,message:r.errorUtil.toString(p)}})}nonempty(a){return this.min(1,a)}}W.ZodArray=Nt,Nt.create=(v,a)=>new Nt({type:v,minLength:null,maxLength:null,exactLength:null,typeName:Fe.ZodArray,...y(a)});function Gt(v){if(v instanceof mt){const a={};for(const p in v.shape){const w=v.shape[p];a[p]=_e.create(Gt(w))}return new mt({...v._def,shape:()=>a})}else return v instanceof Nt?new Nt({...v._def,type:Gt(v.element)}):v instanceof _e?_e.create(Gt(v.unwrap())):v instanceof Ne?Ne.create(Gt(v.unwrap())):v instanceof zt?zt.create(v.items.map(a=>Gt(a))):v}class mt extends B{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),p=o.util.objectKeys(a);return this._cached={shape:a,keys:p}}_parse(a){if(this._getType(a)!==o.ZodParsedType.object){const me=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(me,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.object,received:me.parsedType}),e.INVALID}const{status:w,ctx:I}=this._processInputParams(a),{shape:M,keys:S}=this._getCached(),te=[];if(!(this._def.catchall instanceof Ot&&this._def.unknownKeys==="strip"))for(const me in I.data)S.includes(me)||te.push(me);const pe=[];for(const me of S){const Be=M[me],rt=I.data[me];pe.push({key:{status:"valid",value:me},value:Be._parse(new f(I,rt,I.path,me)),alwaysSet:me in I.data})}if(this._def.catchall instanceof Ot){const me=this._def.unknownKeys;if(me==="passthrough")for(const Be of te)pe.push({key:{status:"valid",value:Be},value:{status:"valid",value:I.data[Be]}});else if(me==="strict")te.length>0&&((0,e.addIssueToContext)(I,{code:i.ZodIssueCode.unrecognized_keys,keys:te}),w.dirty());else if(me!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const me=this._def.catchall;for(const Be of te){const rt=I.data[Be];pe.push({key:{status:"valid",value:Be},value:me._parse(new f(I,rt,I.path,Be)),alwaysSet:Be in I.data})}}return I.common.async?Promise.resolve().then(async()=>{const me=[];for(const Be of pe){const rt=await Be.key,ft=await Be.value;me.push({key:rt,value:ft,alwaysSet:Be.alwaysSet})}return me}).then(me=>e.ParseStatus.mergeObjectSync(w,me)):e.ParseStatus.mergeObjectSync(w,pe)}get shape(){return this._def.shape()}strict(a){return r.errorUtil.errToObj,new mt({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(p,w)=>{var I,M,S,te;const pe=(S=(M=(I=this._def).errorMap)===null||M===void 0?void 0:M.call(I,p,w).message)!==null&&S!==void 0?S:w.defaultError;return p.code==="unrecognized_keys"?{message:(te=r.errorUtil.errToObj(a).message)!==null&&te!==void 0?te:pe}:{message:pe}}}:{}})}strip(){return new mt({...this._def,unknownKeys:"strip"})}passthrough(){return new mt({...this._def,unknownKeys:"passthrough"})}extend(a){return new mt({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new mt({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:Fe.ZodObject})}setKey(a,p){return this.augment({[a]:p})}catchall(a){return new mt({...this._def,catchall:a})}pick(a){const p={};return o.util.objectKeys(a).forEach(w=>{a[w]&&this.shape[w]&&(p[w]=this.shape[w])}),new mt({...this._def,shape:()=>p})}omit(a){const p={};return o.util.objectKeys(this.shape).forEach(w=>{a[w]||(p[w]=this.shape[w])}),new mt({...this._def,shape:()=>p})}deepPartial(){return Gt(this)}partial(a){const p={};return o.util.objectKeys(this.shape).forEach(w=>{const I=this.shape[w];a&&!a[w]?p[w]=I:p[w]=I.optional()}),new mt({...this._def,shape:()=>p})}required(a){const p={};return o.util.objectKeys(this.shape).forEach(w=>{if(a&&!a[w])p[w]=this.shape[w];else{let M=this.shape[w];for(;M instanceof _e;)M=M._def.innerType;p[w]=M}}),new mt({...this._def,shape:()=>p})}keyof(){return K(o.util.objectKeys(this.shape))}}W.ZodObject=mt,mt.create=(v,a)=>new mt({shape:()=>v,unknownKeys:"strip",catchall:Ot.create(),typeName:Fe.ZodObject,...y(a)}),mt.strictCreate=(v,a)=>new mt({shape:()=>v,unknownKeys:"strict",catchall:Ot.create(),typeName:Fe.ZodObject,...y(a)}),mt.lazycreate=(v,a)=>new mt({shape:v,unknownKeys:"strip",catchall:Ot.create(),typeName:Fe.ZodObject,...y(a)});class Kt extends B{_parse(a){const{ctx:p}=this._processInputParams(a),w=this._def.options;function I(M){for(const te of M)if(te.result.status==="valid")return te.result;for(const te of M)if(te.result.status==="dirty")return p.common.issues.push(...te.ctx.common.issues),te.result;const S=M.map(te=>new i.ZodError(te.ctx.common.issues));return(0,e.addIssueToContext)(p,{code:i.ZodIssueCode.invalid_union,unionErrors:S}),e.INVALID}if(p.common.async)return Promise.all(w.map(async M=>{const S={...p,common:{...p.common,issues:[]},parent:null};return{result:await M._parseAsync({data:p.data,path:p.path,parent:S}),ctx:S}})).then(I);{let M;const S=[];for(const pe of w){const me={...p,common:{...p.common,issues:[]},parent:null},Be=pe._parseSync({data:p.data,path:p.path,parent:me});if(Be.status==="valid")return Be;Be.status==="dirty"&&!M&&(M={result:Be,ctx:me}),me.common.issues.length&&S.push(me.common.issues)}if(M)return p.common.issues.push(...M.ctx.common.issues),M.result;const te=S.map(pe=>new i.ZodError(pe));return(0,e.addIssueToContext)(p,{code:i.ZodIssueCode.invalid_union,unionErrors:te}),e.INVALID}}get options(){return this._def.options}}W.ZodUnion=Kt,Kt.create=(v,a)=>new Kt({options:v,typeName:Fe.ZodUnion,...y(a)});const Mt=v=>v instanceof U?Mt(v.schema):v instanceof fe?Mt(v.innerType()):v instanceof q?[v.value]:v instanceof O?v.options:v instanceof oe?o.util.objectValues(v.enum):v instanceof ve?Mt(v._def.innerType):v instanceof lt?[void 0]:v instanceof ot?[null]:v instanceof _e?[void 0,...Mt(v.unwrap())]:v instanceof Ne?[null,...Mt(v.unwrap())]:v instanceof we||v instanceof ut?Mt(v.unwrap()):v instanceof Ie?Mt(v._def.innerType):[];class $t extends B{_parse(a){const{ctx:p}=this._processInputParams(a);if(p.parsedType!==o.ZodParsedType.object)return(0,e.addIssueToContext)(p,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.object,received:p.parsedType}),e.INVALID;const w=this.discriminator,I=p.data[w],M=this.optionsMap.get(I);return M?p.common.async?M._parseAsync({data:p.data,path:p.path,parent:p}):M._parseSync({data:p.data,path:p.path,parent:p}):((0,e.addIssueToContext)(p,{code:i.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[w]}),e.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,p,w){const I=new Map;for(const M of p){const S=Mt(M.shape[a]);if(!S.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(const te of S){if(I.has(te))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(te)}`);I.set(te,M)}}return new $t({typeName:Fe.ZodDiscriminatedUnion,discriminator:a,options:p,optionsMap:I,...y(w)})}}W.ZodDiscriminatedUnion=$t;function Jt(v,a){const p=(0,o.getParsedType)(v),w=(0,o.getParsedType)(a);if(v===a)return{valid:!0,data:v};if(p===o.ZodParsedType.object&&w===o.ZodParsedType.object){const I=o.util.objectKeys(a),M=o.util.objectKeys(v).filter(te=>I.indexOf(te)!==-1),S={...v,...a};for(const te of M){const pe=Jt(v[te],a[te]);if(!pe.valid)return{valid:!1};S[te]=pe.data}return{valid:!0,data:S}}else if(p===o.ZodParsedType.array&&w===o.ZodParsedType.array){if(v.length!==a.length)return{valid:!1};const I=[];for(let M=0;M<v.length;M++){const S=v[M],te=a[M],pe=Jt(S,te);if(!pe.valid)return{valid:!1};I.push(pe.data)}return{valid:!0,data:I}}else return p===o.ZodParsedType.date&&w===o.ZodParsedType.date&&+v==+a?{valid:!0,data:v}:{valid:!1}}class sr extends B{_parse(a){const{status:p,ctx:w}=this._processInputParams(a),I=(M,S)=>{if((0,e.isAborted)(M)||(0,e.isAborted)(S))return e.INVALID;const te=Jt(M.value,S.value);return te.valid?(((0,e.isDirty)(M)||(0,e.isDirty)(S))&&p.dirty(),{status:p.value,value:te.data}):((0,e.addIssueToContext)(w,{code:i.ZodIssueCode.invalid_intersection_types}),e.INVALID)};return w.common.async?Promise.all([this._def.left._parseAsync({data:w.data,path:w.path,parent:w}),this._def.right._parseAsync({data:w.data,path:w.path,parent:w})]).then(([M,S])=>I(M,S)):I(this._def.left._parseSync({data:w.data,path:w.path,parent:w}),this._def.right._parseSync({data:w.data,path:w.path,parent:w}))}}W.ZodIntersection=sr,sr.create=(v,a,p)=>new sr({left:v,right:a,typeName:Fe.ZodIntersection,...y(p)});class zt extends B{_parse(a){const{status:p,ctx:w}=this._processInputParams(a);if(w.parsedType!==o.ZodParsedType.array)return(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.array,received:w.parsedType}),e.INVALID;if(w.data.length<this._def.items.length)return(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.INVALID;!this._def.rest&&w.data.length>this._def.items.length&&((0,e.addIssueToContext)(w,{code:i.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),p.dirty());const M=[...w.data].map((S,te)=>{const pe=this._def.items[te]||this._def.rest;return pe?pe._parse(new f(w,S,w.path,te)):null}).filter(S=>!!S);return w.common.async?Promise.all(M).then(S=>e.ParseStatus.mergeArray(p,S)):e.ParseStatus.mergeArray(p,M)}get items(){return this._def.items}rest(a){return new zt({...this._def,rest:a})}}W.ZodTuple=zt,zt.create=(v,a)=>{if(!Array.isArray(v))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new zt({items:v,typeName:Fe.ZodTuple,rest:null,...y(a)})};class Xt extends B{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:p,ctx:w}=this._processInputParams(a);if(w.parsedType!==o.ZodParsedType.object)return(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.object,received:w.parsedType}),e.INVALID;const I=[],M=this._def.keyType,S=this._def.valueType;for(const te in w.data)I.push({key:M._parse(new f(w,te,w.path,te)),value:S._parse(new f(w,w.data[te],w.path,te)),alwaysSet:te in w.data});return w.common.async?e.ParseStatus.mergeObjectAsync(p,I):e.ParseStatus.mergeObjectSync(p,I)}get element(){return this._def.valueType}static create(a,p,w){return p instanceof B?new Xt({keyType:a,valueType:p,typeName:Fe.ZodRecord,...y(w)}):new Xt({keyType:se.create(),valueType:a,typeName:Fe.ZodRecord,...y(p)})}}W.ZodRecord=Xt;class er extends B{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:p,ctx:w}=this._processInputParams(a);if(w.parsedType!==o.ZodParsedType.map)return(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.map,received:w.parsedType}),e.INVALID;const I=this._def.keyType,M=this._def.valueType,S=[...w.data.entries()].map(([te,pe],me)=>({key:I._parse(new f(w,te,w.path,[me,"key"])),value:M._parse(new f(w,pe,w.path,[me,"value"]))}));if(w.common.async){const te=new Map;return Promise.resolve().then(async()=>{for(const pe of S){const me=await pe.key,Be=await pe.value;if(me.status==="aborted"||Be.status==="aborted")return e.INVALID;(me.status==="dirty"||Be.status==="dirty")&&p.dirty(),te.set(me.value,Be.value)}return{status:p.value,value:te}})}else{const te=new Map;for(const pe of S){const me=pe.key,Be=pe.value;if(me.status==="aborted"||Be.status==="aborted")return e.INVALID;(me.status==="dirty"||Be.status==="dirty")&&p.dirty(),te.set(me.value,Be.value)}return{status:p.value,value:te}}}}W.ZodMap=er,er.create=(v,a,p)=>new er({valueType:a,keyType:v,typeName:Fe.ZodMap,...y(p)});class L extends B{_parse(a){const{status:p,ctx:w}=this._processInputParams(a);if(w.parsedType!==o.ZodParsedType.set)return(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.set,received:w.parsedType}),e.INVALID;const I=this._def;I.minSize!==null&&w.data.size<I.minSize.value&&((0,e.addIssueToContext)(w,{code:i.ZodIssueCode.too_small,minimum:I.minSize.value,type:"set",inclusive:!0,exact:!1,message:I.minSize.message}),p.dirty()),I.maxSize!==null&&w.data.size>I.maxSize.value&&((0,e.addIssueToContext)(w,{code:i.ZodIssueCode.too_big,maximum:I.maxSize.value,type:"set",inclusive:!0,exact:!1,message:I.maxSize.message}),p.dirty());const M=this._def.valueType;function S(pe){const me=new Set;for(const Be of pe){if(Be.status==="aborted")return e.INVALID;Be.status==="dirty"&&p.dirty(),me.add(Be.value)}return{status:p.value,value:me}}const te=[...w.data.values()].map((pe,me)=>M._parse(new f(w,pe,w.path,me)));return w.common.async?Promise.all(te).then(pe=>S(pe)):S(te)}min(a,p){return new L({...this._def,minSize:{value:a,message:r.errorUtil.toString(p)}})}max(a,p){return new L({...this._def,maxSize:{value:a,message:r.errorUtil.toString(p)}})}size(a,p){return this.min(a,p).max(a,p)}nonempty(a){return this.min(1,a)}}W.ZodSet=L,L.create=(v,a)=>new L({valueType:v,minSize:null,maxSize:null,typeName:Fe.ZodSet,...y(a)});class g extends B{constructor(){super(...arguments),this.validate=this.implement}_parse(a){const{ctx:p}=this._processInputParams(a);if(p.parsedType!==o.ZodParsedType.function)return(0,e.addIssueToContext)(p,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.function,received:p.parsedType}),e.INVALID;function w(te,pe){return(0,e.makeIssue)({data:te,path:p.path,errorMaps:[p.common.contextualErrorMap,p.schemaErrorMap,(0,t.getErrorMap)(),t.defaultErrorMap].filter(me=>!!me),issueData:{code:i.ZodIssueCode.invalid_arguments,argumentsError:pe}})}function I(te,pe){return(0,e.makeIssue)({data:te,path:p.path,errorMaps:[p.common.contextualErrorMap,p.schemaErrorMap,(0,t.getErrorMap)(),t.defaultErrorMap].filter(me=>!!me),issueData:{code:i.ZodIssueCode.invalid_return_type,returnTypeError:pe}})}const M={errorMap:p.common.contextualErrorMap},S=p.data;if(this._def.returns instanceof ue){const te=this;return(0,e.OK)(async function(...pe){const me=new i.ZodError([]),Be=await te._def.args.parseAsync(pe,M).catch(xt=>{throw me.addIssue(w(pe,xt)),me}),rt=await Reflect.apply(S,this,Be);return await te._def.returns._def.type.parseAsync(rt,M).catch(xt=>{throw me.addIssue(I(rt,xt)),me})})}else{const te=this;return(0,e.OK)(function(...pe){const me=te._def.args.safeParse(pe,M);if(!me.success)throw new i.ZodError([w(pe,me.error)]);const Be=Reflect.apply(S,this,me.data),rt=te._def.returns.safeParse(Be,M);if(!rt.success)throw new i.ZodError([I(Be,rt.error)]);return rt.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...a){return new g({...this._def,args:zt.create(a).rest(Ut.create())})}returns(a){return new g({...this._def,returns:a})}implement(a){return this.parse(a)}strictImplement(a){return this.parse(a)}static create(a,p,w){return new g({args:a||zt.create([]).rest(Ut.create()),returns:p||Ut.create(),typeName:Fe.ZodFunction,...y(w)})}}W.ZodFunction=g;class U extends B{get schema(){return this._def.getter()}_parse(a){const{ctx:p}=this._processInputParams(a);return this._def.getter()._parse({data:p.data,path:p.path,parent:p})}}W.ZodLazy=U,U.create=(v,a)=>new U({getter:v,typeName:Fe.ZodLazy,...y(a)});class q extends B{_parse(a){if(a.data!==this._def.value){const p=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(p,{received:p.data,code:i.ZodIssueCode.invalid_literal,expected:this._def.value}),e.INVALID}return{status:"valid",value:a.data}}get value(){return this._def.value}}W.ZodLiteral=q,q.create=(v,a)=>new q({value:v,typeName:Fe.ZodLiteral,...y(a)});function K(v,a){return new O({values:v,typeName:Fe.ZodEnum,...y(a)})}class O extends B{constructor(){super(...arguments),d.set(this,void 0)}_parse(a){if(typeof a.data!="string"){const p=this._getOrReturnCtx(a),w=this._def.values;return(0,e.addIssueToContext)(p,{expected:o.util.joinValues(w),received:p.parsedType,code:i.ZodIssueCode.invalid_type}),e.INVALID}if(n(this,d,"f")||c(this,d,new Set(this._def.values),"f"),!n(this,d,"f").has(a.data)){const p=this._getOrReturnCtx(a),w=this._def.values;return(0,e.addIssueToContext)(p,{received:p.data,code:i.ZodIssueCode.invalid_enum_value,options:w}),e.INVALID}return(0,e.OK)(a.data)}get options(){return this._def.values}get enum(){const a={};for(const p of this._def.values)a[p]=p;return a}get Values(){const a={};for(const p of this._def.values)a[p]=p;return a}get Enum(){const a={};for(const p of this._def.values)a[p]=p;return a}extract(a,p=this._def){return O.create(a,{...this._def,...p})}exclude(a,p=this._def){return O.create(this.options.filter(w=>!a.includes(w)),{...this._def,...p})}}W.ZodEnum=O,d=new WeakMap,O.create=K;class oe extends B{constructor(){super(...arguments),l.set(this,void 0)}_parse(a){const p=o.util.getValidEnumValues(this._def.values),w=this._getOrReturnCtx(a);if(w.parsedType!==o.ZodParsedType.string&&w.parsedType!==o.ZodParsedType.number){const I=o.util.objectValues(p);return(0,e.addIssueToContext)(w,{expected:o.util.joinValues(I),received:w.parsedType,code:i.ZodIssueCode.invalid_type}),e.INVALID}if(n(this,l,"f")||c(this,l,new Set(o.util.getValidEnumValues(this._def.values)),"f"),!n(this,l,"f").has(a.data)){const I=o.util.objectValues(p);return(0,e.addIssueToContext)(w,{received:w.data,code:i.ZodIssueCode.invalid_enum_value,options:I}),e.INVALID}return(0,e.OK)(a.data)}get enum(){return this._def.values}}W.ZodNativeEnum=oe,l=new WeakMap,oe.create=(v,a)=>new oe({values:v,typeName:Fe.ZodNativeEnum,...y(a)});class ue extends B{unwrap(){return this._def.type}_parse(a){const{ctx:p}=this._processInputParams(a);if(p.parsedType!==o.ZodParsedType.promise&&p.common.async===!1)return(0,e.addIssueToContext)(p,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.promise,received:p.parsedType}),e.INVALID;const w=p.parsedType===o.ZodParsedType.promise?p.data:Promise.resolve(p.data);return(0,e.OK)(w.then(I=>this._def.type.parseAsync(I,{path:p.path,errorMap:p.common.contextualErrorMap})))}}W.ZodPromise=ue,ue.create=(v,a)=>new ue({type:v,typeName:Fe.ZodPromise,...y(a)});class fe extends B{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Fe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:p,ctx:w}=this._processInputParams(a),I=this._def.effect||null,M={addIssue:S=>{(0,e.addIssueToContext)(w,S),S.fatal?p.abort():p.dirty()},get path(){return w.path}};if(M.addIssue=M.addIssue.bind(M),I.type==="preprocess"){const S=I.transform(w.data,M);if(w.common.async)return Promise.resolve(S).then(async te=>{if(p.value==="aborted")return e.INVALID;const pe=await this._def.schema._parseAsync({data:te,path:w.path,parent:w});return pe.status==="aborted"?e.INVALID:pe.status==="dirty"||p.value==="dirty"?(0,e.DIRTY)(pe.value):pe});{if(p.value==="aborted")return e.INVALID;const te=this._def.schema._parseSync({data:S,path:w.path,parent:w});return te.status==="aborted"?e.INVALID:te.status==="dirty"||p.value==="dirty"?(0,e.DIRTY)(te.value):te}}if(I.type==="refinement"){const S=te=>{const pe=I.refinement(te,M);if(w.common.async)return Promise.resolve(pe);if(pe instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return te};if(w.common.async===!1){const te=this._def.schema._parseSync({data:w.data,path:w.path,parent:w});return te.status==="aborted"?e.INVALID:(te.status==="dirty"&&p.dirty(),S(te.value),{status:p.value,value:te.value})}else return this._def.schema._parseAsync({data:w.data,path:w.path,parent:w}).then(te=>te.status==="aborted"?e.INVALID:(te.status==="dirty"&&p.dirty(),S(te.value).then(()=>({status:p.value,value:te.value}))))}if(I.type==="transform")if(w.common.async===!1){const S=this._def.schema._parseSync({data:w.data,path:w.path,parent:w});if(!(0,e.isValid)(S))return S;const te=I.transform(S.value,M);if(te instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:p.value,value:te}}else return this._def.schema._parseAsync({data:w.data,path:w.path,parent:w}).then(S=>(0,e.isValid)(S)?Promise.resolve(I.transform(S.value,M)).then(te=>({status:p.value,value:te})):S);o.util.assertNever(I)}}W.ZodEffects=fe,W.ZodTransformer=fe,fe.create=(v,a,p)=>new fe({schema:v,typeName:Fe.ZodEffects,effect:a,...y(p)}),fe.createWithPreprocess=(v,a,p)=>new fe({schema:a,effect:{type:"preprocess",transform:v},typeName:Fe.ZodEffects,...y(p)});class _e extends B{_parse(a){return this._getType(a)===o.ZodParsedType.undefined?(0,e.OK)(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}W.ZodOptional=_e,_e.create=(v,a)=>new _e({innerType:v,typeName:Fe.ZodOptional,...y(a)});class Ne extends B{_parse(a){return this._getType(a)===o.ZodParsedType.null?(0,e.OK)(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}W.ZodNullable=Ne,Ne.create=(v,a)=>new Ne({innerType:v,typeName:Fe.ZodNullable,...y(a)});class ve extends B{_parse(a){const{ctx:p}=this._processInputParams(a);let w=p.data;return p.parsedType===o.ZodParsedType.undefined&&(w=this._def.defaultValue()),this._def.innerType._parse({data:w,path:p.path,parent:p})}removeDefault(){return this._def.innerType}}W.ZodDefault=ve,ve.create=(v,a)=>new ve({innerType:v,typeName:Fe.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...y(a)});class Ie extends B{_parse(a){const{ctx:p}=this._processInputParams(a),w={...p,common:{...p.common,issues:[]}},I=this._def.innerType._parse({data:w.data,path:w.path,parent:{...w}});return(0,e.isAsync)(I)?I.then(M=>({status:"valid",value:M.status==="valid"?M.value:this._def.catchValue({get error(){return new i.ZodError(w.common.issues)},input:w.data})})):{status:"valid",value:I.status==="valid"?I.value:this._def.catchValue({get error(){return new i.ZodError(w.common.issues)},input:w.data})}}removeCatch(){return this._def.innerType}}W.ZodCatch=Ie,Ie.create=(v,a)=>new Ie({innerType:v,typeName:Fe.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...y(a)});class Ye extends B{_parse(a){if(this._getType(a)!==o.ZodParsedType.nan){const w=this._getOrReturnCtx(a);return(0,e.addIssueToContext)(w,{code:i.ZodIssueCode.invalid_type,expected:o.ZodParsedType.nan,received:w.parsedType}),e.INVALID}return{status:"valid",value:a.data}}}W.ZodNaN=Ye,Ye.create=v=>new Ye({typeName:Fe.ZodNaN,...y(v)}),W.BRAND=Symbol("zod_brand");class we extends B{_parse(a){const{ctx:p}=this._processInputParams(a),w=p.data;return this._def.type._parse({data:w,path:p.path,parent:p})}unwrap(){return this._def.type}}W.ZodBranded=we;class dt extends B{_parse(a){const{status:p,ctx:w}=this._processInputParams(a);if(w.common.async)return(async()=>{const M=await this._def.in._parseAsync({data:w.data,path:w.path,parent:w});return M.status==="aborted"?e.INVALID:M.status==="dirty"?(p.dirty(),(0,e.DIRTY)(M.value)):this._def.out._parseAsync({data:M.value,path:w.path,parent:w})})();{const I=this._def.in._parseSync({data:w.data,path:w.path,parent:w});return I.status==="aborted"?e.INVALID:I.status==="dirty"?(p.dirty(),{status:"dirty",value:I.value}):this._def.out._parseSync({data:I.value,path:w.path,parent:w})}}static create(a,p){return new dt({in:a,out:p,typeName:Fe.ZodPipeline})}}W.ZodPipeline=dt;class ut extends B{_parse(a){const p=this._def.innerType._parse(a),w=I=>((0,e.isValid)(I)&&(I.value=Object.freeze(I.value)),I);return(0,e.isAsync)(p)?p.then(I=>w(I)):w(p)}unwrap(){return this._def.innerType}}W.ZodReadonly=ut,ut.create=(v,a)=>new ut({innerType:v,typeName:Fe.ZodReadonly,...y(a)});function gt(v,a){const p=typeof v=="function"?v(a):typeof v=="string"?{message:v}:v;return typeof p=="string"?{message:p}:p}function yt(v,a={},p){return v?wt.create().superRefine((w,I)=>{var M,S;const te=v(w);if(te instanceof Promise)return te.then(pe=>{var me,Be;if(!pe){const rt=gt(a,w),ft=(Be=(me=rt.fatal)!==null&&me!==void 0?me:p)!==null&&Be!==void 0?Be:!0;I.addIssue({code:"custom",...rt,fatal:ft})}});if(!te){const pe=gt(a,w),me=(S=(M=pe.fatal)!==null&&M!==void 0?M:p)!==null&&S!==void 0?S:!0;I.addIssue({code:"custom",...pe,fatal:me})}}):wt.create()}W.custom=yt,W.late={object:mt.lazycreate};var Fe;(function(v){v.ZodString="ZodString",v.ZodNumber="ZodNumber",v.ZodNaN="ZodNaN",v.ZodBigInt="ZodBigInt",v.ZodBoolean="ZodBoolean",v.ZodDate="ZodDate",v.ZodSymbol="ZodSymbol",v.ZodUndefined="ZodUndefined",v.ZodNull="ZodNull",v.ZodAny="ZodAny",v.ZodUnknown="ZodUnknown",v.ZodNever="ZodNever",v.ZodVoid="ZodVoid",v.ZodArray="ZodArray",v.ZodObject="ZodObject",v.ZodUnion="ZodUnion",v.ZodDiscriminatedUnion="ZodDiscriminatedUnion",v.ZodIntersection="ZodIntersection",v.ZodTuple="ZodTuple",v.ZodRecord="ZodRecord",v.ZodMap="ZodMap",v.ZodSet="ZodSet",v.ZodFunction="ZodFunction",v.ZodLazy="ZodLazy",v.ZodLiteral="ZodLiteral",v.ZodEnum="ZodEnum",v.ZodEffects="ZodEffects",v.ZodNativeEnum="ZodNativeEnum",v.ZodOptional="ZodOptional",v.ZodNullable="ZodNullable",v.ZodDefault="ZodDefault",v.ZodCatch="ZodCatch",v.ZodPromise="ZodPromise",v.ZodBranded="ZodBranded",v.ZodPipeline="ZodPipeline",v.ZodReadonly="ZodReadonly"})(Fe||(W.ZodFirstPartyTypeKind=Fe={}));const St=(v,a={message:`Input not instance of ${v.name}`})=>yt(p=>p instanceof v,a);W.instanceof=St;const It=se.create;W.string=It;const ur=ke.create;W.number=ur;const cr=Ye.create;W.nan=cr;const tr=Te.create;W.bigint=tr;const lr=de.create;W.boolean=lr;const Dt=Ve.create;W.date=Dt;const Yn=it.create;W.symbol=Yn;const h=lt.create;W.undefined=h;const x=ot.create;W.null=x;const _=wt.create;W.any=_;const u=Ut.create;W.unknown=u;const A=Ot.create;W.never=A;const H=Qt.create;W.void=H;const J=Nt.create;W.array=J;const ce=mt.create;W.object=ce;const Ce=mt.strictCreate;W.strictObject=Ce;const Ke=Kt.create;W.union=Ke;const ze=$t.create;W.discriminatedUnion=ze;const pt=sr.create;W.intersection=pt;const De=zt.create;W.tuple=De;const Ge=Xt.create;W.record=Ge;const Qe=er.create;W.map=Qe;const ct=L.create;W.set=ct;const st=g.create;W.function=st;const tt=U.create;W.lazy=tt;const at=q.create;W.literal=at;const nt=O.create;W.enum=nt;const qe=oe.create;W.nativeEnum=qe;const Ze=ue.create;W.promise=Ze;const Ue=fe.create;W.effect=Ue,W.transformer=Ue;const He=_e.create;W.optional=He;const We=Ne.create;W.nullable=We;const Me=fe.createWithPreprocess;W.preprocess=Me;const ne=dt.create;W.pipeline=ne;const ae=()=>It().optional();W.ostring=ae;const ge=()=>ur().optional();W.onumber=ge;const le=()=>lr().optional();return W.oboolean=le,W.coerce={string:v=>se.create({...v,coerce:!0}),number:v=>ke.create({...v,coerce:!0}),boolean:v=>de.create({...v,coerce:!0}),bigint:v=>Te.create({...v,coerce:!0}),date:v=>Ve.create({...v,coerce:!0})},W.NEVER=e.INVALID,W}var tu;function ru(){return tu||(tu=1,function(n){var c=qn&&qn.__createBinding||(Object.create?function(l,t,r,e){e===void 0&&(e=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(l,e,o)}:function(l,t,r,e){e===void 0&&(e=r),l[e]=t[r]}),d=qn&&qn.__exportStar||function(l,t){for(var r in l)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&c(t,l,r)};Object.defineProperty(n,"__esModule",{value:!0}),d(Li(),n),d(Jl(),n),d(ud(),n),d(ci(),n),d(dd(),n),d(qi(),n)}(qn)),qn}var nu;function au(){return nu||(nu=1,function(n){var c=pr&&pr.__createBinding||(Object.create?function(e,o,i,f){f===void 0&&(f=i);var s=Object.getOwnPropertyDescriptor(o,i);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(e,f,s)}:function(e,o,i,f){f===void 0&&(f=i),e[f]=o[i]}),d=pr&&pr.__setModuleDefault||(Object.create?function(e,o){Object.defineProperty(e,"default",{enumerable:!0,value:o})}:function(e,o){e.default=o}),l=pr&&pr.__importStar||function(e){if(e&&e.__esModule)return e;var o={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&c(o,e,i);return d(o,e),o},t=pr&&pr.__exportStar||function(e,o){for(var i in e)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&c(o,e,i)};Object.defineProperty(n,"__esModule",{value:!0}),n.z=void 0;const r=l(ru());n.z=r,t(ru(),n),n.default=r}(pr)),pr}const fd={version:"15.2.1"};var iu;function ou(){if(iu)return Dn;iu=1;var n=Dn&&Dn.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.HttpApi=void 0;const c=sd(),d=n(ld()),l=n(Zl()),t=au(),r=fd.version,e=t.z.object({"@type":t.z.literal("ton.blockIdExt"),workchain:t.z.number(),shard:t.z.string(),seqno:t.z.number(),root_hash:t.z.string(),file_hash:t.z.string()}),o=t.z.object({balance:t.z.union([t.z.number(),t.z.string()]),extra_currencies:t.z.optional(t.z.array(t.z.object({"@type":t.z.literal("extraCurrency"),id:t.z.number(),amount:t.z.string()}))),state:t.z.union([t.z.literal("active"),t.z.literal("uninitialized"),t.z.literal("frozen")]),data:t.z.string(),code:t.z.string(),last_transaction_id:t.z.object({"@type":t.z.literal("internal.transactionId"),lt:t.z.string(),hash:t.z.string()}),block_id:e,sync_utime:t.z.number()}),i=t.z.object({"@type":t.z.literal("ok")}),f=t.z.object({"@type":t.z.literal("query.fees"),source_fees:t.z.object({"@type":t.z.literal("fees"),in_fwd_fee:t.z.number(),storage_fee:t.z.number(),gas_fee:t.z.number(),fwd_fee:t.z.number()})}),s=t.z.object({gas_used:t.z.number(),exit_code:t.z.number(),stack:t.z.array(t.z.unknown())}),y=t.z.union([t.z.object({"@type":t.z.literal("msg.dataRaw"),body:t.z.string()}),t.z.object({"@type":t.z.literal("msg.dataText"),text:t.z.string()}),t.z.object({"@type":t.z.literal("msg.dataDecryptedText"),text:t.z.string()}),t.z.object({"@type":t.z.literal("msg.dataEncryptedText"),text:t.z.string()})]),B=t.z.object({source:t.z.string(),destination:t.z.string(),value:t.z.string(),fwd_fee:t.z.string(),ihr_fee:t.z.string(),created_lt:t.z.string(),body_hash:t.z.string(),msg_data:y,message:t.z.string().optional()}),k=t.z.object({data:t.z.string(),utime:t.z.number(),transaction_id:t.z.object({lt:t.z.string(),hash:t.z.string()}),fee:t.z.string(),storage_fee:t.z.string(),other_fee:t.z.string(),in_msg:t.z.union([t.z.undefined(),B]),out_msgs:t.z.array(B)}),j=t.z.array(k),P=t.z.object({state_root_hash:t.z.string(),last:e,init:e}),R=t.z.object({shards:t.z.array(e)}),z=t.z.object({"@type":t.z.literal("blocks.shortTxId"),mode:t.z.number(),account:t.z.string(),lt:t.z.string(),hash:t.z.string()}),V=t.z.object({id:e,req_count:t.z.number(),incomplete:t.z.boolean(),transactions:t.z.array(z)});class F{constructor(Z,Q,ie,Ee){this.namespace=Z,this.cache=Q,this.codec=ie,this.keyEncoder=Ee}async get(Z){let Q=await this.cache.get(this.namespace,this.keyEncoder(Z));if(Q){let ie=this.codec.safeParse(JSON.parse(Q));if(ie.success)return ie.data}return null}async set(Z,Q){Q!==null?await this.cache.set(this.namespace,this.keyEncoder(Z),JSON.stringify(Q)):await this.cache.set(this.namespace,this.keyEncoder(Z),null)}}let ee=class{constructor(Z,Q){this.endpoint=Z,this.cache=new c.InMemoryCache,this.parameters={timeout:(Q==null?void 0:Q.timeout)||3e4,apiKey:Q==null?void 0:Q.apiKey,adapter:Q==null?void 0:Q.adapter},this.shardCache=new F("ton-shard",this.cache,t.z.array(e),ie=>ie+""),this.shardLoader=new d.default(async ie=>await Promise.all(ie.map(async Ee=>{const Oe=await this.shardCache.get(Ee);if(Oe)return Oe;let Le=(await this.doCall("shards",{seqno:Ee},R)).shards;return await this.shardCache.set(Ee,Le),Le}))),this.shardTransactionsCache=new F("ton-shard-tx",this.cache,V,ie=>ie.workchain+":"+ie.shard+":"+ie.seqno),this.shardTransactionsLoader=new d.default(async ie=>await Promise.all(ie.map(async Ee=>{const Oe=await this.shardTransactionsCache.get(Ee);if(Oe)return Oe;let Le=await this.doCall("getBlockTransactions",{workchain:Ee.workchain,seqno:Ee.seqno,shard:Ee.shard},V);return await this.shardTransactionsCache.set(Ee,Le),Le})),{cacheKeyFn:ie=>ie.workchain+":"+ie.shard+":"+ie.seqno})}getAddressInformation(Z){return this.doCall("getAddressInformation",{address:Z.toString()},o)}async getTransactions(Z,Q){const ie=Q.inclusive;delete Q.inclusive;let Ee;Q.hash&&(Ee=Buffer.from(Q.hash,"base64").toString("hex"));let Oe=Q.limit;Q.hash&&Q.lt&&ie!==!0&&Oe++;let Le=await this.doCall("getTransactions",{address:Z.toString(),...Q,limit:Oe,hash:Ee},j);return Le.length>Oe&&(Le=Le.slice(0,Oe)),Q.hash&&Q.lt&&ie!==!0&&Le.shift(),Le}async getMasterchainInfo(){return await this.doCall("getMasterchainInfo",{},P)}async getShards(Z){return await this.shardLoader.load(Z)}async getBlockTransactions(Z,Q,ie){return await this.shardTransactionsLoader.load({workchain:Z,seqno:Q,shard:ie})}async getTransaction(Z,Q,ie){let Ee=Buffer.from(ie,"base64").toString("hex"),Le=(await this.doCall("getTransactions",{address:Z.toString(),lt:Q,hash:Ee,limit:1},j)).find(re=>re.transaction_id.lt===Q&&re.transaction_id.hash===ie);return Le||null}async callGetMethod(Z,Q,ie){return await this.doCall("runGetMethod",{address:Z.toString(),method:Q,stack:he(ie)},s)}async sendBoc(Z){await this.doCall("sendBoc",{boc:Z.toString("base64")},i)}async estimateFee(Z,Q){return await this.doCall("estimateFee",{address:Z.toString(),body:Q.body.toBoc().toString("base64"),init_data:Q.initData?Q.initData.toBoc().toString("base64"):"",init_code:Q.initCode?Q.initCode.toBoc().toString("base64"):"",ignore_chksig:Q.ignoreSignature},f)}async tryLocateResultTx(Z,Q,ie){return await this.doCall("tryLocateResultTx",{source:Z.toString(),destination:Q.toString(),created_lt:ie},k)}async tryLocateSourceTx(Z,Q,ie){return await this.doCall("tryLocateSourceTx",{source:Z.toString(),destination:Q.toString(),created_lt:ie},k)}async doCall(Z,Q,ie){let Ee={"Content-Type":"application/json","X-Ton-Client-Version":r};this.parameters.apiKey&&(Ee["X-API-Key"]=this.parameters.apiKey);let Oe=await l.default.post(this.endpoint,JSON.stringify({id:"1",jsonrpc:"2.0",method:Z,params:Q}),{headers:Ee,timeout:this.parameters.timeout,adapter:this.parameters.adapter});if(Oe.status!==200||!Oe.data.ok)throw Error("Received error: "+JSON.stringify(Oe.data));let Le=ie.safeParse(Oe.data.result);if(Le.success)return Le.data;throw Error("Malformed response: "+Le.error.format()._errors.join(", "))}};Dn.HttpApi=ee;function he($){let Z=[];for(let Q of $)if(Q.type==="int")Z.push(["num",Q.value.toString()]);else if(Q.type==="cell")Z.push(["tvm.Cell",Q.cell.toBoc().toString("base64")]);else if(Q.type==="slice")Z.push(["tvm.Slice",Q.cell.toBoc().toString("base64")]);else if(Q.type==="builder")Z.push(["tvm.Builder",Q.cell.toBoc().toString("base64")]);else throw Error("Unsupported stack item type: "+Q.type);return Z}return Dn}var qa={},su;function hd(){if(su)return qa;su=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.TonClient=void 0;const n=ou(),c=Ct();let d=class{constructor(i){this.parameters={endpoint:i.endpoint},this.api=new n.HttpApi(this.parameters.endpoint,{timeout:i.timeout,apiKey:i.apiKey,adapter:i.httpAdapter})}async getBalance(i){return(await this.getContractState(i)).balance}async runMethod(i,f,s=[]){let y=await this.api.callGetMethod(i,f,s);if(y.exit_code!==0)throw Error("Unable to execute get method. Got exit_code: "+y.exit_code);return{gas_used:y.gas_used,stack:r(y.stack)}}async callGetMethod(i,f,s=[]){return this.runMethod(i,f,s)}async runMethodWithError(i,f,s=[]){let y=await this.api.callGetMethod(i,f,s);return{gas_used:y.gas_used,stack:r(y.stack),exit_code:y.exit_code}}async callGetMethodWithError(i,f,s=[]){return this.runMethodWithError(i,f,s)}async getTransactions(i,f){let s=await this.api.getTransactions(i,f),y=[];for(let B of s)y.push((0,c.loadTransaction)(c.Cell.fromBoc(Buffer.from(B.data,"base64"))[0].beginParse()));return y}async getTransaction(i,f,s){let y=await this.api.getTransaction(i,f,s);return y?(0,c.loadTransaction)(c.Cell.fromBoc(Buffer.from(y.data,"base64"))[0].beginParse()):null}async tryLocateResultTx(i,f,s){let y=await this.api.tryLocateResultTx(i,f,s);return(0,c.loadTransaction)(c.Cell.fromBase64(y.data).beginParse())}async tryLocateSourceTx(i,f,s){let y=await this.api.tryLocateSourceTx(i,f,s);return(0,c.loadTransaction)(c.Cell.fromBase64(y.data).beginParse())}async getMasterchainInfo(){let i=await this.api.getMasterchainInfo();return{workchain:i.init.workchain,shard:i.last.shard,initSeqno:i.init.seqno,latestSeqno:i.last.seqno}}async getWorkchainShards(i){return(await this.api.getShards(i)).map(s=>({workchain:s.workchain,shard:s.shard,seqno:s.seqno}))}async getShardTransactions(i,f,s){let y=await this.api.getBlockTransactions(i,f,s);if(y.incomplete)throw Error("Unsupported");return y.transactions.map(B=>({account:c.Address.parseRaw(B.account),lt:B.lt,hash:B.hash}))}async sendMessage(i){const f=(0,c.beginCell)().store((0,c.storeMessage)(i)).endCell().toBoc();await this.api.sendBoc(f)}async sendFile(i){await this.api.sendBoc(i)}async estimateExternalMessageFee(i,f){return await this.api.estimateFee(i,{body:f.body,initCode:f.initCode,initData:f.initData,ignoreSignature:f.ignoreSignature})}async sendExternalMessage(i,f){if(await this.isContractDeployed(i.address)||!i.init){const s=(0,c.external)({to:i.address,body:f});await this.sendMessage(s)}else{const s=(0,c.external)({to:i.address,init:i.init,body:f});await this.sendMessage(s)}}async isContractDeployed(i){return(await this.getContractState(i)).state==="active"}async getContractState(i){let f=await this.api.getAddressInformation(i),s=BigInt(f.balance),y=f.state;return{balance:s,extra_currencies:f.extra_currencies,state:y,code:f.code!==""?Buffer.from(f.code,"base64"):null,data:f.data!==""?Buffer.from(f.data,"base64"):null,lastTransaction:f.last_transaction_id.lt!=="0"?{lt:f.last_transaction_id.lt,hash:f.last_transaction_id.hash}:null,blockId:{workchain:f.block_id.workchain,shard:f.block_id.shard,seqno:f.block_id.seqno},timestampt:f.sync_utime}}open(i){return(0,c.openContract)(i,f=>e(this,f.address,f.init))}provider(i,f){return e(this,i,f??null)}};qa.TonClient=d;function l(o){const i=o["@type"];switch(i){case"tvm.list":case"tvm.tuple":return o.elements.map(l);case"tvm.cell":return c.Cell.fromBoc(Buffer.from(o.bytes,"base64"))[0];case"tvm.slice":return c.Cell.fromBoc(Buffer.from(o.bytes,"base64"))[0];case"tvm.stackEntryCell":return l(o.cell);case"tvm.stackEntrySlice":return l(o.slice);case"tvm.stackEntryTuple":return l(o.tuple);case"tvm.stackEntryList":return l(o.list);case"tvm.stackEntryNumber":return l(o.number);case"tvm.numberDecimal":return BigInt(o.number);default:throw Error("Unsupported item type: "+i)}}function t(o){if(o[0]==="num"){let i=o[1];return i.startsWith("-")?{type:"int",value:-BigInt(i.slice(1))}:{type:"int",value:BigInt(i)}}else{if(o[0]==="null")return{type:"null"};if(o[0]==="cell")return{type:"cell",cell:c.Cell.fromBoc(Buffer.from(o[1].bytes,"base64"))[0]};if(o[0]==="slice")return{type:"slice",cell:c.Cell.fromBoc(Buffer.from(o[1].bytes,"base64"))[0]};if(o[0]==="builder")return{type:"builder",cell:c.Cell.fromBoc(Buffer.from(o[1].bytes,"base64"))[0]};if(o[0]==="tuple"||o[0]==="list")return o[1].elements.length===0?{type:"null"}:{type:"tuple",items:o[1].elements.map(l)};throw Error("Unsupported stack item type: "+o[0])}}function r(o){let i=[];for(let f of o)i.push(t(f));return new c.TupleReader(i)}function e(o,i,f){return{async getState(){let s=await o.getContractState(i),y=s.balance,B=s.lastTransaction?{lt:BigInt(s.lastTransaction.lt),hash:Buffer.from(s.lastTransaction.hash,"base64")}:null,k=null,j;if(s.state==="active")j={type:"active",code:s.code?s.code:null,data:s.data?s.data:null};else if(s.state==="uninitialized")j={type:"uninit"};else if(s.state==="frozen")j={type:"frozen",stateHash:Buffer.alloc(0)};else throw Error("Unsupported state");if(s.extra_currencies&&s.extra_currencies.length>0){k={};for(let P of s.extra_currencies)k[P.id]=BigInt(P.amount)}return{balance:y,extracurrency:k,last:B,state:j}},async get(s,y){if(typeof s!="string")throw new Error("Method name must be a string for TonClient provider");return{stack:(await o.runMethod(i,s,y)).stack}},async external(s){let y=null;f&&!await o.isContractDeployed(i)&&(y=f);const B=(0,c.external)({to:i,init:y,body:s});let k=(0,c.beginCell)().store((0,c.storeMessage)(B)).endCell().toBoc();await o.sendFile(k)},async internal(s,y){let B=null;f&&!await o.isContractDeployed(i)&&(B=f);let k=!0;y.bounce!==null&&y.bounce!==void 0&&(k=y.bounce);let j;typeof y.value=="string"?j=(0,c.toNano)(y.value):j=y.value;let P=null;typeof y.body=="string"?P=(0,c.comment)(y.body):y.body&&(P=y.body),await s.send({to:i,value:j,bounce:k,sendMode:y.sendMode,extracurrency:y.extracurrency,init:B,body:P})},open(s){return(0,c.openContract)(s,y=>e(o,y.address,y.init??null))},getTransactions(s,y,B,k){return o.getTransactions(s,{limit:k??100,lt:y.toString(),hash:B.toString("base64"),inclusive:!0})}}}return qa}var mr={},di={},lu;function pd(){if(lu)return di;lu=1,Object.defineProperty(di,"__esModule",{value:!0}),di.toUrlSafe=n;function n(c){for(;c.indexOf("/")>=0;)c=c.replace("/","_");for(;c.indexOf("+")>=0;)c=c.replace("+","-");for(;c.indexOf("=")>=0;)c=c.replace("=","");return c}return di}var uu;function gd(){if(uu)return mr;uu=1;var n=mr&&mr.__classPrivateFieldSet||function(Se,se,be,ke,Te){if(ke==="m")throw new TypeError("Private method is not writable");if(ke==="a"&&!Te)throw new TypeError("Private accessor was defined without a setter");if(typeof se=="function"?Se!==se||!Te:!se.has(Se))throw new TypeError("Cannot write private member to an object whose class did not declare it");return ke==="a"?Te.call(Se,be):Te?Te.value=be:se.set(Se,be),be},c=mr&&mr.__classPrivateFieldGet||function(Se,se,be,ke){if(be==="a"&&!ke)throw new TypeError("Private accessor was defined without a getter");if(typeof se=="function"?Se!==se||!ke:!se.has(Se))throw new TypeError("Cannot read private member from an object whose class did not declare it");return be==="m"?ke:be==="a"?ke.call(Se):ke?ke.value:se.get(Se)},d=mr&&mr.__importDefault||function(Se){return Se&&Se.__esModule?Se:{default:Se}},l,t,r,e;Object.defineProperty(mr,"__esModule",{value:!0}),mr.TonClient4=void 0;const o=d(Zl()),i=Ct(),f=pd(),s=au();let y=class{constructor(se){l.set(this,void 0),t.set(this,void 0),r.set(this,void 0),e.set(this,void 0),n(this,e,o.default.create(),"f"),n(this,l,se.endpoint,"f"),n(this,t,se.timeout||5e3,"f"),n(this,r,se.httpAdapter,"f"),se.requestInterceptor&&c(this,e,"f").interceptors.request.use(se.requestInterceptor)}async getLastBlock(){let se=await c(this,e,"f").get(c(this,l,"f")+"/block/latest",{adapter:c(this,r,"f"),timeout:c(this,t,"f")}),be=k.safeParse(se.data);if(!be.success)throw Error("Mailformed response: "+be.error.format()._errors.join(", "));return be.data}async getBlock(se){let be=await c(this,e,"f").get(c(this,l,"f")+"/block/"+se,{adapter:c(this,r,"f"),timeout:c(this,t,"f")}),ke=j.safeParse(be.data);if(!ke.success)throw Error("Mailformed response");if(!ke.data.exist)throw Error("Block is out of scope");return ke.data.block}async getBlockByUtime(se){let be=await c(this,e,"f").get(c(this,l,"f")+"/block/utime/"+se,{adapter:c(this,r,"f"),timeout:c(this,t,"f")}),ke=j.safeParse(be.data);if(!ke.success)throw Error("Mailformed response");if(!ke.data.exist)throw Error("Block is out of scope");return ke.data.block}async getAccount(se,be){let ke=await c(this,e,"f").get(c(this,l,"f")+"/block/"+se+"/"+be.toString({urlSafe:!0}),{adapter:c(this,r,"f"),timeout:c(this,t,"f")}),Te=R.safeParse(ke.data);if(!Te.success)throw Error("Mailformed response");return Te.data}async getAccountLite(se,be){let ke=await c(this,e,"f").get(c(this,l,"f")+"/block/"+se+"/"+be.toString({urlSafe:!0})+"/lite",{adapter:c(this,r,"f"),timeout:c(this,t,"f")}),Te=z.safeParse(ke.data);if(!Te.success)throw Error("Mailformed response");return Te.data}async isContractDeployed(se,be){return(await this.getAccountLite(se,be)).account.state.type==="active"}async isAccountChanged(se,be,ke){let Te=await c(this,e,"f").get(c(this,l,"f")+"/block/"+se+"/"+be.toString({urlSafe:!0})+"/changed/"+ke.toString(10),{adapter:c(this,r,"f"),timeout:c(this,t,"f")}),de=V.safeParse(Te.data);if(!de.success)throw Error("Mailformed response");return de.data}async getAccountTransactions(se,be,ke){let Te=await c(this,e,"f").get(c(this,l,"f")+"/account/"+se.toString({urlSafe:!0})+"/tx/"+be.toString(10)+"/"+(0,f.toUrlSafe)(ke.toString("base64")),{adapter:c(this,r,"f"),timeout:c(this,t,"f")}),de=Z.safeParse(Te.data);if(!de.success)throw Error("Mailformed response");let Ve=de.data,it=[],lt=i.Cell.fromBoc(Buffer.from(Ve.boc,"base64"));for(let ot=0;ot<Ve.blocks.length;ot++)it.push({block:Ve.blocks[ot],tx:(0,i.loadTransaction)(lt[ot].beginParse())});return it}async getAccountTransactionsParsed(se,be,ke,Te=20){let de=await c(this,e,"f").get(c(this,l,"f")+"/account/"+se.toString({urlSafe:!0})+"/tx/parsed/"+be.toString(10)+"/"+(0,f.toUrlSafe)(ke.toString("base64")),{adapter:c(this,r,"f"),timeout:c(this,t,"f"),params:{count:Te}}),Ve=N.safeParse(de.data);if(!Ve.success)throw Error("Mailformed response");return Ve.data}async getConfig(se,be){let ke="";be&&be.length>0&&(ke="/"+[...be].sort().join(","));let Te=await c(this,e,"f").get(c(this,l,"f")+"/block/"+se+"/config"+ke,{adapter:c(this,r,"f"),timeout:c(this,t,"f")}),de=ee.safeParse(Te.data);if(!de.success)throw Error("Mailformed response");return de.data}async runMethod(se,be,ke,Te){let de=Te&&Te.length>0?"/"+(0,f.toUrlSafe)((0,i.serializeTuple)(Te).toBoc({idx:!1,crc32:!1}).toString("base64")):"",Ve=c(this,l,"f")+"/block/"+se+"/"+be.toString({urlSafe:!0})+"/run/"+encodeURIComponent(ke)+de,it=await c(this,e,"f").get(Ve,{adapter:c(this,r,"f"),timeout:c(this,t,"f")}),lt=F.safeParse(it.data);if(!lt.success)throw Error("Mailformed response");let ot=lt.data.resultRaw?(0,i.parseTuple)(i.Cell.fromBoc(Buffer.from(lt.data.resultRaw,"base64"))[0]):[];return{exitCode:lt.data.exitCode,result:ot,resultRaw:lt.data.resultRaw,block:lt.data.block,shardBlock:lt.data.shardBlock,reader:new i.TupleReader(ot)}}async sendMessage(se){let be=await c(this,e,"f").post(c(this,l,"f")+"/send",{boc:se.toString("base64")},{adapter:c(this,r,"f"),timeout:c(this,t,"f")});if(!he.safeParse(be.data).success)throw Error("Mailformed response");return{status:be.data.status}}open(se){return(0,i.openContract)(se,be=>B(this,null,be.address,be.init))}openAt(se,be){return(0,i.openContract)(be,ke=>B(this,se,ke.address,ke.init))}provider(se,be){return B(this,null,se,be??null)}providerAt(se,be,ke){return B(this,se,be,ke??null)}};mr.TonClient4=y,l=new WeakMap,t=new WeakMap,r=new WeakMap,e=new WeakMap;function B(Se,se,be,ke){return{async getState(){let Te=se;Te===null&&(Te=(await Se.getLastBlock()).last.seqno);let de=await Se.getAccount(Te,be),Ve=de.account.last?{lt:BigInt(de.account.last.lt),hash:Buffer.from(de.account.last.hash,"base64")}:null,it;if(de.account.state.type==="active")it={type:"active",code:de.account.state.code?Buffer.from(de.account.state.code,"base64"):null,data:de.account.state.data?Buffer.from(de.account.state.data,"base64"):null};else if(de.account.state.type==="uninit")it={type:"uninit"};else if(de.account.state.type==="frozen")it={type:"frozen",stateHash:Buffer.from(de.account.state.stateHash,"base64")};else throw Error("Unsupported state");let lt=null;if(de.account.balance.currencies){lt={};let ot=de.account.balance.currencies;for(let[wt,Ut]of Object.entries(ot))lt[Number(wt)]=BigInt(Ut)}return{balance:BigInt(de.account.balance.coins),extracurrency:lt,last:Ve,state:it}},async get(Te,de){if(typeof Te!="string")throw new Error("Method name must be a string for TonClient4 provider");let Ve=se;Ve===null&&(Ve=(await Se.getLastBlock()).last.seqno);let it=await Se.runMethod(Ve,be,Te,de);if(it.exitCode!==0&&it.exitCode!==1)throw Error("Exit code: "+it.exitCode);return{stack:new i.TupleReader(it.result)}},async external(Te){let de=await Se.getLastBlock(),Ve=null;ke&&(await Se.getAccountLite(de.last.seqno,be)).account.state.type!=="active"&&(Ve=ke);const it=(0,i.external)({to:be,init:Ve,body:Te});let lt=(0,i.beginCell)().store((0,i.storeMessage)(it)).endCell().toBoc();await Se.sendMessage(lt)},async internal(Te,de){let Ve=await Se.getLastBlock(),it=null;ke&&(await Se.getAccountLite(Ve.last.seqno,be)).account.state.type!=="active"&&(it=ke);let lt=!0;de.bounce!==null&&de.bounce!==void 0&&(lt=de.bounce);let ot;typeof de.value=="string"?ot=(0,i.toNano)(de.value):ot=de.value;let wt=null;typeof de.body=="string"?wt=(0,i.comment)(de.body):de.body&&(wt=de.body),await Te.send({to:be,value:ot,extracurrency:de.extracurrency,bounce:lt,sendMode:de.sendMode,init:it,body:wt})},open(Te){return(0,i.openContract)(Te,de=>B(Se,se,de.address,de.init??null))},async getTransactions(Te,de,Ve,it){const lt=typeof it=="number";if(lt&&it<=0)return[];let ot=[];do{const wt=await Se.getAccountTransactions(Te,de,Ve),Ut=wt[0].tx,[Ot,Qt]=[Ut.lt,Ut.hash()];if(ot.length>0&&Ot===de&&Qt.equals(Ve)&&wt.shift(),wt.length===0)break;const Gt=wt[wt.length-1].tx,[mt,Kt]=[Gt.lt,Gt.hash()];if(mt===de&&Kt.equals(Ve))break;ot.push(...wt.map(Mt=>Mt.tx)),de=mt,Ve=Kt}while(lt&&ot.length<it);return lt&&(ot=ot.slice(0,it)),ot}}}const k=s.z.object({last:s.z.object({seqno:s.z.number(),shard:s.z.string(),workchain:s.z.number(),fileHash:s.z.string(),rootHash:s.z.string()}),init:s.z.object({fileHash:s.z.string(),rootHash:s.z.string()}),stateRootHash:s.z.string(),now:s.z.number()}),j=s.z.union([s.z.object({exist:s.z.literal(!1)}),s.z.object({exist:s.z.literal(!0),block:s.z.object({shards:s.z.array(s.z.object({workchain:s.z.number(),seqno:s.z.number(),shard:s.z.string(),rootHash:s.z.string(),fileHash:s.z.string(),transactions:s.z.array(s.z.object({account:s.z.string(),hash:s.z.string(),lt:s.z.string()}))}))})})]),P=s.z.object({lastPaid:s.z.number(),duePayment:s.z.union([s.z.null(),s.z.string()]),used:s.z.object({bits:s.z.number(),cells:s.z.number(),publicCells:s.z.number()})}),R=s.z.object({account:s.z.object({state:s.z.union([s.z.object({type:s.z.literal("uninit")}),s.z.object({type:s.z.literal("active"),code:s.z.union([s.z.string(),s.z.null()]),data:s.z.union([s.z.string(),s.z.null()])}),s.z.object({type:s.z.literal("frozen"),stateHash:s.z.string()})]),balance:s.z.object({coins:s.z.string(),currencies:s.z.record(s.z.string(),s.z.string())}),last:s.z.union([s.z.null(),s.z.object({lt:s.z.string(),hash:s.z.string()})]),storageStat:s.z.union([s.z.null(),P])}),block:s.z.object({workchain:s.z.number(),seqno:s.z.number(),shard:s.z.string(),rootHash:s.z.string(),fileHash:s.z.string()})}),z=s.z.object({account:s.z.object({state:s.z.union([s.z.object({type:s.z.literal("uninit")}),s.z.object({type:s.z.literal("active"),codeHash:s.z.string(),dataHash:s.z.string()}),s.z.object({type:s.z.literal("frozen"),stateHash:s.z.string()})]),balance:s.z.object({coins:s.z.string(),currencies:s.z.record(s.z.string(),s.z.string())}),last:s.z.union([s.z.null(),s.z.object({lt:s.z.string(),hash:s.z.string()})]),storageStat:s.z.union([s.z.null(),P])})}),V=s.z.object({changed:s.z.boolean(),block:s.z.object({workchain:s.z.number(),seqno:s.z.number(),shard:s.z.string(),rootHash:s.z.string(),fileHash:s.z.string()})}),F=s.z.object({exitCode:s.z.number(),resultRaw:s.z.union([s.z.string(),s.z.null()]),block:s.z.object({workchain:s.z.number(),seqno:s.z.number(),shard:s.z.string(),rootHash:s.z.string(),fileHash:s.z.string()}),shardBlock:s.z.object({workchain:s.z.number(),seqno:s.z.number(),shard:s.z.string(),rootHash:s.z.string(),fileHash:s.z.string()})}),ee=s.z.object({config:s.z.object({cell:s.z.string(),address:s.z.string(),globalBalance:s.z.object({coins:s.z.string()})})}),he=s.z.object({status:s.z.number()}),$=s.z.array(s.z.object({workchain:s.z.number(),seqno:s.z.number(),shard:s.z.string(),rootHash:s.z.string(),fileHash:s.z.string()})),Z=s.z.object({blocks:$,boc:s.z.string()}),Q=s.z.object({bits:s.z.number(),data:s.z.string()}),ie=s.z.union([s.z.object({type:s.z.literal("internal"),value:s.z.string(),dest:s.z.string(),src:s.z.string(),bounced:s.z.boolean(),bounce:s.z.boolean(),ihrDisabled:s.z.boolean(),createdAt:s.z.number(),createdLt:s.z.string(),fwdFee:s.z.string(),ihrFee:s.z.string()}),s.z.object({type:s.z.literal("external-in"),dest:s.z.string(),src:s.z.union([Q,s.z.null()]),importFee:s.z.string()}),s.z.object({type:s.z.literal("external-out"),dest:s.z.union([Q,s.z.null()])})]),Ee=s.z.object({splitDepth:s.z.union([s.z.number(),s.z.null()]),code:s.z.union([s.z.string(),s.z.null()]),data:s.z.union([s.z.string(),s.z.null()]),special:s.z.union([s.z.object({tick:s.z.boolean(),tock:s.z.boolean()}),s.z.null()])}),Oe=s.z.object({body:s.z.string(),info:ie,init:s.z.union([Ee,s.z.null()])}),Le=s.z.union([s.z.literal("uninitialized"),s.z.literal("frozen"),s.z.literal("active"),s.z.literal("non-existing")]),re=s.z.union([s.z.object({type:s.z.literal("comment"),comment:s.z.string()}),s.z.object({type:s.z.literal("payload"),cell:s.z.string()})]),Y=s.z.union([s.z.object({kind:s.z.literal("ton"),amount:s.z.string()}),s.z.object({kind:s.z.literal("token"),amount:s.z.string()})]),Ae=s.z.union([s.z.literal("jetton::excesses"),s.z.literal("jetton::transfer"),s.z.literal("jetton::transfer_notification"),s.z.literal("deposit"),s.z.literal("deposit::ok"),s.z.literal("withdraw"),s.z.literal("withdraw::all"),s.z.literal("withdraw::delayed"),s.z.literal("withdraw::ok"),s.z.literal("airdrop")]),C=s.z.object({type:Ae,options:s.z.optional(s.z.record(s.z.string()))}),ye=s.z.object({address:s.z.string(),comment:s.z.optional(s.z.string()),items:s.z.array(Y),op:s.z.optional(C)}),Pe=s.z.object({address:s.z.string(),lt:s.z.string(),hash:s.z.string(),prevTransaction:s.z.object({lt:s.z.string(),hash:s.z.string()}),time:s.z.number(),outMessagesCount:s.z.number(),oldStatus:Le,newStatus:Le,fees:s.z.string(),update:s.z.object({oldHash:s.z.string(),newHash:s.z.string()}),inMessage:s.z.union([Oe,s.z.null()]),outMessages:s.z.array(Oe),parsed:s.z.object({seqno:s.z.union([s.z.number(),s.z.null()]),body:s.z.union([re,s.z.null()]),status:s.z.union([s.z.literal("success"),s.z.literal("failed"),s.z.literal("pending")]),dest:s.z.union([s.z.string(),s.z.null()]),kind:s.z.union([s.z.literal("out"),s.z.literal("in")]),amount:s.z.string(),resolvedAddress:s.z.string(),bounced:s.z.boolean(),mentioned:s.z.array(s.z.string())}),operation:ye}),N=s.z.object({blocks:$,transactions:s.z.array(Pe)});return mr}var La={},Ur={},Va={},Fa={},cu;function du(){if(cu)return Fa;cu=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.loadWalletIdV5Beta=d,Fa.storeWalletIdV5Beta=l;const n=Ct(),c={v5:0};function d(t){var y;const r=new n.BitReader(new n.BitString(typeof t=="bigint"?Buffer.from(t.toString(16),"hex"):t instanceof n.Slice?t.loadBuffer(10):t,0,80)),e=r.loadInt(32),o=r.loadInt(8),i=r.loadUint(8),f=r.loadUint(32),s=(y=Object.entries(c).find(([B,k])=>k===i))==null?void 0:y[0];if(s===void 0)throw new Error(`Can't deserialize walletId: unknown wallet version ${i}`);return{networkGlobalId:e,workchain:o,walletVersion:s,subwalletNumber:f}}function l(t){return r=>{r.storeInt(t.networkGlobalId,32),r.storeInt(t.workchain,8),r.storeUint(c[t.walletVersion],8),r.storeUint(t.subwalletNumber,32)}}return Fa}var fu;function hu(){if(fu)return Va;fu=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.WalletContractV5Beta=void 0;const n=Ct(),c=yr(),d=du();class l{static create(r){var o,i,f,s;const e={networkGlobalId:((o=r.walletId)==null?void 0:o.networkGlobalId)??-239,workchain:((i=r==null?void 0:r.walletId)==null?void 0:i.workchain)??0,subwalletNumber:((f=r==null?void 0:r.walletId)==null?void 0:f.subwalletNumber)??0,walletVersion:((s=r==null?void 0:r.walletId)==null?void 0:s.walletVersion)??"v5"};return new l(e,r.publicKey)}constructor(r,e){this.walletId=r,this.publicKey=e,this.walletId=r;let o=n.Cell.fromBoc(Buffer.from("te6cckEBAQEAIwAIQgLkzzsvTG1qYeoPK1RH0mZ4WyavNjfbLe7mvNGqgm80Eg3NjhE=","base64"))[0],i=(0,n.beginCell)().storeInt(0,33).store((0,d.storeWalletIdV5Beta)(this.walletId)).storeBuffer(this.publicKey,32).storeBit(0).endCell();this.init={code:o,data:i},this.address=(0,n.contractAddress)(this.walletId.workchain,{code:o,data:i})}async getBalance(r){return(await r.getState()).balance}async getSeqno(r){return(await r.getState()).state.type==="active"?(await r.get("seqno",[])).stack.readNumber():0}async getExtensions(r){return(await r.getState()).state.type==="active"?(await r.get("get_extensions",[])).stack.readCellOpt():null}async getExtensionsArray(r){const e=await this.getExtensions(r);if(!e)return[];const o=n.Dictionary.loadDirect(n.Dictionary.Keys.BigUint(256),n.Dictionary.Values.BigInt(8),e);return o.keys().map(i=>{const f=o.get(i),s=i^f+1n;return n.Address.parseRaw(`${f}:${s.toString(16).padStart(64,"0")}`)})}async getIsSecretKeyAuthEnabled(r){return(await r.get("get_is_signature_auth_allowed",[])).stack.readNumber()!==0}async send(r,e){await r.external(e)}async sendTransfer(r,e){const o=await this.createTransfer(e);await this.send(r,o)}async sendAddExtension(r,e){const o=await this.createAddExtension(e);await this.send(r,o)}async sendRemoveExtension(r,e){const o=await this.createRemoveExtension(e);await this.send(r,o)}async sendActionsBatch(r,e){const o=await this.createRequest(e);await this.send(r,o)}createActions(r){return r.messages.map(o=>({type:"sendMsg",mode:r.sendMode,outMsg:o}))}createTransfer(r){return this.createRequest({...r,actions:this.createActions({messages:r.messages,sendMode:r.sendMode})})}createAddExtension(r){return this.createRequest({...r,actions:[{type:"addExtension",address:r.extensionAddress}]})}createRemoveExtension(r){return this.createRequest({...r,actions:[{type:"removeExtension",address:r.extensionAddress}]})}createRequest(r){return r.authType==="extension"?(0,c.createWalletTransferV5Beta)(r):(0,c.createWalletTransferV5Beta)({...r,walletId:(0,d.storeWalletIdV5Beta)(this.walletId)})}sender(r,e){return{send:async o=>{let i=await this.getSeqno(r),f=this.createTransfer({seqno:i,secretKey:e,sendMode:o.sendMode??n.SendMode.PAY_GAS_SEPARATELY+n.SendMode.IGNORE_ERRORS,messages:[(0,n.internal)({to:o.to,value:o.value,extracurrency:o.extracurrency,init:o.init,body:o.body,bounce:o.bounce})]});await this.send(r,f)}}}}return Va.WalletContractV5Beta=l,l.OpCodes={auth_extension:1702392942,auth_signed_external:1936287598,auth_signed_internal:1936289396},Va}var Ln={},Za={},pu;function gu(){if(pu)return Za;pu=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.isOutActionExtended=n,Za.isOutActionBasic=c;function n(d){return d.type==="setIsPublicKeyEnabled"||d.type==="addExtension"||d.type==="removeExtension"}function c(d){return!n(d)}return Za}var mu;function yu(){if(mu)return Ln;mu=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.storeOutActionExtendedV5Beta=i,Ln.loadOutActionV5BetaExtended=f,Ln.storeOutListExtendedV5Beta=s,Ln.loadOutListExtendedV5Beta=y;const n=Ct(),c=gu(),d=550222170;function l(B){return k=>{k.storeUint(d,32).storeUint(B.isEnabled?1:0,1)}}const t=474012575;function r(B){return k=>{k.storeUint(t,32).storeAddress(B.address)}}const e=1588524196;function o(B){return k=>{k.storeUint(e,32).storeAddress(B.address)}}function i(B){switch(B.type){case"setIsPublicKeyEnabled":return l(B);case"addExtension":return r(B);case"removeExtension":return o(B);default:throw new Error("Unknown action type"+(B==null?void 0:B.type))}}function f(B){const k=B.loadUint(32);switch(k){case d:return{type:"setIsPublicKeyEnabled",isEnabled:!!B.loadUint(1)};case t:return{type:"addExtension",address:B.loadAddress()};case e:return{type:"removeExtension",address:B.loadAddress()};default:throw new Error(`Unknown extended out action tag 0x${k.toString(16)}`)}}function s(B){const[k,...j]=B;if(!k||!(0,c.isOutActionExtended)(k)){if(B.some(c.isOutActionExtended))throw new Error("Can't serialize actions list: all extended actions must be placed before out actions");return P=>{P.storeUint(0,1).storeRef((0,n.beginCell)().store((0,n.storeOutList)(B)).endCell())}}return P=>{P.storeUint(1,1).store(i(k)).storeRef((0,n.beginCell)().store(s(j)).endCell())}}function y(B){const k=[];for(;B.loadUint(1);){const P=f(B);k.push(P),B=B.loadRef().beginParse()}const j=(0,n.loadOutList)(B.loadRef().beginParse());if(j.some(P=>P.type==="setCode"))throw new Error("Can't deserialize actions list: only sendMsg actions are allowed for wallet v5");return k.concat(j)}return Ln}var fi={},bu;function md(){if(bu)return fi;bu=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.signPayload=c;const n=on();function c(d,l,t){return"secretKey"in d?t((0,n.sign)(l.endCell().hash(),d.secretKey),l):d.signer(l.endCell()).then(r=>t(r,l))}return fi}var Wa={},$n={},vu;function wu(){if(vu)return $n;vu=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.isWalletIdV5R1ClientContext=c,$n.loadWalletIdV5R1=l,$n.storeWalletIdV5R1=t;const n=Ct();function c(r){return typeof r!="number"}const d={v5r1:0};function l(r,e){var y;const o=new n.BitReader(new n.BitString(typeof r=="bigint"?Buffer.from(r.toString(16),"hex"):r instanceof n.Slice?r.loadBuffer(4):r,0,32)).loadInt(32),i=BigInt(o)^BigInt(e),f=(0,n.beginCell)().storeInt(i,32).endCell().beginParse();if(f.loadUint(1)){const B=f.loadInt(8),k=f.loadUint(8),j=f.loadUint(15),P=(y=Object.entries(d).find(([R,z])=>z===k))==null?void 0:y[0];if(P===void 0)throw new Error(`Can't deserialize walletId: unknown wallet version ${k}`);return{networkGlobalId:e,context:{walletVersion:P,workchain:B,subwalletNumber:j}}}else{const B=f.loadUint(31);return{networkGlobalId:e,context:B}}}function t(r){return e=>{let o;return c(r.context)?o=(0,n.beginCell)().storeUint(1,1).storeInt(r.context.workchain,8).storeUint(d[r.context.walletVersion],8).storeUint(r.context.subwalletNumber,15).endCell().beginParse().loadInt(32):o=(0,n.beginCell)().storeUint(0,1).storeUint(r.context,31).endCell().beginParse().loadInt(32),e.storeInt(BigInt(r.networkGlobalId)^BigInt(o),32)}}return $n}var _u;function xu(){if(_u)return Wa;_u=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.WalletContractV5R1=void 0;const n=Ct(),c=yr(),d=wu();class l{static create(r){var o,i,f;let e=0;return"workchain"in r&&r.workchain!=null&&(e=r.workchain),(o=r.walletId)!=null&&o.context&&(0,d.isWalletIdV5R1ClientContext)(r.walletId.context)&&r.walletId.context.workchain!=null&&(e=r.walletId.context.workchain),new l(e,r.publicKey,{networkGlobalId:((i=r.walletId)==null?void 0:i.networkGlobalId)??-239,context:((f=r.walletId)==null?void 0:f.context)??{workchain:0,walletVersion:"v5r1",subwalletNumber:0}})}constructor(r,e,o){this.publicKey=e,this.walletId=o,this.walletId=o;let i=n.Cell.fromBoc(Buffer.from("b5ee9c7241021401000281000114ff00f4a413f4bcf2c80b01020120020d020148030402dcd020d749c120915b8f6320d70b1f2082106578746ebd21821073696e74bdb0925f03e082106578746eba8eb48020d72101d074d721fa4030fa44f828fa443058bd915be0ed44d0810141d721f4058307f40e6fa1319130e18040d721707fdb3ce03120d749810280b99130e070e2100f020120050c020120060902016e07080019adce76a2684020eb90eb85ffc00019af1df6a2684010eb90eb858fc00201480a0b0017b325fb51341c75c875c2c7e00011b262fb513435c280200019be5f0f6a2684080a0eb90fa02c0102f20e011e20d70b1f82107369676ebaf2e08a7f0f01e68ef0eda2edfb218308d722028308d723208020d721d31fd31fd31fed44d0d200d31f20d31fd3ffd70a000af90140ccf9109a28945f0adb31e1f2c087df02b35007b0f2d0845125baf2e0855036baf2e086f823bbf2d0882292f800de01a47fc8ca00cb1f01cf16c9ed542092f80fde70db3cd81003f6eda2edfb02f404216e926c218e4c0221d73930709421c700b38e2d01d72820761e436c20d749c008f2e09320d74ac002f2e09320d71d06c712c2005230b0f2d089d74cd7393001a4e86c128407bbf2e093d74ac000f2e093ed55e2d20001c000915be0ebd72c08142091709601d72c081c12e25210b1e30f20d74a111213009601fa4001fa44f828fa443058baf2e091ed44d0810141d718f405049d7fc8ca0040048307f453f2e08b8e14038307f45bf2e08c22d70a00216e01b3b0f2d090e2c85003cf1612f400c9ed54007230d72c08248e2d21f2e092d200ed44d0d2005113baf2d08f54503091319c01810140d721d70a00f2e08ee2c8ca0058cf16c9ed5493f2c08de20010935bdb31e1d74cd0b4d6c35e","hex"))[0],f=(0,n.beginCell)().storeUint(1,1).storeUint(0,32).store((0,d.storeWalletIdV5R1)(this.walletId)).storeBuffer(this.publicKey,32).storeBit(0).endCell();this.init={code:i,data:f},this.address=(0,n.contractAddress)(r,{code:i,data:f})}async getBalance(r){return(await r.getState()).balance}async getSeqno(r){return(await r.getState()).state.type==="active"?(await r.get("seqno",[])).stack.readNumber():0}async getExtensions(r){return(await r.getState()).state.type==="active"?(await r.get("get_extensions",[])).stack.readCellOpt():null}async getExtensionsArray(r){const e=await this.getExtensions(r);return e?n.Dictionary.loadDirect(n.Dictionary.Keys.BigUint(256),n.Dictionary.Values.BigInt(1),e).keys().map(i=>{const f=this.address.workChain;return n.Address.parseRaw(`${f}:${i.toString(16).padStart(64,"0")}`)}):[]}async getIsSecretKeyAuthEnabled(r){return(await r.get("is_signature_allowed",[])).stack.readBoolean()}async send(r,e){await r.external(e)}async sendTransfer(r,e){const o=await this.createTransfer(e);await this.send(r,o)}async sendAddExtension(r,e){const o=await this.createAddExtension(e);await this.send(r,o)}async sendRemoveExtension(r,e){const o=await this.createRemoveExtension(e);await this.send(r,o)}createActions(r){return r.messages.map(o=>({type:"sendMsg",mode:r.sendMode,outMsg:o}))}createTransfer(r){return this.createRequest({actions:this.createActions({messages:r.messages,sendMode:r.sendMode}),...r})}createAddExtension(r){return this.createRequest({actions:[{type:"addExtension",address:r.extensionAddress}],...r})}createRemoveExtension(r){return this.createRequest({actions:[{type:"removeExtension",address:r.extensionAddress}],...r})}createRequest(r){return r.authType==="extension"?(0,c.createWalletTransferV5R1)(r):(0,c.createWalletTransferV5R1)({...r,walletId:(0,d.storeWalletIdV5R1)(this.walletId)})}sender(r,e){return{send:async o=>{let i=await this.getSeqno(r),f=this.createTransfer({seqno:i,secretKey:e,sendMode:o.sendMode??n.SendMode.PAY_GAS_SEPARATELY+n.SendMode.IGNORE_ERRORS,messages:[(0,n.internal)({to:o.to,value:o.value,extracurrency:o.extracurrency,init:o.init,body:o.body,bounce:o.bounce})]});await this.send(r,f)}}}}return Wa.WalletContractV5R1=l,l.OpCodes={auth_extension:1702392942,auth_signed_external:1936287598,auth_signed_internal:1936289396},Wa}var Or={},ku;function Cu(){if(ku)return Or;ku=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.storeOutActionExtendedV5R1=i,Or.loadOutActionExtendedV5R1=f,Or.storeOutListExtendedV5R1=s,Or.loadOutListExtendedV5R1=B,Or.toSafeV5R1SendMode=k,Or.patchV5R1ActionsSendMode=j;const n=Ct(),c=gu(),d=4;function l(P){return R=>{R.storeUint(d,8).storeUint(P.isEnabled?1:0,1)}}const t=2;function r(P){return R=>{R.storeUint(t,8).storeAddress(P.address)}}const e=3;function o(P){return R=>{R.storeUint(e,8).storeAddress(P.address)}}function i(P){switch(P.type){case"setIsPublicKeyEnabled":return l(P);case"addExtension":return r(P);case"removeExtension":return o(P);default:throw new Error("Unknown action type"+(P==null?void 0:P.type))}}function f(P){const R=P.loadUint(8);switch(R){case d:return{type:"setIsPublicKeyEnabled",isEnabled:!!P.loadUint(1)};case t:return{type:"addExtension",address:P.loadAddress()};case e:return{type:"removeExtension",address:P.loadAddress()};default:throw new Error(`Unknown extended out action tag 0x${R.toString(16)}`)}}function s(P){const R=P.filter(c.isOutActionExtended),z=P.filter(c.isOutActionBasic);return V=>{const F=z.length?(0,n.beginCell)().store((0,n.storeOutList)(z.slice().reverse())):null;if(V.storeMaybeRef(F),R.length===0)V.storeUint(0,1);else{const[ee,...he]=R;V.storeUint(1,1).store(i(ee)),he.length>0&&V.storeRef(y(he))}}}function y(P){const[R,...z]=P;let V=(0,n.beginCell)().store(i(R));return z.length>0&&(V=V.storeRef(y(z))),V.endCell()}function B(P){const R=[],z=P.loadMaybeRef();if(z){const V=(0,n.loadOutList)(z.beginParse());if(V.some(F=>F.type!=="sendMsg"))throw new Error("Can't deserialize actions list: only sendMsg actions are allowed for wallet v5r1");R.push(...V)}if(P.loadBoolean()){const V=f(P);R.push(V)}for(;P.remainingRefs>0;){P=P.loadRef().beginParse();const V=f(P);R.push(V)}return R}function k(P,R){return R==="internal"||R==="extension"?P:P|n.SendMode.IGNORE_ERRORS}function j(P,R){return P.map(z=>z.type==="sendMsg"?{...z,mode:k(z.mode,R)}:z)}return Or}var Su;function yr(){if(Su)return Ur;Su=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.createWalletTransferV1=f,Ur.createWalletTransferV2=s,Ur.createWalletTransferV3=y,Ur.createWalletTransferV4=B,Ur.createWalletTransferV5Beta=k,Ur.createWalletTransferV5R1=j;const n=Ct(),c=on(),d=hu(),l=yu(),t=md(),r=xu(),e=Cu();function o(P,R){return(0,n.beginCell)().storeBuffer(P).storeBuilder(R).endCell()}function i(P,R){return(0,n.beginCell)().storeBuilder(R).storeBuffer(P).endCell()}function f(P){let R=(0,n.beginCell)().storeUint(P.seqno,32);P.message&&(R.storeUint(P.sendMode,8),R.storeRef((0,n.beginCell)().store((0,n.storeMessageRelaxed)(P.message))));let z=(0,c.sign)(R.endCell().hash(),P.secretKey);return(0,n.beginCell)().storeBuffer(z).storeBuilder(R).endCell()}function s(P){if(P.messages.length>4)throw Error("Maximum number of messages in a single transfer is 4");let R=(0,n.beginCell)().storeUint(P.seqno,32);if(P.seqno===0)for(let F=0;F<32;F++)R.storeBit(1);else R.storeUint(P.timeout||Math.floor(Date.now()/1e3)+60,32);for(let F of P.messages)R.storeUint(P.sendMode,8),R.storeRef((0,n.beginCell)().store((0,n.storeMessageRelaxed)(F)));let z=(0,c.sign)(R.endCell().hash(),P.secretKey);return(0,n.beginCell)().storeBuffer(z).storeBuilder(R).endCell()}function y(P){if(P.messages.length>4)throw Error("Maximum number of messages in a single transfer is 4");let R=(0,n.beginCell)().storeUint(P.walletId,32);if(P.seqno===0)for(let z=0;z<32;z++)R.storeBit(1);else R.storeUint(P.timeout||Math.floor(Date.now()/1e3)+60,32);R.storeUint(P.seqno,32);for(let z of P.messages)R.storeUint(P.sendMode,8),R.storeRef((0,n.beginCell)().store((0,n.storeMessageRelaxed)(z)));return(0,t.signPayload)(P,R,o)}function B(P){if(P.messages.length>4)throw Error("Maximum number of messages in a single transfer is 4");let R=(0,n.beginCell)().storeUint(P.walletId,32);if(P.seqno===0)for(let z=0;z<32;z++)R.storeBit(1);else R.storeUint(P.timeout||Math.floor(Date.now()/1e3)+60,32);R.storeUint(P.seqno,32),R.storeUint(0,8);for(let z of P.messages)R.storeUint(P.sendMode,8),R.storeRef((0,n.beginCell)().store((0,n.storeMessageRelaxed)(z)));return(0,t.signPayload)(P,R,o)}function k(P){if(P.actions.length>255)throw Error("Maximum number of OutActions in a single request is 255");if(P.authType==="extension")return(0,n.beginCell)().storeUint(d.WalletContractV5Beta.OpCodes.auth_extension,32).store((0,l.storeOutListExtendedV5Beta)(P.actions)).endCell();const R=(0,n.beginCell)().storeUint(P.authType==="internal"?d.WalletContractV5Beta.OpCodes.auth_signed_internal:d.WalletContractV5Beta.OpCodes.auth_signed_external,32).store(P.walletId);if(P.seqno===0)for(let z=0;z<32;z++)R.storeBit(1);else R.storeUint(P.timeout||Math.floor(Date.now()/1e3)+60,32);return R.storeUint(P.seqno,32).store((0,l.storeOutListExtendedV5Beta)(P.actions)),(0,t.signPayload)(P,R,i)}function j(P){if(P.actions.length>255)throw Error("Maximum number of OutActions in a single request is 255");if(P={...P},P.authType==="extension")return(0,n.beginCell)().storeUint(r.WalletContractV5R1.OpCodes.auth_extension,32).storeUint(P.queryId??0,64).store((0,e.storeOutListExtendedV5R1)(P.actions)).endCell();P.actions=(0,e.patchV5R1ActionsSendMode)(P.actions,P.authType);const R=(0,n.beginCell)().storeUint(P.authType==="internal"?r.WalletContractV5R1.OpCodes.auth_signed_internal:r.WalletContractV5R1.OpCodes.auth_signed_external,32).store(P.walletId);if(P.seqno===0)for(let z=0;z<32;z++)R.storeBit(1);else R.storeUint(P.timeout||Math.floor(Date.now()/1e3)+60,32);return R.storeUint(P.seqno,32).store((0,e.storeOutListExtendedV5R1)(P.actions)),(0,t.signPayload)(P,R,i)}return Ur}var Bu;function yd(){if(Bu)return La;Bu=1,Object.defineProperty(La,"__esModule",{value:!0}),La.WalletContractV1R1=void 0;const n=Ct(),c=yr();let d=class oc{static create(t){return new oc(t.workchain,t.publicKey)}constructor(t,r){this.workchain=t,this.publicKey=r;let e=n.Cell.fromBoc(Buffer.from("te6cckEBAQEARAAAhP8AIN2k8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVEH98Ik=","base64"))[0],o=(0,n.beginCell)().storeUint(0,32).storeBuffer(r).endCell();this.init={code:e,data:o},this.address=(0,n.contractAddress)(t,{code:e,data:o})}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){let r=await t.getState();return r.state.type==="active"?n.Cell.fromBoc(r.state.data)[0].beginParse().loadUint(32):0}async send(t,r){await t.external(r)}async sendTransfer(t,r){let e=this.createTransfer(r);await this.send(t,e)}createTransfer(t){let r=n.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(r=t.sendMode),(0,c.createWalletTransferV1)({seqno:t.seqno,sendMode:r,secretKey:t.secretKey,message:t.message})}sender(t,r){return{send:async e=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:r,sendMode:e.sendMode,message:(0,n.internal)({to:e.to,value:e.value,extracurrency:e.extracurrency,init:e.init,body:e.body,bounce:e.bounce})});await this.send(t,i)}}}};return La.WalletContractV1R1=d,La}var Ha={},Au;function bd(){if(Au)return Ha;Au=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.WalletContractV1R2=void 0;const n=Ct(),c=yr();let d=class sc{static create(t){return new sc(t.workchain,t.publicKey)}constructor(t,r){this.workchain=t,this.publicKey=r;let e=n.Cell.fromBoc(Buffer.from("te6cckEBAQEAUwAAov8AIN0gggFMl7qXMO1E0NcLH+Ck8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVNDieG8=","base64"))[0],o=(0,n.beginCell)().storeUint(0,32).storeBuffer(r).endCell();this.init={code:e,data:o},this.address=(0,n.contractAddress)(t,{code:e,data:o})}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,r){await t.external(r)}async sendTransfer(t,r){let e=this.createTransfer(r);await this.send(t,e)}createTransfer(t){let r=n.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(r=t.sendMode),(0,c.createWalletTransferV1)({seqno:t.seqno,sendMode:r,secretKey:t.secretKey,message:t.message})}sender(t,r){return{send:async e=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:r,sendMode:e.sendMode,message:(0,n.internal)({to:e.to,value:e.value,extracurrency:e.extracurrency,init:e.init,body:e.body,bounce:e.bounce})});await this.send(t,i)}}}};return Ha.WalletContractV1R2=d,Ha}var Ka={},Pu;function vd(){if(Pu)return Ka;Pu=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.WalletContractV1R3=void 0;const n=Ct(),c=yr();let d=class lc{static create(t){return new lc(t.workchain,t.publicKey)}constructor(t,r){this.workchain=t,this.publicKey=r;let e=n.Cell.fromBoc(Buffer.from("te6cckEBAQEAXwAAuv8AIN0gggFMl7ohggEznLqxnHGw7UTQ0x/XC//jBOCk8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVLW4bkI=","base64"))[0],o=(0,n.beginCell)().storeUint(0,32).storeBuffer(r).endCell();this.init={code:e,data:o},this.address=(0,n.contractAddress)(t,{code:e,data:o})}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,r){await t.external(r)}async sendTransfer(t,r){let e=this.createTransfer(r);await this.send(t,e)}createTransfer(t){let r=n.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(r=t.sendMode),(0,c.createWalletTransferV1)({seqno:t.seqno,sendMode:r,secretKey:t.secretKey,message:t.message})}sender(t,r){return{send:async e=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:r,sendMode:e.sendMode,message:(0,n.internal)({to:e.to,value:e.value,init:e.init,body:e.body,bounce:e.bounce})});await this.send(t,i)}}}};return Ka.WalletContractV1R3=d,Ka}var $a={},Eu;function wd(){if(Eu)return $a;Eu=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.WalletContractV2R1=void 0;const n=Ct(),c=yr();let d=class uc{static create(t){return new uc(t.workchain,t.publicKey)}constructor(t,r){this.workchain=t,this.publicKey=r;let e=n.Cell.fromBoc(Buffer.from("te6cckEBAQEAVwAAqv8AIN0gggFMl7qXMO1E0NcLH+Ck8mCDCNcYINMf0x8B+CO78mPtRNDTH9P/0VExuvKhA/kBVBBC+RDyovgAApMg10qW0wfUAvsA6NGkyMsfy//J7VShNwu2","base64"))[0],o=(0,n.beginCell)().storeUint(0,32).storeBuffer(r).endCell();this.init={code:e,data:o},this.address=(0,n.contractAddress)(t,{code:e,data:o})}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,r){await t.external(r)}async sendTransfer(t,r){let e=this.createTransfer(r);await this.send(t,e)}createTransfer(t){let r=n.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(r=t.sendMode),(0,c.createWalletTransferV2)({seqno:t.seqno,sendMode:r,secretKey:t.secretKey,messages:t.messages,timeout:t.timeout})}sender(t,r){return{send:async e=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:r,sendMode:e.sendMode,messages:[(0,n.internal)({to:e.to,value:e.value,extracurrency:e.extracurrency,init:e.init,body:e.body,bounce:e.bounce})]});await this.send(t,i)}}}};return $a.WalletContractV2R1=d,$a}var Ya={},Iu;function _d(){if(Iu)return Ya;Iu=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.WalletContractV2R2=void 0;const n=Ct(),c=yr();let d=class cc{static create(t){return new cc(t.workchain,t.publicKey)}constructor(t,r){this.workchain=t,this.publicKey=r;let e=n.Cell.fromBoc(Buffer.from("te6cckEBAQEAYwAAwv8AIN0gggFMl7ohggEznLqxnHGw7UTQ0x/XC//jBOCk8mCDCNcYINMf0x8B+CO78mPtRNDTH9P/0VExuvKhA/kBVBBC+RDyovgAApMg10qW0wfUAvsA6NGkyMsfy//J7VQETNeh","base64"))[0],o=(0,n.beginCell)().storeUint(0,32).storeBuffer(r).endCell();this.init={code:e,data:o},this.address=(0,n.contractAddress)(t,{code:e,data:o})}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,r){await t.external(r)}async sendTransfer(t,r){let e=this.createTransfer(r);await this.send(t,e)}createTransfer(t){let r=n.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(r=t.sendMode),(0,c.createWalletTransferV2)({seqno:t.seqno,sendMode:r,secretKey:t.secretKey,messages:t.messages,timeout:t.timeout})}sender(t,r){return{send:async e=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:r,sendMode:e.sendMode,messages:[(0,n.internal)({to:e.to,value:e.value,extracurrency:e.extracurrency,init:e.init,body:e.body,bounce:e.bounce})]});await this.send(t,i)}}}};return Ya.WalletContractV2R2=d,Ya}var Ga={},Tu;function xd(){if(Tu)return Ga;Tu=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.WalletContractV3R1=void 0;const n=Ct(),c=yr();let d=class dc{static create(t){return new dc(t.workchain,t.publicKey,t.walletId)}constructor(t,r,e){this.workchain=t,this.publicKey=r,e!=null?this.walletId=e:this.walletId=698983191+t;let o=n.Cell.fromBoc(Buffer.from("te6cckEBAQEAYgAAwP8AIN0gggFMl7qXMO1E0NcLH+Ck8mCDCNcYINMf0x/TH/gjE7vyY+1E0NMf0x/T/9FRMrryoVFEuvKiBPkBVBBV+RDyo/gAkyDXSpbTB9QC+wDo0QGkyMsfyx/L/8ntVD++buA=","base64"))[0],i=(0,n.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(r).endCell();this.init={code:o,data:i},this.address=(0,n.contractAddress)(t,{code:o,data:i})}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,r){await t.external(r)}async sendTransfer(t,r){let e=this.createTransfer(r);await this.send(t,e)}createTransfer(t){return(0,c.createWalletTransferV3)({...t,sendMode:t.sendMode??n.SendMode.PAY_GAS_SEPARATELY,walletId:this.walletId})}sender(t,r){return{send:async e=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:r,sendMode:e.sendMode,messages:[(0,n.internal)({to:e.to,value:e.value,extracurrency:e.extracurrency,init:e.init,body:e.body,bounce:e.bounce})]});await this.send(t,i)}}}};return Ga.WalletContractV3R1=d,Ga}var Ja={},Mu;function kd(){if(Mu)return Ja;Mu=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.WalletContractV3R2=void 0;const n=Ct(),c=yr();let d=class fc{static create(t){return new fc(t.workchain,t.publicKey,t.walletId)}constructor(t,r,e){this.workchain=t,this.publicKey=r,e!=null?this.walletId=e:this.walletId=698983191+t;let o=n.Cell.fromBoc(Buffer.from("te6cckEBAQEAcQAA3v8AIN0gggFMl7ohggEznLqxn3Gw7UTQ0x/THzHXC//jBOCk8mCDCNcYINMf0x/TH/gjE7vyY+1E0NMf0x/T/9FRMrryoVFEuvKiBPkBVBBV+RDyo/gAkyDXSpbTB9QC+wDo0QGkyMsfyx/L/8ntVBC9ba0=","base64"))[0],i=(0,n.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(r).endCell();this.init={code:o,data:i},this.address=(0,n.contractAddress)(t,{code:o,data:i})}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,r){await t.external(r)}async sendTransfer(t,r){let e=this.createTransfer(r);await this.send(t,e)}createTransfer(t){return(0,c.createWalletTransferV3)({...t,sendMode:t.sendMode??n.SendMode.PAY_GAS_SEPARATELY,walletId:this.walletId})}sender(t,r){return{send:async e=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:r,sendMode:e.sendMode,messages:[(0,n.internal)({to:e.to,value:e.value,extracurrency:e.extracurrency,init:e.init,body:e.body,bounce:e.bounce})]});await this.send(t,i)}}}};return Ja.WalletContractV3R2=d,Ja}var Qa={},Ru;function Cd(){if(Ru)return Qa;Ru=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.WalletContractV4=void 0;const n=Ct(),c=yr();let d=class hc{static create(t){return new hc(t.workchain,t.publicKey,t.walletId)}constructor(t,r,e){this.workchain=t,this.publicKey=r,e!=null?this.walletId=e:this.walletId=698983191+t;let o=n.Cell.fromBoc(Buffer.from("te6ccgECFAEAAtQAART/APSkE/S88sgLAQIBIAIDAgFIBAUE+PKDCNcYINMf0x/THwL4I7vyZO1E0NMf0x/T//QE0VFDuvKhUVG68qIF+QFUEGT5EPKj+AAkpMjLH1JAyx9SMMv/UhD0AMntVPgPAdMHIcAAn2xRkyDXSpbTB9QC+wDoMOAhwAHjACHAAuMAAcADkTDjDQOkyMsfEssfy/8QERITAubQAdDTAyFxsJJfBOAi10nBIJJfBOAC0x8hghBwbHVnvSKCEGRzdHK9sJJfBeAD+kAwIPpEAcjKB8v/ydDtRNCBAUDXIfQEMFyBAQj0Cm+hMbOSXwfgBdM/yCWCEHBsdWe6kjgw4w0DghBkc3RyupJfBuMNBgcCASAICQB4AfoA9AQw+CdvIjBQCqEhvvLgUIIQcGx1Z4MesXCAGFAEywUmzxZY+gIZ9ADLaRfLH1Jgyz8gyYBA+wAGAIpQBIEBCPRZMO1E0IEBQNcgyAHPFvQAye1UAXKwjiOCEGRzdHKDHrFwgBhQBcsFUAPPFiP6AhPLassfyz/JgED7AJJfA+ICASAKCwBZvSQrb2omhAgKBrkPoCGEcNQICEekk30pkQzmkD6f+YN4EoAbeBAUiYcVnzGEAgFYDA0AEbjJftRNDXCx+AA9sp37UTQgQFA1yH0BDACyMoHy//J0AGBAQj0Cm+hMYAIBIA4PABmtznaiaEAga5Drhf/AABmvHfaiaEAQa5DrhY/AAG7SB/oA1NQi+QAFyMoHFcv/ydB3dIAYyMsFywIizxZQBfoCFMtrEszMyXP7AMhAFIEBCPRR8qcCAHCBAQjXGPoA0z/IVCBHgQEI9FHyp4IQbm90ZXB0gBjIywXLAlAGzxZQBPoCFMtqEssfyz/Jc/sAAgBsgQEI1xj6ANM/MFIkgQEI9Fnyp4IQZHN0cnB0gBjIywXLAlAFzxZQA/oCE8tqyx8Syz/Jc/sAAAr0AMntVA==","base64"))[0],i=(0,n.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(this.publicKey).storeBit(0).endCell();this.init={code:o,data:i},this.address=(0,n.contractAddress)(t,{code:o,data:i})}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,r){await t.external(r)}async sendTransfer(t,r){let e=this.createTransfer(r);await this.send(t,e)}createTransfer(t){return(0,c.createWalletTransferV4)({...t,sendMode:t.sendMode??n.SendMode.PAY_GAS_SEPARATELY,walletId:this.walletId})}sender(t,r){return{send:async e=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:r,sendMode:e.sendMode,messages:[(0,n.internal)({to:e.to,value:e.value,extracurrency:e.extracurrency,init:e.init,body:e.body,bounce:e.bounce})]});await this.send(t,i)}}}};return Qa.WalletContractV4=d,Qa}var Vn={},Uu;function Sd(){return Uu||(Uu=1,function(n){var c=Vn&&Vn.__createBinding||(Object.create?function(l,t,r,e){e===void 0&&(e=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(l,e,o)}:function(l,t,r,e){e===void 0&&(e=r),l[e]=t[r]}),d=Vn&&Vn.__exportStar||function(l,t){for(var r in l)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&c(t,l,r)};Object.defineProperty(n,"__esModule",{value:!0}),d(hu(),n),d(yu(),n),d(du(),n)}(Vn)),Vn}var Fn={},Ou;function Bd(){return Ou||(Ou=1,function(n){var c=Fn&&Fn.__createBinding||(Object.create?function(l,t,r,e){e===void 0&&(e=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(l,e,o)}:function(l,t,r,e){e===void 0&&(e=r),l[e]=t[r]}),d=Fn&&Fn.__exportStar||function(l,t){for(var r in l)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&c(t,l,r)};Object.defineProperty(n,"__esModule",{value:!0}),d(xu(),n),d(Cu(),n),d(wu(),n)}(Fn)),Fn}var Xa={},zu;function Ad(){if(zu)return Xa;zu=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.JettonMaster=void 0;const n=Ct();let c=class pc{static create(l){return new pc(l)}constructor(l){this.address=l}async getWalletAddress(l,t){return(await l.get("get_wallet_address",[{type:"slice",cell:(0,n.beginCell)().storeAddress(t).endCell()}])).stack.readAddress()}async getJettonData(l){let t=await l.get("get_jetton_data",[]),r=t.stack.readBigNumber(),e=t.stack.readBoolean(),o=t.stack.readAddress(),i=t.stack.readCell(),f=t.stack.readCell();return{totalSupply:r,mintable:e,adminAddress:o,content:i,walletCode:f}}};return Xa.JettonMaster=c,Xa}var ei={},ju;function Pd(){if(ju)return ei;ju=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.JettonWallet=void 0;let n=class gc{static create(d){return new gc(d)}constructor(d){this.address=d}async getBalance(d){return(await d.getState()).state.type!=="active"?0n:(await d.get("get_wallet_data",[])).stack.readBigNumber()}};return ei.JettonWallet=n,ei}var ti={},Nu;function Du(){if(Nu)return ti;Nu=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.MultisigOrder=void 0;const n=on(),c=Ct();let d=class Qi{constructor(t){this.signatures={},this.payload=t}static fromCell(t){var f;let r=t.beginParse(),e=(f=r.loadMaybeRef())==null?void 0:f.beginParse();const o=r.asCell();let i=new Qi(o);if(e){for(;e.remainingBits>0;){const s=e.loadBuffer(64),y=e.loadUint(8);i.signatures[y]=s,e.remainingRefs>0?e=e.loadRef().asSlice():e.skip(1)}e.endParse()}return i}static fromPayload(t){return new Qi(t)}addSignature(t,r,e){const o=this.payload.hash();if(!(0,n.signVerify)(o,r,e.owners.get(t).slice(0,-1)))throw Error("invalid signature");this.signatures[t]=r}sign(t,r){const e=this.payload.hash();return this.signatures[t]=(0,n.sign)(e,r),e}unionSignatures(t){this.signatures=Object.assign({},this.signatures,t.signatures)}clearSignatures(){this.signatures={}}toCell(t){let r=(0,c.beginCell)().storeBit(0);for(const e in this.signatures){const o=this.signatures[e];r=(0,c.beginCell)().storeBit(1).storeRef((0,c.beginCell)().storeBuffer(o).storeUint(parseInt(e),8).storeBuilder(r).endCell())}return(0,c.beginCell)().storeUint(t,8).storeBuilder(r).storeBuilder(this.payload.asBuilder()).endCell()}};return ti.MultisigOrder=d,ti}var ri={},qu;function Ed(){if(qu)return ri;qu=1,Object.defineProperty(ri,"__esModule",{value:!0}),ri.MultisigOrderBuilder=void 0;const n=Ct(),c=Du();let d=class{constructor(t,r){this.messages=(0,n.beginCell)(),this.queryId=0n,this.walletId=t,this.queryOffset=r||7200}addMessage(t,r){if(this.messages.refs>=4)throw Error("only 4 refs are allowed");this.updateQueryId(),this.messages.storeUint(r,8),this.messages.storeRef((0,n.beginCell)().store((0,n.storeMessageRelaxed)(t)).endCell())}clearMessages(){this.messages=(0,n.beginCell)()}build(){return c.MultisigOrder.fromPayload((0,n.beginCell)().storeUint(this.walletId,32).storeUint(this.queryId,64).storeBuilder(this.messages).endCell())}updateQueryId(){const t=BigInt(Math.floor(Date.now()/1e3+this.queryOffset));this.queryId=t<<32n}};return ri.MultisigOrderBuilder=d,ri}var ni={},Lu;function Id(){if(Lu)return ni;Lu=1,Object.defineProperty(ni,"__esModule",{value:!0}),ni.MultisigWallet=void 0;const n=on(),c=Ct(),d=c.Cell.fromBase64("te6ccgECKwEABBgAART/APSkE/S88sgLAQIBIAIDAgFIBAUE2vIgxwCOgzDbPOCDCNcYIPkBAdMH2zwiwAAToVNxePQOb6Hyn9s8VBq6+RDyoAb0BCD5AQHTH1EYuvKq0z9wUwHwCgHCCAGDCryx8mhTFYBA9A5voSCYDqQgwgryZw7f+COqH1NAufJhVCOjU04gIyEiAgLMBgcCASAMDQIBIAgJAgFmCgsAA9GEAiPymAvHoHN9CYbZ5S7Z4BPHohwhJQAtAKkItdJEqCTItdKlwLUAdAT8ArobBKAATwhbpEx4CBukTDgAdAg10rDAJrUAvALyFjPFszJ4HHXI8gBzxb0AMmACASAODwIBIBQVARW77ZbVA0cFUg2zyCoCAUgQEQIBIBITAXOxHXQgwjXGCD5AQHTB4IB1MTtQ9hTIHj0Dm+h8p/XC/9eMfkQ8qCuAfQEIW6TW3Ey4PkBWNs8AaQBgJwA9rtqA6ADoAPoCAXoCEfyAgPyA3XlP+AXkegAA54tkwAAXrhlXP8EA1WZ2oexAAgEgFhcCASAYGQFRtyVbZ4YmRmpGEAgegc30McJNhFpAADMaYeYuAFrgJhwLb+4cC3d0bhAjAYm1WZtnhqvgb+2xxsoicAgej430pBHEoFpAADHDhBACGuQkuuBk9kUWE5kAOeLKhACQCB6IYFImHFImHFImXEA2YlzNijAjAgEgGhsAF7UGtc4QQDVZnah7EAIBIBwdAgOZOB4fARGsGm2eL4G2CUAjABWt+UEAzJV2oewYQAENqTbPBVfBYCMAFa3f3CCAarM7UPYgAiDbPALyZfgAUENxQxPbPO1UIyoACtP/0wcwBKDbPC+uUyCw8mISsQKkJbNTHLmwJYEA4aojoCi8sPJpggGGoPgBBZcCERACPj4wjo0REB/bPEDXePRDEL0F4lQWW1Rz51YQU9zbPFRxClR6vCQlKCYAIO1E0NMf0wfTB9M/9AT0BNEAXgGOGjDSAAHyo9MH0wdQA9cBIPkBBfkBFbrypFAD4GwhIddKqgIi10m68qtwVCATAAwByMv/ywcE1ts87VT4D3AlblOJvrGYEG4QLVDHXwePGzBUJANQTds8UFWgRlAQSRA6SwlTuds8UFQWf+L4AAeDJaGOLCaAQPSWb6UglDBTA7neII4WODk5CNIAAZfTBzAW8AcFkTDifwgHBZJsMeKz5jAGKicoKQBgcI4pA9CDCNcY0wf0BDBTFnj0Dm+h8qXXC/9URUT5EPKmrlIgsVIDvRShI27mbCIyAH5SML6OIF8D+ACTItdKmALTB9QC+wAC6DJwyMoAQBSAQPRDAvAHjhdxyMsAFMsHEssHWM8BWM8WQBOAQPRDAeIBII6KEEUQNEMA2zztVJJfBuIqABzIyx/LB8sHyz/0APQAyQ==");let l=class mc{constructor(r,e,o,i,f){this.provider=null,this.owners=c.Dictionary.empty(),this.workchain=e,this.walletId=o,this.k=i;for(let s=0;s<r.length;s+=1)this.owners.set(s,Buffer.concat([r[s],Buffer.alloc(1)]));this.init={code:d,data:(0,c.beginCell)().storeUint(this.walletId,32).storeUint(this.owners.size,8).storeUint(this.k,8).storeUint(0,64).storeDict(this.owners,c.Dictionary.Keys.Uint(8),c.Dictionary.Values.Buffer(33)).storeBit(0).endCell()},this.address=(f==null?void 0:f.address)||(0,c.contractAddress)(e,this.init),f!=null&&f.provider?this.provider=f.provider:f!=null&&f.client&&(this.provider=f.client.provider(this.address,{code:this.init.code,data:this.init.data}))}static async fromAddress(r,e){let o;if(e.provider)o=e.provider;else{if(!e.client)throw Error("Either provider or client must be specified");o=e.client.provider(r,{code:null,data:null})}const i=(await o.getState()).state;if(i.type!=="active")throw Error("Contract must be active");const f=c.Cell.fromBoc(i.data)[0].beginParse(),s=f.loadUint(32);f.skip(8);const y=f.loadUint(8);f.skip(64);const B=f.loadDict(c.Dictionary.Keys.Uint(8),c.Dictionary.Values.Buffer(33));let k=[];for(const[j,P]of B){const R=P.subarray(0,32);k.push(R)}return new mc(k,r.workChain,s,y,{address:r,provider:o,client:e.client})}async deployExternal(r){if(!r&&!this.provider)throw Error("you must specify provider if there is no such property in MultisigWallet instance");r||(r=this.provider),await r.external(c.Cell.EMPTY)}async deployInternal(r,e=1000000000n){await r.send({sendMode:c.SendMode.PAY_GAS_SEPARATELY+c.SendMode.IGNORE_ERRORS,to:this.address,value:e,init:this.init,body:c.Cell.EMPTY,bounce:!0})}async sendOrder(r,e,o){if(!o&&!this.provider)throw Error("you must specify provider if there is no such property in MultisigWallet instance");o||(o=this.provider);let i=(0,n.keyPairFromSecretKey)(e).publicKey,f=this.getOwnerIdByPubkey(i),s=r.toCell(f),y=(0,n.sign)(s.hash(),e);s=(0,c.beginCell)().storeBuffer(y).storeSlice(s.asSlice()).endCell(),await o.external(s)}async sendOrderWithoutSecretKey(r,e,o,i){if(!i&&!this.provider)throw Error("you must specify provider if there is no such property in MultisigWallet instance");i||(i=this.provider);let f=r.toCell(o);f=(0,c.beginCell)().storeBuffer(e).storeSlice(f.asSlice()).endCell(),await i.external(f)}getOwnerIdByPubkey(r){for(const[e,o]of this.owners)if(o.subarray(0,32).equals(r))return e;throw Error("public key is not an owner")}};return ni.MultisigWallet=l,ni}var ai={},Vu;function Td(){if(Vu)return ai;Vu=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.ElectorContract=void 0;const n=Ct(),c={serialize(t,r){throw Error("not implemented")},parse(t){const r=new n.Address(-1,t.loadBuffer(32)),e=t.loadUintBig(64),o=t.loadCoins();return{address:r,weight:e,stake:o}}},d={serialize(t,r){throw Error("not implemented")},parse(t){const r=t.loadCoins();t.skip(64);const e=new n.Address(-1,t.loadBuffer(32)),o=t.loadBuffer(32);return{stake:r,address:e,adnl:o}}};let l=class yc{static create(){return new yc}constructor(){this.address=n.Address.parseRaw("-1:3333333333333333333333333333333333333333333333333333333333333333")}async getReturnedStake(r,e){if(e.workChain!==-1)throw Error("Only masterchain addresses could have stake");return(await r.get("compute_returned_stake",[{type:"int",value:BigInt("0x"+e.hash.toString("hex"))}])).stack.readBigNumber()}async getPastElectionsList(r){const e=await r.get("past_elections_list",[]),o=new n.TupleReader(e.stack.readLispList()),i=[];for(;o.remaining>0;){const f=o.readTuple(),s=f.readNumber(),y=f.readNumber();f.pop();const B=f.readNumber();i.push({id:s,unfreezeAt:y,stakeHeld:B})}return i}async getPastElections(r){const e=await r.get("past_elections",[]),o=new n.TupleReader(e.stack.readLispList()),i=[];for(;o.remaining>0;){const f=o.readTuple(),s=f.readNumber(),y=f.readNumber(),B=f.readNumber();f.pop();const k=f.readCell(),j=f.readBigNumber(),P=f.readBigNumber();let R=new Map;const z=k.beginParse().loadDictDirect(n.Dictionary.Keys.Buffer(32),c);for(const[V,F]of z)R.set(BigInt("0x"+V.toString("hex")).toString(10),{address:F.address,weight:F.weight,stake:F.stake});i.push({id:s,unfreezeAt:y,stakeHeld:B,totalStake:j,bonuses:P,frozen:R})}return i}async getElectionEntities(r){const e=await r.getState();if(e.state.type!=="active")throw Error("Unexpected error");const i=n.Cell.fromBoc(e.state.data)[0].beginParse();if(!i.loadBit())return null;const f=i.loadRef().beginParse(),s=f.loadUint(32),y=f.loadUint(32),B=f.loadCoins(),k=f.loadCoins(),j=f.loadDict(n.Dictionary.Keys.Buffer(32),d);let P=[];if(j)for(const[R,z]of j)P.push({pubkey:R,stake:z.stake,address:z.address,adnl:z.adnl});return{minStake:B,allStakes:k,endElectionsTime:y,startWorkTime:s,entities:P}}async getActiveElectionId(r){const o=(await r.get("active_election_id",[])).stack.readNumber();return o>0?o:null}async getComplaints(r,e){const o=new n.TupleBuilder;o.writeNumber(e);const i=await r.get("list_complaints",o.build());if(i.stack.peek().type==="null")return[];const f=new n.TupleReader(i.stack.readLispList()),s=[];for(;f.remaining>0;){const y=f.readTuple(),B=y.readBigNumber(),k=y.readTuple(),j=k.readTuple(),P=Buffer.from(j.readBigNumber().toString(16),"hex");j.readCell();const R=j.readNumber(),z=j.readNumber(),V=new n.Address(-1,Buffer.from(j.readBigNumber().toString(16),"hex")),F=j.readBigNumber(),ee=j.readBigNumber(),he=j.readBigNumber(),$=[],Z=new n.TupleReader(k.readLispList());for(;Z.remaining>0;)$.push(Z.readNumber());const Q=k.readBigNumber(),ie=k.readBigNumber();s.push({id:B,publicKey:P,createdAt:R,severity:z,paid:F,suggestedFine:ee,suggestedFinePart:he,rewardAddress:V,votes:$,remainingWeight:ie,vsetId:Q})}return s}};return ai.ElectorContract=l,ai}var vt={},Fu;function Md(){if(Fu)return vt;Fu=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.configParseMasterAddress=c,vt.parseValidatorSet=t,vt.parseBridge=r,vt.configParseMasterAddressRequired=e,vt.configParse5=o,vt.configParse13=i,vt.configParse15=f,vt.configParse16=s,vt.configParse17=y,vt.configParse18=k,vt.configParse8=j,vt.configParse40=P,vt.configParseWorkchainDescriptor=R,vt.configParse12=V,vt.configParseValidatorSet=F,vt.configParseBridge=ee,vt.configParseGasLimitsPrices=$,vt.configParseMsgPrices=Z,vt.configParse28=Q,vt.configParse29=ie,vt.parseProposalSetup=Ee,vt.parseVotingSetup=Oe,vt.loadConfigParamById=re,vt.loadConfigParamsAsSlice=Y,vt.parseFullConfig=Ae;const n=Ct();function c(C){return C?new n.Address(-1,C.loadBuffer(32)):null}function d(C){if(C.loadUint(32)!==2390828938)throw Error("Invalid config");return C.loadBuffer(32)}const l={serialize(C,ye){throw Error("not implemented")},parse(C){const ye=C.loadUint(8);if(ye===83)return{publicKey:d(C),weight:C.loadUintBig(64),adnlAddress:null};if(ye===115)return{publicKey:d(C),weight:C.loadUintBig(64),adnlAddress:C.loadBuffer(32)};throw Error("Invalid config")}};function t(C){const ye=C.loadUint(8);if(ye===17){const Pe=C.loadUint(32),N=C.loadUint(32),Se=C.loadUint(16),se=C.loadUint(16),be=C.loadDictDirect(n.Dictionary.Keys.Uint(16),l);return{timeSince:Pe,timeUntil:N,total:Se,main:se,totalWeight:null,list:be}}else if(ye===18){const Pe=C.loadUint(32),N=C.loadUint(32),Se=C.loadUint(16),se=C.loadUint(16),be=C.loadUintBig(64),ke=C.loadDict(n.Dictionary.Keys.Uint(16),l);return{timeSince:Pe,timeUntil:N,total:Se,main:se,totalWeight:be,list:ke}}}function r(C){const ye=new n.Address(-1,C.loadBuffer(32)),Pe=new n.Address(-1,C.loadBuffer(32)),N=C.loadDict(n.Dictionary.Keys.Buffer(32),n.Dictionary.Values.Buffer(32)),Se=new Map;for(const[be,ke]of N)Se.set(new n.Address(-1,be).toString(),ke);const se=C.loadBuffer(32);return{bridgeAddress:ye,oracleMultisigAddress:Pe,oracles:Se,externalChainAddress:se}}function e(C){if(!C)throw Error("Invalid config");return c(C)}function o(C){if(!C)throw Error("Invalid config");if(C.loadUint(8)===1){const Pe=C.loadBit()?new n.Address(-1,C.loadBuffer(32)):null,N=C.loadUint(32),Se=C.loadUint(32);return{blackholeAddr:Pe,feeBurnNominator:N,feeBurnDenominator:Se}}throw new Error("Invalid config")}function i(C){if(!C)throw Error("Invalid config");if(C.loadUint(8)===26){const Pe=C.loadCoins(),N=C.loadCoins(),Se=C.loadCoins();return{deposit:Pe,bitPrice:N,cellPrice:Se}}throw new Error("Invalid config")}function f(C){if(!C)throw Error("Invalid config");const ye=C.loadUint(32),Pe=C.loadUint(32),N=C.loadUint(32),Se=C.loadUint(32);return{validatorsElectedFor:ye,electorsStartBefore:Pe,electorsEndBefore:N,stakeHeldFor:Se}}function s(C){if(!C)throw Error("Invalid config");const ye=C.loadUint(16),Pe=C.loadUint(16),N=C.loadUint(16);return{maxValidators:ye,maxMainValidators:Pe,minValidators:N}}function y(C){if(!C)throw Error("Invalid config");const ye=C.loadCoins(),Pe=C.loadCoins(),N=C.loadCoins(),Se=C.loadUint(32);return{minStake:ye,maxStake:Pe,minTotalStake:N,maxStakeFactor:Se}}const B={serialize(C,ye){throw Error("not implemented")},parse(C){if(C.loadUint(8)!==204)throw Error("Invalid config");const Pe=C.loadUint(32),N=C.loadUintBig(64),Se=C.loadUintBig(64),se=C.loadUintBig(64),be=C.loadUintBig(64);return{utime_since:Pe,bit_price_ps:N,cell_price_ps:Se,mc_bit_price_ps:se,mc_cell_price_ps:be}}};function k(C){if(!C)throw Error("Invalid config");return C.loadDictDirect(n.Dictionary.Keys.Buffer(4),B).values()}function j(C){if(!C)return{version:0,capabilities:0n};const ye=C.loadUint(32),Pe=C.loadUintBig(64);return{version:ye,capabilities:Pe}}function P(C){if(!C)return null;if(C.loadUint(8)!==1)throw Error("Invalid config");const Pe=C.loadCoins(),N=C.loadCoins(),Se=C.loadUint(16),se=C.loadUint(16),be=C.loadUint(16),ke=C.loadUint(16),Te=C.loadUint(16),de=C.loadUint(16),Ve=C.loadUint(16),it=C.loadUint(16),lt=C.loadUint(16);return{defaultFlatFine:Pe,defaultProportionaFine:N,severityFlatMult:Se,severityProportionalMult:se,unfunishableInterval:be,longInterval:ke,longFlatMult:Te,longProportionalMult:de,mediumInterval:Ve,mediumFlatMult:it,mediumProportionalMult:lt}}function R(C){if(C.loadUint(8)!==166)throw Error("Invalid config");const ye=C.loadUint(32),Pe=C.loadUint(8),N=C.loadUint(8),Se=C.loadUint(8),se=C.loadBit(),be=C.loadBit(),ke=C.loadBit(),Te=C.loadUint(13),de=C.loadBuffer(32),Ve=C.loadBuffer(32),it=C.loadUint(32);if(C.loadBit())throw Error("Invalid config");const lt=C.loadUint(32),ot=C.loadUintBig(64);return{enabledSince:ye,actialMinSplit:Pe,min_split:N,max_split:Se,basic:se,active:be,accept_msgs:ke,flags:Te,zerostateRootHash:de,zerostateFileHash:Ve,version:it,format:{vmVersion:lt,vmMode:ot}}}const z={serialize(C,ye){throw Error("not implemented")},parse(C){if(C.loadUint(8)!==166)throw Error("Invalid config");const ye=C.loadUint(32),Pe=C.loadUint(8),N=C.loadUint(8),Se=C.loadUint(8),se=C.loadBit(),be=C.loadBit(),ke=C.loadBit(),Te=C.loadUint(13),de=C.loadBuffer(32),Ve=C.loadBuffer(32),it=C.loadUint(32);if(C.loadBit())throw Error("Invalid config");const lt=C.loadUint(32),ot=C.loadUintBig(64);return{enabledSince:ye,actialMinSplit:Pe,min_split:N,max_split:Se,basic:se,active:be,accept_msgs:ke,flags:Te,zerostateRootHash:de,zerostateFileHash:Ve,version:it,format:{vmVersion:lt,vmMode:ot}}}};function V(C){if(!C)throw Error("Invalid config");const ye=C.loadDict(n.Dictionary.Keys.Uint(32),z);if(ye)return ye;throw Error("No workchains exist")}function F(C){return C?t(C):null}function ee(C){return C?r(C):null}function he(C){const ye=C.loadUint(8);if(ye===222){const Pe=C.loadUintBig(64),N=C.loadUintBig(64),Se=C.loadUintBig(64),se=C.loadUintBig(64),be=C.loadUintBig(64),ke=C.loadUintBig(64),Te=C.loadUintBig(64);return{gasPrice:Pe,gasLimit:N,specialGasLimit:Se,gasCredit:se,blockGasLimit:be,freezeDueLimit:ke,deleteDueLimit:Te}}else if(ye===221){const Pe=C.loadUintBig(64),N=C.loadUintBig(64),Se=C.loadUintBig(64),se=C.loadUintBig(64),be=C.loadUintBig(64),ke=C.loadUintBig(64);return{gasPrice:Pe,gasLimit:N,gasCredit:Se,blockGasLimit:se,freezeDueLimit:be,deleteDueLimit:ke}}else throw Error("Invalid config")}function $(C){if(!C)throw Error("Invalid config");if(C.loadUint(8)===209){const Pe=C.loadUintBig(64),N=C.loadUintBig(64),Se=he(C);return{flatLimit:Pe,flatGasPrice:N,other:Se}}else throw Error("Invalid config")}function Z(C){if(!C)throw new Error("Invalid config");if(C.loadUint(8)!==234)throw new Error("Invalid msg prices param");return{lumpPrice:C.loadUintBig(64),bitPrice:C.loadUintBig(64),cellPrice:C.loadUintBig(64),ihrPriceFactor:C.loadUint(32),firstFrac:C.loadUint(16),nextFrac:C.loadUint(16)}}function Q(C){if(!C)throw new Error("Invalid config");const ye=C.loadUint(8);if(ye===193){const Pe=C.loadUint(32),N=C.loadUint(32),Se=C.loadUint(32),se=C.loadUint(32);return{masterCatchainLifetime:Pe,shardCatchainLifetime:N,shardValidatorsLifetime:Se,shardValidatorsCount:se}}if(ye===194){const Pe=C.loadUint(7),N=C.loadBit(),Se=C.loadUint(32),se=C.loadUint(32),be=C.loadUint(32),ke=C.loadUint(32);return{flags:Pe,suffleMasterValidators:N,masterCatchainLifetime:Se,shardCatchainLifetime:se,shardValidatorsLifetime:be,shardValidatorsCount:ke}}throw new Error("Invalid config")}function ie(C){if(!C)throw new Error("Invalid config");const ye=C.loadUint(8);if(ye===214){const Pe=C.loadUint(32),N=C.loadUint(32),Se=C.loadUint(32),se=C.loadUint(32),be=C.loadUint(32),ke=C.loadUint(32),Te=C.loadUint(32),de=C.loadUint(32);return{roundCandidates:Pe,nextCandidateDelay:N,consensusTimeout:Se,fastAttempts:se,attemptDuration:be,catchainMaxDeps:ke,maxBlockBytes:Te,maxColaltedBytes:de}}else if(ye===215){const Pe=C.loadUint(7),N=C.loadBit(),Se=C.loadUint(8),se=C.loadUint(32),be=C.loadUint(32),ke=C.loadUint(32),Te=C.loadUint(32),de=C.loadUint(32),Ve=C.loadUint(32),it=C.loadUint(32);return{flags:Pe,newCatchainIds:N,roundCandidates:Se,nextCandidateDelay:se,consensusTimeout:be,fastAttempts:ke,attemptDuration:Te,catchainMaxDeps:de,maxBlockBytes:Ve,maxColaltedBytes:it}}else if(ye===216){const Pe=C.loadUint(7),N=C.loadBit(),Se=C.loadUint(8),se=C.loadUint(32),be=C.loadUint(32),ke=C.loadUint(32),Te=C.loadUint(32),de=C.loadUint(32),Ve=C.loadUint(32),it=C.loadUint(32),lt=C.loadUint(16);return{flags:Pe,newCatchainIds:N,roundCandidates:Se,nextCandidateDelay:se,consensusTimeout:be,fastAttempts:ke,attemptDuration:Te,catchainMaxDeps:de,maxBlockBytes:Ve,maxColaltedBytes:it,protoVersion:lt}}else if(ye===217){const Pe=C.loadUint(7),N=C.loadBit(),Se=C.loadUint(8),se=C.loadUint(32),be=C.loadUint(32),ke=C.loadUint(32),Te=C.loadUint(32),de=C.loadUint(32),Ve=C.loadUint(32),it=C.loadUint(32),lt=C.loadUint(16),ot=C.loadUint(32);return{flags:Pe,newCatchainIds:N,roundCandidates:Se,nextCandidateDelay:se,consensusTimeout:be,fastAttempts:ke,attemptDuration:Te,catchainMaxDeps:de,maxBlockBytes:Ve,maxColaltedBytes:it,protoVersion:lt,catchainMaxBlocksCoeff:ot}}throw new Error("Invalid config")}function Ee(C){if(C.loadUint(8)!==54)throw new Error("Invalid config");const Pe=C.loadUint(8),N=C.loadUint(8),Se=C.loadUint(8),se=C.loadUint(8),be=C.loadUint(32),ke=C.loadUint(32),Te=C.loadUint(32),de=C.loadUint(32);return{minTotalRounds:Pe,maxTotalRounds:N,minWins:Se,maxLoses:se,minStoreSec:be,maxStoreSec:ke,bitPrice:Te,cellPrice:de}}function Oe(C){if(!C)throw new Error("Invalid config");if(C.loadUint(8)!==145)throw new Error("Invalid config");const Pe=Ee(C.loadRef().beginParse()),N=Ee(C.loadRef().beginParse());return{normalParams:Pe,criticalParams:N}}function Le(C){return n.Cell.fromBase64(C).beginParse().loadDictDirect(n.Dictionary.Keys.Int(32),n.Dictionary.Values.Cell())}function re(C,ye){return Le(C).get(ye)}function Y(C){const ye=Le(C),Pe=new Map;for(const[N,Se]of ye)Pe.set(N,Se.beginParse());return Pe}function Ae(C){return{configAddress:e(C.get(0)),electorAddress:e(C.get(1)),minterAddress:c(C.get(2)),feeCollectorAddress:c(C.get(3)),dnsRootAddress:c(C.get(4)),burningConfig:o(C.get(5)),globalVersion:j(C.get(8)),workchains:V(C.get(12)),voting:Oe(C.get(11)),validators:{...f(C.get(15)),...s(C.get(16)),...y(C.get(17))},storagePrices:k(C.get(18)),gasPrices:{masterchain:$(C.get(20)),workchain:$(C.get(21))},msgPrices:{masterchain:Z(C.get(24)),workchain:Z(C.get(25))},validatorSets:{prevValidators:F(C.get(32)),prevTempValidators:F(C.get(33)),currentValidators:F(C.get(34)),currentTempValidators:F(C.get(35)),nextValidators:F(C.get(36)),nextTempValidators:F(C.get(37))},validatorsPunish:P(C.get(40)),bridges:{ethereum:ee(C.get(71)),binance:ee(C.get(72)),polygon:ee(C.get(73))},catchain:Q(C.get(28)),consensus:ie(C.get(29))}}return vt}var Lr={},Zu;function Rd(){if(Zu)return Lr;Zu=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.computeStorageFees=c,Lr.computeFwdFees=d,Lr.computeGasPrices=l,Lr.computeExternalMessageFees=t,Lr.computeMessageForwardFees=r;const n=Ct();function c(i){const{lastPaid:f,now:s,storagePrices:y,storageStat:B,special:k,masterchain:j}=i;if(s<=f||y.length===0||s<y[0].utime_since||k)return BigInt(0);let P=Math.max(f,y[0].utime_since),R=BigInt(0);for(let z=0;z<y.length&&P<s;z++){let V=z<y.length-1?Math.min(s,y[z+1].utime_since):s,F=BigInt(0);if(P<V){let ee=V-P;F+=BigInt(B.cells)*(j?y[z].mc_cell_price_ps:y[z].cell_price_ps),F+=BigInt(B.bits)*(j?y[z].mc_bit_price_ps:y[z].bit_price_ps),F=F*BigInt(ee)}P=V,R+=F}return o(R)}function d(i,f,s){return i.lumpPrice+o(i.bitPrice*s+i.cellPrice*f)}function l(i,f){return i<=f.flatLimit?f.flatPrice:f.flatPrice+(f.price*(i-f.flatLimit)>>16n)}function t(i,f){let s=e(f);return s.bits-=f.bits.length,s.cells-=1,d(i,BigInt(s.cells),BigInt(s.bits))}function r(i,f){let s=(0,n.loadMessageRelaxed)(f.beginParse()),y={bits:0,cells:0};if(s.init){const R=new n.Cell().asBuilder();(0,n.storeStateInit)(s.init)(R);const z=R.endCell();let V=e(z);V.bits-=z.bits.length,V.cells-=1,y.bits+=V.bits,y.cells+=V.cells}let B=e(s.body);B.bits-=s.body.bits.length,B.cells-=1,y.bits+=B.bits,y.cells+=B.cells;let k=d(i,BigInt(y.cells),BigInt(y.bits)),j=k*BigInt(i.firstFrac)>>16n,P=k-j;return{fees:j,remaining:P}}function e(i){let f=i.bits.length,s=1;for(let y of i.refs){let B=e(y);s+=B.cells,f+=B.bits}return{bits:f,cells:s}}function o(i){let f=i%65536n,s=i>>16n;return f!==0n&&(s+=1n),s}return Lr}var Wu;function Ud(){return Wu||(Wu=1,function(n){var c=Wr&&Wr.__createBinding||(Object.create?function(Q,ie,Ee,Oe){Oe===void 0&&(Oe=Ee);var Le=Object.getOwnPropertyDescriptor(ie,Ee);(!Le||("get"in Le?!ie.__esModule:Le.writable||Le.configurable))&&(Le={enumerable:!0,get:function(){return ie[Ee]}}),Object.defineProperty(Q,Oe,Le)}:function(Q,ie,Ee,Oe){Oe===void 0&&(Oe=Ee),Q[Oe]=ie[Ee]}),d=Wr&&Wr.__exportStar||function(Q,ie){for(var Ee in Q)Ee!=="default"&&!Object.prototype.hasOwnProperty.call(ie,Ee)&&c(ie,Q,Ee)};Object.defineProperty(n,"__esModule",{value:!0}),n.computeStorageFees=n.computeMessageForwardFees=n.computeGasPrices=n.computeFwdFees=n.computeExternalMessageFees=n.loadConfigParamsAsSlice=n.loadConfigParamById=n.parseFullConfig=n.parseVotingSetup=n.parseValidatorSet=n.parseProposalSetup=n.parseBridge=n.configParseWorkchainDescriptor=n.configParseValidatorSet=n.configParseMsgPrices=n.configParseMasterAddressRequired=n.configParseMasterAddress=n.configParseGasLimitsPrices=n.configParseBridge=n.configParse40=n.configParse29=n.configParse28=n.configParse18=n.configParse17=n.configParse16=n.configParse15=n.configParse13=n.configParse12=n.configParse8=n.configParse5=n.ElectorContract=n.MultisigWallet=n.MultisigOrderBuilder=n.MultisigOrder=n.JettonWallet=n.JettonMaster=n.WalletContractV5R1=n.WalletContractV5Beta=n.WalletContractV4=n.WalletContractV3R2=n.WalletContractV3R1=n.WalletContractV2R2=n.WalletContractV2R1=n.WalletContractV1R3=n.WalletContractV1R2=n.WalletContractV1R1=n.TonClient4=n.TonClient=n.HttpApi=void 0,d(Ct(),n);var l=ou();Object.defineProperty(n,"HttpApi",{enumerable:!0,get:function(){return l.HttpApi}});var t=hd();Object.defineProperty(n,"TonClient",{enumerable:!0,get:function(){return t.TonClient}});var r=gd();Object.defineProperty(n,"TonClient4",{enumerable:!0,get:function(){return r.TonClient4}});var e=yd();Object.defineProperty(n,"WalletContractV1R1",{enumerable:!0,get:function(){return e.WalletContractV1R1}});var o=bd();Object.defineProperty(n,"WalletContractV1R2",{enumerable:!0,get:function(){return o.WalletContractV1R2}});var i=vd();Object.defineProperty(n,"WalletContractV1R3",{enumerable:!0,get:function(){return i.WalletContractV1R3}});var f=wd();Object.defineProperty(n,"WalletContractV2R1",{enumerable:!0,get:function(){return f.WalletContractV2R1}});var s=_d();Object.defineProperty(n,"WalletContractV2R2",{enumerable:!0,get:function(){return s.WalletContractV2R2}});var y=xd();Object.defineProperty(n,"WalletContractV3R1",{enumerable:!0,get:function(){return y.WalletContractV3R1}});var B=kd();Object.defineProperty(n,"WalletContractV3R2",{enumerable:!0,get:function(){return B.WalletContractV3R2}});var k=Cd();Object.defineProperty(n,"WalletContractV4",{enumerable:!0,get:function(){return k.WalletContractV4}});var j=Sd();Object.defineProperty(n,"WalletContractV5Beta",{enumerable:!0,get:function(){return j.WalletContractV5Beta}});var P=Bd();Object.defineProperty(n,"WalletContractV5R1",{enumerable:!0,get:function(){return P.WalletContractV5R1}});var R=Ad();Object.defineProperty(n,"JettonMaster",{enumerable:!0,get:function(){return R.JettonMaster}});var z=Pd();Object.defineProperty(n,"JettonWallet",{enumerable:!0,get:function(){return z.JettonWallet}});var V=Du();Object.defineProperty(n,"MultisigOrder",{enumerable:!0,get:function(){return V.MultisigOrder}});var F=Ed();Object.defineProperty(n,"MultisigOrderBuilder",{enumerable:!0,get:function(){return F.MultisigOrderBuilder}});var ee=Id();Object.defineProperty(n,"MultisigWallet",{enumerable:!0,get:function(){return ee.MultisigWallet}});var he=Td();Object.defineProperty(n,"ElectorContract",{enumerable:!0,get:function(){return he.ElectorContract}});var $=Md();Object.defineProperty(n,"configParse5",{enumerable:!0,get:function(){return $.configParse5}}),Object.defineProperty(n,"configParse8",{enumerable:!0,get:function(){return $.configParse8}}),Object.defineProperty(n,"configParse12",{enumerable:!0,get:function(){return $.configParse12}}),Object.defineProperty(n,"configParse13",{enumerable:!0,get:function(){return $.configParse13}}),Object.defineProperty(n,"configParse15",{enumerable:!0,get:function(){return $.configParse15}}),Object.defineProperty(n,"configParse16",{enumerable:!0,get:function(){return $.configParse16}}),Object.defineProperty(n,"configParse17",{enumerable:!0,get:function(){return $.configParse17}}),Object.defineProperty(n,"configParse18",{enumerable:!0,get:function(){return $.configParse18}}),Object.defineProperty(n,"configParse28",{enumerable:!0,get:function(){return $.configParse28}}),Object.defineProperty(n,"configParse29",{enumerable:!0,get:function(){return $.configParse29}}),Object.defineProperty(n,"configParse40",{enumerable:!0,get:function(){return $.configParse40}}),Object.defineProperty(n,"configParseBridge",{enumerable:!0,get:function(){return $.configParseBridge}}),Object.defineProperty(n,"configParseGasLimitsPrices",{enumerable:!0,get:function(){return $.configParseGasLimitsPrices}}),Object.defineProperty(n,"configParseMasterAddress",{enumerable:!0,get:function(){return $.configParseMasterAddress}}),Object.defineProperty(n,"configParseMasterAddressRequired",{enumerable:!0,get:function(){return $.configParseMasterAddressRequired}}),Object.defineProperty(n,"configParseMsgPrices",{enumerable:!0,get:function(){return $.configParseMsgPrices}}),Object.defineProperty(n,"configParseValidatorSet",{enumerable:!0,get:function(){return $.configParseValidatorSet}}),Object.defineProperty(n,"configParseWorkchainDescriptor",{enumerable:!0,get:function(){return $.configParseWorkchainDescriptor}}),Object.defineProperty(n,"parseBridge",{enumerable:!0,get:function(){return $.parseBridge}}),Object.defineProperty(n,"parseProposalSetup",{enumerable:!0,get:function(){return $.parseProposalSetup}}),Object.defineProperty(n,"parseValidatorSet",{enumerable:!0,get:function(){return $.parseValidatorSet}}),Object.defineProperty(n,"parseVotingSetup",{enumerable:!0,get:function(){return $.parseVotingSetup}}),Object.defineProperty(n,"parseFullConfig",{enumerable:!0,get:function(){return $.parseFullConfig}}),Object.defineProperty(n,"loadConfigParamById",{enumerable:!0,get:function(){return $.loadConfigParamById}}),Object.defineProperty(n,"loadConfigParamsAsSlice",{enumerable:!0,get:function(){return $.loadConfigParamsAsSlice}});var Z=Rd();Object.defineProperty(n,"computeExternalMessageFees",{enumerable:!0,get:function(){return Z.computeExternalMessageFees}}),Object.defineProperty(n,"computeFwdFees",{enumerable:!0,get:function(){return Z.computeFwdFees}}),Object.defineProperty(n,"computeGasPrices",{enumerable:!0,get:function(){return Z.computeGasPrices}}),Object.defineProperty(n,"computeMessageForwardFees",{enumerable:!0,get:function(){return Z.computeMessageForwardFees}}),Object.defineProperty(n,"computeStorageFees",{enumerable:!0,get:function(){return Z.computeStorageFees}})}(Wr)),Wr}var or=Ud();const Od=n=>n.loadBuffer(32),zd=n=>or.beginCell().storeBuffer(n,32).endCell(),Fi={serialize:(n,c)=>{c.storeBuilder(zd(n).asBuilder())},parse:n=>Od(n)};class jd{constructor(c,d){this.tonClient=c,this.config=d}async getSmartAccountAddress(c){return(await this.tonClient.runMethod(or.Address.parse(this.config.smartAccountMasterAddress),"get_nft_address_by_index",[{type:"int",value:BigInt(`0x${or.Address.parse(c).hash.toString("hex")}`)}])).stack.readAddress()}async getSmartAccountData(c){const d=or.Address.parse(c);try{const t=(await this.tonClient.runMethod(d,"get_storage_data")).stack,r=t.readBigNumber(),e=t.readAddress(),o=t.readAddress(),i=or.Dictionary.loadDirect(or.Dictionary.Keys.Uint(8),Fi,t.readCell()).values(),f=t.readAddress(),s=or.Dictionary.loadDirect(or.Dictionary.Keys.Uint(8),Fi,t.readCell()).values(),y=t.readNumber();return{index:r,collectionAddress:e,masterWalletAddress:o,publicKeys:i,adminAddress:f,backendPublicKeys:s,seqno:y}}catch(l){if(l.message.endsWith("-13"))return null;throw l}}createDeploySmartAccountTx(c,d){const l=or.Dictionary.empty(or.Dictionary.Keys.Uint(8),Fi);l.set(0,c);const t=or.beginCell().storeUint(2343844519,32).storeUint(0,64).storeDict(l).endCell();return{address:this.config.smartAccountMasterAddress,payload:t.toBoc().toString("base64"),amount:d}}createAddPublicKeyTx(c,d){const l=or.beginCell().storeUint(2577464751,32).storeUint(0,64).storeBuffer(d).endCell();return{address:c,payload:l.toBoc().toString("base64"),amount:or.toNano("0.05")}}}nr.IframeAdapter=ar,nr.StormWallet=jd,Object.defineProperty(nr,Symbol.toStringTag,{value:"Module"})});
|
|
2
14
|
//# sourceMappingURL=wallet-core.umd.cjs.map
|