1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4463],{551:(e,t,s)=>{s.d(t,{z:()=>o});var n=s(12115),l=s(3289),a=s(48902),r=s(10702);let i=e=>e[1];function o(e){let{markets:t,getMarket:s=i,isVisible:o,partitionArchived:c=!1}=e,[d,u]=(0,n.useState)([]),m=(0,n.useCallback)(()=>{u([])},[]),x=(0,n.useMemo)(()=>(0,a.HD)(t,s),[t,s]),h=(0,n.useMemo)(()=>d.includes(l.T)?[]:0===d.length?t:(0,a.KI)(t,d,s),[t,d,s]),p=(0,n.useMemo)(()=>o?h.filter(e=>{let[,t]=e;return o(t)}):h,[h,o]),{displayedMarkets:f,archivedMarkets:b}=(0,n.useMemo)(()=>{if(!c)return{displayedMarkets:p,archivedMarkets:[]};let{active:e,archived:t}=function(e){let t=[],s=[];for(let n of e)(0,r.f)(n[1])?s.push(n):t.push(n);return{active:t,archived:s}}(p);return{displayedMarkets:e,archivedMarkets:t}},[p,c]);return{chainFilterSelected:d,setChainFilterSelected:u,clearChainFilter:m,chainOptions:x,chainFilteredMarkets:h,displayedMarkets:f,archivedMarkets:b}}},3289:(e,t,s)=>{s.d(t,{T:()=>m,V:()=>x});var n=s(95155),l=s(79576),a=s(96059),r=s(33065),i=s(28968),o=s(45748),c=s(15239),d=s(22095),u=s(52759);let m="__none__";function x(e){var t,s;let{label:x,options:h,value:p,onChange:f,allLabel:b="All",className:g="",groupLabel:v,minWidthClass:j="min-w-[235px]",maxHeightClass:w="max-h-60",optionIconSizePx:N=22}=e,y=p.includes(m),E=!y&&(0===p.length||p.length===h.length),k=y?[]:0===p.length?h:h.filter(e=>p.includes(e.id)),C=E?b:y?"0 selected":1===p.length&&null!=(s=null==(t=h.find(e=>e.id===p[0]))?void 0:t.label)?s:"".concat(p.length," selected");return(0,n.jsx)("div",{className:"".concat(j," ").concat(g),children:(0,n.jsxs)(l.WF,{value:k,onChange:e=>{0===e.length?f([m]):e.length===h.length?f([]):f(e.map(e=>e.id))},multiple:!0,by:(e,t)=>e.id===t.id,children:[(0,n.jsxs)(l.go,{className:"w-full flex items-center justify-between gap-2 px-3 py-2 bg-white/85 backdrop-blur-sm text-[#1E4775] border border-[#1E4775]/20 rounded-md focus:border-[#1E4775]/40 focus:ring-1 focus:ring-[#1E4775]/20 focus:outline-none text-sm cursor-pointer data-[disabled]:opacity-50",children:[(0,n.jsxs)("span",{className:"text-[#1E4775]/70 text-xs shrink-0",children:[x,":"]}),(0,n.jsx)("span",{className:"font-medium truncate",children:C}),(0,n.jsx)(a.A,{className:"w-5 h-5 text-[#1E4775]/60 shrink-0 data-[open]:rotate-180 transition-transform"})]}),(0,n.jsxs)(l.wh,{modal:!1,anchor:{to:"bottom start",gap:2},className:"z-50 w-full ".concat(j," min-w-0 ").concat(d.KA," border border-[#1E4775]/20 rounded-md shadow-lg overflow-hidden overflow-y-auto outline-none [width:var(--button-width)] ").concat(w),children:[v&&(0,n.jsx)("div",{className:"px-4 py-2 bg-[#1E4775]/5 text-xs font-semibold text-[#1E4775]/70 uppercase tracking-wider",children:v}),(0,n.jsxs)("div",{className:"grid grid-cols-2 border-b border-[#1E4775]/10 text-xs",children:[(0,n.jsx)("div",{className:"flex justify-center py-1.5",children:(0,n.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),f([])},className:"text-[#1E4775] font-medium",children:"Select all"})}),(0,n.jsx)("div",{className:"flex justify-center py-1.5",children:(0,n.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),f([m])},className:"text-[#1E4775] font-medium",children:"Deselect all"})})]}),h.map(e=>{var t,s;let a=e.iconUrl?e.iconUrl.startsWith("/")?e.iconUrl:"/".concat(e.iconUrl):null;return(0,n.jsxs)(l.h7,{value:e,className:"group flex cursor-pointer items-center gap-2 px-4 py-2 text-left data-[focus]:bg-[#1E4775]/5 data-[selected]:bg-[#1E4775]/10",children:["long"===e.prefix&&(0,n.jsx)(r.A,{className:"w-5 h-5 shrink-0",style:{color:"#6ED6B5",strokeWidth:2.5}}),"short"===e.prefix&&(0,n.jsx)(i.A,{className:"w-5 h-5 shrink-0",style:{color:"#E67A6B",strokeWidth:2.5}}),e.networkId?(0,n.jsx)("span",{className:"w-5 h-5 flex shrink-0 items-center justify-center",children:(0,n.jsx)(u.A,{name:e.networkId,size:20,variant:"branded"})}):a?(0,n.jsx)(c.default,{src:a,alt:"",width:null!=(t=e.iconSizePx)?t:N,height:null!=(s=e.iconSizePx)?s:N,className:"shrink-0 rounded-full object-contain"}):(0,n.jsx)("span",{className:"w-5 h-5 shrink-0"}),(0,n.jsx)("span",{className:"min-w-0 flex-1 font-medium text-[#1E4775]",children:e.label}),(0,n.jsx)(o.A,{className:"hidden w-4 h-4 shrink-0 text-[#1E4775] group-data-[selected]:block"})]},e.id)})]})]})})}},4342:(e,t,s)=>{function n(e){let{supportedAssets:t,swapAssets:s=[],collateralOnly:n,isMegaEth:l,nativeTokenLabel:a}=e,r=[];return t.length>0&&r.push({label:n?l?"Collateral (MegaETH)":"Collateral":"Supported Assets",tokens:t.map(e=>{var t;
1return{symbol:e.symbol,name:l&&(null==(t=e.symbol)?void 0:t.toUpperCase())==="ETH"?a:e.name}})}),!n&&s.length>0&&r.push({label:"Other Tokens (via Swap)",tokens:s.map(e=>{var t;return{symbol:e.symbol,name:e.name,isUserToken:null==(t=e.isUserToken)||t}})}),r}function l(e,t){let s=new Set(t.map(e=>e.symbol.toUpperCase()));return e.filter(e=>!s.has(e.symbol.toUpperCase()))}s.d(t,{F:()=>n,p:()=>l})},5761:(e,t,s)=>{s.d(t,{PL:()=>a,lq:()=>l,o_:()=>r,te:()=>n,uL:()=>i}),s(14111);let n="pt-3 pb-3 flex flex-col lg:flex-row lg:items-center lg:justify-between gap-3 flex-wrap lg:flex-nowrap",l="".concat(n," border-t border-white/10"),a="flex flex-col gap-2 sm:flex-row sm:flex-nowrap sm:items-center",r="inline-flex items-center rounded-none px-2 py-0.5 text-sm font-semibold uppercase tracking-wide whitespace-nowrap bg-[#E67A6B]/15 text-[#F5D4CC]",i="mt-1 mb-2 rounded-xl border border-white/15 bg-[#0a1628]/50 px-4 py-4 sm:px-5 sm:py-5 shadow-[0_8px_32px_-12px_rgba(0,0,0,0.45)] backdrop-blur-sm"},5830:(e,t,s)=>{s.d(t,{G:()=>d});var n=s(95155),l=s(12115),a=s(4520),r=s(62111),i=s(1473),o=s(814),c=s(64269);function d(e){let{className:t,label:s="Connect wallet"}=e,[d,u]=(0,l.useState)(!1),{isConnected:m}=(0,a.F)(),{reset:x}=(0,r.L)();return(0,l.useEffect)(()=>{m&&u(!1)},[m]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",onClick:()=>{x(),u(!0)},className:(0,c.cn)(o.W9,t),children:s}),d?(0,n.jsx)(i.$,{onClose:()=>{x(),u(!1)},onConnected:()=>u(!1)}):null]})}},8133:(e,t,s)=>{s.d(t,{$j:()=>d,BX:()=>a,Ie:()=>r,UC:()=>i,YU:()=>o,a2:()=>m,eM:()=>u,l0:()=>l,wc:()=>c});let n={deposit:"Deposit",withdraw:"Withdraw",depositCollateralAmount:"Deposit Collateral & Amount",rewardToken:"Reward token",stabilityPool:"Stability pool",review:"Review"};function l(){return["Amount"]}function a(){return["Amount"]}function r(){return["Amount"]}function i(){return["Amount"]}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e?1===t?["Mint"]:["Mint",n.review]:1===t?["Mint"]:2===t?["Mint",n.deposit]:["Mint",n.deposit,n.review]}function c(e){return e?[n.withdraw]:[n.withdraw,"Redeem"]}function d(e){var t,s;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null!=(t=l.confirmLabel)?t:"Confirm",r=null!=(s=l.includeRouteStep)&&s;return 1===e?["Choose position"]:r?2===e?["Choose position",a]:3===e?["Choose position",a,"Redeem to"]:["Choose position",a,"Redeem to",n.review]:2===e?["Choose position",a]:["Choose position",a,n.review]}function u(){return["Redeem"]}function m(e){let t=[n.depositCollateralAmount];return e.mintOnly||(e.skipRewardStep||t.push(n.rewardToken),t.push(n.stabilityPool)),t}},12459:(e,t,s)=>{s.d(t,{G:()=>a});var n=s(95155),l=s(814);function a(e){var t;let{receiveAmount:s,receiveSymbol:a,receiveUsd:r,receiveLabel:i="You will receive",sourceLine:o,emptyMessage:c="Enter an amount to see what you'll receive.",statusMessage:d,statusVariant:u="default",receiveAmountTitle:m,fees:x,totalFeeUsd:h,bonus:p,bannerMessage:f,trailingRows:b}=e,g=null!==s&&"..."!==s&&s.length>0,v=!!(null==x?void 0:x.length)||!!p||void 0!==h&&h>0||!!(null==b?void 0:b.length);return(0,n.jsxs)("div",{className:l.zs,children:[(0,n.jsx)("label",{className:l.uZ,children:"Transaction Overview"}),(0,n.jsxs)("div",{className:l.bi,children:[f?(0,n.jsx)("div",{className:"mb-2 rounded-lg border border-red-200 bg-red-50 p-2 text-xs text-red-700",children:f}):null,g?(0,n.jsxs)("div",{className:l.yg,children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("div",{className:"text-xs font-medium text-[#1E4775]/55",children:i}),o?(0,n.jsx)("div",{className:"mt-0.5 truncate text-[10px] leading-tight text-[#1E4775]/40",children:o}):null]}),(0,n.jsxs)("div",{className:"shrink-0 text-right",children:[(0,n.jsxs)("div",{className:"font-mono text-sm font-semibold leading-tight tabular-nums text-[#1E4775]/85",title:m,children:[s," ",a]}),void 0!==r&&r>0?(0,n.jsxs)("div",{className:"font-mono text-[10px] text-[#1E4775]/45",children:["$",r.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})]}):null]})]}),v?(0,n.jsxs)("div",{className:l.oO,children:[null==x?void 0:x.map(e=>{var t;return(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,n.jsxs)("span",{className:"text-[#1E4775]/50",children:[e.label,e.hint?(0,n.jsxs)("span",{className:"text-[#1E4775]/35",children:[" \xb7 ",e.hint]}):null]}),(0,n.jsxs)("span",{className:"font-mono tabular-nums ".concat(e.percentage>2?"font-semibold text-red-600":"font-medium text-[#1E4775]/70"),children:[e.percentage<=0?"Free":"".concat(e.percentage.toFixed(2),"%"),void 0!==e.usd&&e.usd>
10?" \xb7 $".concat(e.usd.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})):""]})]},"".concat(e.label,"-").concat(null!=(t=e.hint)?t:""))}),void 0!==h&&h>0&&(null!=(t=null==x?void 0:x.length)?t:0)>1?(0,n.jsxs)("div",{className:"mt-0.5 flex items-center justify-between gap-2 border-t border-[#1E4775]/8 pt-1.5",children:[(0,n.jsx)("span",{className:"font-medium text-[#1E4775]/55",children:"Total fees"}),(0,n.jsxs)("span",{className:"font-mono font-medium tabular-nums text-[#1E4775]/75",children:["$",h.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})]})]}):null,p?(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2 text-green-700/80",children:[(0,n.jsx)("span",{children:"Bonus"}),(0,n.jsxs)("span",{className:"font-mono font-medium tabular-nums",children:[p.percentage.toFixed(2),"%"]})]}):null,null==b?void 0:b.map((e,t)=>{var s,l;let a=(null!=(s=null==x?void 0:x.length)?s:0)>0||!!p||void 0!==h&&h>0&&(null!=(l=null==x?void 0:x.length)?l:0)>1;return(0,n.jsxs)("div",{className:"flex items-start justify-between gap-2".concat(t>0||a?" border-t border-[#1E4775]/8 pt-1.5":""),children:[(0,n.jsx)("span",{className:e.emphasize?"font-medium text-[#1E4775]/70":"text-[#1E4775]/50",children:e.label}),(0,n.jsxs)("span",{className:"shrink-0 text-right",children:[(0,n.jsx)("span",{className:"font-mono tabular-nums ".concat(e.emphasize?"font-semibold text-[#1E4775]":"font-medium text-[#1E4775]/70"),children:e.value}),e.secondary?(0,n.jsx)("span",{className:"mt-0.5 block font-mono text-[10px] text-[#1E4775]/45",children:e.secondary}):null]})]},e.label)})]}):null]}):(0,n.jsx)("div",{className:"text-[11px] leading-snug ".concat("error"===u?"text-red-600":"text-[#1E4775]/55"),children:null!=d?d:c})]})]})}},12696:(e,t,s)=>{s.d(t,{_:()=>m});var n=s(95155);s(12115);var l=s(64269),a=s(22095),r=s(814),i=s(90368);function o(e){let{onCollapse:t,children:s}=e;return(0,n.jsxs)("div",{className:"shrink-0 border-b border-[#1E4775]/15 bg-[#f8fafc]",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-2.5 pb-1",children:[(0,n.jsx)("button",{type:"button",onClick:t,className:"inline-flex h-7 w-7 items-center justify-center rounded-md text-[#1E4775]/70 transition hover:bg-[#1E4775]/10 hover:text-[#1E4775]","aria-label":"Collapse notifications",children:(0,n.jsx)(i.A,{className:"h-4 w-4","aria-hidden":!0})}),(0,n.jsx)("span",{className:"text-sm font-semibold text-[#1E4775]",children:"Notifications"})]}),(0,n.jsx)("div",{className:"space-y-2 px-3 pb-3",children:s})]})}var c=s(85998),d=s(43571);
1function u(e){let{count:t=0,active:s=!1,onClick:l,badgeSeverity:a="navy",className:r=""}=e;return(0,n.jsxs)("button",{type:"button",onClick:l,className:"relative inline-flex h-8 w-8 items-center justify-center rounded-md text-[#1E4775]/70 transition hover:bg-[#1E4775]/8 hover:text-[#1E4775] ".concat(s?"bg-[#1E4775]/10 text-[#1E4775]":""," ").concat(r).trim(),"aria-expanded":s,"aria-label":t>0?"Notifications, ".concat(t," alert").concat(1===t?"":"s"):"Notifications",children:[(0,n.jsx)(c.A,{className:"h-4 w-4","aria-hidden":!0}),t>0?(0,n.jsx)("span",{className:"absolute -right-0.5 -top-0.5 flex h-4 min-w-[1rem] items-center justify-center rounded-full px-1 text-[10px] font-bold ".concat(d._Y[a]),children:t>9?"9+":t}):null]})}function m(e){var t;let{isOpen:s,onClose:i,title:c,tabs:m,notifications:h,children:p,closeDisabled:f=!1,closeTitle:b,panelClassName:g="",contentClassName:v="",banner:j,header:w,headerClassName:N="",variant:y="modal"}=e;if(!s)return null;let E=null!=j||null!=w;return"inline"===y?(0,n.jsxs)("div",{className:(0,l.cn)("flex min-h-0 flex-1 flex-col",g),children:[(0,n.jsx)("div",{className:"shrink-0",children:m}),(0,n.jsx)("div",{className:(0,l.cn)("flex min-h-0 flex-1 flex-col",v),children:p})]}):(0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-end justify-center px-2 pt-2 pb-[max(env(safe-area-inset-bottom),0.5rem)] sm:items-center sm:px-4 sm:py-4",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:i,"aria-hidden":!0}),(0,n.jsxs)("div",{className:(0,l.cn)("relative isolate flex flex-col animate-in fade-in-0 scale-in-95 duration-200",r.i7,a.GM,"overflow-hidden rounded-xl",r.ln,g),children:[E?(0,n.jsxs)(n.Fragment,{children:[j?(0,n.jsx)("div",{className:(0,l.cn)("relative z-10 shrink-0 overflow-hidden rounded-t-xl border-b border-[#1E4775]/15",a.ko),children:j}):null,(0,n.jsxs)("div",{className:(0,l.cn)("relative z-20 flex w-full items-center justify-between border-b border-[#1E4775]/20",j&&a.ko,N||(j?"pt-1.5 sm:pt-2 pb-0 pl-[5px] pr-2 sm:pr-3":"p-0 pt-2 sm:pt-3 px-2 sm:px-3")),children:[(0,n.jsx)("div",{className:"min-w-0 flex-1 mr-2 sm:mr-4",children:w}),(0,n.jsx)(x,{onClose:i,disabled:f,title:b})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:(0,l.cn)("relative z-20 flex shrink-0 items-center justify-between gap-2 border-b border-[#1E4775]/15 px-3 py-2.5 sm:px-4",a.ko),children:[(0,n.jsx)("h2",{className:"flex min-w-0 flex-1 items-center truncate text-sm font-bold leading-snug tracking-tight text-[#1E4775] sm:text-base",children:c}),(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[h?(0,n.jsx)(u,{count:h.count,active:h.expanded,onClick:h.onToggle,badgeSeverity:(0,d.e4)(null!=(t=h.badgeSeverities)?t:["navy"])}):null,(0,n.jsx)(x,{onClose:i,disabled:f,title:b})]})]}),(null==h?void 0:h.expanded)?(0,n.jsx)(o,{onCollapse:h.onToggle,children:h.children}):null,(0,n.jsx)("div",{className:(0,l.cn)("relative z-20 shrink-0 border-b border-[#1E4775]/20 px-2 pt-1.5 sm:px-3",a.ko),children:m})]}),(0,n.jsx)("div",{className:(0,l.cn)(r.A4,v),children:p})]})]})}function x(e){let{onClose:t,disabled:s,title:l}=e;return(0,n.jsx)("button",{type:"button",onClick:t,className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-[#1E4775]/50 transition hover:bg-[#1E4775]/8 hover:text-[#1E4775] touch-target","aria-label":"Close modal",title:l,disabled:s,children:(0,n.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":!0,children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})})})}},15947:(e,t,s)=>{s.d(t,{n:()=>a});var n=s(12115);let l={steps:[],currentStepIndex:0,isOpen:!1,title:""};function a(){let[e,t]=(0,n.useState)(l.steps),s=(0,n.useRef)(e);s.current=e;let[a,r]=(0,n.useState)(l.currentStepIndex),[i,o]=(0,n.useState)(l.isOpen),[c,d]=(0,n.useState)(l.title),u=(0,n.useCallback)(function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t(e),r(n),d(s),o(!0)},[]),m=(0,n.useCallback)(()=>{o(!0)},[]),x=(0,n.useCallback)(()=>{o(!1)},[]),h=(0,n.useCallback)(()=>{t(l.steps),r(l.currentStepIndex),o(l.isOpen),d(l.title)},[]),p=(0,n.useCallback)((e,s,n)=>{t(t=>{let l=t.map(t=>
1t.id===e?{...t,...s}:t);if((null==n?void 0:n.advanceOnComplete)&&"completed"===s.status){let e=l.findIndex(e=>"completed"!==e.status);r(-1===e?l.length-1:e)}return l})},[]),f=(0,n.useCallback)(e=>{let t=s.current.findIndex(t=>t.id===e);t>=0&&r(t)},[]),b=(0,n.useCallback)(e=>{t(t=>{let s="function"==typeof e?e(t):e,n=Array.isArray(s)?s:s.steps,l=Array.isArray(s)?void 0:s.currentStepIndex;return void 0!==l?r(l):"function"!=typeof e&&r(0),n})},[]);return{steps:e,currentStepIndex:a,isOpen:i,title:c,open:u,show:m,close:x,reset:h,updateStep:p,goToStep:f,setCurrentStepIndex:r,setSteps:b}}},21573:(e,t,s)=>{s.d(t,{R:()=>i});var n=s(95155),l=s(12115),a=s(90368),r=s(814);function i(e){let{parts:t,activeIndex:s,onStepClick:i,onBack:o}=e;if(0===t.length)return null;let c=void 0===s?t.length-1:Math.min(Math.max(s,0),t.length-1);return(0,n.jsxs)("div",{className:r.DO,children:[(0,n.jsx)("div",{className:"flex justify-start",children:c>0&&(null!=o?o:i)?(0,n.jsx)("button",{type:"button",onClick:()=>{if(o)return void o();i&&c>0&&i(c-1)},className:"inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-md text-[#1E4775] transition hover:bg-[#1E4775]/8 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E4775]/25","aria-label":"Go back one step",children:(0,n.jsx)(a.A,{className:"h-3.5 w-3.5","aria-hidden":!0})}):(0,n.jsx)("span",{className:"inline-block h-5 w-5 shrink-0","aria-hidden":!0})}),(0,n.jsx)("div",{className:"flex min-w-0 flex-wrap items-center justify-center gap-x-1 gap-y-0 text-center text-xs leading-tight",children:t.map((e,t)=>{let s=t===c,a=t<c;return(0,n.jsxs)(l.Fragment,{children:[t>0?(0,n.jsx)("span",{className:"px-0.5 font-semibold text-harbor-coral/80","aria-hidden":!0,children:"âº"}):null,i&&a?(0,n.jsx)("button",{type:"button",onClick:()=>null==i?void 0:i(t),className:"rounded-md px-1 py-0.5 font-medium text-[#1E4775]/55 transition hover:bg-[#1E4775]/8 hover:text-[#1E4775] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E4775]/25",children:e}):(0,n.jsx)("span",{className:s?"px-1 font-bold text-[#1E4775]":a?"px-1 font-medium text-[#1E4775]/55":"px-1 font-medium text-[#1E4775]/35","aria-current":s?"step":void 0,children:e})]},"".concat(t,"-").concat(e))})}),(0,n.jsx)("span",{className:"inline-block h-5 w-5 shrink-0","aria-hidden":!0})]})}},21904:(e,t,s)=>{s.d(t,{a:()=>a});var n=s(12115);async function l(e){let{isConnected:t,connectedChainId:s,marketChainId:n=1,switchChain:l,onSwitchRejected:a}=e;if(!t||s===n)return!0;try{return await l({chainId:n}),!0}catch(e){return null==a||a(e),!1}}function a(e){let{isConnected:t,connectedChainId:s,switchChain:a,setManageModal:r,logLabel:i="Market"}=e;return(0,n.useCallback)(async e=>{var n,i;let o=null!=(i=null==(n=e.market)?void 0:n.chainId)?i:1;await l({isConnected:t,connectedChainId:s,marketChainId:o,switchChain:a,onSwitchRejected:e=>{}})&&r(e)},[s,t,i,r,a])}},23759:(e,t,s)=>{s.d(t,{T:()=>u});var n=s(12115),l=s(22454),a=s(4520),r=s(44457);let i=["usdc","fxusd","fxsave"],o=["steth","wsteth"];async function c(e,t){try{let s=await e.getCode({address:t});if(!s||"string"!=typeof s)return!1;let n=s.toLowerCase().replace(/^0x/,"");return n.length>0&&!/^0+$/.test(n)}catch(e){return!1}}var d=s(92017);function u(){var e;let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],s="boolean"==typeof t?{enabled:t}:t,{isPermitCapable:u,disableReason:m,isLoading:x}=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],{enabled:t=!0,depositAssetSymbol:s,tokenCheckMode:n="strict"}="boolean"==typeof e?{enabled:e}:e,{address:d,isConnected:u}=(0,a.F)(),m=(0,r.e)(),{data:x=!1,isLoading:h}=(0,l.I)({queryKey:["permitCapability",d,null==m?void 0:m.uid],queryFn:async()=>!!m&&!!d&&c(m,d),enabled:t&&!!m&&!!d&&u,staleTime:6e4,retry:1}),p=!!s&&function(e){if(!e||!e.trim())return!1;let t=e.toLowerCase().trim();return!o.includes(t)&&!!(i.includes(t)||t.startsWith("hs")||t.startsWith("ha"))}(s);return{isPermitCapable:"optimistic"===n||!x||p,isSmartContractWallet:x,isLoading:h,disableReason:"optimistic"===n?null:x&&!p?"Permit is not supported with smart contract or delegated
1wallets for this token. Use approval instead.":null}}(s),{handlePermitOrApproval:h}=(0,d.F)(),p=null==(e=s.defaultEnabled)||e,[f,b]=(0,n.useState)(p);return(0,n.useEffect)(()=>{u?p&&b(!0):b(!1)},[u,p]),{isPermitCapable:u,disableReason:m,isLoading:x,handlePermitOrApproval:h,permitEnabled:f,setPermitEnabled:b}}},26424:(e,t,s)=>{s.d(t,{RA:()=>u,qU:()=>c,sR:()=>d,wj:()=>m});var n=s(22454),l=s(65028),a=s(80149);let r="https://apiv5.paraswap.io",i="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",o=new Map;async function c(e,t){if("ETH"===e)return 18;let s=e.toLowerCase();if(o.has(s))return o.get(s);try{let n=await t.readContract({address:e,abi:a.iA,functionName:"decimals"}),l=Number(n);return o.set(s,l),l}catch(t){return console.warn("Failed to fetch decimals for ".concat(e,", defaulting to 18")),o.set(s,18),18}}function d(e,t,s){let a=!(arguments.length>3)||void 0===arguments[3]||arguments[3],o=arguments.length>4?arguments[4]:void 0,c=arguments.length>5?arguments[5]:void 0,d=!!(a&&s&&parseFloat(s||"0")>0&&e&&t);return(0,n.I)({queryKey:["paraswapQuote",e,t,s,o,c],queryFn:async()=>{var n;if(!s||0>=parseFloat(s))throw Error("Invalid amount");let a="ETH"===e?i:e.toLowerCase(),d="ETH"===t?i:t.toLowerCase(),u=null!=o?o:18,m=null!=c?c:"ETH"===t?18:6,x=(0,l.X)(s,u),h="".concat(r,"/prices"),p=new URLSearchParams({srcToken:a,destToken:d,amount:x.toString(),srcDecimals:u.toString(),destDecimals:m.toString(),side:"SELL",network:"1"});console.log("[ParaSwap] Fetching swap quote:",{fromToken:a,toToken:d,amount:s,amountInWei:x.toString(),srcDecimals:u,destDecimals:m,url:"".concat(h,"?").concat(p.toString())});let f=await fetch("".concat(h,"?").concat(p.toString()),{headers:{Accept:"application/json"}});if(!f.ok){let e=await f.text();throw console.error("[ParaSwap] API error:",e),Error("Failed to fetch swap quote: ".concat(e))}let b=await f.json();console.log("[ParaSwap] Swap quote received:",b);let g=b.priceRoute,v=BigInt(g.srcAmount),j=BigInt(g.destAmount),w=[];null==(n=g.bestRoute)||n.forEach(e=>{var t;null==(t=e.swaps)||t.forEach(e=>{var t;null==(t=e.swapExchanges)||t.forEach(e=>{e.exchange&&!w.includes(e.exchange)&&w.push(e.exchange)})})});let N=j*BigInt(Math.round(30))/10000n;return{fromToken:e,toToken:t,fromAmount:v,toAmount:j,estimatedGas:BigInt(g.gasCost||"150000"),slippage:.5,priceImpact:.1,route:w.length>0?w:["ParaSwap"],fee:.3,feeAmount:N}},enabled:d,staleTime:1e4,refetchInterval:15e3,retry:2})}async function u(e,t,s,n){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:18,o=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,d="ETH"===e?i:e.toLowerCase(),u="ETH"===t?i:t.toLowerCase(),m=null!=o?o:"ETH"===t?18:6,x="".concat(r,"/prices"),h=new URLSearchParams({srcToken:d,destToken:u,amount:s.toString(),srcDecimals:a.toString(),destDecimals:m.toString(),side:"SELL",network:"1"});(null==c?void 0:c.route)&&h.set("route",c.route),console.log("[ParaSwap] Fetching price route for transaction:",{fromToken:d,toToken:t,amount:s.toString(),fromAddress:n,url:"".concat(x,"?").concat(h.toString())});let p=await fetch("".concat(x,"?").concat(h.toString()),{headers:{Accept:"application/json"}});if(!p.ok){let e=await p.text();throw console.error("[ParaSwap] Price API error:",e),Error("Failed to get price route: ".concat(e))}let f=await p.json(),b="".concat(r,"/transactions/").concat(1),g={srcToken:d,destToken:u,srcAmount:f.priceRoute.srcAmount,priceRoute:f.priceRoute,userAddress:n.toLowerCase(),slippage:Math.floor(100*l)};console.log("[ParaSwap] Building transaction:",g);let v=await fetch(b,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(g)});if(!v.ok){let e=await v.text();throw console.error("[ParaSwap] Transaction API error:",e),Error("Failed to build swap transaction: ".concat(e))}let j=await v.json();if(console.log("[ParaSwap] Transaction built:",j),!j||!j.to||!j.data)throw console.error("[ParaSwap] Invalid transaction response:",j),Error("Invalid transaction data from ParaSwap: ".concat(JSON.stringify(j)));return{to:j.to,data:j.data,value:BigInt(j.value||"0"),gas:BigInt(j.gas||f.priceRoute.gasCost||"150000")}}async function m(e,t,s,n){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:18,r=arguments.length>6?arguments[6]:void 0,i=arguments.length>7?arguments[7]:void 0;try{return await u(e,t,s,n,l,a,r,i)}catch(e){return null}}},28035:(e,t,s)=>{s.d(t,{j:()=>a});var n=s(95155);s(12115);let l={info:{wrapper:"bg-blue-50 border-blue-200 text-blue-700",icon:"bg-blue-600 text-white"},success:{wrapper:"bg-green-50 border-green-200 text-green-700",icon:"bg-green-600 text-white"}
1,warning:{wrapper:"bg-amber-50 border-amber-200 text-amber-700",icon:"bg-amber-600 text-white"},pearl:{wrapper:"bg-[#FFF1E5] border-[#F3C7A6] text-[#8A4B20]",icon:"bg-[#D57A3D] text-white"}},a=e=>{let{tone:t="info",icon:s,title:a,children:r}=e,i=l[t];return(0,n.jsx)("div",{className:"rounded-md p-2.5 border text-xs ".concat(i.wrapper),children:(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[null!=s?s:(0,n.jsx)("span",{className:"w-4 h-4 flex items-center justify-center rounded-full text-[10px] font-bold mt-0.5 ".concat(i.icon),children:"!"}),(0,n.jsxs)("div",{children:[a&&(0,n.jsx)("span",{className:"font-semibold",children:a})," ",r]})]})})}},31648:(e,t,s)=>{s.d(t,{Uu:()=>a});var n=s(95155);let l="container mx-auto px-4 pb-6 pt-2 sm:px-10 sm:pt-4";function a(e){let{children:t,mainClassName:s}=e;return(0,n.jsx)("div",{className:"flex min-h-0 flex-1 flex-col text-white max-w-[1300px] mx-auto font-sans relative w-full",children:(0,n.jsx)("main",{className:s?"".concat(l," ").concat(s):l,children:t})})}},34215:(e,t,s)=>{s.d(t,{d:()=>l});var n=s(95155);function l(e){let{title:t,subtitle:s,titleAccentSuffix:l,featuredHero:a}=e,r=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex items-center justify-center px-4 pt-2 pb-1 sm:pt-3 sm:pb-1",children:(0,n.jsxs)("h1",{className:"".concat("font-bold font-mono text-white text-5xl sm:text-6xl md:text-7xl leading-[1.05]"," text-center"),children:[(0,n.jsx)("span",{className:"text-white",children:t}),l?(0,n.jsxs)("span",{className:"text-white whitespace-nowrap",children:[" ",l]}):null]})}),s?(0,n.jsx)("div",{className:"flex items-center justify-center px-4 pb-1 mt-1 sm:mt-2",children:(0,n.jsx)("p",{className:"text-white/85 text-lg sm:text-xl text-center max-w-2xl leading-snug font-medium tracking-tight",children:s})}):null]});return a?(0,n.jsx)("div",{className:"mb-3 flex flex-col",children:(0,n.jsx)("div",{className:"mx-auto w-full max-w-4xl rounded-2xl border border-white/15 bg-gradient-to-b from-white/[0.12] via-white/[0.04] to-transparent px-1 pt-1 pb-0.5 shadow-[0_0_40px_-12px_rgba(255,138,122,0.35)] sm:px-2",children:r})}):(0,n.jsx)("div",{className:"mb-2 flex flex-col",children:r})}},34898:(e,t,s)=>{s.d(t,{Mx:()=>l,PZ:()=>i,TB:()=>m,Uk:()=>r,V0:()=>u,VK:()=>o,ay:()=>d,g_:()=>c,lY:()=>a});var n=s(45725);let l=n.aC,a=n.oG,r=n.gk,i=n.nn,o=n.lh,c=n.oE,d=n.lh,u=n.aC,m=n.oE},36407:(e,t,s)=>{s.d(t,{S:()=>n});function n(e,t,s,n){if(!e||e<=0||!Number.isFinite(e))return 0;let l=function(e,t,s){var n,l;let a=null!=(n=null==e?void 0:e.toLowerCase())?n:"",r=null!=(l=null==s?void 0:s.toLowerCase())?l:"",{ethPrice:i=0,wstETHPrice:o=0,fxSAVEPrice:c=1.08,peggedPriceUSD:d=0,leveragedPriceUSD:u=0,collateralPriceUSD:m=0}=t;return"eth"===a||"weth"===a?i:"wsteth"===a||"steth"===a?o>0?o:i:"fxsave"===a?c:"usdc"===a||"fxusd"===a?1:a.startsWith("ha")?a.includes("haeth")?i||d:d>0?d:0:a.startsWith("hs")?u>0?u:"fxsave"===r||"fxusd"===r||a.includes("fxusd")?c:0:m>0&&("fxsave"===a||"wsteth"===a||"steth"===a||"fxusd"===a)?m:0}(t,s,n);return l>0?e*l:0}},40571:(e,t,s)=>{s.d(t,{I:()=>c});var n=s(95155);function l(e){switch(e.kind){case"connect":return"Connect wallet";case"enter_amount":var t;return null!=(t=e.label)?t:"Enter an amount";case"exceeds_balance":return"Insufficient balance";case"submit":return e.label;case"retry":return"Try again"}}var a=s(5830),r=s(814),i=s(64269);function o(e){let{action:t,onSubmit:s,onRetry:o,className:c}=e;if("connect"===t.kind)return(0,n.jsx)(a.G,{className:(0,i.cn)(r.W9,c),label:l(t)});let d=l(t),u="enter_amount"===t.kind||"exceeds_balance"===t.kind,m=r.wY;if("submit"===t.kind){let e="submit"===t.kind&&t.variant?t.variant:"mint";m="navy"===e?r.qH:"coral"===e?r.Re:r.W9}else"retry"===t.kind&&(m=r.Me);return(0,n.jsx)("button",{type:"button",onClick:"retry"===t.kind?o:s,disabled:u,className:(0,i.cn)(m,c),children:d})}function c(e){let{layout:t="modal",feeFooter:s,actionHint:l,action:a,onSubmit:i,onRetry:c,onCancel:d,showCancel:u=!1,cancelLabel:m="Cancel"}=e;return(0,n.jsxs)("div",{className:r.J7,children:[s,l?(0,n.jsx)("p",{className:"text-center text-[10px] leading-snug text-[#1E4775]/45",children:l}):null,(0,n.jsxs)("div",{className:"modal"===t?"flex gap-3":"w-full",children:[u&&d?(0,n.jsx)("button",{type:"button",onClick:d,className:r.AG,children:m}):null,(0,n.jsx)("div",{className:"modal"===t?"min-w-0 flex-1":"w-full",children:(0,n.jsx)(o,{action:a,onSubmit:i,onRetry:c,className:"w-full"})})]})]})}},41510:(e,t,s)=>{s.d(t,{Bg:()=>r,Gj:()=>i,M4:()=>c,QZ:()=>l,WK:()=>o,d3:()=>m,g$:()=>a,il:()=>u,s5:()=>d});var n=s(70827);let l="".concat(n.s3," ").concat(n.Zn," overflow-hidden relative"),a="absolute inset-y-0 left-0 w-[3px]",r="flex flex-col gap-0 px-3 sm:px-4",i="flex min-h-[2.75rem] w-full items-center gap-2.5",o="text-xs font-semibold uppercase tracking-normal text-white/80",c="flex h-8 w-8 shrink-0 items-center justify-center rounded-full border bg-[#0a1929]/55 backdrop-blur-md",d="px-3 pb-2.5 pt-0 sm:px-4 sm:pb-3",u="".concat(c," border-harbor-coral/25 text-harbor-coral"),m="bg-harbor-coral"},43571:(e,t,s)=>{s.d(t,{_Y:()=>l,e4:()=>a});let n={navy:0,green:1,amber:2,coral:3},l={navy:"bg-[#1E4775] text-white",green:"bg-green-100 text-green-700",amber:"bg-amber-100 text-amber-800",coral:"bg-[#FF8A7A]/20 text-[#FF8A7A]"};function a(e){return 0===e.length?"navy":e.reduce((e,t)=>
1n[t]>n[e]?t:e,"navy")}},48902:(e,t,s)=>{s.d(t,{HD:()=>a,KI:()=>r});var n=s(22029);function l(e){var t;return(null==(t=e.chain)?void 0:t.name)||"Ethereum"}function a(e,t){let s=new Set,a=[];return e.forEach(e=>{var r;let i=t(e),o=l(i);if(s.has(o))return;s.add(o);let c=(null==(r=i.chain)?void 0:r.logo)||"icons/eth.png",d=(0,n.F)(o);a.push({id:o,label:o,iconUrl:d?void 0:c.startsWith("/")?c:"/".concat(c),networkId:d})}),a.sort((e,t)=>e.label.localeCompare(t.label))}function r(e,t,s){return 0===t.length?e:e.filter(e=>t.includes(l(s(e))))}},50942:(e,t,s)=>{s.d(t,{Q:()=>a});var n=s(95155);s(12115);var l=s(22095);function a(e){let{tabs:t,activeTab:s,onTabChange:a,disabled:r=!1,tabDisabled:i}=e;return(0,n.jsx)("div",{className:"flex w-full gap-1 rounded-md bg-[#1E4775] p-0.5",children:t.map(e=>{let{value:t,label:o,subtitle:c}=e,d=s===t;return(0,n.jsxs)("button",{onClick:()=>a(t),disabled:r||(null==i?void 0:i[t]),className:"flex flex-1 flex-col items-center justify-center rounded-md py-1.5 sm:py-2 transition-colors touch-target ".concat(d?l.W2:"text-white hover:bg-white/20"," disabled:cursor-not-allowed disabled:opacity-50"),children:[(0,n.jsx)("span",{className:"text-xs font-medium sm:text-sm",children:o}),c?(0,n.jsx)("span",{className:"text-[9px] font-normal leading-tight sm:text-[10px] ".concat(d?"text-[#1E4775]/55":"text-white/55"),children:c}):null]},t)})})}},52371:(e,t,s)=>{s.d(t,{q:()=>n});function n(e){var t;let s=null!=(t=null==e?void 0:e.chainId)?t:1,n=4326===s,l=n?"Mega ETH":"ETH";if(!e)return{supportsZapper:1===s,supportsAnyswap:1===s,collateralOnly:1!==s,nativeTokenLabel:l,isMegaEth:n};let a=void 0!==e.zapper?e.zapper:1===s,r=void 0!==e.anyswap?e.anyswap:1===s;return{supportsZapper:a,supportsAnyswap:r,collateralOnly:!a&&!r,nativeTokenLabel:l,isMegaEth:n}}},55229:(e,t,s)=>{s.d(t,{K:()=>a,R:()=>l});var n=s(12115);function l(e){let t=arguments.length>
11&&void 0!==arguments[1]?arguments[1]:6e4,[s,l]=(0,n.useState)(null),[a,r]=(0,n.useState)(!0),[i,o]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(!e){l(null),r(!1);return}let s=!1,n=null,a=async()=>{r(!0),o(null);try{let t=await fetch("/api/coingecko/simple-price?ids=".concat(encodeURIComponent(e)));if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let n=await t.json();if(s)return;n[e]&&n[e].usd?l(n[e].usd):(o("Price data for ".concat(e," not found.")),l(null))}catch(e){if(s)return;o(e.message||"Failed to fetch price"),l(null)}finally{if(s)return;r(!1)}};return a(),t>0&&(n=setInterval(a,t)),()=>{s=!0,n&&clearInterval(n)}},[e,t]),{price:s,isLoading:a,error:i}}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6e4,[s,l]=(0,n.useState)({}),[a,r]=(0,n.useState)(!0),[i,o]=(0,n.useState)(null),c=(0,n.useRef)("");return(0,n.useEffect)(()=>{let s=0===e.length?"":e.slice().sort().join(",");if(s===c.current)return;if(c.current=s,0===e.length){l(e=>0===Object.keys(e).length?e:{}),r(e=>!e&&e);return}let n=!1,a=null,i=null,d=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;performance.now(),r(!0),o(null);try{let s=e.join(","),a=await fetch("/api/coingecko/simple-price?ids=".concat(encodeURIComponent(s)));if(performance.now(),!a.ok){if(429===a.status&&t<3){let e=Math.min(1e3*Math.pow(2,t),1e4);if(n)return;i=setTimeout(()=>{d(t+1)},e),r(!1);return}throw Error("HTTP error! status: ".concat(a.status))}let o=await a.json();if(n)return;let c={};e.forEach(e=>{var t;c[e]=(null==(t=o[e])?void 0:t.usd)||null}),performance.now(),l(t=>{let s={...t};return e.forEach(e=>{null!==c[e]&&void 0!==c[e]&&(s[e]=c[e])}),s})}catch(e){if(n)return;o(e.message||"Failed to fetch prices")}finally{if(n)return;r(!1)}};return d(),t>0&&(a=setInterval(()=>{d(0)},t)),()=>{n=!0,a&&clearInterval(a),i&&clearTimeout(i)}},[e,t]),{prices:s,isLoading:a,error:i}}},58444:(e,t,s)=>{s.d(t,{uB:()=>a,RU:()=>i.RU,nO:()=>i.nO});var n=s(95155);s(12115);var l=s(91288);function a(e){let{label:t,address:s,chainId:a,className:i="",showLabel:o=!0}=e;if(!s)return null;let c=(0,l.yh)(s,a);return(0,n.jsxs)("div",{className:"flex justify-between items-center text-xs py-0.5 border-b border-[#1E4775]/20 last:border-b-0 ".concat(i),children:[o&&(0,n.jsx)("span",{className:"text-[#1E4775]/70",children:t}),(0,n.jsxs)("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-[#1E4775] hover:underline flex items-center gap-1",children:["".concat(s.slice(0,6),"...").concat(s.slice(-4)),(0,n.jsx)(r,{className:"h-3 w-3"})]})]})}function r(e){let{className:t}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:t,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})}s(26310),s(45725),s(74915),s(31648),s(99798),s(76021),s(32580),s(14111),s(4480),s(9460),s(34215),s(5761);var i=s(64901)},59231:(e,t,s)=>{s.d(t,{AL:()=>o,Z_:()=>i,hi:()=>r});var n=s(95155),l=s(12115);let a=(0,l.createContext)(null);function r(e){var t;let{children:s}=e,[r,i]=(0,l.useState)(null),[o,c]=(0,l.useState)(null),[d,u]=(0,l.useState)(!1),m=(0,l.useRef)(null);m.current=null!=(t=null==r?void 0:r.id)?t:null;let x=(0,l.useCallback)(e=>{let t={id:e.id,count:e.count,badgeSeverities:e.badgeSeverities};i(e=>!function(e,t){var s,n;if(!e||e.id!==t.id||e.count!==t.count)return!1;let l=null!=(s=e.badgeSeverities)?s:[],a=null!=(n=t.badgeSeverities)?n:[];return l.length===a.length&&l.every((e,t)=>e===a[t])}(e,t)?t:e),c(e.body)},[]),h=(0,l.useCallback)(e=>{m.current===e&&(i(null),c(null),u(!1))},[]),p=(0,l.useCallback)(()=>{u(e=>!e)},[]),f=(0,l.useMemo)(()=>({source:r,body:o,expanded:d,setExpanded:u,toggleExpanded:p,register:x,unregister:h}),[r,o,d,p,x,h]);return(0,n.jsx)(a.Provider,{value:f,children:s})}function i(){return(0,l.useContext)(a)}function o(e,t,s){let n=i(),a=null==n?void 0:n.register,r=null==n?void 0:n.unregister,{count:o,badgeSeverities:c,body:d}=t,u=(0,l.useRef)(d);u.current=d;let m=(0,l.useRef)(c);m.current=c,(0,l.useEffect)(()=>{a&&s&&a({id:e,count:o,badgeSeverities:m.current,body:u.current})}
1,[a,e,s,o,c,d]),(0,l.useEffect)(()=>{if(r)return s?()=>r(e):void r(e)},[r,e,s])}},64158:(e,t,s)=>{s.d(t,{f:()=>N});var n=s(95155),l=s(12115),a=s(22095),r=s(96059),i=s(55145),o=s(69767),c=s(66124);function d(e){let{symbol:t,size:s=20,variant:l="branded",className:a,width:r,height:d}=e,u=t.toLowerCase();if(u.startsWith("ha")||u.startsWith("hs")||"weth"===u||"all"===u){let e=(0,c.n)(t);return(0,n.jsx)(o.A,{src:e,alt:t,width:r||s,height:d||s,className:a})}let m=(0,c.n)(t);return(0,n.jsx)(i.xz,{symbol:t,size:s,variant:l,className:a,fallback:(0,n.jsx)(o.A,{src:m,alt:t,width:r||s,height:d||s,className:a})})}function u(e){let{value:t,onChange:s,options:i,disabled:o=!1,placeholder:c="Select Token",className:u="",showCustomOption:m=!1,onCustomOptionClick:x,customOptionLabel:h="+ Add Custom Token Address"}=e,[p,f]=(0,l.useState)(!1),b=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&f(!1)};return p&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p]);let g=Array.isArray(i)&&i.length>0?void 0!==i[0].label?i:[{label:"Tokens",tokens:i}]:[],v=g.flatMap(e=>e.tokens).find(e=>e.symbol===t);return(0,n.jsxs)("div",{className:"relative ".concat(u),ref:b,children:[(0,n.jsxs)("button",{type:"button",onClick:()=>!o&&f(!p),disabled:o,className:"w-full flex items-center justify-between rounded-md px-3 py-2 bg-white/85 backdrop-blur-sm text-[#1E4775] border border-[#1E4775]/20 focus:border-[#1E4775]/40 focus:ring-1 focus:ring-[#1E4775]/20 focus:outline-none text-sm transition-all disabled:opacity-50 disabled:cursor-not-allowed hover:bg-[#1E4775]/5",children:[(0,n.jsx)("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:v?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d,{symbol:v.symbol,size:20,variant:"branded",className:"flex-shrink-0 rounded-full"},v.symbol),(0,n.jsxs)("span",{className:"font-medium truncate",children:[v.name," (",v.symbol,")"]})]}):(0,n.jsx)("span",{className:"text-[#1E4775]/60",children:c})}),(0,n.jsx)(r.A,{className:"w-5 h-5 text-[#1E4775]/60 transition-transform flex-shrink-0 ".concat(p?"rotate-180":"")})]}),p&&(0,n.jsxs)("div",{className:"absolute z-50 mt-2 w-full ".concat(a.KA," border border-[#1E4775]/20 rounded-md shadow-lg overflow-hidden max-h-60 overflow-y-auto"),children:[g.map((e,l)=>(0,n.jsxs)("div",{children:[g.length>1&&(0,n.jsx)("div",{className:"px-4 py-2 bg-[#1E4775]/5 text-xs font-semibold text-[#1E4775]/70 uppercase tracking-wider",children:e.label}),e.tokens.map(e=>(0,n.jsxs)("button",{type:"button",onClick:()=>{s(e.symbol),f(!1)},className:"w-full flex items-center gap-2 px-4 py-2 hover:bg-[#1E4775]/5 transition-colors text-left ".concat(t===e.symbol?"bg-[#1E4775]/10":""),children:[(0,n.jsx)(d,{symbol:e.symbol,size:20,variant:"branded",className:"flex-shrink-0 rounded-full"},e.symbol),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsxs)("div",{className:"text-[#1E4775] font-medium",children:[e.name," (",e.symbol,")"]}),e.description||void 0!==e.feePercentage||e.isUserToken?(0,n.jsx)("div",{className:"text-xs text-[#1E4775]/60 truncate",children:e.description?e.description:void 0!==e.feePercentage?"".concat(e.feePercentage.toFixed(2),"% estimated fee"):e.isUserToken?"Will be swapped":null}):null]})]},e.symbol))]},l)),m&&(0,n.jsx)("div",{className:"border-t border-[#1E4775]/10",children:(0,n.jsx)("button",{type:"button",onClick:()=>{x?x():s("custom"),f(!1)},className:"w-full flex items-center gap-2 px-4 py-2 hover:bg-[#1E4775]/5 transition-colors text-left text-[#1E4775] font-medium",children:(0,n.jsx)("span",{children:h})})})]})]})}let m=/^0x[a-fA-F0-9]{40}$/;function x(e){let{value:t,onChange:s,disabled:l=!1,validTokenInfo:a,className:r=""}=e,i=t.length>0&&(t.length<42||!m.test(t));return(0,n.jsxs)("div",{className:"space-y-2 ".concat(r),children:[(0,n.jsx)("input",{type:"text",value:t,onChange:e=>s(e.target.value.trim()),placeholder:"0x...",className:"w-full h-10 px-3 bg-white/85 backdrop-blur-sm text-[#1E4775] border border-[#1E4775]/30 focus:border-[#1E4775] focus:ring-2 focus:ring-[#1E4775]/20 focus:outline-none transition-all text-sm font-mono",disabled:l}),i&&(0,n.jsx)("div",{className:"text-xs text-red-600",children:"Invalid address format. Must start with 0x and be 42 characters."}),a&&(0,n.jsxs)("div",{className:"text-xs text-green-600",children:["â Token found: ",a]})]})}var h=s(99361),p=s(65028),f=s(28245),b=s(30598);let g=/^\d*\.?\d*$/;var v=s(97849),j=s(814);function w(e){let{children:t,className:s="",ariaLabel:l="Wallet balance",showLabel:a=!0}=e;return(0,n.jsxs)("div",{className:"block w-full ".concat(j.cj," ").concat(s).trim(),role:"status","aria-label":l,children:[a?(0,n.jsx)("span",{className:"shrink-0 text-[#94a3b8]",children:"Balance:"}):(0,n.jsx)("span",{"aria-hidden":"true"}),(0,n.jsx)("span",{className:"min-w-0 truncate text-right font-mono text-[10px] font-semibold tabular-nums leading-none text-[#1E4775]",children:t})]})}function N(e){var t;let{tokenSelector:s,customToken:a,amount:r,showTokenSelector:i=!0,tokenRowLabel:o,amountSectionLabel:c,betweenTokenAndAmount:d,afterAmount:m,disabled:N=!1}=e,{value:y,setValue:E,balance:k,decimals:C,error:S,isNativeETH:T=!1,capAtBalance:F=!0,onErrorClear:A,balanceSymbol
1:D="",balanceMaxDecimals:L=4,balanceContent:U,amountInputOverlay:M,inputClassName:I,customHandleMax:H,customHandleChange:B,onChangeExtra:P}=r,{handleChange:R,handleMax:_,exceedsBalance:W}=function(e,t,s){let{decimals:n,balance:a,capAtBalance:r=!0,isNativeETH:i=!1,onErrorClear:o}=s,c=(0,l.useCallback)(e=>{let s=e.target.value;if(""===s||g.test(s)){if(r&&s&&null!=a)try{if((i?(0,h.g)(s):(0,p.X)(s,n))>a){let e=i?(0,f.c)(a):(0,b.J)(a,n);t(e),null==o||o();return}}catch(e){}t(s),null==o||o()}},[a,r,n,i,o,t]),d=(0,l.useCallback)(()=>{null!=a&&(t(i?(0,f.c)(a):(0,b.J)(a,n)),null==o||o())},[a,n,i,o,t]),u=(0,l.useMemo)(()=>{if(!(!e||0>=parseFloat(e)))try{return i?(0,h.g)(e):(0,p.X)(e,n)}catch(e){return}},[e,n,i]);return{handleChange:c,handleMax:d,exceedsBalance:(0,l.useMemo)(()=>!!u&&!!a&&u>a,[u,a]),parsedValue:u}}(y,E,{decimals:C,balance:k,capAtBalance:F,isNativeETH:T,onErrorClear:A}),O=D?(0,v.QS)(null!=k?k:0n,D,L,C):null,z=N||r.disabled,$=i&&s,G=(0,j.Fg)(!!(S||W));return(0,n.jsxs)("div",{className:j.uh,children:[$?(0,n.jsxs)("div",{className:"".concat(o?"space-y-2":""," mb-3"),children:[o?(0,n.jsx)("span",{className:j.Fb,children:o}):null,(0,n.jsx)(u,{value:s.value,onChange:s.onChange,options:s.options,disabled:s.disabled||z,placeholder:null!=(t=s.placeholder)?t:"Select token",showCustomOption:s.showCustomOption,onCustomOptionClick:s.onCustomOptionClick,customOptionLabel:s.customOptionLabel}),(null==a?void 0:a.show)?(0,n.jsx)(x,{value:a.value,onChange:a.onChange,disabled:a.disabled||z,validTokenInfo:a.validTokenInfo}):null]}):null,U?(0,n.jsx)("div",{className:"mb-2 flex items-center justify-end",children:U}):null,d?(0,n.jsx)("div",{className:"mb-2 text-xs text-[#1E4775]/70",children:d}):null,c?(0,n.jsx)("span",{className:"".concat(j.Fb," mb-1.5 block"),children:c}):null,(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{type:"text",value:y,onChange:null!=B?B:P?e=>{P(),R(e)}:R,placeholder:"0.0",disabled:z,className:null!=I?I:G}),M,(0,n.jsx)("button",{type:"button",onClick:null!=H?H:_,disabled:z,className:j.bG,children:"MAX"})]}),!U&&O?(0,n.jsx)(w,{className:"mt-1",ariaLabel:"Balance ".concat(D),children:O}):null,S?(0,n.jsx)("p",{className:"mt-1.5 text-xs text-red-600",children:S}):null,m?(0,n.jsx)("div",{className:"mt-3 space-y-2 border-t border-[#1E4775]/8 pt-3",children:m}):null]})}},64269:(e,t,s)=>{s.d(t,{Ar:()=>o,IV:()=>i,cn:()=>a,hq:()=>c,ov:()=>d,pp:()=>r});var n=s(2821),l=s(75889);function a(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,l.QP)((0,n.$)(t))}function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return void 0===e?"-":(Number(e)/1e18).toLocaleString(void 0,{maximumFractionDigits:t})}function i(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6;return void 0===e||void 0===t?"-":(Number(e)/10**t).toLocaleString(void 0,{maximumFractionDigits:s})}function o(e){let[t,s]=e.split("/");return{base:t,quote:s||""}}function c(e){if(!e)return"-";try{let t=e.slice(2);return Array.from({length:t.length/2},(e,s)=>String.fromCharCode(parseInt(t.substr(2*s,2),16))).join("").replace(/\u0000+$/g,"").replace(/[^\x20-\x7E]/g,"").trim()||"-"}catch(e){return"-"}}function d(e){if(e&&66===e.length)return"0x".concat(e.slice(-40))}},64901:(e,t,s)=>{s.d(t,{RU:()=>r,nO:()=>a});var n=s(95155);s(12115);var l=s(15239);let a=s(66124).n;function r(e){let{symbol:t,size:s=24,className:r="",alt:i}=e,o=a(t);return(0,n.jsx)("span",{className:"inline-flex flex-shrink-0 overflow-hidden rounded-full ".concat(r),style:{width:s,height:s},children:(0,n.jsx)(l.default,{src:o,alt:i||t,width:s,height:s,className:"h-full w-full object-cover"})})}},66124:(e,t,s)=>{s.d(t,{n:()=>a});let n={eth:"/icons/eth.png",ethereum:"/icons/eth.png",weth:"/icons/eth.png",fxsave:"/icons/fxSave.png",fxusd:"/icons/fxUSD.webp",usdc:"/icons/usdc.webp",steth:"/icons/steth_logo.webp",wsteth:"/icons/wstETH.webp",btc:"/icons/btc.png",bitcoin:"/icons/btc.png",wbtc:"/icons/btc.png",susde:"/icons/susde.svg",usde:"/icons/susde.svg",usd:"/icons/usd.svg",dollar:"/icons/usd.svg",eur:"/icons/eur.svg",euro:"/icons/eur.svg",xau:"/icons/gold.svg",gold:"/icons/gold.svg",xag:"/icons/gold.svg",silver:"/icons/gold.svg",hagold:"/icons/haGOLD.png",hasilver:"/icons/haSILVER.png","hssteth-gold":"/icons/hsSTETH-GOLD.png","hssteth-silver":"/icons/hsSTETH-SILVER.png","hsfxusd-gold":"/icons/hsFXUSD-GOLD.png","hsfxusd-silver":"/icons/hsFXUSD-SILVER.png",mcap:"/icons/mcap.svg",t6ch:"/icons/mcap.svg",t6:"/icons/mcap.svg",mag7:"/icons/stock.svg","mag7.i26":"/icons/stock.svg",bom5:"/icons/stock.svg",all:"/icons/logo-blue.svg",hausd:"/icons/haUSD_1.png",haeth:"/icons/haETH.png",habtc:"/icons/haBTC.png",haeur:"/icons/haEUR.png",hapb:"/icons/haETH.png","hsfxusd-eth":"/icons/hsUSDETH.png",hsfxusdeth:"/icons/hsUSDETH.png","hsfxusd-btc":"/icons/hsUSDBTC.png",hsfxusdbtc:"/icons/hsUSDBTC.png","hsusd-btc":"/icons/hsUSD_BTC.png","hsusd-eth":"/icons/hsUSD_ETH.png","hsusd-wsteth":"/icons/hsUSD_ETH.png","hsusd-steth":"/icons/hsUSD_ETH.png","hsusd-xau":"/icons/hsUSD_XAU.png","hssteth-usd":"/icons/hsSTETH-USD.png",hsstethusd:"/icons/hsSTETH-USD.png","hssteth-btc":"/icons/hsETHBTC.png",hsstethbtc:"/icons/hsETHBTC.png","hssteth-eur":"/icons/hsSTETHEUR.png",hsstetheur:"/icons/hsSTETHEUR.png","hsfxusd-eur":"/icons/hsUSDeur.png",hsfxusdeur:"/icons/hsUSDeur.png",hseth:"/icons/hsUSDETH.png"},l=["aapl","amzn","googl","meta","msft","nvda","spy","tsla"];function a(e){let t=e.toLowerCase().trim(),s=t.replace(/[\s._/:-]+/g,"");return n[t]?n[t]:n[s]?n[s]:t.startsWith("ha")?"/icons/haUSD2.png":t.startsWith("hs")?s.includes("btc")?"/icons/hsUSD_BTC.png":s.includes("wsteth")||s.includes("steth")?"/icons/hsUSD_ETH.png":s.includes("xau")||s.includes("gold")?"/icons/hsUSD_XAU.png":s.includes("eth")?"/icons/hsUSD_ETH.png":"/icons/hsUSDETH.png":l.includes(t)?"/icons/stock.svg":"/icons/placeholder.svg"}},67519:(e,t,s)=>{s.d(t,{y:()=>r});var n=s(95155),l=s(12120);let a={deposit:"Use permit (gasless approval) for this deposit",redemption:"Use permit (gasless approval) for this sell"};function r(e){let{mode:t,enabled:s,onToggle:r,disabled:i=!1,disableReason:o}=e,c=a[t];return o?(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2 text-xs text-[#1E4775]/70",children:[(0,n.jsx)("span",{children:c}),(0,n.jsx)(l.A,{label:o,children:(0,n.jsxs)("span",{className:"flex cursor-not-allowed items-center gap-2 text-[#1E4775]/80 opacity-70",children:[(0,n.jsx)("span",{className:"text-[#1E4775]/60",children:"Off"}),(0,n.jsx)("button",{type:"button",disabled:!0,className:"relative inline-flex h-5 w-9 cursor-not-allowed items-center rounded-full bg-[#1E4775]/30","aria-label":"Permit disabled",children:(0,n.jsx)("span",{className:"inline-block h-4 w-4 translate-x-1 transform rounded-full bg-white"})})]})})]}):(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2 text-xs text-[#1E4775]/70",children:[(0,n.jsx)("span",{children:c}),(0,n.jsx)("label",{className:"flex cursor-pointer items-center",children:(0,n.jsx)("button",{type:"button",onClick:r,className:"relative inline-flex h-5 w-9 items-center rounded-full transition-colors ".concat(s?"bg-[#1E4775]":"bg-[#1E4775]/30"),"aria-pressed":s,"aria-label":"Toggle permit usage",disabled:i,children:(0,n.jsx)("span",{className:"inline-block h-4 w-4 transform rounded-full bg-white transition-transform ".concat(s?"translate-x-4":"translate-x-1")})})})]})}},69767:(e,t,s)=>{s.d(t,{A:()=>a});var n=s(95155),l=s(12115);function a(e){let{src:t,alt:s,width:a,height:r,className:i}=e,[o,c]=(0,l.useState)(t),[d,u]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{u(!1),c(t);let e=new window.Image;e.src=t,e.onload=()=>{c(t),u(!1)},e.onerror=()=>{c("/icons/placeholder.svg"),u(!0)}},[t]),(0,n.jsx)("img",{src:o,alt:s,width:a,height:r,className:i,onError:()=>{d||(c("/icons/placeholder.svg"),u(!0))}})}},74915:(e,t,s)=>{s.d(t,{IC:()=>o,NJ:()=>u,OQ:()=>d,ci:()=>i,dl:()=>c,h2:()=>a,wo:()=>r});var n=s(22095);let l=n.MQ,a="rounded-md overflow-hidden ".concat(n.gl," ").concat(l),r="".concat(n.gl," py-1.5 px-2 overflow-x-auto mb-0 rounded-md"),i="uppercase tracking-wider text-[10px] lg:text-[11px] text-harbor-blue font-semibold",o="text-sm py-2.5 px-2 min-h-[52px]",c="text-[10px] font-semibold uppercase tracking-wide text-harbor-blue/60",d="font-medium text-xs font-mono tabular-nums text-harbor-blue",u="min-w-0 truncate font-medium text-sm text-harbor-blue lg:text-base"},76021:(e,t,s)=>{s.d(t,{R:()=>a});var n=s(95155),l=s(14111);function a(e){let{variant:t="intro",accent:s="none",className:a="",children:r}=e;return(0,n.jsx)("div",{className:"".concat(function(e){switch(e){case"glassChip":return l.SG;case"glassChipInline":return l.iD;default:return l.ZW}}(t)," ").concat(function(e){switch(e){case"ring":return l.VF;case"ringStrong":return l.NK;default:return""}}(s)," ").concat(a).trim(),children:r})}},76435:(e,t,s)=>{s.d(t,{M:()=>r});var n=s(95155),l=s(64269),a=s(814);function r(e){let{header:t,flowOverview:s,scroll:r,overview:i,footer:o,footerDisabled:c=!1,className:d,bodyClassName:u,footerClassName:m,splitFooter:x=!1}=e,h=o?(0,n.jsx)("div",{className:(0,l.cn)(a.KE,c&&"pointer-events-none opacity-60",m),children:o}):null;return x?(0,n.jsxs)("div",{className:(0,l.cn)(a.$t,d),children:[(0,n.jsxs)("div",{className:(0,l.cn)("flex min-h-0 flex-1 flex-col",u),children:[t,s,(0,n.jsx)("div",{className:a.bb,children:r}),i?(0,n.jsx)("div",{className:a.zg,children:i}):null]}),h]}):(0,n.jsxs)("div",{className:(0,l.cn)(a.$t,d),children:[t,s,(0,n.jsx)("div",{className:a.bb,children:r}),i||o?(0,n.jsxs)("div",{className:a.zg,children:[i,h]}):null]})}},83207:(e,t,s)=>{function n(e,t){var s;let n=[];return(null==e?void 0:e.acceptedAssets)&&Array.isArray(e.acceptedAssets)?n.push(...e.acceptedAssets):(null==e||null==(s=e.collateral)?void 0:s.symbol)&&n.push({symbol
1:e.collateral.symbol,name:e.collateral.name||e.collateral.symbol}),t&&!n.some(e=>e.symbol===t)&&n.push({symbol:t,name:t}),n}function l(e,t){return t&&void 0!==e&&e>=1e4?"10k%+":void 0===e||isNaN(e)?"-":e>=1e4?"10k%+":"".concat(e.toFixed(2),"%")}s.d(t,{Ft:()=>l,ff:()=>function e(t){if(!Number.isFinite(t))return"â";if(0===t)return"$0";if(t<0)return"-".concat(e(-t));let s=Math.abs(t);return s>=1e9?"$".concat((s/1e9).toFixed(2),"b"):s>=1e6?"$".concat((s/1e6).toFixed(2),"m"):s>=1e3?"$".concat((s/1e3).toFixed(2),"k"):"$".concat(s.toFixed(2))},z9:()=>n})},87619:(e,t,s)=>{s.d(t,{v:()=>x});var n=s(95155),l=s(12115),a=s(47650),r=s(22095);let i=(e,t)=>"completed"===e.status?{dot:"bg-green-500 border-green-500",label:"text-[#1E4775]",line:"bg-green-500"}:"error"===e.status?{dot:"bg-red-500 border-red-500",label:"text-red-600",line:"bg-red-300"}:t||"in_progress"===e.status?{dot:"bg-[#1E4775] border-[#1E4775]",label:"text-[#1E4775]",line:"bg-[#1E4775]/40"}:{dot:"bg-white border-[#1E4775]/30",label:"text-[#1E4775]/60",line:"bg-[#1E4775]/20"},o=e=>{let{steps:t,currentStepIndex:s}=e;if(0===t.length)return null;if(1===t.length){let e=t[0],l=i(e,0===s),a=i({...e,status:"pending"},!1);return(0,n.jsxs)("div",{className:"flex w-full flex-col items-center gap-2",children:[(0,n.jsxs)("div",{className:"flex w-full items-center",children:[(0,n.jsx)("div",{className:"flex-1 min-w-0 h-0.5 min-h-[2px] bg-transparent"}),(0,n.jsx)("div",{className:"h-3 w-3 shrink-0 rounded-full border-2 mx-0.5 ".concat(l.dot)}),(0,n.jsx)("div",{className:"h-0.5 flex-1 min-w-0 ".concat(l.line)}),(0,n.jsx)("div",{className:"h-3 w-3 shrink-0 rounded-full border-2 mx-0.5 ".concat(a.dot)}),(0,n.jsx)("div",{className:"flex-1 min-w-0 h-0.5 min-h-[2px] bg-transparent"})]}),(0,n.jsx)("div",{className:"text-[11px] text-center leading-tight w-full px-0.5 ".concat(l.label),children:e.label})]})}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex flex-col gap-0 md:hidden",children:t.map((e,l)=>{let a=i(e,l===s),r=l<t.length-1;return(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center shrink-0",children:[(0,n.jsx)("div",{className:"h-3 w-3 shrink-0 rounded-full border-2 ".concat(a.dot)}),r&&(0,n.jsx)("div",{className:"w-0.5 flex-1 min-h-[20px] mt-1 ".concat(a.line)})]}),(0,n.jsx)("div",{className:"text-[11px] leading-tight pt-0.5 pb-3 ".concat(a.label),children:e.label})]},e.id)})}),(0,n.jsx)("div",{className:"hidden md:flex w-full",children:t.map((e,l)=>{let a=i(e,l===s),r=l<t.length-1;return(0,n.jsxs)("div",{className:"flex flex-1 flex-col items-center gap-2 min-w-0 basis-0",children:[(0,n.jsxs)("div",{className:"flex w-full items-center",children:[(0,n.jsx)("div",{className:"flex-1 min-w-0 h-0.5 min-h-[2px] ".concat(l>0?a.line:"bg-transparent")}),(0,n.jsx)("div",{className:"h-3 w-3 shrink-0 rounded-full border-2 mx-0.5 ".concat(a.dot)}),(0,n.jsx)("div",{className:"flex-1 min-w-0 h-0.5 min-h-[2px] ".concat(r?a.line:"bg-transparent")})]}),(0,n.jsx)("div",{className:"text-[11px] text-center leading-tight w-full min-w-0 px-0.5 ".concat(a.label),children:e.label})]},e.id)})})]})};function c(e){var t,s,l,a;let{steps:r,currentStepIndex:i}=e;if(0===r.length)return null;let o=r[Math.min(i,r.length-1)],c=r.every(e=>"completed"===e.status),d=null!=(l=null==(t=r[0])?void 0:t.label)?l:"",u=null!=(a=null==(s=r[r.length-1])?void 0:s.label)?a:"",m=function(e,t,s){var n,l,a,r,i,o,c,d,u,m;if(0===e.length)return"";let x=e.length-1;return s?null!=(o=null==(n=e[x])?void 0:n.label)?o:"":1===e.length?null!=(c=null==(l=e[0])?void 0:l.label)?c:"":0===t?null!=(d=null==(a=e[1])?void 0:a.label)?d:"":t===x?null!=(u=null==(r=e[x])?void 0:r.label)?u:"":null!=(m=null==(i=e[t])?void 0:i.label)?m:""}(r,i,c),x=i>0||r[0]&&"pending"!==r[0].status,h=(null==o?void 0:o.status)==="error",p=(null==o?void 0:o.status)==="completed",f="border-[#1E4775]/30 bg-white/90 backdrop-blur-sm",b=null;h?f="border-red-500 bg-red-500":p&&!c||c?f="border-green-500 bg-green-500":(null==o?void 0:o.status)==="in_progress"?(f="border-[#1E4775] bg-[#1E4775] animate-pulse",b=(0,n.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-white"})})):(null==o?void 0:o.status)==="pending"&&(f="border-[#1E4775]/30 bg-white/90 backdrop-blur-sm",b=(0,n.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-[#1E4775]/40"})}));let g=c?"border-green-500 bg-green-500":"border-[#1E4775]/30 bg-white/90 backdrop-blur-sm";return(0,n.jsxs)("div",{className:"w-full pt-1",role:"group","aria-label":"Transaction progress overview",children:[(0,n.jsxs)("div",{className:"flex w-full items-center",children:[(0,n.jsx)("div",{className:"relative h-3 w-3 shrink-0 rounded-full border-2 ".concat(x?"border-green-500 bg-green-500":"border-[#1E4775]/30 bg-white/90 backdrop-blur-sm")}),(0,n.jsx)("div",{className:"mx-1 h-0.5 min-h-[2px] min-w-[12px] flex-1 ".concat(x?"bg-green-500":"bg-[#1E4775]/20")}),(0,n.jsx)("div",{className:"relative flex h-3 w-3 shrink-0 items-center justify-center rounded-full border-2 ".concat(f),children:b}),(0,n.jsx)("div",{className:"mx-1 min-h-[2px] min-w-[12px] flex-1 border-t-2 border-dotted border-[#1E4775]/25"}),(0,n.jsx)("div",{className:"h-3 w-3 shrink-0 rounded-full border-2 ".concat(g)})]}),(0,n.jsxs)("div",{className:"mt-2 grid grid-cols-3 gap-x-1.5 text-center",children:[(0,n.jsx)("div",{className:"text-[10px] font-medium leading-tight text-[#1E4775] line-clamp-3 min-h-[2.5rem]",title:d,children:d}),(0,n.jsx)("div",{className:"text-[10px] font-medium leading-tight text-[#1E4775] line-clamp-3 min-h-[2.5rem]",title:m,children:m}),(0,n.jsx)("div",{className:"text-[10px] font-medium leading-tight text-[#1E4775] line-clamp-3 min-h-[2.5rem]",title:u,children:u})]})]})}function d(e){let{className:t}=e;return(0,n.jsxs)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,
1children:[(0,n.jsx)("circle",{cx:"5.5",cy:"18.5",r:"3",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("circle",{cx:"5.5",cy:"18.5",r:"1",fill:"currentColor"}),(0,n.jsx)("path",{d:"M8.5 18.5H18.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,n.jsx)("path",{d:"M17 15.5L20 18.5L17 21.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M5.5 15.5V6",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeDasharray:"2 4"}),(0,n.jsx)("path",{d:"M3 7L5.5 4L8 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}var u=s(34898);function m(e){let{steps:t,currentStepIndex:s}=e;return(0,n.jsx)("div",{className:"flex flex-col gap-0",children:t.map((e,l)=>{let a=l===s,r="completed"===e.status,i="error"===e.status,o=l<t.length-1;return(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsxs)("div",{className:"flex min-h-0 shrink-0 flex-col items-center self-stretch",children:[(0,n.jsx)("div",{className:"mt-0.5 shrink-0",children:r?(0,n.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-green-500",children:(0,n.jsx)("svg",{className:"h-4 w-4 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}):i?(0,n.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-red-500",children:(0,n.jsx)("svg",{className:"h-4 w-4 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}):a?(0,n.jsx)("div",{className:"flex h-6 w-6 animate-pulse items-center justify-center rounded-full bg-[#1E4775]",children:(0,n.jsx)("div",{className:"h-2 w-2 rounded-full bg-white"})}):(0,n.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-gray-300",children:(0,n.jsx)("div",{className:"h-2 w-2 rounded-full bg-white"})})}),o&&(0,n.jsx)("div",{className:"mt-1 w-0.5 flex-1 min-h-[12px] ".concat(r?"bg-green-500/70":i?"bg-red-300":"bg-[#1E4775]/25"),"aria-hidden":!0})]}),(0,n.jsxs)("div",{className:"min-w-0 flex-1 pb-4 pt-0.5 last:pb-0",children:[(0,n.jsx)("div",{className:"text-sm font-medium ".concat(a?"text-[#1E4775]":r?"text-green-700":i?"text-red-700":"text-gray-500"),children:e.label}),e.details&&(0,n.jsx)("div",{className:"mt-1 text-xs text-[#1E4775]/70",children:e.details}),e.fee&&(0,n.jsxs)("div",{className:"mt-2 rounded-md border border-yellow-200 bg-yellow-50 p-2 text-xs",children:[(0,n.jsx)("div",{className:"mb-1 font-semibold text-yellow-800",children:"Fee:"}),(0,n.jsxs)("div",{className:"space-y-1 text-yellow-700",children:[(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("span",{children:"Fee Amount:"}),(0,n.jsxs)("span",{className:"font-mono font-semibold",children:[e.fee.formatted," ",e.fee.tokenSymbol]})]}),void 0!==e.fee.percentage&&(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("span",{children:"Fee %:"}),(0,n.jsxs)("span",{className:"font-semibold",children:[e.fee.percentage.toFixed(2),"%"]})]}),void 0!==e.fee.usd&&(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("span",{children:"Fee (USD):"}),(0,n.jsxs)("span",{className:"font-semibold",children:["$",e.fee.usd.toFixed(2)]})]})]})]}),e.txHash&&(0,n.jsx)("a",{href:"https://etherscan.io/tx/".concat(e.txHash),target:"_blank",rel:"noopener noreferrer",className:"mt-1 inline-block text-xs text-[#1E4775]/70 underline hover:text-[#1E4775]",children:"View transaction on Etherscan"}),e.error&&(0,n.jsx)("div",{className:"mt-1 text-xs text-red-600",children:e.error})]})]},e.id)})})}let x=e=>{var t,s,i;let{isOpen:x,onClose:h,title:p,steps:f,currentStepIndex:b,progressVariant:g="horizontal",showFeeInfo:v,onConfirmFee:j,onCancel:w,canCancel:N=!1,onRetry:y,retryButtonLabel:E="Try Again",errorMessage:k,supportDiscordUrl:C="https://discord.com/invite/BW3P62vJXT",renderSuccessContent:S}=e,T=f.length>3,[F,A]=(0,l.useState)(()=>"vertical"===g&&f.length>3),D=T&&!F;if((0,l.useEffect)(()=>{x&&!(f.length<=3)&&A("vertical"===g)},[x,f.length,g]),!x)return null;let L=f.every(e=>"completed"===e.status),U=null!=(s=null==(t=f[b])?void 0:t.label)?s:"",M=f.find(e=>"error"===e.status),I=!!M,H=null!=(i=null!=k?k:null==M?void 0:M.error)?i:"Something went wrong. Please try again or c
1ontact support if the issue persists.",B=e=>"undefined"==typeof document?e:(0,a.createPortal)((0,n.jsxs)("div",{className:"fixed inset-0 z-[200] flex items-center justify-center",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:w||h,"aria-hidden":!0}),e]}),document.body),P="relative isolate mx-4 flex max-h-[90vh] w-full max-w-md flex-col overflow-hidden rounded-xl ".concat(r.GM," animate-in fade-in-0 scale-in-95 duration-200");if(v&&j){let e=Array.isArray(v)?v:[v],t=e.reduce((e,t)=>e+(t.feeUSD||0),0);return B((0,n.jsxs)("div",{className:P,children:[(0,n.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-[#1E4775]/20 p-6",children:[(0,n.jsx)("h2",{className:"text-2xl font-bold text-[#1E4775]",children:p}),(0,n.jsx)("button",{onClick:w||h,className:"text-[#1E4775]/50 transition-colors hover:text-[#1E4775]","aria-label":"Close",children:(0,n.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,n.jsxs)("div",{className:"min-h-0 flex-1 space-y-4 overflow-y-auto p-6",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"mb-3 text-sm font-semibold text-[#1E4775]",children:"Transaction Steps & Fees"}),(0,n.jsx)("div",{className:"space-y-3",children:f.map((t,s)=>{let l=e.find(e=>"redeem"===t.id?"Redeem Sail Tokens"===e.label:"mint"===t.id&&"Mint Anchor Tokens"===e.label);return(0,n.jsxs)("div",{className:"rounded-md border border-[#1E4775]/20 p-3",children:[(0,n.jsxs)("div",{className:"mb-2 flex items-center gap-2",children:[(0,n.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-gray-300 text-xs text-gray-600",children:s+1}),(0,n.jsx)("span",{className:"text-sm font-medium text-[#1E4775]",children:t.label})]}),t.details&&(0,n.jsx)("div",{className:"mb-2 ml-7 text-xs text-[#1E4775]/70",children:t.details}),l&&(0,n.jsxs)("div",{className:"ml-7 mt-2 rounded-md border border-yellow-200 bg-yellow-50 p-2 text-xs",children:[(0,n.jsx)("div",{className:"mb-1 font-semibold text-yellow-800",children:"Fee:"}),(0,n.jsxs)("div",{className:"space-y-1 text-yellow-700",children:[(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("span",{children:"Fee Amount:"}),(0,n.jsxs)("span",{className:"font-mono font-semibold",children:[l.feeFormatted," ",l.tokenSymbol]})]}),void 0!==l.feePercentage&&(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("span",{children:"Fee %:"}),(0,n.jsxs)("span",{className:"font-semibold",children:[l.feePercentage.toFixed(2),"%"]})]}),void 0!==l.feeUSD&&(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("span",{children:"Fee (USD):"}),(0,n.jsxs)("span",{className:"font-semibold",children:["$",l.feeUSD.toFixed(2)]})]})]})]})]},t.id)})})]}),e.length>0&&(0,n.jsxs)("div",{className:"rounded-md border border-yellow-200 bg-yellow-50 p-4",children:[(0,n.jsx)("h3",{className:"mb-2 text-sm font-semibold text-yellow-800",children:"Total Fees"}),(0,n.jsxs)("div",{className:"space-y-1 text-sm text-yellow-700",children:[e.length>1&&t>0&&(0,n.jsxs)("div",{className:"flex justify-between font-semibold",children:[(0,n.jsx)("span",{children:"Total Fees:"}),(0,n.jsxs)("span",{children:["$",t.toFixed(2)]})]}),1===e.length&&void 0!==e[0].feeUSD&&(0,n.jsxs)("div",{className:"flex justify-between font-semibold",children:[(0,n.jsx)("span",{children:"Fee (USD):"}),(0,n.jsxs)("span",{children:["$",e[0].feeUSD.toFixed(2)]})]})]})]}),(0,n.jsx)("p",{className:"text-sm text-[#1E4775]/80",children:"These fees will be deducted during the transaction process. Do you want to continue?"}),(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)("button",{type:"button",onClick:w||h,className:"min-w-0 flex-1 ".concat(u.PZ),children:"Cancel"}),(0,n.jsx)("button",{type:"button",onClick:j,className:"min-w-0 flex-1 ".concat(u.Mx),children:"Continue"})]})]})]}))}return B((0,n.jsxs)("div",{className:P,children:[(0,n.jsxs)("div",{className:"flex shrink-0 items-start justify-between gap-2 border-b border-[#1E4775]/20 p-6",children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("h2",{className:"text-2xl font-bold text-[#1E4775]",children:p}),f.length>1&&(0,n.jsxs)("p",{className:"mt-0.5 line-clamp-2 text-xs text-[#1E4775]/60","aria-live":"polite",children:["Step ",b+1," of ",f.length,U?(0,n.jsxs)(n.Fragment,{children:[" ","â"," ",(0,n.jsx)("span",{className:"text-[#1E4775]/80",children:U})]}):null]})]}),(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[T&&(0,n.jsx)("button",{type:"button",onClick:()=>A(e=>!e),className:"rounded-md p-1.5 text-[#1E4775]/60 transition-colors hover:bg-[#1E4775]/10 hover:text-[#1E4775]","aria-pressed":F,"aria-label":F?"Show compact progress":"Show full step list",title:F?"Compact progress":"Full step list",children:(0,n.jsx)(d,{className:"h-6 w-6"})}),(0,n.jsx)("button",{onClick:h,className:"text-[#1E4775]/50 transition-colors hover:text-[#1E4775]","aria-label":"Close",children:(0,n.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),(0,n.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto p-6",children:[D?(0,n.jsx)(c,{steps:f,currentStepIndex:b}):T||"horizontal"!==g?(0,n.jsx)(m,{steps:f,currentStepIndex:b}):(0,n.jsx)(o,{steps:f,currentStepIndex:b}),f.every(e=>"completed"===e.status)&&(0,n.jsx)("div",{className:"mt-6 rounded-md border border-green-200 bg-green-50 p-4",children:(0,n.jsx)("p",{className:"text-center text-sm font-medium text-green-800",children:"All transactions completed successfully!"})}),I&&(0,n.jsxs)("div",{className:"mt-6 rounded-md border border-red-200 bg-red-50 p-4",children:[(0,n.jsx)("p",{className:"text-center text-sm font-medium text-red-800",children:H}),(y||C)&&(0,n.jsxs)("div",{className:"mt-4 flex flex-col items-center gap-3 sm:flex-row sm:justify-center",children:[y&&(0,n.jsx)("button",{type:"button",onClick:y,className:u.Mx,children:E}),C&&(0,n.jsx)("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium text-[#1E4775] underline hover:text-[#1E4775]/80",children:"Get help on Discord"})]})]}),L&&S&&(0,n.jsx)("div",{className:"mt-6",children:S()}),N&&!f.every(e=>"completed"===e.status)&&(0,n.jsx)("div",{className:"mt-6 flex justify-end",children:(0,n.jsx)("button",{type:"button",onClick:w||h,className:u.PZ,children:"Cancel"})})]})]}))}}
1,95809:(e,t,s)=>{s.d(t,{D$:()=>u,LX:()=>m});var n=s(4520),l=s(53194),a=s(22454),r=s(30598),i=s(86275),o=s(26233),c=s(83704);let d=[{address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",symbol:"USDC",name:"USD Coin",decimals:6},{address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",symbol:"USDT",name:"Tether USD",decimals:6},{address:"0x6B175474E89094C44Da98b954EedeAC495271d0F",symbol:"DAI",name:"Dai Stablecoin",decimals:18},{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",symbol:"WETH",name:"Wrapped Ether",decimals:18},{address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",symbol:"WBTC",name:"Wrapped BTC",decimals:8},{address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",symbol:"wstETH",name:"Wrapped Staked ETH",decimals:18},{address:"0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",symbol:"stETH",name:"Lido Staked Ether",decimals:18},{address:"0x7743e50F534a7f9F1791DdE7dCD89F7783Eefc39",symbol:"fxSAVE",name:"f(x) USD Saving",decimals:18},{address:"0x085780639CC2cACd35E474e71f4d000e2405d8f6",symbol:"fxUSD",name:"f(x) USD",decimals:18}];function u(){let{address:e,isConnected:t}=(0,n.F)(),{data:s,isLoading:o}=(0,l.A)({address:e,enabled:t}),u=d.map(t=>({address:t.address,abi:c.iA,functionName:"balanceOf",args:[e]})),{data:m,isLoading:x}=(0,i.X)({contracts:u,enabled:t&&!!e,allowFailure:!0}),h=(0,a.I)({queryKey:["userTokens",e,null==m?void 0:m.map(e=>"success"===e.status&&e.result?e.result.toString():null),(null==s?void 0:s.value)?s.value.toString():null],queryFn:()=>{let e=[];return s&&s.value>0n&&e.push({address:"ETH",symbol:"ETH",name:"Ethereum",balance:s.value,balanceFormatted:(0,r.J)(s.value,18),decimals:18}),null==m||m.forEach((t,s)=>{if("success"===t.status&&t.result){let n=t.result;if(n>0n){let t=d[s];e.push({address:t.address,symbol:t.symbol,name:t.name,balance:n,balanceFormatted:(0,r.J)(n,t.decimals),decimals:t.decimals})}}}),e.sort((e,t)=>e.balance*10n**BigInt(18-e.decimals)>t.balance*10n**BigInt(18-t.decimals)?-1:1)},enabled:t&&!!e&&(void 0!==m||void 0!==s)});return{tokens:h.data||[],isLoading:o||x||h.isLoading,error:h.error,refetch:h.refetch}}function m(e){let{data:t,isLoading:s,error:n}=(0,o.Q)({address:e&&"ETH"!==e?e:void 0,abi:c.iA,functionName:"decimals",query:{enabled:!!e&&"ETH"!==e,retry:1,allowFailure:!0}});return{decimals:"ETH"===e?18:t?Number(t):18,isLoading:s,error:n}}},99678:(e,t,s)=>{s.d(t,{M:()=>r});var n=s(95155);s(12115);var l=s(66124);function a(e){let{symbol:t,iconSrc:s}=e;return(0,n.jsx)("img",{src:s,alt:"",className:"h-4 w-4 flex-shrink-0 rounded-full bg-[#1E4775]/10 ring-1 ring-[#1E4775]/15 sm:h-[18px] sm:w-[18px]","aria-hidden":!0})}function r(e){let{protocolName:t,tokenSymbol:s,actionLabel:r,tokenIcon:i,secondaryTokenSymbol:o,secondaryTokenIcon:c}=e,d=null!=i?i:(0,l.n)(s),u=o&&""!==o.trim()&&o!==s,m=null!=c?c:(0,l.n)(null!=o?o:"");return(0,n.jsxs)("span",{className:"flex min-w-0 items-center gap-1 sm:gap-1.5",children:[(0,n.jsx)("span",{className:"shrink-0",children:t}),(0,n.jsx)("span",{className:"shrink-0 font-normal text-[#1E4775]/45","aria-hidden":!0,children:"\xb7"}),(0,n.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[(0,n.jsx)(a,{symbol:s,iconSrc:d}),(0,n.jsx)("span",{className:"truncate",children:s}),u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"shrink-0 font-normal text-[#1E4775]/45","aria-hidden":!0,children:"+"}),(0,n.jsx)(a,{symbol:o,iconSrc:m}),(0,n.jsx)("span",{className:"truncate",children:o})]}):null]}),(0,n.jsx)("span",{className:"shrink-0 font-normal text-[#1E4775]/45","aria-hidden":!0,children:"â"}),(0,n.jsx)("span",{className:"shrink-0",children:r})]})}},99798:(e,t,s)=>{s.d(t,{E:()=>a});var n=s(95155),l=s(41510);function a(e){let{title:t,icon:s,accentBarClass:a,iconBadgeClass:r=l.M4,summary:i,children:o,className:c="",id:d,ariaLabel:u}=e;return(0,n.jsxs)("section",{id:d,className:"".concat(l.QZ," ").concat(c).trim(),"aria-label":null!=u?u:t,children:[(0,n.jsx)("div",{className:"".concat(l.g$," ").concat(a),"aria-hidden":!0}),(0,n.jsx)("div",{className:l.Bg,children:(0,n.jsxs)("div",{className:l.Gj,children:[(0,n.jsx)("span",{className:"".concat(r," shrink-0"),"aria-hidden":!0,
1children:(0,n.jsx)(s,{className:"h-4 w-4"})}),(0,n.jsx)("h2",{className:l.WK,children:t}),i?(0,n.jsx)("div",{className:"ml-auto min-w-0 truncate text-xs text-white/70",children:i}):null]})}),(0,n.jsx)("div",{className:l.s5,children: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.