PageSourceSearch

https://popx.ai/assets/index-Bwv3QaE1.js

js popx.ai collected 2026-10-05 13:49:34 UTC 20,043 bytes, 1 lines download raw bytes

1import{fi as f,nZ as ce,mJ as ue,f6 as de}from"./index-DcjYXpHu.js";import{d as le}from"./index-J5FMY9IP.js";import{_ as he}from"./index-CqGw7iSr.js";function fe(t,e){for(var a=0;a<e.length;a++){const s=e[a];if(typeof s!="string"&&!Array.isArray(s)){for(const r in s)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(s,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>s[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var K={},k={},se={},L={},ae={},M={},I={};Object.defineProperty(I,"__esModule",{value:!0});I.getSDKVersion=void 0;const ge=()=>"9.1.0";I.getSDKVersion=ge;var H={};Object.defineProperty(H,"__esModule",{value:!0});H.generateRequestId=void 0;const _e=t=>t.toString(16).padStart(2,"0"),me=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,_e).join("")},pe=()=>typeof window<"u"?me(10):new Date().getTime().toString(36);H.generateRequestId=pe;Object.defineProperty(M,"__esModule",{value:!0});M.MessageFormatter=void 0;const ye=I,be=H;class D{}M.MessageFormatter=D;D.makeRequest=(t,e)=>({id:(0,be.generateRequestId)(),method:t,params:e,env:{sdkVersion:(0,ye.getSDKVersion)()}});D.makeResponse=(t,e,a)=>({id:t,success:!0,version:a,data:e});D.makeErrorResponse=(t,e,a)=>({id:t,success:!1,error:e,version:a});var y={};Object.defineProperty(y,"__esModule",{value:!0});y.RestrictedMethods=y.Methods=void 0;var Y;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(Y||(y.Methods=Y={}));var z;(function(t){t.requestAddressBook="requestAddressBook"})(z||(y.RestrictedMethods=z={}));(function(t){var e=f&&f.__createBinding||(Object.create?function(n,o,c,i){i===void 0&&(i=c);var u=Object.getOwnPropertyDescriptor(o,c);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return o[c]}}),Object.defineProperty(n,i,u)}:function(n,o,c,i){i===void 0&&(i=c),n[i]=o[c]}),a=f&&f.__exportStar||function(n,o){for(var c in n)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&e(o,n,c)};Object.defineProperty(t,"__esModule",{value:!0});const s=M;class r{constructor(o=null,c=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:i,data:u,source:g})=>{const b=!u,d=!this.isServer&&g===window.parent,l=typeof u.version<"u"&&parseInt(u.version.split(".")[0]),h=typeof l=="number"&&l>=1;let _=!0;return Array.isArray(this.allowedOrigins)&&(_=this.allowedOrigins.find(S=>S.test(i))!==void 0),!b&&d&&h&&_},this.logIncomingMessage=i=>{console.info(`Safe Apps SDK v1: A message was received from origin ${i.origin}. `,i.data)},this.onParentMessage=i=>{this.isValidMessage(i)&&(this.debugMode&&this.logIncomingMessage(i),this.handleIncomingMessage(i.data))},this.handleIncomingMessage=i=>{const{id:u}=i,g=this.callbacks.get(u);g&&(g(i),this.callbacks.delete(u))},this.send=(i,u)=>{const g=s.MessageFormatter.makeRequest(i,u);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(g,"*"),new Promise((b,d)=>{this.callbacks.set(g.id,l=>{if(!l.success){d(new Error(l.error));return}b(l)})})},this.allowedOrigins=o,this.debugMode=c,this.isServer||window.addEventListener("message",this.onParentMessage)}}t.default=r,a(y,t)})(ae);var q={},N={},V={};Object.defineProperty(V,"__esModule",{value:!0});V.isObjectEIP712TypedData=void 0;const Se=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;V.isObjectEIP712TypedData=Se;var ne={};Object.defineProperty(ne,"__esModule",{value:!0});var re={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.TransferDirection=t.TransactionStatus=t.TokenType=t.Operation=void 0;var e=le;Object.defineProperty(t,"Operation",{enumerable:!0,get:function(){return e.Operation}}),Object.defineProperty(t,"TokenType",{enumerable:!0,get:function(){return e.TokenType}}),Object.defineProperty(t,"TransactionStatus",{enumerable:!0,get:function(){return e.TransactionStatus}}),Object.defineProperty(t,"TransferDirection",{enumerable:!0,get:function(){return e.TransferDirection}})})(re);var ie={};
1Object.defineProperty(ie,"__esModule",{value:!0});(function(t){var e=f&&f.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n);var c=Object.getOwnPropertyDescriptor(r,n);(!c||("get"in c?!r.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(s,o,c)}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),a=f&&f.__exportStar||function(s,r){for(var n in s)n!=="default"&&!Object.prototype.hasOwnProperty.call(r,n)&&e(r,s,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(V,t),a(ne,t),a(re,t),a(ie,t)})(N);Object.defineProperty(q,"__esModule",{value:!0});q.TXs=void 0;const B=y,we=N;class ve{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(B.Methods.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const a={message:e};return(await this.communicator.send(B.Methods.signMessage,a)).data}async signTypedMessage(e){if(!(0,we.isObjectEIP712TypedData)(e))throw new Error("Invalid typed data");return(await this.communicator.send(B.Methods.signTypedMessage,{typedData:e})).data}async send({txs:e,params:a}){if(!e||!e.length)throw new Error("No transactions were passed");const s={txs:e,params:a};return(await this.communicator.send(B.Methods.sendTransactions,s)).data}}q.TXs=ve;var U={},O={};
1Object.defineProperty(O,"__esModule",{value:!0});O.RPC_CALLS=void 0;O.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"};Object.defineProperty(U,"__esModule",{value:!0});U.Eth=void 0;const m=O,Pe=y,w={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class Te{constructor(e){this.communicator=e,this.call=this.buildRequest({call:m.RPC_CALLS.eth_call,formatters:[null,w.defaultBlockParam]}),this.getBalance=this.buildRequest({call:m.RPC_CALLS.eth_getBalance,formatters:[null,w.defaultBlockParam]}),this.getCode=this.buildRequest({call:m.RPC_CALLS.eth_getCode,formatters:[null,w.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:m.RPC_CALLS.eth_getStorageAt,formatters:[null,w.blockNumberToHex,w.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:m.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:m.RPC_CALLS.eth_getBlockByHash,formatters:[null,w.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:m.RPC_CALLS.eth_getBlockByNumber,formatters:[w.blockNumberToHex,w.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:m.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:m.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:m.RPC_CALLS.eth_getTransactionCount,formatters:[null,w.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:m.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=a=>this.buildRequest({call:m.RPC_CALLS.eth_estimateGas})([a]),this.setSafeSettings=this.buildRequest({call:m.RPC_CALLS.safe_setSettings})}buildRequest(e){const{call:a,formatters:s}=e;return async r=>{s&&Array.isArray(r)&&s.forEach((c,i)=>{c&&(r[i]=c(r[i]))});const n={call:a,params:r||[]};return(await this.communicator.send(Pe.Methods.rpcCall,n)).data}}}U.Eth=Te;var G={};const Ce=ce(he);var E={};Object.defineProperty(E,"__esModule",{value:!0});E.MAGIC_VALUE_BYTES=E.MAGIC_VALUE=void 0;const Ee="0x1626ba7e";E.MAGIC_VALUE=Ee;const je="0x20c13b0b";E.MAGIC_VALUE_BYTES=je;var J={},A={},P={};Object.defineProperty(P,"__esModule",{value:!0});P.PermissionsError=P.PERMISSIONS_REQUEST_REJECTED=void 0;P.PERMISSIONS_REQUEST_REJECTED=4001;class Q extends Error{constructor(e,a,s){super(e),this.code=a,this.data=s,Object.setPrototypeOf(this,Q.prototype)}}P.PermissionsError=Q;Object.defineProperty(A,"__esModule",{value:!0});A.Wallet=void 0;const W=y,R=P;class Oe{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(W.Methods.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new R.PermissionsError("Permissions request is invalid",R.PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(W.Methods.wallet_requestPermissions,e)).data}catch{throw new R.PermissionsError("Permissions rejected",R.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(e){return e.every(a=>typeof a=="object"?Object.keys(a).every(s=>!!Object.values(W.RestrictedMethods).includes(s)):!1)}}A.Wallet=Oe;Object.defineProperty(J,"__esModule",{value:!0});const Me=A,Z=P,$=(t,e)=>e.some(a=>a.parentCapability===t),Ie=()=>(t,e,a)=>{const s=a.value;return a.value=async function(){const r=new Me.Wallet(this.communicator);let n=await r.getPermissions();if($(e,n)||(n=await r.requestPermissions([{[e]:{}}])),!$(e,n))throw new Z.PermissionsError("Permissions rejected",Z.PERMISSIONS_REQUEST_REJECTED);return s.apply(this)},a};J.default=Ie;var Ae=f&&f.__decorate||function(t,e,a,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,a):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,a,s);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(n=(r<3?o(n):r>3?o(e,a,n):o(e,a))||n);return r>3&&n&&Object.defineProperty(e,a,n),n},Be=f&&f.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(G,"__esModule",{value:!0});G.Safe=void 0;const x=Ce,ee=E,v=y,te=O,Re=N,xe=Be(J);class oe{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(v.Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(v.Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(v.Methods.getSafeBalances,{currency:e})).data}async check1271Signature(e,a="0x"){const s=await this.getInfo(),r=(0,x.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,a]}),n={call:te.RPC_CALLS.eth_call,params:[{to:s.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(v.Methods.rpcCall,n)).data.slice(0,10).toLowerCase()===ee.MAGIC_VALUE}catch{return!1}}async check1271SignatureBytes(e,a="0x"){const s=await this.getInfo(),r=(0,x.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,a]}),n={call:te.RPC_CALLS.eth_call,params:[{to:s.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(v.Methods.rpcCall,n)).data.slice(0,10).toLowerCase()===ee.MAGIC_VALUE_BYTES}catch{return!1}}calculateMessageHash(e){return(0,x.hashMessage)(e)}calculateTypedMessageHash(e){const a=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let s=e.primaryType;if(!s){const r=Object.values(e.types),n=Object.keys(e.types).filter(o=>r.every(c=>c.every(({type:i})=>i.replace("[","").replace("]","")!==o)));if(n.length===0||n.length>1)throw new Error("Please specify primaryType");s=n[0]}return(0,x.hashTypedData)({message:e.message,domain:{...e.domain,chainId:a,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:s})}async getOffChainSignature(e){return(await this.communicator.send(v.Methods.getOffChainSignature,e)).data}async isMessageSigned(e,a="0x"){let s;if(typeof e=="string"&&(s=async()=>{const r=this.calculateMessageHash(e);return await this.isMessageHashSigned(r,a)}),(0,Re.isObjectEIP712TypedData)(e)&&(s=async()=>{const r=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(r,a)}),s)return await s();throw new Error("Invalid message type")}async isMessageHashSigned(e,a="0x"){const s=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const r of s)if(await r(e,a))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(v.Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(v.Methods.requestAddressBook,void 0)).data}}G.Safe=oe;Ae([(0,xe.default)()],oe.prototype,"requestAddressBook",null);var Le=f&&f.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(L,"__esModule",{value:!0});const ke=Le(ae),He=q,De=U,qe=G,Ne=A;class Ve{constructor(e={}){const{allowedDomains:a=null,debug:s=!1}=e;this.communicator=new ke.default(a,s),this.eth=new De.Eth(this.communicator),this.txs=new He.TXs(this.communicator),this.safe=new qe.Safe(this.communicator),this.wallet=new Ne.Wallet(this.communicator)}}L.default=Ve;(function(t){var e=f&&f.__createBinding||(Object.create?function(o,c,i,u){u===void 0&&(u=i);var g=Object.getOwnPropertyDescriptor(c,i);(!g||("get"in g?!c.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return c[i]}}),Object.defineProperty(o,u,g)}:function(o,c,i,u){u===void 0&&(u=i),o[u]=c[i]}),a=f&&f.__exportStar||function(o,c){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(c,i)&&e(c,o,i)},s=f&&f.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;const r=s(L);t.default=r.default,a(L,t),a(N,t),a(y,t),a(M,t);var n=I;Object.defineProperty(t,"getSDKVersion",{enumerable:!0,get:function(){return n.getSDKVersion}}),a(O,t)})(se);var j={};Object.defineProperty(j,"__esModule",{value:!0});j.numberToHex=j.getLowerCase=void 0;function Ue(t){return t&&t.toLowerCase()}j.getLowerCase=Ue;function Ge(t){return`0x${t.toString(16)}`}j.numberToHex=Ge;Object.defineProperty(k,"__esModule",{value:!0});k.SafeAppProvider=void 0;const C=se,Fe=ue,p=j;class We extends Fe.EventEmitter{constructor(e,a){super(),this.submittedTxs=new Map,this.safe=e,this.sdk=a}
1async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(e){var r,n,o,c;const{method:a,params:s=[]}=e;switch(a){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return(0,p.numberToHex)(this.chainId);case"personal_sign":{const[d,l]=s;if(this.safe.safeAddress.toLowerCase()!==l.toLowerCase())throw new Error("The address or message hash is invalid");const h=await this.sdk.txs.signMessage(d);return("signature"in h?h.signature:void 0)||"0x"}case"eth_sign":{const[d,l]=s;if(this.safe.safeAddress.toLowerCase()!==d.toLowerCase()||!l.startsWith("0x"))throw new Error("The address or message hash is invalid");const h=await this.sdk.txs.signMessage(l);return("signature"in h?h.signature:void 0)||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{const[d,l]=s,h=typeof l=="string"?JSON.parse(l):l;if(this.safe.safeAddress.toLowerCase()!==d.toLowerCase())throw new Error("The address is invalid");const _=await this.sdk.txs.signTypedMessage(h);return("signature"in _?_.signature:void 0)||"0x"}case"eth_sendTransaction":const i={...s[0],value:s[0].value||"0",data:s[0].data||"0x"};typeof i.gas=="string"&&i.gas.startsWith("0x")&&(i.gas=parseInt(i.gas,16));const u=await this.sdk.txs.send({txs:[i],params:{safeTxGas:i.gas}});return this.submittedTxs.set(u.safeTxHash,{from:this.safe.safeAddress,hash:u.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:i.data,value:i.value,to:i.to,blockHash:null,blockNumber:null,transactionIndex:null}),u.safeTxHash;case"eth_blockNumber":return(await this.sdk.eth.getBlockByNumber(["latest"])).number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,p.getLowerCase)(s[0]),s[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,p.getLowerCase)(s[0]),s[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,p.getLowerCase)(s[0]),s[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,p.getLowerCase)(s[0]),s[1],s[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([s[0],s[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([s[0],s[1]]);case"eth_getTransactionByHash":let b=s[0];try{b=(await this.sdk.txs.getBySafeTxHash(b)).txHash||b}catch{}return this.submittedTxs.has(b)?this.submittedTxs.get(b):this.sdk.eth.getTransactionByHash([b]).then(d=>(d&&(d.hash=s[0]),d));case"eth_getTransactionReceipt":{let d=s[0];try{d=(await this.sdk.txs.getBySafeTxHash(d)).txHash||d}catch{}return this.sdk.eth.getTransactionReceipt([d]).then(l=>(l&&(l.transactionHash=s[0]),l))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(s[0]);case"eth_call":return this.sdk.eth.call([s[0],s[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([s[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(s[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([s[0]]);case"wallet_sendCalls":{const{from:d,calls:l,chainId:h}=s[0];if(h!==(0,p.numberToHex)(this.chainId))throw new Error(`Safe is not on chain ${h}`);if(d!==this.safe.safeAddress)throw Error("Invalid from address");const _=l.map((T,F)=>{if(!T.to)throw new Error(`Invalid call #${F}: missing "to" field`);return{to:T.to,data:T.data??"0x",value:T.value??(0,p.numberToHex)(0)}}),{safeTxHash:S}=await this.sdk.txs.send({txs:_});return{id:S}}case"wallet_getCallsStatus":{const d=s[0],l={[C.TransactionStatus.AWAITING_CONFIRMATIONS]:100,[C.TransactionStatus.AWAITING_EXECUTION]:100,[C.TransactionStatus.SUCCESS]:200,[C.TransactionStatus.CANCELLED]:400,[C.TransactionStatus.FAILED]:500},h=await this.sdk.txs.getBySafeTxHash(d),_={version:"1.0",id:d,chainId:(0,p.numberToHex)(this.chainId),status:l[h.txStatus]};if(!h.txHash)return _;const S=await this.sdk.eth.getTransactionReceipt([h.txHash]);if(!S)return _;const X=((n=(r=h.txData)==null?void 0:r.dataDecoded)==null?void 0:n.method)!=="multiSend"?1:((c=(o=h.txData.dataDecoded.parameters)==null?void 0:o[0].valueDecoded)==null?void 0:c.length)??1,T=Number(S.blockNumber),F=Number(S.gasUsed);return _.receipts=Array(X).fill({logs:S.logs,status:(0,p.numberToHex)(h.txStatus===C.TransactionStatus.SUCCESS?1:0),blockHash:S.blockHash,blockNumber:(0,p.numberToHex)(T),gasUsed:(0,p.numberToHex)(F
1),transactionHash:h.txHash}),_}case"wallet_showCallsStatus":throw new Error(`"${e.method}" not supported`);case"wallet_getCapabilities":return{[(0,p.numberToHex)(this.chainId)]:{atomicBatch:{supported:!0}}};default:throw Error(`"${e.method}" not implemented`)}}send(e,a){e||a("Undefined request"),this.request(e).then(s=>a(null,{jsonrpc:"2.0",id:e.id,result:s})).catch(s=>a(s,null))}}k.SafeAppProvider=We;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SafeAppProvider=void 0;var e=k;Object.defineProperty(t,"SafeAppProvider",{enumerable:!0,get:function(){return e.SafeAppProvider}})})(K);const Ke=de(K),Ye=fe({__proto__:null,default:Ke},[K]);export{Ye as i};

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.