1"use strict";(self.webpackChunkdropspace_frontend_v3=self.webpackChunkdropspace_frontend_v3||[]).push([["3399"],{57132:function(t,e,a){a.d(e,{F:()=>tC});var n=a(93992),r=a(59038),o=a(35208);async function s(t,{chain:e}){let{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:i}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:(0,o.cK)(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:i?Object.values(i).map(({url:t})=>t):void 0}]},{dedupe:!0,retryCount:0})}var i=a(74186),c=a(62545),u=a(64193);class d extends u.C{constructor({docsPath:t}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class l extends u.C{constructor({docsPath:t,metaMessages:e,type:a}){super(`Account type "${a}" is not supported.`,{docsPath:t,metaMessages:e,name:"AccountTypeNotSupportedError"})}}var h=a(6078),w=a(56759);function p({chain:t,currentChainId:e}){if(!t)throw new w.jF;if(e!==t.id)throw new w.EH({chain:t,currentChainId:e})}var m=a(64760),f=a(5814),y=a(10404);function g(t,{docsPath:e,...a}){let n,r=(n=(0,y.l)(t,a))instanceof m.RM?t:n;return new f.$s(r,{docsPath:e,...a})}var C=a(44981),T=a(8495),v=a(36820),b=a(30535),q=a(22752),A=a(88893),R=a(42106);let M=new b.A(128);async function S(t,e){let{account:a=t.account,chain:n=t.chain,accessList:o,authorizationList:s,blobs:i,data:w,gas:m,gasPrice:f,maxFeePerBlobGas:y,maxFeePerGas:b,maxPriorityFeePerGas:S,nonce:_,type:P,value:E,...I}=e;if(void 0===a)throw new d({docsPath:"/docs/actions/wallet/sendTransaction"});let N=a?(0,c.J)(a):null;try{(0,q.c)(e);let a=await (async()=>e.to?e.to:null!==e.to&&s&&s.length>0?await (0,h.g)({authorization:s[0]}).catch(()=>{throw new u.C("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(N?.type==="json-rpc"||null===N){let e;null!==n&&(e=await (0,v.T)(t,r.T,"getChainId")({}),p({currentChainId:e,chain:n}));let c=t.chain?.formatters?.transactionRequest?.format,u=(c||T.Bv)({...(0,C.o)(I,{format:c}),accessList:o,account:N,authorizationList:s,blobs:i,chainId:e,data:w,gas:m,gasPrice:f,maxFeePerBlobGas:y,maxFeePerGas:b,maxPriorityFeePerGas:S,nonce:_,to:a,type:P,value:E},"sendTransaction"),d=M.get(t.uid);try{return await t.request({method:d?"wallet_sendTransaction":"eth_sendTransaction",params:[u]},{retryCount:0})}catch(e){if(!1===d)throw e;if("InvalidInputRpcError"===e.name||"InvalidParamsRpcError"===e.name||"MethodNotFoundRpcError"===e.name||"MethodNotSupportedRpcError"===e.name)return await t.request({method:"wallet_sendTransaction",params:[u]},{retryCount:0}).then(e=>(M.set(t.uid,!0),e)).catch(a=>{if("MethodNotFoundRpcError"===a.name||"MethodNotSupportedRpcError"===a.name)throw M.set(t.uid,!1),e;throw a});throw e}}if(N?.type==="local"){let e=await (0,v.T)(t,A.ft,"prepareTransactionRequest")({account:N,accessList:o,authorizationList:s,blobs:i,chain:n,data:w,gas:m,gasPrice:f,maxFeePerBlobGas:y,maxFeePerGas:b,maxPriorityFeePerGas:S,nonce:_,nonceManager:N.nonceManager,parameters:[...A.MM,"sidecars"],type:P,value:E,...I,to:a}),r=n?.serializers?.transaction,c=await N.signTransaction(e,{serializer:r});return await (0,v.T)(t,R.L,"sendRawTransaction")({serializedTransaction:c})}if(N?.type==="smart")throw new l({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new l({docsPath:"/docs/actions/wallet/sendTransaction",type:N?.type})}catch(t){if(t instanceof l)throw t;throw g(t,{...e,account:N,chain:e.chain||void 0})}}var _=a(9169);async function P(t){return t.account?.type==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(t=>(0,_.o)(t))}var E=a(31937),I=a(57567),N=a(10315),x=a(10946),z=a(369),j=a(16425),L=a(97779);let k="0x5792579257925792579257925792579257925792579257925792579257925792",F=(0,o.cK)(0,{size:32});async function U(t,e){let{account:a=t.account,capabilities:n,chain:r=t.chain,experimental_fallback:s,experimental_fallbackDelay:i=32,forceAtomic:d=!1,id:l,version:h="2.0.0"}=e,w=a?(0,c.J)(a):null,p=e.calls.map(t=>{let e=t.abi?(0,j.p)({abi:t.abi,functionName:t.functionName,args:t.args}):t.data;return{data:t.dataSuffix&&e?(0,L.xW)([e,t.dataSuffix]):e,to:t.to,value:t.value?(0,o.cK)(t.value):void 0}});try{let e=await t.request({method:"wallet_sendCalls",params:[{atomicRequired:d,calls:p,capabilities:n,chainId:(0,o.cK)(r.i
1d),from:w?.address,id:l,version:h}]},{retryCount:0});if("string"==typeof e)return{id:e};return e}catch(a){if(s&&("MethodNotFoundRpcError"===a.name||"MethodNotSupportedRpcError"===a.name||"UnknownRpcError"===a.name||a.details.toLowerCase().includes("does not exist / is not available")||a.details.toLowerCase().includes("missing or invalid. request()")||a.details.toLowerCase().includes("did not match any variant of untagged enum")||a.details.toLowerCase().includes("account upgraded to unsupported contract")||a.details.toLowerCase().includes("eip-7702 not supported")||a.details.toLowerCase().includes("unsupported wc_ method")||a.details.toLowerCase().includes("feature toggled misconfigured")||a.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(n&&Object.values(n).some(t=>!t.optional)){let t="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new z.L5(new u.C(t,{details:t}))}if(d&&p.length>1){let t="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new z.jz(new u.C(t,{details:t}))}let e=[];for(let a of p){let n=S(t,{account:w,chain:r,data:a.data,to:a.to,value:a.value?(0,N.uU)(a.value):void 0});e.push(n),i>0&&await new Promise(t=>setTimeout(t,i))}let a=await Promise.allSettled(e);if(a.every(t=>"rejected"===t.status))throw a[0].reason;let s=a.map(t=>"fulfilled"===t.status?t.value:F);return{id:(0,L.xW)([...s,(0,o.cK)(r.id,{size:32}),k])}}throw g(a,{...e,account:w,chain:e.chain})}}async function J(t,e){let a;async function n(e){if(e.endsWith(k.slice(2))){let a=(0,I.B)((0,E.iN)(e,-64,-32)),n=(0,E.iN)(e,0,-64).slice(2).match(/.{1,64}/g),r=await Promise.all(n.map(e=>F.slice(2)!==e?t.request({method:"eth_getTransactionReceipt",params:[`0x${e}`]},{dedupe:!0}):void 0)),o=r.some(t=>null===t)?100:r.every(t=>t?.status==="0x1")?200:r.every(t=>t?.status==="0x0")?500:600;return{atomic:!1,chainId:(0,N.ME)(a),receipts:r.filter(Boolean),status:o,version:"2.0.0"}}return t.request({method:"wallet_getCallsStatus",params:[e]})}let{atomic:r=!1,chainId:o,receipts:s,version:i="2.0.0",...c}=await n(e.id),[u,d]=(a=c.status)>=100&&a<200?["pending",a]:a>=200&&a<300?["success",a]:a>=300&&a<700?["failure",a]:"CONFIRMED"===a?["success",200]:"PENDING"===a?["pending",100]:[void 0,a];return{...c,atomic:r,chainId:o?(0,N.ME)(o):void 0,receipts:s?.map(t=>({...t,blockNumber:(0,N.uU)(t.blockNumber),gasUsed:(0,N.uU)(t.gasUsed),status:x.Lj[t.status]}))??[],statusCode:d,status:u,version:i}}async function O(t,e={}){let{account:a=t.account,chainId:n}=e,r=a?(0,c.J)(a):void 0,s=n?[r?.address,[(0,o.cK)(n)]]:[r?.address],i=await t.request({method:"wallet_getCapabilities",params:s}),u={};for(let[t,e]of Object.entries(i))for(let[a,n]of(u[Number(t)]={},Object.entries(e)))"addSubAccount"===a&&(a="unstable_addSubAccount"),u[Number(t)][a]=n;return"number"==typeof n?u[n]:u}async function $(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}var B=a(3589),D=a(48243);async function K(t,e){let{account:a=t.account,chainId:n,nonce:o}=e;if(!a)throw new d({docsPath:"/docs/eip7702/prepareAuthorization"});let s=(0,c.J)(a),i=(()=>{if(e.executor)return"self"===e.executor?e.executor:(0,c.J)(e.executor)})(),u={address:e.contractAddress??e.address,chainId:n,nonce:o};return void 0===u.chainId&&(u.chainId=t.chain?.id??await (0,v.T)(t,r.T,"getChainId")({})),void 0===u.nonce&&(u.nonce=await (0,v.T)(t,D.y,"getTransactionCount")({address:s.address,blockTag:"pending"}),("self"===i||i?.address&&(0,B.h)(i.address,s.address))&&(u.nonce+=1)),u}async function W(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(t=>(0,_.b)(t))}async function H(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}class G extends u.C{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}var Y=a(10262),Q=a(12101),V=a(21403),X=a(22926),Z=a(76183);async function tt(t,e){let a,{id:n,pollingInterval:r=t.pollingInterval,status:o=({statusCode:t})=>200===t||t>=300,retryCount:s=4,retryDelay:i=({count:t})=>200*~~(1<<t),timeout:c=6e4,throwOnFailure:u=!1}=e,d=(0,Z.A)(["waitForCallsStatus",t.uid,n]),{promise:l,resolve:h,reject:w}=(0,V.Y)(),p=(0,Y.lB)(d,{resolve:h,reject:w},e=>{let c=(0,Q.w)(async()=>{let r=t=>{clearTimeout(a),c(),t(),p()};try{let a=await (0,X.b)(async()=>{let e=await (0,v.T)(t,J,"getCallsStatus")({id:n});if(u&&"failure"===e.status)throw new G(e);return e},{retryCount:s,delay:i});
1if(!o(a))return;r(()=>e.resolve(a))}catch(t){r(()=>e.reject(t))}},{interval:r,emitOnBegin:!0});return c});return a=c?setTimeout(()=>{p(),clearTimeout(a),w(new te({id:n}))},c):void 0,await l}class te extends u.C{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}async function ta(t,e){let{chain:a=t.chain}=e,n=e.timeout??Math.max((a?.blockTime??0)*3,5e3),r=await U(t,e);return await tt(t,{...e,id:r.id,timeout:n})}var tn=a(16337),tr=a(68960);let to=new b.A(128);async function ts(t,e){let{account:a=t.account,chain:n=t.chain,accessList:o,authorizationList:s,blobs:i,data:w,gas:m,gasPrice:y,maxFeePerBlobGas:b,maxFeePerGas:R,maxPriorityFeePerGas:M,nonce:S,pollingInterval:_,throwOnReceiptRevert:P,type:E,value:I,...N}=e,x=e.timeout??Math.max((n?.blockTime??0)*3,5e3);if(void 0===a)throw new d({docsPath:"/docs/actions/wallet/sendTransactionSync"});let z=a?(0,c.J)(a):null;try{(0,q.c)(e);let a=await (async()=>e.to?e.to:null!==e.to&&s&&s.length>0?await (0,h.g)({authorization:s[0]}).catch(()=>{throw new u.C("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(z?.type==="json-rpc"||null===z){let e;null!==n&&(e=await (0,v.T)(t,r.T,"getChainId")({}),p({currentChainId:e,chain:n}));let c=t.chain?.formatters?.transactionRequest?.format,u=(c||T.Bv)({...(0,C.o)(N,{format:c}),accessList:o,account:z,authorizationList:s,blobs:i,chainId:e,data:w,gas:m,gasPrice:y,maxFeePerBlobGas:b,maxFeePerGas:R,maxPriorityFeePerGas:M,nonce:S,to:a,type:E,value:I},"sendTransaction"),d=to.get(t.uid),l=d?"wallet_sendTransaction":"eth_sendTransaction",h=await (async()=>{try{return await t.request({method:l,params:[u]},{retryCount:0})}catch(e){if(!1===d)throw e;if("InvalidInputRpcError"===e.name||"InvalidParamsRpcError"===e.name||"MethodNotFoundRpcError"===e.name||"MethodNotSupportedRpcError"===e.name)return await t.request({method:"wallet_sendTransaction",params:[u]},{retryCount:0}).then(e=>(to.set(t.uid,!0),e)).catch(a=>{if("MethodNotFoundRpcError"===a.name||"MethodNotSupportedRpcError"===a.name)throw to.set(t.uid,!1),e;throw a});throw e}})(),g=await (0,v.T)(t,tr.n,"waitForTransactionReceipt")({checkReplacement:!1,hash:h,pollingInterval:_,timeout:x});if(P&&"reverted"===g.status)throw new f.Sq({receipt:g});return g}if(z?.type==="local"){let e=await (0,v.T)(t,A.ft,"prepareTransactionRequest")({account:z,accessList:o,authorizationList:s,blobs:i,chain:n,data:w,gas:m,gasPrice:y,maxFeePerBlobGas:b,maxFeePerGas:R,maxPriorityFeePerGas:M,nonce:S,nonceManager:z.nonceManager,parameters:[...A.MM,"sidecars"],type:E,value:I,...N,to:a}),r=n?.serializers?.transaction,c=await z.signTransaction(e,{serializer:r});return await (0,v.T)(t,tn.s,"sendRawTransactionSync")({serializedTransaction:c,throwOnReceiptRevert:P})}if(z?.type==="smart")throw new l({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new l({docsPath:"/docs/actions/wallet/sendTransactionSync",type:z?.type})}catch(t){if(t instanceof l)throw t;throw g(t,{...e,account:z,chain:e.chain||void 0})}}async function ti(t,e){let{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function tc(t,e){let{account:a=t.account}=e;if(!a)throw new d({docsPath:"/docs/eip7702/signAuthorization"});let n=(0,c.J)(a);if(!n.signAuthorization)throw new l({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});let r=await K(t,e);return n.signAuthorization(r)}async function tu(t,{account:e=t.account,message:a}){if(!e)throw new d({docsPath:"/docs/actions/wallet/signMessage"});let n=(0,c.J)(e);if(n.signMessage)return n.signMessage({message:a});let r="string"==typeof a?(0,o.i3)(a):a.raw instanceof Uint8Array?(0,o.nj)(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function td(t,e){let{account:a=t.account,chain:n=t.chain,...s}=e;if(!a)throw new d({docsPath:"/docs/actions/wallet/signTransaction"});let i=(0,c.J)(a);(0,q.c)({account:i,...e});let u=await (0,v.T)(t,r.T,"getChainId")({});null!==n&&p({currentChainId:u,chain:n});let l=n?.formatters||t.chain?.formatters,h=l?.transactionRequest?.format||T.Bv;return i.signTransaction?i.signTransaction({...s,chainId:u},{serializer:t.chain?.serializers?.transaction}):await t.request({method:"eth_signTransaction",params:[{...h({...s,account:i},"signTransaction"),chainId:(0,o.cK)(u),from:i.address}]},{retryCount:0})}var tl=a(13853);async function th(t,e){let{account:a=t.account,domain:n,message:r,primaryType:o}=e;if(!a)throw new d({docsPath:"/docs/actions/wallet/signTypedData"});let s=(0,c.J)(a),i={EIP712Domain:(0,tl.H4)({domain:n}),...e.types};if((0,tl.$$)({domain:n,message:r,primaryType:o,types:i}),s.signTypedData)return s.signTypedData({domain:n,message:r,primaryType:o,types:i});let u=(0,tl.v8)({domain:n,message:r,primaryType:o,types:i});return t.request({method:"eth_signTypedData_v4",params:[s.address,u]},{retryCount:0})}async function tw(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,o.cK)(e)}]},{retryCount:0})}async function tp(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}var tm=a(65990);async function tf(t,e){return tf.internal(t,S,"sendTransaction",e)}async function ty(t,e){return tf.internal(t,ts,"sendTransactionSync",e)}function tg(t){return{addChain:e=>s(t,e),deployContract:e=>(function(t,e){let{abi:a,args:n,bytecode:r,...o}=e,s=(0,i.m)({abi:a,args:n,bytecode:r});return S(t,{...o,...o.authorizationList?{to:null}:{},data:s})})(t,e),getAddresses:()=>P(t),getCallsStatus:e=>J(t,e),getCapabilities:e=>O(t,e),getChainId:()=>(0,r.T)(t),getPermissions:()=>$(t),prepareAuthorization:e=>K(t,e),prepareTransactionRequest:e=>(0,A.ft)(t,e),requestAddresses:()=>W(t),requestPermissions:e=>H(t,e),sendCalls:e=>U(t,e),sendCallsSync:e=>ta(t,e),sendRawTransaction:e=>(0,R.L)(t,e),sendRawTransactionSync:e=>(0,tn.s)(t,e),sendTransaction:e=>S(t,e),sendTransactionSync:e=>ts(t,e),showCallsStatus:e=>ti(t,e),signAuthorization:e=>tc(t,e),signMessage:e=>tu(t,e),signTransaction:e=>td(t,e),signTypedData:e=>th(t,e),switchChain:e=>tw(t,e),waitForCallsStatus:e=>tt(t,e),watchAsset:e=>tp(t,e),writeContract:e=>tf(t,e),writeContractSync:e=>ty(t,e)}}function tC(t){let{key:e="wallet",name:a="Wallet Client",transport:r}=t;return(0,n.U)({...t,key:e,name:a,transport:r,type:"walletClient"}).extend(tg)}(tf||(tf={})).internal=async function(t,e,a,n){let{abi:r,account:o=t.account,address:s,args:i,dataSuffix:u,functionName:l,...h}=n;if(void 0===o)throw new d({docsPath:"/docs/contract/writeContract"});let w=o?(0,c.J)(o):null,p=(0,j.p)({abi:r,args:i,functionName:l});try{return await (0,v.T)(t,e,a)({data:`${p}${u?u.replace("0x",""):""}`,to:s,account:w,...h})}catch(t){throw(0,tm.j)(t,{abi:r,address:s,args:i,docsPath:"/docs/contract/writeContract",functionName:l,sender:w?.address})}}},75827:function(t,e,a){a.d(e,{I:()=>r});var n=a(46599);function r(t,e={}){let{key:a="custom",methods:o,name:s="Custom Provider",retryDelay:i}=e;return({retryCount:r})=>(0,n.o)({key:a,methods:o,name:s,request:t.request.bind(t),retryCount:e.retryCount??r,retryDelay:i,type:"custom"})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.