PageSourceSearch

https://pancakeswap.finance/_next/static/chunks/pages/v2/remove/[[...currency]]-257402e492956a61.js

js pancakeswap.finance collected 2026-10-01 10:15:38 UTC 50,086 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ce63d4d7-02d7-41cf-943c-e37d1bbcc204",e._sentryDebugIdIdentifier="sentry-dbid-ce63d4d7-02d7-41cf-943c-e37d1bbcc204")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4577,6502,7168,9265],{41811:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(350979);n(25963);var i=n(257057);let l=e=>(0,r.jsx)(i.A,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 4C18.5 4 19 4.5 19 6L19 8C20.1046 8 21 8.89543 21 10L21 17C21 19 20 20 17.999 20H6C4 20 3 19 3 17L3 7C3 5.5 4.5 4 6 4L17 4ZM5 7C5 6.44772 5.44772 6 6 6L19 6L19 8L6 8C5.44772 8 5 7.55229 5 7ZM17 16C18 16 19.001 15 19 14C18.999 13 18 12 17 12C16 12 15 13 15 14C15 15 16 16 17 16Z"})})},59701:(e,t,n)=>{"use strict";n.d(t,{M:()=>r.M,g:()=>i.g});var r=n(841228),i=n(486556)},115843:(e,t,n)=>{"use strict";n.d(t,{A:()=>q});var r=n(350979),i=n(25963),l=n(48099),s=n(96278),o=n(735872),a=n(334804),d=n(680797),u=n(442828),c=n(179087),p=n(769932),h=n(311560),g=n(3197),m=n(857036),x=n(966983),v=n(282304),f=n(605641),y=n(995315),b=n(490233),A=n(38395),w=n(249452),C=n(129166),j=n(102342),I=n(830640),k=n(842807),T=n(796147),E=n(979332),S=n(962478),U=n(501823),R=n(399832),N=n(310085),D=n(557423),L=n(721745),_=n(862373),B=n(118708),M=n(954335),O=n(619749);let $=function(e){let{tokens:t,handleCurrencySelect:n}=e,{t:l}=(0,p.A)(),[s,o]=(0,i.useState)(!1),[a]=(0,B.fp)(_.fk),{addUserToken:d}=(0,M.F)();return(0,r.jsxs)(T.mm,{gap:"lg",children:[(0,r.jsx)(j._,{}),t.map(e=>{let t=e.address?`${(0,L.A)(e.address)}`:null;return(0,r.jsxs)(y.A,{gap:"4px",flexDirection:"column",children:[(0,r.jsx)(E.A,{variant:"failure",outline:!0,scale:"sm",startIcon:(0,r.jsx)(S.A,{color:"failure"}),children:l("Unknown Source")}),(0,r.jsxs)(U.A,{alignItems:"center",children:[(0,r.jsx)(f.A,{mr:"8px",children:e.name||e.symbol}),(0,r.jsxs)(f.A,{children:["(",e.symbol,")"]})]}),(0,r.jsxs)(U.A,{justifyContent:"space-between",width:"100%",children:[(0,r.jsx)(f.A,{mr:"4px",children:t}),(0,r.jsx)(R.A,{href:`${a.host}/token/${e.address}`,children:l("View on %site%",{site:"Solana Explorer"})})]})]},e.address)}),(0,r.jsxs)(U.A,{justifyContent:"space-between",alignItems:"center",children:[(0,r.jsxs)(U.A,{alignItems:"center",onClick:()=>o(!s),children:[(0,r.jsx)(N.A,{scale:"sm",name:"confirmed",type:"checkbox",checked:s,onChange:()=>o(!s)}),(0,r.jsx)(f.A,{ml:"8px",style:{userSelect:"none"},children:l("I understand")})]}),(0,r.jsx)(D.A,{variant:"danger",disabled:!s,onClick:()=>{t.forEach(e=>{d((0,O.sI)(e))}),n&&n(t[0])},className:".token-dismiss-button",children:l("Import")})]})]})},P=(0,d.I4)(x.Bs).withConfig({componentId:"sc-7e443008-0"})(["width:100%;min-width:320px;min-height:calc(var(--vh,1vh) * 90);","{max-width:420px !important;min-height:auto;}"],e=>{let{theme:t}=e;return t.mediaQueries.sm}),Y=(0,d.I4)(x.rQ).withConfig({componentId:"sc-7e443008-1"})(["border:none;"]),F=(0,d.I4)(x.cw).withConfig({componentId:"sc-7e443008-2"})(["padding:4px 24px 24px;max-height:calc(90vh);overflow-y:",";-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"],e=>{let{$allowScroll:t}=e;return t?"auto":"hidden"});function q(e){var t,n,d;let{supportCrossChain:T=!1,onDismiss:E=()=>null,onCurrencySelect:S,selectedCurrency:U,otherSelectedCurrency:R,commonBasesType:N,tokensToShow:D,modalTitle:L,showCommonBases:_=!0,showSearchInput:B,searchInputPlaceholder:M,showCurrencyInHeader:O=!1,showSearchHeader:q,mode:H,showNative:z=!0,showMultichainBalances:V=!1,enableMultichainSearch:Q=!1,currencyStatus
1Map:Z,allowedChainIds:W,showNativeChainIds:G,showNativeAfterTokens:X,nativeInsertIndex:J,onChainSelect:K,preserveChainOrder:ee}=e,[et,en]=(0,i.useState)(k.Yg.search),[er,ei]=(0,i.useState)(null!=(d=null!=(n=null==U?void 0:U.chainId)?n:null==R?void 0:R.chainId)?d:null==W?void 0:W[0]),el=(0,i.useCallback)(e=>{null==E||E(),null==S||S(e)},[E,S]),es=(0,c.Sz)(et),[eo,ea]=(0,i.useState)(),[ed,eu]=(0,i.useState)(),[ec,ep]=(0,i.useState)(),{t:eh}=(0,p.A)(),[,eg]=(0,a.pE)(),em=(0,o.mC)(),ex=!!(ec&&(null==(t=em[ec])?void 0:t.loadingRequestId)),ev=(0,m.jU)(eg),[ef,ey]=(0,i.useState)(null),eb=(0,i.useCallback)(()=>{!ex&&ec&&(ey(null),ev(ec).then(()=>{eg((0,m.c6)(ec)),en(k.Yg.manage)}).catch(e=>{ey(e.message),eg((0,m.tK)(ec))}))},[ex,eg,ev,ec]),eA=(0,i.useMemo)(()=>({[k.Yg.search]:{title:eh("Select a Token"),onBack:void 0},[k.Yg.manage]:{title:eh("Manage Tokens"),onBack:()=>en(k.Yg.search)},[k.Yg.importToken]:{title:eh("Import Tokens"),onBack:()=>en(es&&es!==k.Yg.importToken?es:k.Yg.search)},[k.Yg.importList]:{title:eh("Import List"),onBack:()=>en(k.Yg.search)}}),[eh,es]),ew=(0,i.useRef)(null),[eC,ej]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>{let e=ew.current;if(!e)return;let t=()=>ej(e.offsetHeight-300);t();let n="undefined"!=typeof ResizeObserver?new ResizeObserver(t):void 0;return null==n||n.observe(e),window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{null==n||n.disconnect(),window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[]),(0,r.jsxs)(P,{dragConstraints:{top:0,bottom:600},dragElastic:{top:0},dragSnapToOrigin:!0,onDragStart:()=>{ew.current&&(ew.current.style.animation="none")},onDragEnd:(e,t)=>{t.velocity.y>v.G8&&E&&E()},ref:ew,children:[(!q||et!==k.Yg.search)&&(0,r.jsxs)(Y,{children:[(0,r.jsxs)(x.wt,{children:[eA[et].onBack&&(0,r.jsx)(x.jR,{onBack:eA[et].onBack}),O&&U?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.Z,{size:"32px",showChainLogo:T,currency:U,style:{borderRadius:"50%"}}),(0,r.jsx)(f.A,{px:"8px",bold:!0,fontSize:"20px",children:(0,u.En)(U.wrapped.address,U.chainId,U.symbol)}),!U.isNative&&(0,r.jsxs)(y.A,{gap:"8px",alignItems:"center",children:[(0,r.jsx)(b.i,{"data-dd-action-name":"Copy token address",width:"16px",buttonColor:"textSubtle",text:U.wrapped.address,tooltipMessage:eh("Token address copied"),defaultTooltipMessage:eh("Copy token address"),tooltipPlacement:"top"}),(0,r.jsx)(s.k,{address:U.wrapped.address,chainId:U.chainId,type:"token",color:"textSubtle",width:"18px",tooltipPlacement:"top"}),(0,r.jsx)(l.A,{"data-dd-action-name":"Add to wallet",variant:"text",p:"0",height:"auto",width:"fit-content",tokenAddress:U.wrapped.address,tokenSymbol:U.symbol,tokenDecimals:U.decimals,tokenLogo:U.wrapped instanceof g.Xs?U.wrapped.logoURI:void 0,tooltipPlacement:"top"})]})]}):(0,r.jsx)(f.A,{fontSize:"18px",bold:!0,children:eA[et].title})]}),(0,r.jsx)(x.s_,{onDismiss:E})]}),(0,r.jsx)(F,{$allowScroll:et===k.Yg.importToken||et===k.Yg.manage,children:et===k.Yg.search?(0,r.jsx)(C.A,{onSettingsClick:()=>en(k.Yg.manage),supportCrossChain:T,onCurrencySelect:el,selectedCurrency:U,otherSelectedCurrency:R,showCommonBases:_,commonBasesType:N,showSearchInput:B,searchInputPlaceholder:M,showImportView:()=>en(k.Yg.importToken),setImportToken:ea,height:eC,tokensToShow:D,showChainLogo:T,showSearchHeader:q,headerTitle:L,onDismiss:E,mode:H,setSelectedChainId:ei,selectedChainId:er,showNative:z,showMultichainBalances:V,enableMultichainSearch:Q,currencyStatus
1Map:Z,allowedChainIds:W,showNativeChainIds:G,showNativeAfterTokens:X,nativeInsertIndex:J,onChainSelect:K,preserveChainOrder:ee}):et===k.Yg.importToken&&eo?eo instanceof h.xx?(0,r.jsx)($,{tokens:[eo],handleCurrencySelect:el}):(0,r.jsx)(j.A,{tokens:[eo],handleCurrencySelect:el}):et===k.Yg.importList&&ed&&ec?(0,r.jsx)(w.q,{onAddList:eb,addError:ef,listURL:ec,listLogoURI:null==ed?void 0:ed.logoURI,listName:null==ed?void 0:ed.name,listTokenLength:null==ed?void 0:ed.tokens.length}):et===k.Yg.manage?(0,r.jsx)(I.A,{setModalView:en,setImportToken:ea,setImportList:eu,setListUrl:ep,chainId:er}):null})]})}},133018:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6;try{if(!e||!t)return"-";let r=e.priceOf(t);if(!r)return"-";return r.toSignificant(n)}catch(e){return console.error("safeGetTokenPairPrice error:",e),"-"}}n.d(t,{C:()=>r})},157852:(e,t,n)=>{"use strict";n.d(t,{Hq:()=>o,Qv:()=>s,UT:()=>i,aO:()=>l});var r=n(985148);let i=(0,r.eU)({bestOrder:void 0,tradeLoaded:!1,tradeError:void 0,refreshDisabled:!1,refreshOrder:()=>{},refreshTrade:()=>{},pauseQuoting:()=>{},resumeQuoting:()=>{}}),l=(0,r.eU)(!1),s=(0,r.eU)(!1),o=(0,r.eU)(e=>{let t=e(i),n=e(s);return{...t,tradeLoaded:!n&&t.tradeLoaded}})},160423:(e,t,n)=>{"use strict";n.d(t,{UG:()=>c,es:()=>d,kZ:()=>u});var r=n(350979),i=n(769932),l=n(796259),s=n(862373),o=n(657168),a=n(775517);let d=()=>{let[e,t]=(0,s.at)();return(0,r.jsx)(o.$E,{slippageTolerance:e,setSlippageTolerance:t})},u=()=>{let[e,t]=(0,a.Nt)(),[n,i]=(0,s.uZ)();return(0,r.jsx)(o.$E,{slippageTolerance:n,setSlippageTolerance:i,isAutoSlippageEnabled:e,setIsAutoSlippageEnabled:t})},c=()=>{let[e,t]=(0,s.uZ)(),{t:n}=(0,i.A)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.y,{mb:"8px",children:n("Liquidity Slippage")}),(0,r.jsx)(o.$E,{slippageTolerance:e,setSlippageTolerance:t})]})}}
1,183693:(e,t,n)=>{"use strict";n.d(t,{O:()=>p});var r=n(350979),i=n(557423),l=n(53670),s=n(985148),o=n(118708);let a=(0,s.eU)(!1);var d=n(868197),u=n(724152);let c={variant:"danger",disabled:!1,children:(0,r.jsx)(u.A,{children:"Wrong Network"}),width:"100%"},p=e=>{let{checkChainId:t,...n}=e,{isWrongNetwork:s}=(0,l.ax)(t),[u]=(0,o.fp)(a),p=(0,o.Xr)(d.G);return(0,r.jsx)(i.A,{...n,onClick:e=>{if(s)p(t||!0);else{var r;null==(r=n.onClick)||r.call(n,e)}},...u&&{disabled:!0},...s&&c})}},214885:(e,t,n)=>{"use strict";n.d(t,{A:()=>I,d:()=>j});var r=n(350979),i=n(228876),l=n(769932),s=n(3197),o=n(796147),a=n(633900),d=n(605641),u=n(673115),c=n(785459),p=n(557423),h=n(282304),g=n(59701),m=n(53670),x=n(25963),v=n(680797),f=n(733775),y=n(452301),b=n(48099);let A=v.I4.div.withConfig({componentId:"sc-14e30960-0"})(["width:100%;"]),w=(0,v.I4)(o.mm).withConfig({componentId:"sc-14e30960-1"})(["padding:24px;"]),C=(0,v.I4)(o.YA).withConfig({componentId:"sc-14e30960-2"})(["padding:24px 0;"]);function j(e){let{onDismiss:t,chainId:n,hash:h,currencyToAdd:g,isMultisig:m=!1}=e,{t:v}=(0,l.A)(),j=(0,f.$8)(n),I=(0,f.iM)(),k=(0,y.dc)(g,n),T=(0,x.useMemo)(()=>!!k&&!!g&&!g.isNative,[k,g]);return(0,r.jsx)(A,{children:(0,r.jsxs)(w,{children:[(0,r.jsx)(C,{children:(0,r.jsx)(a.A,{strokeWidth:.5,width:"90px",color:"primary"})}),(0,r.jsxs)(o.mm,{gap:"12px",justify:"center",children:[(0,r.jsx)(d.A,{fontSize:"20px",bold:!0,children:v(m?"Multisig transaction submitted":"Transaction Submitted")}),m?(0,r.jsx)(d.A,{textAlign:"center",children:v("Transaction pending approvals. Execution will occur after multisig confirmation.")}):n&&h&&(0,r.jsxs)(u.A,{external:!0,small:!0,href:I(h,"transaction",n),children:[v("View on %site%",{site:j}),n===i.nU.BSC&&(0,r.jsx)(c.A,{color:"primary",ml:"4px"})]}),T&&!m&&(0,r.jsx)(b.A,{variant:"tertiary",mt:"12px",width:"fit-content",marginTextBetweenLogo:"6px",textOptions:b.D.TEXT_WITH_ASSET,tokenAddress:null==k?void 0:k.address,tokenSymbol:g.symbol,tokenDecimals:null==k?void 0:k.decimals,tokenLogo:k instanceof s.Xs?k.logoURI:void 0}),(0,r.jsx)(p.A,{onClick:t,mt:"20px",children:v("Close")})]})]})})}let I=e=>{let{title:t,onDismiss:n,customOnDismiss:i,attemptingTxn:l,errorMessage:s,hash:o,pendingText:a,content:d,currencyToAdd:u,isMultisig:c,...p}=e,{chainId:v}=(0,m.ax)(),f=(0,x.useCallback)(()=>{i&&i(),null==n||n()},[i,n]);return v?(0,r.jsx)(h.Ay,{title:t,headerBackground:"gradientCardHeader",...p,onDismiss:f,children:l?(0,r.jsx)(g.M,{pendingText:a}):o?(0,r.jsx)(j,{chainId:v,hash:o,isMultisig:c,onDismiss:f,currencyToAdd:u}):s?(0,r.jsx)(g.g,{message:s,onDismiss:f}):d()}):null}},247821:(e,t,n)=>{"use strict";n.d(t,{H:()=>r.H9});var r=n(559180)},261803:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,O:()=>o});var r=n(350979),i=n(311560),l=n(955647);let s=new i.fw(1n,1000000n);function o(e){let{currencyAmount:t,significantDigits:n=4}=e,r=(0,l.ej)(t,n);return!r||!t||t.equalTo(0n)?"0":t.greaterThan(s)?new Intl.NumberFormat(void 0,{maximumSignificantDigits:n}).format(Number(r)):`<${s.toSignificant(1)}`}function a(e){return(0,r.jsx)(r.Fragment,{children:o(e)})}},265394:(e,t,n)=>{"use strict";n.d(t,{AE:()=>U,AK:()=>S,JD:()=>C,aI:()=>E});var r=n(350979),i=n(228876),l=n(179087),s=n(769932),o=n(557423),a=n(312680),d=n(796898),u=n(579518),c=n(547725),p=n(274584),h=n(360839),g=n(475690),m=n(501823),x=n(525033),v=n(862373),f=n(160423),y=n(53670),b=n(775517),A=n(680797),w=n(178852);let C=(0,A.Ay)(o.A).attrs({variant:"tertiary"}).withConfig({componentId:"sc-1d3a3eb9-0"})(["height:unset;padding:7px 8px;font-size:14px;border-radius:12px;border-bottom:2px solid rgba(0,0,0,0.1);color:",";"],e=>{let{$color:t}=e;return t}),j=e=>{let{tolerance:t}=e;return"number"==typeof t?`${(0,w.aW)(t).toFixed(2)}%`:t},I=e=>{let{tolerance:t,buttonText:n,slippageModalContent:i}=e,{t:o}=(0,s.A)(),{theme:v}=(0,l.DP)(),{isOpen:f,onOpen:y,onDismiss:b}=(0,a.jN)(),A=t<50,w=t>100,I=t>2e3,k=I?v.colors.failure:A||w?v.colors.yellow:v.colors.primary60,{isMobile:T}=(0,d.A)(),{targetRef:E,tooltip:S,tooltipVisible:U}=(0,u.A)(A?o("Your transaction may fail. Reset settings to avoid potential loss"):w?o("Your transaction may be frontrun. Reset settings to avoid potential loss"):"",{placement:"top",avoidToStopPropagation:T});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{style:{textAlign:"center"},children:[(0,r.jsx)("div",{ref:E,children:(0,r.jsxs)(C,{$color:k,startIcon:I?(0,r.jsx)(c.A,{color:k,width:16}):A||w?(0,r.jsx)(p.A,{color:k,width:16}):void 0,endIcon:(0,r.jsx)(h.A,{color:k,width:12}),onClick:y,children:[n,(0,r.jsx)(j,{tolerance:t})]})}),!T&&(A||w)&&U&&S]}),(0,r.jsx)(a.aF,{isOpen:f,onDismiss:b,closeOnOverlayClick:!0,children:(0,r.jsx)(g.Ay,{title:(0,r.jsxs)(m.A,{justifyContent:"center",children:[o("Slippage Setting"),(0,r.jsx)(x.PT,{text:o("Setting a high slippage tolerance can help transactions succeed, but you may 
1not get such a good price. Use with caution."),ml:"4px",placement:"top-start"})]}),onDismiss:b,minHeight:"100px",children:i})})]})},k=()=>{let[e]=(0,v.at)();return(0,r.jsx)(I,{tolerance:e,slippageModalContent:(0,r.jsx)(f.es,{})})},T=e=>{let{enableAutoSlippage_:t=!1}=e,{t:n}=(0,s.A)(),{slippageTolerance:i,isAuto:l}=(0,b.Az)(),[o]=(0,v.uZ)();return(0,r.jsx)(I,{tolerance:t?i:o,slippageModalContent:(0,r.jsx)(f.kZ,{}),buttonText:l?`${n("Auto")}: `:""})},E=e=>{let{enableAutoSlippage:t=!1}=e,{chainId:n}=(0,y.W7)();return(0,i.fT)(n)?(0,r.jsx)(k,{}):(0,r.jsx)(T,{enableAutoSlippage_:t})},S=()=>{let[e]=(0,v.uZ)();return(0,r.jsx)(I,{tolerance:e,slippageModalContent:(0,r.jsx)(f.UG,{})})},U=()=>{let[e]=(0,v.at)();return(0,r.jsx)(I,{tolerance:e,slippageModalContent:(0,r.jsx)(f.es,{})})}},265449:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(350979);n(25963);var i=n(257057);let l=e=>(0,r.jsx)(i.A,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M17.65 6.35C16.02 4.72 13.71 3.78 11.17 4.04C7.50002 4.41 4.48002 7.39 4.07002 11.06C3.52002 15.91 7.27002 20 12 20C15.19 20 17.93 18.13 19.21 15.44C19.53 14.77 19.05 14 18.31 14C17.94 14 17.59 14.2 17.43 14.53C16.3 16.96 13.59 18.5 10.63 17.84C8.41002 17.35 6.62002 15.54 6.15002 13.32C5.31002 9.44 8.26002 6 12 6C13.66 6 15.14 6.69 16.22 7.78L14.71 9.29C14.08 9.92 14.52 11 15.41 11H19C19.55 11 20 10.55 20 10V6.41C20 5.52 18.92 5.07 18.29 5.7L17.65 6.35Z"})})},274584:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(350979);n(25963);var i=n(257057);let l=e=>(0,r.jsx)(i.A,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M4.47 20.9999H19.53C21.07 20.9999 22.03 19.3299 21.26 17.9999L13.73 4.98993C12.96 3.65993 11.04 3.65993 10.27 4.98993L2.74 17.9999C1.97 19.3299 2.93 20.9999 4.47 20.9999ZM12 13.9999C11.45 13.9999 11 13.5499 11 12.9999V10.9999C11 10.4499 11.45 9.99993 12 9.99993C12.55 9.99993 13 10.4499 13 10.9999V12.9999C13 13.5499 12.55 13.9999 12 13.9999ZM13 17.9999H11V15.9999H13V17.9999Z"})})},286844:(e,t,n)=>{"use strict";n.d(t,{G:()=>r.G});var r=n(289062)},296123:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(350979),i=n(976005),l=n.n(i),s=n(557423),o=n(995315),a=n(166351),d=n(118708),u=n(25963),c=n(259145),p=n(53670),h=n(365758),g=n(724152);let m=e=>{let{children:t,withIcon:n,onFocus:i,onPointerEnter:m,onPointerDown:x,...v}=e,{chainId:f}=(0,p.ax)(),[,y]=(0,d.fp)(p.ch),b=(0,u.useCallback)(()=>{(0,c.Yj)(f),y(!0)},[f,y]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.A,{onClick:b,onFocus:e=>{(0,h.Fs)(),null==i||i(e)},onPointerEnter:e=>{(0,h.Fs)(),null==m||m(e)},onPointerDown:e=>{(0,h.Fs)(),null==x||x(e)},...v,children:(0,r.jsxs)(o.A,{gap:"8px",justifyContent:"center",alignItems:"center",children:[t||(0,r.jsx)(g.A,{children:"Connect Wallet"})," ",n&&(0,r.jsx)(a.A,{color:"invertedContrast"})]})}),(0,r.jsx)(l(),{id:"91794b9e1f037d08",children:"w3m-modal{position:fixed;z-index:100000000}"})]})}},305791:(e,t,n)=>{"use strict";n.d(t,{a:()=>x,s:()=>m});var r=n(311560),i=n(859886),l=n(687287),s=n(656302),o=n(25963),a=n(452301),d=n(769932),u=n(608135),c=n(53670),p=n(954219),h=n(569019),g=n(696368);function m(e,t){let n,{account:m,chainId:x}=(0,c.W7)(),{independentField:v,typedValue:f}=(0,p.lD)(),{t:y}=(0,d.A)(),[,b]=(0,i.ek)(e,t),[A]=(0,h.Tz)(null!=m?m:void 0,(0,o.useMemo)(()=>[null==b?void 0:b.liquidityToken],[null==b?void 0:b.liquidityToken])),w=(null==b?void 0:b.liquidityToken)?null==A?void 0:A[`${b.liquidityToken.chainId}-${b.liquidityToken.address}`]:void 0,C=(0,s.A)(null==b?void 0:b.liquidityToken),[j,I]=[(0,a.dc)(e,x),(0,a.dc)(t,x)],k={[g.D.CURRENCY_A]:j,[g.D.CURRENCY_B]:I,[g.D.LIQUIDITY]:null==b?void 0:b.liquidityToken},T=b&&C&&w&&j&&C.quotient>=w.quotient?r.eF.fromRawAmount(j,b.getLiquidityValue(j,C,w,!1).quotient):void 0,E=b&&C&&w&&I&&C.quotient>=w.quotient?r.eF.fromRawAmount(I,b.getLiquidityValue(I,C,w,!1).quotient):void 0,S={[g.D.CURRENCY_A]:T,[g.D.CURRENCY_B]:E},U=v===g.D.LIQUIDITY?void 0:k[v],R=(0,l.dm)(f,U),N=new r.QE("0","100");if(v===g.D.LIQUIDITY_PERCENT)N=new r.QE(f,"100");else if(v===g.D.LIQUIDITY){if(null==b?void 0:b.liquidityToken){let e=(0,u.A)(f,b.liquidityToken);e&&w&&!e.greaterThan(w)&&(N=new r.QE(e.quotient,w.quotient))}}else if(k[v]){let e=S[v];R&&e&&!R.greaterThan(e)&&(N=new r.QE(R.quotient,e.quotient))}let D=w&&N&&N.greaterThan("0")?r.eF.fromRawAmount(w.currency,N.multiply(w.quotient).quotient):void 0,L=j&&N&&N.greaterThan("0")&&T?r.eF.fromRawAmount(j,N.multiply(T.quotient).quotient):void 0,_=I&&N&&N.greaterThan("0")&&E?r.eF.fromRawAmount(I,N.multiply(E.quotient).quotient):void 0,B={[g.D.LIQUIDITY_PERCENT]:N,[g.D.LIQUIDITY]:D,[g.D.CURRENCY_A]:L,[g.D.CURRENCY_B]:_};return m||(n=y("Connect Wallet")),B[g.D.LIQUIDITY]&&B[g.D.CURRENCY_A]&&B[g.D.CURRENCY_B]||(n=null!=n?n:y("Enter an amount")),{pair:b,parsedAmounts:B,error:n}}function x(){let e=(0,p.qK)();return{onUserInput:(0,o.useCallback)((t,n)=>{e((0,g.$)({field:t,typedValue:n}))},[e])}}},335403:(e,t,n)=>{"use strict";n.d(t,{D_:()=>r,Oy:()=>i,h5:()=>l});var r=function(e){return e[e.SWAP=0]="SWAP",e[e.MINT=1]="MINT",e[e.BURN=2]="BURN",e}({}),i=function(e){return e[e.V3=0]="V3",e[e.V2=1]="V2",e}({}),l=function(e){return e[e.daily=0]="daily",e[e.weekly=1]="weekly",e[e.monthly=2]="monthly",e}({})},408484:(e,t,n)=>{"use strict";n.d(t,{A:()=>
1o});var r=n(350979),i=n(764289),l=n.n(i);let s=(0,n(680797).I4)("a").withConfig({componentId:"sc-3d5a7506-0"})(["text-decoration:none;cursor:pointer;color:",";font-weight:500;&:hover{text-decoration:underline;}&:focus{outline:none;text-decoration:underline;}&:active{text-decoration:none;}"],e=>{let{theme:t}=e;return t.colors.primary}),o=e=>{let{children:t,...n}=e;return(0,r.jsx)(l(),{...n,children:(0,r.jsx)(s,{children:t})})}},475690:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h});var r=n(350979),i=n(25963),l=n(680797),s=n(428089),o=n(575058),a=n(796898),d=n(688104),u=n(312680),c=n(966983);let p=e=>{let{children:t,onDismiss:n,hideCloseButton:l,disableSwipeToDismiss:o,minHeight:d,...u}=e,{isMobile:p}=(0,a.A)(),h=(0,i.useRef)(null),g=(0,i.useRef)(null);return(0,i.useLayoutEffect)(()=>{let e=new ResizeObserver(e=>{for(let t of e){let{height:e}=t.contentRect;h.current&&(h.current.style.height=`${e}px`)}});return g.current&&e.observe(g.current),()=>{e.disconnect()}},[]),(0,r.jsx)(c.Bs,{drag:!!(p&&!(null!=o?o:l))&&"y",dragConstraints:{top:0,bottom:600},dragElastic:{top:0},dragSnapToOrigin:!0,onDragStart:()=>{h.current&&(h.current.style.animation="none")},onDragEnd:(e,t)=>{t.velocity.y>300&&n&&n()},ref:h,style:{overflow:"hidden",willChange:"height",transition:"height 0.3s cubic-bezier(.19,.23,.75,1.05)"},$minHeight:d,children:(0,r.jsx)(s.Ay,{ref:g,overflow:"hidden",borderRadius:"32px",...u,children:t})})},h=e=>{let{title:t,onDismiss:n,onBack:s,children:a,hideCloseButton:h=!1,disableSwipeToDismiss:g,headerPadding:m="12px 24px",bodyPadding:x="24px",headerBackground:v="transparent",minWidth:f="320px",minHeight:y="300px",headerRightSlot:b,bodyAlignItems:A,headerBorderColor:w,bodyTop:C="0px",...j}=e,I=(0,i.useContext)(u.rV),k=(null==I?void 0:I.onDismiss)||n,T=(0,l.DP)();return(0,r.jsxs)(p,{minWidth:f,minHeight:y,onDismiss:k,hideCloseButton:h,disableSwipeToDismiss:g,...j,children:[(0,r.jsxs)(c.rQ,{background:(0,d.A)(T,`colors.${v}`,v),style:{padding:m},headerBorderColor:w,children:[(0,r.jsxs)(c.wt,{children:[s&&(0,r.jsx)(c.jR,{onBack:s}),(0,r.jsx)(o.A,{children:t})]}),b,!h&&(0,r.jsx)(c.s_,{onDismiss:k,mb:"-4px"})]}),(0,r.jsx)(c.cw,{position:"relative",top:C,onPointerDownCapture:e=>e.stopPropagation(),p:x,style:{alignItems:null!=A?A:"normal"},children:a})]})}},546061:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(680797),i=n(428089);let l=(0,r.I4)(i.Ay).withConfig({componentId:"sc-c2f7f062-0"})(["border-radius:50%;border:2px solid ",";border-top:2px solid transparent;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);}}@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"],e=>{let{theme:t}=e;return t.colors.textDisabled});l.defaultProps={width:"20px",height:"20px"};let s=l},547725:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(350979);n(25963);var i=n(257057);let l=e=>(0,r.jsx)(i.A,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M8.13107 21.6744L6.67407 19.2732L3.95382 18.6542C3.68865 18.5964 3.47849 18.4659 3.32332 18.2629C3.16799 18.0601 3.10699 17.8241 3.14032 17.5549L3.39032 14.7657L1.53932 12.6897C1.36532 12.4784 1.27832 12.2484 1.27832 11.9999C1.27832 11.7514 1.36532 11.5215 1.53932 11.3102L3.39032 9.23419L3.14032 6.44493C3.10699 6.17577 3.16799 5.93977 3.32332 5.73693C3.47849 5.53393 3.68865 5.40352 3.95382 5.34569L6.67407 4.72669L8.13107 2.32544C8.26374 2.11427 8.45115 1.96519 8.69332 1.87819C8.93549 1.79119 9.1809 1.79535 9.42957 1.89069L11.9996 3.00369L14.5696 1.89069C14.8182 1.79535 15.0637 1.79119 15.3058 1.87819C15.548 1.96519 15.7354 2.11427 15.8681 2.32544L17.3251 4.72669L20.0453 5.34569C20.3105 5.40352 20.5207 5.53393 20.6758 5.73693C20.8312 5.93977 20.8922 6.17577 20.8588 6.44493L20.6088 9.23419L22.4598 11.3102C22.6338 11.5215 22.7208 11.7514 22.7208 11.9999C22.7208 12.2484 22.6338 12.4784 22.4598 12.6897L20.6088 14.7657L20.8588 17.5549C20.8922 17.8241 20.8312 18.0601 20.6758 18.2629C20.5207 18.4659 20.3105 18.5964 20.0453 18.6542L17.3251 19.2732L15.8681 21.6744C15.7354 21.8856 15.548 22.0347 15.3058 22.1217C15.0637 22.2087 14.8182 22.2045 14.5696 22.1092L11.9996 20.9962L9.42957 22.1092C9.1809 22.2045 8.93549 22.2087 8.69332 22.1217C8.45115 22.0347 8.26374 21.8856 8.13107 21.6744ZM11.9996 17.0032C12.2974 17.0032 12.5507 16.8988 12.7596 16.6899C12.9684 16.4811 13.0728 16.2278 13.0728 15.9299C13.0728 15.6321 12.9684 15.3777 12.7596 15.1667C12.5507 14.9559 12.2974 14.8504 11.9996 14.8504C11.7017 14.8504 11.4484 14.9559 11.2396 15.1667C11.0307 15.3777 10.9263 15.6321 10.9263 15.9299C10.9263 16.2278 11.0307 16.4811 11.2396 16.6899C11.4484 16.8988 11.7017 17.0032 11.9996 17.0032ZM11.9996 13.2119C12.2854 13.2119 12.5298 13.1104 12.7328 12.9074C12.9357 12.7046 13.0371 12.4603 13.0371 12.1744V8.11194C13.0371 7.8261 12.9357 7.58169 
112.7328 7.37869C12.5298 7.17585 12.2854 7.07443 11.9996 7.07443C11.7137 7.07443 11.4693 7.17585 11.2663 7.37869C11.0635 7.58169 10.9621 7.8261 10.9621 8.11194V12.1744C10.9621 12.4603 11.0635 12.7046 11.2663 12.9074C11.4693 13.1104 11.7137 13.2119 11.9996 13.2119Z",fill:"currentColor"})})},559180:(e,t,n)=>{"use strict";n.d(t,{H9:()=>p,k1:()=>v});var r=n(228876),i=n(311560),l=n(670420),s=n(760013),o=n.n(s),a=n(449229);let d={[r.nU.BSC]:"smartchain",[r.nU.ETHEREUM]:"ethereum",[r.nU.ARBITRUM_ONE]:"arbitrum",[r.nU.ZKSYNC]:"zksync",[r.nU.BASE]:"base",[r.nU.LINEA]:"linea",[r.nU.OPBNB]:"opbnb",[r.nU.MONAD_MAINNET]:"monad",[r.nU.ROBINHOOD]:"robinhood",[r.nU.ARC]:"arc"},u=o()(e=>e&&d[e.chainId]?`https://assets-cdn.trustwallet.com/blockchains/${d[e.chainId]}/assets/${(0,a.b)(e.address)}/logo.png`:null,e=>`${null==e?void 0:e.chainId}#${null==e?void 0:e.address}`),c=o()((e,t)=>e&&t&&d[t]?`https://assets-cdn.trustwallet.com/blockchains/${d[t]}/assets/${(0,a.b)(e)}/logo.png`:null,(e,t)=>`${t}#${e}`),p={[r.nU.BSC]:"",[r.nU.ETHEREUM]:"eth",[r.nU.ARBITRUM_ONE]:"arbitrum",[r.nU.ZKSYNC]:"zksync",[r.nU.LINEA]:"linea",[r.nU.BASE]:"base",[r.nU.OPBNB]:"opbnb",[r.nU.MONAD_MAINNET]:"monad",[r.nU.MONAD_TESTNET]:"monad-testnet",[r.nU.ROBINHOOD]:"robinhood",[r.nU.ARC]:"arc",[r.Cb.SOLANA]:"solana"},h=e=>{let t;if(!Object.keys(p).includes(String(e.chainId)))return null;if(e.chainId===r.Cb.SOLANA)t=e.address;else if(e.chainId===r.nU.ROBINHOOD)t=e.address.toLowerCase();else try{t=(0,a.b)(e.address)}catch{return null}return`https://tokens.pancakeswap.finance/images/${e.chainId===r.nU.BSC?"":`${p[e.chainId]}/`}${t}.png`},g=[l.E8.usdt,l.E8.usdc,l.x_.cake,l.x_.usdv,l.E8.wbtc,l.E8.weth,i.s6[r.nU.BSC],l.x_.busd,l.E8.dai].map(e=>{let{symbol:t}=e;return t}),m=o()(e=>x(null==e?void 0:e.symbol),e=>`logoUrls#${null==e?void 0:e.chainId}#${null==e?void 0:e.symbol}`),x=o()(e=>e&&g.includes(e)?`https://tokens.pancakeswap.finance/images/symbol/${e.toLocaleLowerCase()}.png`:void 0,e=>`logoUrls#symbol#${e}`);o()(function(e){let{useTrustWallet:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=u(null==e?void 0:e.wrapped),r=e?h(e.wrapped):null;return[m(e),t?n:void 0,r].filter(e=>!!e)},(e,t)=>{var n;return`logoUrls#${null==e?void 0:e.chainId}#${null==e||null==(n=e.wrapped)?void 0:n.address}#${t?JSON.stringify(t):""}`});let v=o()(function(e){let{useTrustWallet:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return[];let{chainId:n,address:r,symbol:i}=e,l=c(r,n),s=n&&r?h({chainId:n,address:r}):null;return[x(i),t?l:void 0,s].filter(e=>!!e)},(e,t)=>`logoUrls#${null==e?void 0:e.chainId}#${null==e?void 0:e.symbol}#${null==e?void 0:e.address}#${t?JSON.stringify(t):""}`)},568187:(e,t,n)=>{"use strict";function r(e,t){let[n,r="0"]=e.split("."),i=n.startsWith("-");if(i&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${r}`))&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>t){let[e,i,l]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],s=Math.round(Number(`${i}.${l}`));(r=s>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${s}`).length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${i?"-":""}${n}${r}`)}n.d(t,{X:()=>r})},604457:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(350979),i=n(131619),l=n(87242),s=n.n(l),o=n(326848),a=n(25963),d=n(18468),u=n(61315),c=n(257246);let p=()=>{var e,t;let n=(0,o.useRouter)(),[l,s]=n.query.currency||[],[d,p]=[null!=(e=(0,i.H2)(l))?e:void 0,null!=(t=(0,i.H2)(s))?t:void 0];(0,a.useEffect)(()=>{if(!n.isReady)return;let e=n.query.currency||[];if(0===e.length)return void n.replace("/pool");if(1===e.length){if(!h.test(e[0]))return void n.replace("/pool");let t=e[0].split("-");if(t.length>1){let[e,r]=t;n.replace(`/v2/remove/${e}/${r}`)}}},[n]);let g={currencyIdA:l,currencyIdB:s,currencyA:d,currencyB:p};return(0,r.jsx)(c.A,{children:(0,r.jsx)(u.TR,{...g,children:(0,r.jsx)(u.Ay,{...g})})})},h=/^(0x[a-fA-F0-9]{40})-(0x[a-fA-F0-9]{40})$/,g=s()(()=>Promise.resolve(p),{ssr:!1});g.chains=d.tx,g.screen=!0;let m=g},608998:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(530957),i=n(985148);
1let l=(0,n(781649).getLogger)("error-report");function s(e){let t,{asyncFn:n,maxRetries:s=3,delayMs:o=1e3,fallbackValue:a,errorReportKey:d,shared:u=!1,sharedTtlMs:c=6e4}=e,p=(0,i.eU)(0),h=(e,r)=>{if(!u)return n(e,r);let i=Date.now();if(t&&i-t.at<c)return t.promise;let l=n(e,new AbortController().signal).catch(e=>{throw(null==t?void 0:t.promise)===l&&(t=void 0),e});return t={at:i,promise:l},l},g=(0,i.eU)(async(e,t)=>{let{signal:n}=t;e(p);let i=0;for(;i<s;)try{return await h(e,n)}catch(e){if(d&&l.error(d,{reason:"Async function failed",message:e instanceof Error?e.message:String(e),stack:e instanceof Error?e.stack:void 0}),++i>=s){if(!(0,r.A)(a))try{if("function"==typeof a)return await a();return a}catch{return}throw e}await new Promise(e=>setTimeout(e,o))}throw Error("Retries exhausted")});return(0,i.eU)(e=>e(g),(e,n)=>{t=void 0,n(p,e=>e+1)})}},657168:(e,t,n)=>{"use strict";n.d(t,{i1:()=>I,$E:()=>k,II:()=>T});var r=n(350979),i=n(769932),l=n(995315),s=n(557423),o=n(796898),a=n(501823),d=n(428089),u=n(727353),c=n(605641),p=n(226464),h=n(525033);n(862373);var g=n(25963),m=n(733775),x=n(286844);n(775517);var v=n(772763),f=n(680797);let y=(0,f.Ay)(s.A).attrs({variant:"tertiary"}).withConfig({componentId:"sc-bf492518-0"})(["border-radius:",";height:",";color:",";border:",";"],e=>{let{theme:t}=e;return t.radii["12px"]},e=>{let{$height:t}=e;return null!=t?t:"40px"},e=>{let{theme:t,variant:n}=e;return"text"===n?t.colors.primary60:"text"},e=>{let{theme:t,variant:n}=e;
1return"text"===n?`2px solid ${t.colors.primary}`:""}),b=(0,f.Ay)(l.A).attrs({flexWrap:"wrap",gap:"4px"}).withConfig({componentId:"sc-6e208a1d-0"})(["background-color:",";border-radius:",";padding:1px;width:fit-content;box-shadow:",";"],e=>{let{theme:t}=e;return t.colors.input},e=>{let{theme:t}=e;return t.radii.default},e=>{let{theme:t}=e;return t.shadows.inset}),A=(0,f.Ay)(s.A).withConfig({componentId:"sc-6e208a1d-1"})(["height:48px;padding:0 8px;","{height:52px;padding:0 16px;}"],e=>{let{theme:t}=e;return t.mediaQueries.md}),w=(0,f.Ay)(x.G).attrs(e=>{let{theme:t}=e;return{bg:t.colors.inputSecondary}}).withConfig({componentId:"sc-6e208a1d-2"})(["margin:0 4px;"]);var C=function(e){return e.InvalidInput="InvalidInput",e}(C||{});let j=RegExp("^\\d*(?:\\\\[.])?\\d*$"),I=50,k=e=>{let t,{slippageTolerance:n,setSlippageTolerance:s,isAutoSlippageEnabled:h,setIsAutoSlippageEnabled:x}=e,[v,f]=(0,g.useState)(""),{isMobile:y}=(0,o.A)(),{t:C}=(0,i.A)(),k=""===v||(n/100).toFixed(2)===Number.parseFloat(v).toFixed(2);t=""===v||k?k&&n<50?"RiskyLow":k&&n>2e3?"RiskyVeryHigh":k&&n>100?"RiskyHigh":void 0:"InvalidInput";let T=e=>{if(""===e||j.test((0,m.Nt)(e))){f(e);try{let t=Number.parseInt((100*Number.parseFloat(e)).toString());!Number.isNaN(t)&&t<5e3&&s(t)}catch(e){console.error(e)}}};return(0,r.jsx)(l.A,{flexDirection:"column",gap:"24px",children:(0,r.jsxs)(a.A,{flexDirection:"column",children:[(0,r.jsxs)(b,{style:{flexWrap:y?"nowrap":"wrap"},children:[void 0!==x&&void 0!==h&&(0,r.jsx)(A,{scale:"sm",onClick:()=>{f(""),null==x||x(!0)},variant:h?"subtle":"light",children:C("Auto")}),(0,r.jsx)(A,{scale:"sm",onClick:()=>{f(""),s(10),null==x||x(!1)},variant:10!==n||h?"light":"subtle",children:"0.1%"}),(0,r.jsx)(A,{scale:"sm",onClick:()=>{f(""),s(50),null==x||x(!1)},variant:50!==n||h?"light":"subtle",children:"0.5%"}),(0,r.jsx)(A,{scale:"sm",onClick:()=>{f(""),s(100),null==x||x(!1)},variant:100!==n||h?"light":"subtle",children:"1.0%"}),(0,r.jsx)(a.A,{ml:"8px",pr:"8px",alignItems:"center",children:(0,r.jsxs)(d.Ay,{position:"relative",width:"82px",children:[(0,r.jsx)(u.A,{scale:"md",inputMode:"decimal",pattern:"^[0-9]*[.,]?[0-9]{0,2}$",placeholder:h?"Auto":(n/100).toFixed(2),value:v,onBlur:()=>{T((n/100).toFixed(2))},onChange:e=>{h&&(null==x||x(!1)),e.currentTarget.validity.valid&&T(e.target.value.replace(/,/g,"."))},isWarning:!k,isSuccess:![10,50,100].includes(n),style:{paddingRight:"28px"}}),(0,r.jsxs)(a.A,{position:"absolute",right:"8px",top:"8px",alignItems:"center",children:[(0,r.jsx)(w,{}),(0,r.jsx)(c.A,{color:"textSubtle",children:" %"})]})]})})]}),!h&&!!t&&(0,r.jsx)(p.A,{mt:"8px",variant:"InvalidInput"===t?"primary":"RiskyLow"===t||"RiskyHigh"===t?"warning":"danger",children:(0,r.jsxs)(c.A,{children:[C("InvalidInput"===t?"Enter a valid slippage percentage":"RiskyLow"===t?"Your transaction may fail":"Your transaction may be frontrun"),".",(0,r.jsx)("br",{}),(0,r.jsx)(c.A,{as:"button",role:"button",onClick:()=>{f(""),s(I)},style:{textDecoration:"underline",cursor:"pointer",display:"inline-block",background:"none",border:"none",padding:0},bold:!0,children:C("Reset slippage settings")})," ",C("to avoid potential loss"),"."]})})]})})},T=()=>{let{t:e}=(0,i.A)(),[t,n]=(0,v.d)(),[l,s]=(0,g.useState)(),[o,p]=(0,g.useState)(""),m=""===o||void 0!==t&&(Number(t)/60).toString()===o,x=void 0!==n&&void 0!==t,f=e=>{try{let t=60*Number.parseInt(e);!Number.isNaN(t)&&t>60&&t<259200?null==n||n(t):s("InvalidInput")}catch(e){console.error(e)}};return(0,g.useEffect)(()=>{""===o||m?s(void 0):s("InvalidInput")},[o,m]),x&&(0,r.jsxs)(d.Ay,{children:[(0,r.jsxs)(a.A,{alignItems:"center",children:[(0,r.jsx)(c.A,{children:e("Tx deadline")}),(0,r.jsx)(h.PT,{text:e("Your transaction will revert if it is left confirming for longer than this time."),placement:"top",ml:"4px"})]}),(0,r.jsxs)(a.A,{alignItems:"center",children:[(0,r.jsxs)(d.Ay,{position:"relative",width:"128px",mt:"4px",children:[(0,r.jsx)(u.A,{scale:"md",inputMode:"numeric",pattern:"^[0-9]+$",isWarning:!!l,placeholder:(Number(t)/60).toString(),value:o,onChange:e=>{e.currentTarget.validity.valid&&p(e.target.value)},onBlur:e=>{e.currentTarget.validity.valid&&f(e.target.value)},style:{paddingRight:"48px"}}),(0,r.jsxs)(a.A,{position:"absolute",right:"8px",top:"8px",alignItems:"center",children:[(0,r.jsx)(w,{}),(0,r.jsx)(c.A,{color:"textSubtle",children:e("Mins")})]})]}),(0,r.jsx)(y,{ml:"8px",mt:"3px",variant:"text",scale:"sm",onClick:()=>{p(""),f("20")},children:e("Reset")})]})]})}}
1,689612:(e,t,n)=>{"use strict";n.d(t,{K:()=>l});var r=n(459247),i=n(425576);function l(e){let t=(0,i._Q)(),n=(0,i.lh)(),l=!1;return function(s){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l||(l=!0,(0,r.yU)("core_data_operation",()=>({...o,operation:e,outcome:s,duration_ms:Math.round((0,i.lh)()-n),start_ms:Math.round(n-t.started_at_ms),completed_ms:Math.round((0,i.lh)()-t.started_at_ms)}),void 0,t))}}},698612:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r.Y});var r=n(550062)},724152:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(421770).x},768159:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(228876);let i=[r.nU.BSC,r.nU.ETHEREUM]},774900:(e,t,n)=>{"use strict";n.d(t,{D$:()=>o,L1:()=>l.L1,pg:()=>a,uP:()=>l.uP});var r=n(913076),i=n(573536),l=n(169516);let s={async onResponse(e){let{response:t}=e;if(t.status>=400){var n;throw Error((null==(n=t.headers.get("content-type"))?void 0:n.includes("json"))?await t.clone().json():await t.clone().text())}}},o=(0,i.Ay)({baseUrl:"https://explorer.pancakeswap.com/api"});o.use(s),o.use({onRequest(e){let{request:t}=e;return r.o.request(t)}});let a=(0,i.Ay)({baseUrl:"https://sol-explorer.pancakeswap.com/api"});a.use(s)},775517:(e,t,n)=>{"use strict";n.d(t,{eF:()=>O,Nt:()=>_,Az:()=>B,jw:()=>M});var r=n(350979),i=n(987212),l=n(734658),s=n(862373),o=n(985148),a=n(118708),d=n(656862),u=n(863064),c=n(25963),p=n(387165),h=n(228876),g=n(311560),m=n(91168),x=n(899188),v=n(53670),f=n(662928),y=n(126294),b=n(518400),A=n(419041),w=n(155018);let C=new g.QE(50,1e4),j=new g.QE(10,1e4),I=e=>!!e&&x.e6.includes(e),k=e=>null!=e&&"gasUseEstimate"in e&&!("orderInfo"in e),T=(e,t)=>e&&"number"==typeof t?new m.g(e.toString()).multipliedBy(t):void 0,E=(e,t)=>e&&t?parseFloat(e.toFixed(0))/10**t.decimals:void 0,S=(e,t)=>new g.QE(Math.floor(e/t*1e4),1e4),U=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;return e.greaterThan(new g.QE(n,1e4))?new g.QE(n,1e4):e.lessThan(new g.QE(t,1e4))?new g.QE(t,1e4):e};function R(e){var t,n;let{chainId:r}=(0,v.ax)(),i=I(r),l=(0,b.YW)(),s=(0,A.Ay)(r),o=null==e?void 0:e.currency,a=(0,w.r0)(o,{enabled:!!(null==e?void 0:e.greaterThan(0))}),d=(0,c.useMemo)(()=>E(T(null==l?void 0:l.toString(),2e5),s),[l,s]),u=(0,w.h1)(s,d,{enabled:!!(null==e?void 0:e.greaterThan(0))}),{data:p}=(0,f.I)({queryKey:["input-based-auto-slippage",null==e||null==(t=e.wrapped)?void 0:t.toExact(),null==a||null==(n=a.wrapped)?void 0:n.toSignificant(),u],queryFn:()=>{if(!e||i)return{inputBasedSlippage:C,inputDollarValue:void 0};let t=null==e?void 0:e.toSignificant(6),n=t&&a?parseFloat(t)*parseFloat(a.toSignificant(6)):void 0;return n&&u?{inputBasedSlippage:U(S(u,n)),inputDollarValue:n}:{inputBasedSlippage:C,inputDollarValue:void 0}},placeholderData:y.rX,staleTime:1/0,gcTime:0});return null!=p?p:{inputBasedSlippage:C,inputDollarValue:void 0}}let N=(0,d.tG)("pcs:auto-slippage-enabled-2",!0),D=(0,o.eU)(50),L=()=>(0,a.fp)(D),_=()=>(0,a.fp)(N);function B(){let[e]=_(),[t]=(0,s.uZ)(),[n]=L();return(0,c.useMemo)(()=>e?{slippageTolerance:n,isAuto:!0}:{slippageTolerance:t,isAuto:!1},[e,n,t])}let M=e=>{let[t]=_(),[n]=(0,s.uZ)(),{inputBasedSlippage:r}=R((null==e?void 0:e.currency)&&l.xx.isSPLToken(e.currency)?void 0:e);return(0,c.useMemo)(()=>t&&e&&r?{slippageTolerance:Number(r.numerator),isAuto:!0}:{slippageTolerance:n,isAuto:!1},[t,e,r,n])},O=e=>{let{children:t}=e;return(0,r.jsxs)(r.Fragment,{children:[t,(0,r.jsx)(c.Suspense,{fallback:null,children:(0,r.jsx)($,{})})]})},$=()=>{var e,t,n,r,l;let s=(0,u.Z)(),o=(0,c.useRef)(null==s||null==(e=s.bestOrder)?void 0:e.trade),a=(0,c.useMemo)(()=>{var e,t,n,r,i,l,a,d,u,c,h,g,m,x,v,f,y,b,A,w,C,j,I,k;return!(0,p.mI)(null==s?void 0:s.bestOrder)&&!!o.current&&!!(null==s||null==(e=s.bestOrder)?void 0:e.trade)&&(null==(a=o.current)||null==(l=a.inputAmount)||null==(i=l.currency)?void 0:i.equals(null==s||null==(r=s.bestOrder)||null==(n=r.trade)||null==(t=n.inputAmount)?void 0:t.currency))&&(null==(m=o.current)||null==(g=m.outputAmount)||null==(h=g.currency)?void 0:h.equals(null==s||null==(c=s.bestOrder)||null==(u=c.trade)||null==(d=u.outputAmount)?void 0:d.currency))&&(null==(x=o.current)?void 0:x.tradeType)===(null==s||null==(f=s.bestOrder)||null==(v=f.trade)?void 0:v.tradeType)&&(null==(w=o.current)||null==(A=w.inputAmount)?void 0:A.equalTo(null==s||null==(b=s.bestOrder)||null==(y=b.trade)?void 0:y.inputAmount))&&(null==(k=o.current)||null==(I=k.outputAmount)?void 0:I.equalTo(null==s||null==(j=s.bestOrder)||null==(C=j.trade)?void 0:C.outputAmount))},[null==s?void 0:s.bestOrder]),d=function(e){var t,n,r,i,l,s,o;let{chainId:a}=(0,v.ax)(),d=I(a),{inputBasedSlippage:u,inputDollarValue:p}=R(null==e?void 0:e.inputAmount),g=null==e||null==(t=e.outputAmount)?void 0:t.currency,m=(0,w.r0)(g,{enabled:!!(null==e||null==(n=e.outputAmount)?void 0:n.greaterThan(0))}),x=(0,b.YW)(),j=(0,A.Ay)(a),N=(0,c.useMemo)(()=>a&&!!a&&(a===h.nU.ETHEREUM||a===h.nU.BSC),[a]),D=2e5*!!e,L=k(e)&&(null==(r=e.gasUseEstimateBase)?void 0:r.greaterThan(0))?e.gasUseEstimateBase.currency:void 0,_=(0,w.r0)(L,{enabled:!!e}),B=(0,c.useMemo)(()=>E(T(null==x?void 0:x.toString(),D),j),[x,D,j]),M=(0,w.h1)(j,B,{enabled:!!(null==e||null==(i=e.outputAmount)?void 0:i.greaterThan(0))}),O=(0,c.useMemo)(()=>{let t=((e,t,n)=>{var r;if(!e||!t)return null;if(k(t)){let e=t.gasUseEstimateBase;return(null==e?void 0:e.greaterThan(0))&&n?parseFloat(e.toSignificant(6))*parseFloat(n.toSignificant(6)):null}return"orderInfo"in t?.5:"gasEstimateInUSD"in t?"string"==typeof t.gasEstimateInUSD?parseFloat(t.gasEstimateInUSD):Number(null==(r=t.gasEstimateInUSD)?void 0:r.toSignificant(6)):null})(!!N,e,_);return N&&t?t:M},[N,M,_,e]),{data:$}=(0,f.I)({queryKey:["classic-auto-slippage",null==e||null==(s=e.outputAmount)||null==(l=s.wrapped)?void 0:l.toExact(),null==m||null==(o=m.wrapped)?void 0:o.toSignificant(),O],queryFn:()=>{var t;if(!e||d)return C;let n=null==e||null==(t=e.outputAmount)?void 0:t.toSignificant(6),r=n&&m?parseFloat(n)*parseFloat(m.toSignificant(6)):void 0;if(r&&O){let e=U(S(O,r));return p&&Math.abs(p-r)>.05*r&&e.lessThan(u)?u:e}return console.log("Auto Slippage: Using DEFAULT_AUTO_SLIPPAGE because missing outputDollarValue or dollarCostToUse"),C},placeholderData:y.rX,staleTime:1/0,gcTime:0});return null!=$?$:C}((null==s||null==(t=s.bestOrder)?void 0:t.type)===i.ZN.PCS_SVM||null==s||null==(n=s.bestOrder)?void 0:n.trade),g=(null==s||null==(r=s.bestOrder)?void 0:r.type)===i.ZN.DUTCH_LIMIT?j:d,[,m]=L(),x=(0,c.useCallback)(()=>{g&&m(Number(g.numerator))},[g,m]);return(0,c.useEffect)(()=>
1{if(!a){var e;o.current=null==s||null==(e=s.bestOrder)?void 0:e.trade,x()}},[a,x,null==s||null==(l=s.bestOrder)?void 0:l.trade]),null}},863064:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(118708),i=n(157852);let l=()=>(0,r.md)(i.Hq)},868491:(e,t,n)=>{"use strict";n.d(t,{w:()=>g});var r=n(273523),i=n(25299),l=n(120319),s=n(660193),o=n(661742),a=n(781649),d=n(339819),u=n(98646);let c=(0,d.U)(["error WrappedError(address target, bytes4 selector, bytes reason, bytes details)"]),p=(0,a.getLogger)("tx-error");function h(e){let t=[],n=e=>{"string"==typeof e&&e&&t.push(e)};e instanceof l.C&&e.walk(e=>{var t;return n(null==e?void 0:e.signature),n(null==e?void 0:e.raw),n(null==e?void 0:e.data),n(null==e||null==(t=e.data)?void 0:t.data),n(null==e?void 0:e.details),n(null==e?void 0:e.shortMessage),!1});let r=e,i=0;for(;r&&i<10;){var s,o,a,d;n(r.signature),n(r.raw),n("string"==typeof r.data?r.data:null==(s=r.data)?void 0:s.data),n(r.details),n(r.message),r=null!=(d=null!=(a=r.cause)?a:r.error)?d:null==(o=r.data)?void 0:o.originalError,i+=1}return t.join(" ")}function g(e,t,n){let l,a=e,d=(0,o.rM)(e);if(d)d instanceof s.Ci?p.info("Network request failed",{url:d.url,status:d.status,cause:d.cause,stack:d.stack}):(l=d.details||d.shortMessage||d.message,p.error("Viem error",{reason:l,cause:d.cause,stack:d.stack}));else{for(;e;){var g,m,x,v,f,y;l=null!=(f=null!=(v=null!=(x=e.reason)?x:null==(g=e.data)?void 0:g.message)?v:e.message)?f:l,e=null!=(y=e.error)?y:null==(m=e.data)?void 0:m.originalError}p.error("Other error",{reason:l})}(null==l?void 0:l.indexOf("execution reverted: "))===0&&(l=l.substring(20));let b=h(a),A=function(e){var t;let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if("0x8b4b22cf"===e.toLowerCase())return"not-enabled";if("0x60f964a5"===e.toLowerCase())return"not-started";if(!(t>=4))try{let r=(0,u.W)({abi:c,data:e});return n(r.args[2],t+1)}catch{return}};for(let r of null!=(t=e.match(/0x[\da-f]+/gi))?t:[]){let e=n(r);if(e)return e}return/\bPoolNotEnabled\b/.test(e)?"not-enabled":/\bPoolNotStarted\b/.test(e)?"not-started":void 0}(b);if("not-enabled"===A)return t("This pool is not enabled. Please contact the hook administrator.");if("not-started"===A)return t("This pool has not started. Only authorized pool owners can perform this action before it starts.");
1if(/0x486aa307\b|\bPoolNotInitialized\b/i.test(b))return t("PoolNotInitialized: The pool has not been initialized. Please check the pool configuration.");let w=(0,i.qJ)(b);if(w)switch(p.info("B20 revert",{name:w.name,feature:w.feature}),w.name){case"PolicyForbids":return t("The token issuer restricts transfers for one of the addresses in this trade. This token may not be available in your region.");case"ContractPaused":return t("TRANSFER"===w.feature?"Transfers of this token are temporarily paused by its issuer. Please try again later.":"This token is temporarily paused by its issuer. Please try again later.");case"SupplyCapExceeded":return t("This trade would exceed the token's maximum supply.");default:return t("The token issuer's configuration is preventing this trade. Please try again later.")}let C=(0,r.U$)(h(a));if(C)return p.info("Infinity position manager revert",{name:C.name}),t("The price moved beyond your slippage tolerance between quote and confirmation. This is expected slippage protection working correctly, not an error — please increase your slippage tolerance and try again.");let j=e=>[e,`(${l})`].join(" ");switch(l){case"PancakeRouter: EXPIRED":return j(t("The transaction could not be sent because the deadline has passed. Please check that your transaction deadline is not too low."));case"PancakeRouter: INSUFFICIENT_OUTPUT_AMOUNT":case"PancakeRouter: EXCESSIVE_INPUT_AMOUNT":case"PancakeRouter: INSUFFICIENT_A_AMOUNT":case"PancakeRouter: INSUFFICIENT_B_AMOUNT":case"swapMulti: incorrect user balance":case"Pancake: K":return j(t("This transaction will not succeed either due to price movement or fee on transfer. Try increasing your slippage tolerance."));case"TransferHelper: TRANSFER_FROM_FAILED":return j(t("The input token cannot be transferred. There may be an issue with the input token."));case"Pancake: TRANSFER_FAILED":return j(t("The output token cannot be transferred. There may be an issue with the output token."));case"Too little received":case"Too much requested":case"STF":return t("This transaction will not succeed due to price movement. Try increasing your slippage tolerance. Note: fee on transfer and rebase tokens are incompatible with Pancakeswap V3.");case"TF":return t("The output token cannot be transferred. There may be an issue with the output token. Note: fee on transfer and rebase tokens are incompatible with Pancakeswap V3.");case"The requested account and/or method has not been authorized by the user.":return t("TransactionExecutionError: The requested account and / or method has not been authorised by the user. Please make sure your wallet is updated to the latest version.");default:if((null==l?void 0:l.indexOf("undefined is not an object"))!==-1)return console.error(e,l),t("An error occurred when trying to execute this operation. You may need to increase your slippage tolerance. If that does not work, there may be an incompatibility with the token you are trading.");return n||t("Unknown error%reason%. Try increasing your slippage tolerance.",{reason:l?`: "${l}"`:""})}}},890398:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(680797).I4.span.withConfig({componentId:"sc-824b89d8-0"})(["&::after{display:inline-block;animation:ellipsis 1.25s infinite;content:'.';width:1em;text-align:left;}@keyframes ellipsis{0%{content:'.';}33%{content:'..';}66%{content:'...';}}"])},913076:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});class r{static shouldUsePreview(){return!1}static url(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.origin,n=new URL(e);if(["explorer.pancakeswap.com","qa-explorer.pancakeswap.com"].includes(n.hostname)&&(n.hostname=r.shouldUsePreview()?"qa-explorer.pancakeswap.com":"explorer.pancakeswap.com"),r.shouldUsePreview()&&t&&n.origin!==t){let e=new URL(`/api/explorer${n.pathname.replace(/^\/api/,"")}`,t);return e.search=n.search,e}return r.shouldUsePreview()&&n.searchParams.set("preview","1"),n}static request(e){return new Request(r.url(e.url),e)}static fetch(e,t){return fetch(r.url(e),t)}}},933752:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(350979),i=n(25963),l=n(796147),s=n(605641),o=n(892977),a=n(557423),d=n(698612),u=n(769932),c=n(214885),p=n(810286),h=n(320669),g=n(696368),m=n(150103),x=n(262453),v=n(133018),f=n(687287);let y=e=>{let{title:t,onDismiss:n,customOnDismiss:y,attemptingTxn:b,pair:A,hash:w,approval:C,signatureData:j,pendingText:I,parsedAmounts:k,allowedSlippage:T,onRemove:E,liquidityErrorMessage:S,tokenA:U,tokenB:R,currencyA:N,currencyB:D}=e,{t:L}=(0,u.A)(),_=(0,f.wG)(N),B=(0,f.wG)(D),M=(0,i.useCallback)(()=>{var e,t;return(0,r.jsxs)(l.mm,{gap:"md",children:[k[g.D.CURRENCY_A]&&(0,r.jsxs)(h.JA,{align:"flex-end",children:[(0,r.jsx)(p.g3,{amount:k[g.D.CURRENCY_A],fontSize:"24px",children:null!=(e=_(k[g.D.CURRENCY_A],6))?e:"-"}),(0,r.jsxs)(h.Bp,{gap:"4px",children:[(0,r.jsx)(m.Zm,{currency:N,size:"24px"}),(0,r.jsx)(s.A,{fontSize:"24px",ml:"10px",children:null==N?void 0:N.symbol})]})]}),k[g.D.CURRENCY_A]&&k[g.D.CURRENCY_B]&&(0,r.jsx)(h.Bp,{children:(0,r.jsx)(o.A,{width:"16px"})}),k[g.D.CURRENCY_B]&&(0,r.jsxs)(h.JA,{align:"flex-end",children:[(0,r.jsx)(p.g3,{amount:k[g.D.CURRENCY_B],fontSize:"24px",children:null!=(t=B(k[g.D.CURRENCY_B],6))?t:"-"}),(0,r.jsxs)(h.Bp,{gap:"4px",children:[(0,r.jsx)(m.Zm,{currency:D,size:"24px"}),(0,r.jsx)(s.A,{fontSize:"24px",ml:"10px",children:null==D?void 0:D.symbol})]})]}),(0,r.jsx)(s.A,{small:!0,textAlign:"left",pt:"12px",children:L("Output is estimated. If the price changes by more than %slippage%% your transaction will revert.",{slippage:T/100})})]})},[T,N,D,k,L,_,B]),O=(0,i.useCallback)(()=>{var e,t,n;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(h.JA,{children:[(0,r.jsx)(s.A,{children:L("%assetA%/%assetB% Burned",{assetA:null!=(t=null==N?void 0:N.symbol)?t:"",assetB:null!=(n=null==D?void 0:D.symbol)?n:""})}),(0,r.jsxs)(h.Bp,{children:[(0,r.jsx)(m.gz,{currency0:N,currency1:D,margin:!0}
1),(0,r.jsx)(s.A,{children:null==(e=k[g.D.LIQUIDITY])?void 0:e.toSignificant(6)})]})]}),A&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(h.JA,{children:[(0,r.jsx)(s.A,{children:L("Price")}),(0,r.jsxs)(s.A,{children:["1 ",null==N?void 0:N.symbol," = ",(0,v.C)(A,U)," ",null==D?void 0:D.symbol]})]}),(0,r.jsxs)(h.JA,{children:[(0,r.jsx)("div",{}),(0,r.jsxs)(s.A,{children:["1 ",null==D?void 0:D.symbol," = ",(0,v.C)(A,R)," ",null==N?void 0:N.symbol]})]})]}),(0,r.jsx)(a.A,{width:"100%",mt:"20px",disabled:C!==x.h$.APPROVED&&null===j,onClick:E,children:L("Confirm")})]})},[N,D,k,C,E,A,U,R,L,j]),$=(0,i.useCallback)(()=>(0,r.jsx)(d.Y,{topContent:M,bottomContent:O}),[M,O]);return(0,r.jsx)(c.A,{title:t,onDismiss:n,customOnDismiss:y,attemptingTxn:b,hash:w,errorMessage:S,content:$,pendingText:I})}},947963:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/v2/remove/[[...currency]]",function(){return n(604457)}])}},e=>{e.O(0,[3821,5139,7578,3732,4306,4374,3892,2845,7121,7061,9596,2141,524,7212,1480,6335,4711,9818,7635,64,8269,6283,5018,9508,4712,7287,8686,8837,6010,4522,4586,2911,7094,1456,636,6593,8792],()=>e(e.s=947963)),_N_E=e.O()}]);

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.