1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[213],{10359:(e,t,n)=>{n.d(t,{Zu:()=>k});var i=Object.defineProperty,r=Object.defineProperties,o=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,l=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&l(e,n,t[n]);if(a)for(var n of a(t))u.call(t,n)&&l(e,n,t[n]);return e},c=(e,t)=>r(e,o(t)),d=(e,t,n)=>new Promise((i,r)=>{var o=e=>{try{s(n.next(e))}catch(e){r(e)}},a=e=>{try{s(n.throw(e))}catch(e){r(e)}},s=e=>e.done?i(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}),h="https://api.jup.ag/swap/v1".replace(/\/+$/,""),m=class{constructor(e={}){this.configuration=e}set config(e){this.configuration=e}get basePath(){return null!=this.configuration.basePath?this.configuration.basePath:h}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||function e(t,n=""){return Object.keys(t).map(i=>(function t(n,i,r=""){let o=r+(r.length?`[${n}]`:n);if(i instanceof Array){let e=i.map(e=>encodeURIComponent(String(e))).join(`&${encodeURIComponent(o)}=`);return`${encodeURIComponent(o)}=${e}`}return i instanceof Set?t(n,Array.from(i),r):i instanceof Date?`${encodeURIComponent(o)}=${encodeURIComponent(i.toISOString())}`:i instanceof Object?e(i,o):`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`})(i,t[i],n)).filter(e=>e.length>0).join("&")}}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){let e=this.configuration.apiKey;if(e)return"function"==typeof e?e:()=>e}get accessToken(){let e=this.configuration.accessToken;if(e)return"function"==typeof e?e:()=>d(this,null,function*(){return e})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}},f=new m,w=class e{constructor(e=f){this.configuration=e,this.fetchApi=(e,t)=>d(this,null,function*(){let n,i={url:e,init:t};for(let e of this.middleware)e.pre&&(i=(yield e.pre(p({fetch:this.fetchApi},i)))||i);try{n=yield(this.configuration.fetchApi||fetch)(i.url,i.init)}catch(e){for(let t of this.middleware)t.onError&&(n=(yield t.onError({fetch:this.fetchApi,url:i.url,init:i.init,error:e,response:n?n.clone():void 0}))||n);if(void 0===n)if(e instanceof Error)throw new v(e,"The request failed and the interceptors did not return an alternative response");else throw e}for(let e of this.middleware)e.post&&(n=(yield e.post({fetch:this.fetchApi,url:i.url,init:i.init,response:n.clone()}))||n);return n}),this.middleware=e.middleware}withMiddleware(...e){let t=this.clone();return t.middleware=t.middleware.concat(...e),t}withPreMiddleware(...e){let t=e.map(e=>({pre:e}));return this.withMiddleware(...t)}withPostMiddleware(...e){let t=e.map(e=>({post:e}));return this.withMiddleware(...t)}isJsonMime(t){return!!t&&e.jsonRegex.test(t)}request(e,t){return d(this,null,function*(){let{url:n,init:i}=yield this.createFetchParams(e,t),r=yield this.fetchApi(n,i);if(r&&r.status>=200&&r.status<300)return r;throw new g(r,"Response returned an error code")})}createFetchParams(e,t){return d(this,null,function*(){var n,i;let r,o=this.configuration.basePath+e.path;void 0!==e.query&&0!==Object.keys(e.query).length&&(o+="?"+this.configuration.queryParamsStringify(e.query));let a=Object.assign({},this.configuration.headers,e.headers);Object.keys(a).forEach(e=>void 0===a[e]?delete a[e]:{});let s={method:e.method,headers:a,body:e.body,credentials:this.configuration.credentials},u=p(p({},s),(yield("function"==typeof t?t:()=>d(this,null,function*(){return t}))({init:s,context:e})));return n=u.body,r="undefined"!=typeof FormData&&n instanceof FormData||u.body instanceof URLSearchParams||(i=u.body,"undefined"!=typeof Blob&&i instanceof Blob)?u.body:this.isJsonMime(a["Content-Type"])?JSON.stringify(u.body):u.body,{url:o,init:c(p({},u),{body:r})}})}clone(){let e=new this.constructor(this.configuration);return e.middleware=this.middleware.slice(),e}};w.jsonRegex=RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");
1var y=w,g=class extends Error{constructor(e,t){super(t),this.response=e,this.name="ResponseError"}},v=class extends Error{constructor(e,t){super(t),this.cause=e,this.name="FetchError"}},b=class extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}};function A(e,t){return null!=e[t]}var M=class{constructor(e,t=e=>e){this.raw=e,this.transformer=t}value(){return d(this,null,function*(){return this.transformer((yield this.raw.json()))})}};function P(e){var t;return null==(t=e)?t:{pubkey:t.pubkey,isSigner:t.isSigner,isWritable:t.isWritable}}function R(e){var t;return null==(t=e)?t:{programId:t.programId,accounts:t.accounts.map(P),data:t.data}}function q(e){var t,n=e;if(null==n)return n;return{swapInfo:(t=n.swapInfo,null==t?t:{ammKey:t.ammKey,label:A(t,"label")?t.label:void 0,inputMint:t.inputMint,outputMint:t.outputMint,inAmount:t.inAmount,outAmount:t.outAmount}),percent:A(n,"percent")?n.percent:void 0,bps:A(n,"bps")?n.bps:void 0}}function I(e){if(void 0!==e)return null===e?null:{swapInfo:function(e){if(void 0!==e)return null===e?null:{ammKey:e.ammKey,label:e.label,inputMint:e.inputMint,outputMint:e.outputMint,inAmount:e.inAmount,outAmount:e.outAmount}}(e.swapInfo),percent:e.percent,bps:e.bps}}function T(e){if(void 0!==e)return null===e?null:{userPublicKey:e.userPublicKey,payer:e.payer,wrapAndUnwrapSol:e.wrapAndUnwrapSol,useSharedAccounts:e.useSharedAccounts,feeAccount:e.feeAccount,trackingAccount:e.trackingAccount,prioritizationFeeLamports:function(e){if(void 0!==e){if(null===e)return null;if("jitoTipLamports"in e)return void 0!==e?null===e?null:{jitoTipLamports:e.jitoTipLamports}:void 0;if("jitoTipLamportsWithPayer"in e)return void 0!==e?null===e?null:{jitoTipLamportsWithPayer:function(e){if(void 0!==e)return null===e?null:{lamports:e.lamports,payer:e.payer}}(e.jitoTipLamportsWithPayer)}:void 0;if("priorityLevelWithMaxLamports"in e)return void 0!==e?null===e?null:{priorityLevelWithMaxLamports:function(e){if(void 0!==e)return null===e?null:{priorityLevel:e.priorityLevel,maxLamports:e.maxLamports,global:e.global}}(e.priorityLevelWithMaxLamports)}:void 0;return{}}}(e.prioritizationFeeLamports),asLegacyTransaction:e.asLegacyTransaction,destinationTokenAccount:e.destinationTokenAccount,nativeDestinationAccount:e.nativeDestinationAccount,dynamicComputeUnitLimit:e.dynamicComputeUnitLimit,skipUserAccountsRpcCalls:e.skipUserAccountsRpcCalls,dynamicSlippage:e.dynamicSlippage,computeUnitPriceMicroLamports:e.computeUnitPriceMicroLamports,blockhashSlotsToExpiry:e.blockhashSlotsToExpiry,quoteResponse:function(e){if(void 0!==e)return null===e?null:{inputMint:e.inputMint,inAmount:e.inAmount,outputMint:e.outputMint,outAmount:e.outAmount,otherAmountThreshold:e.otherAmountThreshold,instructionVersion:e.instructionVersion,swapMode:e.swapMode,slippageBps:e.slippageBps,platformFee:function(e){if(void 0!==e)return null===e?null:{amount:e.amount,feeBps:e.feeBps}}(e.platformFee),priceImpactPct:e.priceImpactPct,routePlan:e.routePlan.map(I),contextSlot:e.contextSlot,timeTaken:e.timeTaken}}(e.quoteResponse)}}var x=class extends y{programIdToLabelGetRaw(e){return d(this,null,function*(){return new M((yield this.request({path:"/program-id-to-label",method:"GET",headers:{},query:{}},e)))})}programIdToLabelGet(e){return d(this,null,function*(){let t=yield this.programIdToLabelGetRaw(e);return yield t.value()})}quoteGetRaw(e,t){return d(this,null,function*(){if(null===e.inputMint||void 0===e.inputMint)throw new b("inputMint","Required parameter requestParameters.inputMint was null or undefined when calling quoteGet.");if(null===e.outputMint||void 0===e.outputMint)throw new b("outputMint","Required parameter requestParameters.outputMint was null or undefined when calling quoteGet.");if(null===e.amount||void 0===e.amount)throw new b("amount","Required parameter requestParameters.amount was null or undefined when calling quoteGet.");let n={};return void 0!==e.inputMint&&(n.inputMint=e.inputMint),void 0!==e.outputMint&&(n.outputMint=e.outputMint),void 0!==e.amount&&(n.amount=e.amount),void 0!==e.slippageBps&&(n.slippageBps=e.slippageBps),void 0!==e.swapMode&&(n.swap
1Mode=e.swapMode),e.dexes&&(n.dexes=e.dexes),e.excludeDexes&&(n.excludeDexes=e.excludeDexes),void 0!==e.restrictIntermediateTokens&&(n.restrictIntermediateTokens=e.restrictIntermediateTokens),void 0!==e.onlyDirectRoutes&&(n.onlyDirectRoutes=e.onlyDirectRoutes),void 0!==e.asLegacyTransaction&&(n.asLegacyTransaction=e.asLegacyTransaction),void 0!==e.platformFeeBps&&(n.platformFeeBps=e.platformFeeBps),void 0!==e.maxAccounts&&(n.maxAccounts=e.maxAccounts),void 0!==e.instructionVersion&&(n.instructionVersion=e.instructionVersion),void 0!==e.dynamicSlippage&&(n.dynamicSlippage=e.dynamicSlippage),new M((yield this.request({path:"/quote",method:"GET",headers:{},query:n},t)),e=>(function(e,t){var n,i,r,o;if(null==e)return e;return{inputMint:e.inputMint,inAmount:e.inAmount,outputMint:e.outputMint,outAmount:e.outAmount,otherAmountThreshold:e.otherAmountThreshold,instructionVersion:A(e,"instructionVersion")?e.instructionVersion:void 0,swapMode:(n=e.swapMode,i=0,n),slippageBps:e.slippageBps,platformFee:A(e,"platformFee")?(r=e.platformFee,o=0,null==r?r:{amount:A(r,"amount")?r.amount:void 0,feeBps:A(r,"feeBps")?r.feeBps:void 0}):void 0,priceImpactPct:e.priceImpactPct,routePlan:e.routePlan.map(q),contextSlot:A(e,"contextSlot")?e.contextSlot:void 0,timeTaken:A(e,"timeTaken")?e.timeTaken:void 0}})(e,0))})}quoteGet(e,t){return d(this,null,function*(){let n=yield this.quoteGetRaw(e,t);return yield n.value()})}swapInstructionsPostRaw(e,t){return d(this,null,function*(){if(null===e.swapRequest||void 0===e.swapRequest)throw new b("swapRequest","Required parameter requestParameters.swapRequest was null or undefined when calling swapInstructionsPost.");let n={};return n["Content-Type"]="application/json",new M((yield this.request({path:"/swap-instructions",method:"POST",headers:n,query:{},body:T(e.swapRequest)},t)),e=>{var t,n;return n=0,null==(t=e)?t:{otherInstructions:t.otherInstructions.map(R),computeBudgetInstructions:t.computeBudgetInstructions.map(R),setupInstructions:t.setupInstructions.map(R),swapInstruction:R(t.swapInstruction),cleanupInstruction:A(t,"cleanupInstruction")?R(t.cleanupInstruction):void 0,addressLookupTableAddresses:t.addressLookupTableAddresses}})})}swapInstructionsPost(e,t){return d(this,null,function*(){let n=yield this.swapInstructionsPostRaw(e,t);return yield n.value()})}swapPostRaw(e,t){return d(this,null,function*(){if(null===e.swapRequest||void 0===e.swapRequest)throw new b("swapRequest","Required parameter requestParameters.swapRequest was null or undefined when calling swapPost.");let n={};return n["Content-Type"]="application/json",new M((yield this.request({path:"/swap",method:"POST",headers:n,query:{},body:T(e.swapRequest)},t)),e=>{var t,n;return n=0,null==(t=e)?t:{swapTransaction:t.swapTransaction,lastValidBlockHeight:t.lastValidBlockHeight,prioritizationFeeLamports:A(t,"prioritizationFeeLamports")?t.prioritizationFeeLamports:void 0}})})}swapPost(e,t){return d(this,null,function*(){let n=yield this.swapPostRaw(e,t);return yield n.value()})}},k=e=>{let t=(null==e?void 0:e.apiKey)!==void 0;return new x(new m(c(p({},e),{basePath:t?"https://api.jup.ag/swap/v1":"https://lite-api.jup.ag/swap/v1",headers:t?{"x-api-key":null==e?void 0:e.apiKey}:void 0})))}},41831:(e,t,n)=>{n.d(t,{E:()=>r,w:()=>o});var i=n(13741);let r=(0,i.createContext)({});function o(){return(0,i.useContext)(r)}},47007:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(80159).A)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},58544:(e,t,n)=>{function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}n.d(t,{A:()=>r});var r=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=i({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+=";
1 "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+a}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],i={},r=0;r<n.length;r++){var o=n[r].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(i[s]=t.read(a,s),e===s)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){r(e,"",i({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,i({},this.attributes,t))},withConverter:function(t){return e(i({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},58938:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(80159).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])}}]);
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.