1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2160],{2648:(e,t,l)=>{l.d(t,{A:()=>s});let s=!!("undefined"!=typeof window&&window.document&&window.document.createElement)},12169:(e,t,l)=>{l.d(t,{Rp:()=>b,T9:()=>x,aL:()=>p,i3:()=>f,lW:()=>m,st:()=>u});var s=l(75615),n=l(76919),r=l(73616),a=l(58413),i=l(34798),c=l(92018);let o=(0,n.createContext)({isMobile:!1});function d(){return(0,n.useContext)(o)}function u(e){let{open:t,onOpenChange:l,children:n}=e,c=(0,r.A)(),d=!(null==c?void 0:c.lg),u=d?i._s:a.lG;return(0,s.jsx)(o.Provider,{value:{isMobile:d},children:(0,s.jsx)(u,{open:t,onOpenChange:l,children:n})})}function m(e){let{className:t,children:l,showCloseButton:n=!0,...r}=e,{isMobile:o}=d();return o?(0,s.jsx)(i.zj,{className:(0,c.cn)("bg-bg-700",t),...r,children:l}):(0,s.jsx)(a.Cf,{className:t,showCloseButton:n,...r,children:l})}function x(e){let{className:t,...l}=e,{isMobile:n}=d(),r=n?i.BE:a.c7;return(0,s.jsx)(r,{className:t,...l})}function p(e){let{className:t,...l}=e,{isMobile:n}=d(),r=n?i.gk:a.L3;return(0,s.jsx)(r,{className:t,...l})}function f(e){let{className:t,...l}=e,{isMobile:n}=d(),r=n?i.I6:a.rr;return(0,s.jsx)(r,{className:t,...l})}function b(e){let{className:t,...l}=e,{isMobile:n}=d(),r=n?i.tb:a.Es;return(0,s.jsx)(r,{className:t,...l})}},21666:(e,t,l)=>{l.d(t,{$n:()=>j,AX:()=>b,B$:()=>c,C3:()=>R,Cs:()=>y,Fh:()=>u,Hs:()=>E,IJ:()=>i,LP:()=>r,RA:()=>C,Ri:()=>h,Rs:()=>s,S8:()=>g,Sv:()=>L,VF:()=>f,Y4:()=>a,_l:()=>p,a2:()=>o,dA:()=>v,hM:()=>n,iY:()=>w,jl:()=>m,kY:()=>S,lV:()=>T,u9:()=>x,ue:()=>O,wy:()=>d,yT:()=>N});var s=function(e){return e[e.QUANTITY=1]="QUANTITY",e[e.COST=2]="COST",e[e.NOTIONAL_VALUE=3]="NOTIONAL_VALUE",e}({}),n=function(e){return e[e.LIMIT=1]="LIMIT",e[e.MARKET=2]="MARKET",e[e.TRIGGER=3]="TRIGGER",e}({});let r={IOC:3,FOK:4,ONLYMAKER:5};var a=function(e){return e[e.CROSS=1]="CROSS",e[e.ISOLATED=2]="ISOLATED",e}({}),i=function(e){return e[e.COMBINED=1]="COMBINED",e[e.SEPARATED=2]="SEPARATED",e}({}),c=function(e){return e.OPEN="OPEN",e.CLOSE="CLOSE",e}({}),o=function(e){return e.BUY="BUY",e.SELL="SELL",e}({}),d=function(e){return e[e.REVERSE=0]="REVERSE",e[e.FORWARD=1]="FORWARD",e}({}),u=function(e){return e[e.CURRENCY=1]="CURRENCY",e[e.SHEET=2]="SHEET",e}({}),m=function(e){return e[e.STOP_LOSS=1]="STOP_LOSS",e[e.TAKE_PROFIT=2]="TAKE_PROFIT",e[e.OPEN_BUY=3]="OPEN_BUY",e[e.OPEN_SELL=4]="OPEN_SELL",e[e.CONDITION_ORDER=5]="CONDITION_ORDER",e[e.TRAILING_TAKE_PROFIT_STOP_LOSS=6]="TRAILING_TAKE_PROFIT_STOP_LOSS",e}({});let x={isQuantity:e=>1===e,isCost:e=>2===e,isNominalValue:e=>3===e,getLabel:e=>{switch(e){case 1:return"quantity";case 2:return"costValue";case 3:return"nominalValue";default:return"unknown"}}},p={isLimit:e=>1===e,isMarket:e=>2===e,isTrigger:e=>3===e,getLabel:e=>{switch(e){case 1:return"limit";case 2:return"market";case r.IOC:return"ioc";case r.FOK:return"fok";case r.ONLYMAKER:return"onlymaker";case 6:return"forcedLiquidation";case 7:return"positionMerge";default:return"unknown"}}},f={isCross:e=>1===e,isIsolated:e=>2===e,getLabel:e=>{switch(e){case 1:return"cross";case 2:return"isolated";default:return"unknown"}}},b={isOpen:e=>"OPEN"===e,isClose:e=>"CLOSE"===e,getLabel:e=>{switch(e){case"OPEN":return"open";case"CLOSE":return"close";default:return"unknown"}}},h={isBuy:e=>"BUY"===e,isSell:e=>"SELL"===e,getLabel:e=>{switch(e){case"BUY":return"long";case"SELL":return"short";default:return"unknown"}}},g={isNewOrder:e=>1===e,isFilled:e=>2===e,isPartiallyFilled:e=>3===e,isCanceled:e=>4===e,isPendingCancel:e=>5===e,isRejected:e=>6===e,isPartiallyCanceled:e=>7===e,getLabel:e=>{switch(e){case 1:return"newOrder";case 2:return"filled";case 3:return"partiallyFilled";case 4:return"canceled";case 5:return"pendingCancel";case 6:return"rejected";case 7:return"partiallyCanceled";default:return"unknown"}}},N={isStopLoss:e=>1===e,isTakeProfit:e=>2===e,isOpenBuy:e=>3===e,isOpenSell:e=>4===e,isConditionOrder:e=>5===e,isTrailingTpSl:e=>6===e,getLabel:(e,t)=>{switch(e){case 1:return t?"partialStopLoss":"positionStopLoss";case 2:return t?"partialTakeProfit":"positionTakeProfit";case 3:return"trigger";case 4:return"scheduledOrder";case 5:return"triggerConditionOrder";case 6:return"trailingTakeProfitStopLoss";default:return"unknown"}}},j=e=>Object.values(s).includes(e),v=e=>Object.values(n).includes(e),y=e=>Object.values(o).includes(e),C=e=>Object.values(m).includes(e);var O=function(e){return e.DEFAULT="default",e.MARKET_ASC="market-asc",e.MARKET_DESC="market-desc",e.PRICE_ASC="price-asc",e.PRICE_DESC="price-desc",e.CHANGE_ASC="change-asc",e.CHANGE_DESC="change-desc",e}({}),w=function(e){return e.ALL="all",e.ONLY_LONG="onlyLong",e.ONLY_SHORT="onlyShort",e.CURRENT_POSITION="currentPosition",e.CURRENT_COIN="currentCoin",e}({}),T=function(e){return e.PROFIT="profit",e.CLOSE_PRICE="close-price",e.LIQUIDATION_PRICE="liquidation-price",e}({}),E=function(e){return e.NONE="none",e}({}),R=function(e){return e.TRADE_FEE="TRADE_FEE",e.LOSS="LOSS",e.CAPITAL_FEE="CAPITAL_FEE",e.ORDER_UNLOCK="ORDER_UNLOCK",e.PROFIT_RECOVER="PROFIT_RECOVER",e.ORDER_LOCK="ORDER_LOCK",e.LOSS_RECOVER="LOSS_RECOVER",e.TRIAL_EXPIRE_CLEAR="TRIAL_EXPIRE_CLEAR",e.TRIAL_RECOVER_BY_TRANSFER="TRIAL_RECOVER_BY_TRANSFER",e.TRIAL_RECOVER_BY_NEW="TRIAL_RECOVER_BY_NEW",e}({}),S=function(e){return e[e.Latest=0]="Latest",e[e.Mark=1]="Mark",e}({});let L={getLabel:e=>{switch(e){case 0:default:return"";case 1:return"futuresTriggerOrderStatus1";case 2:return"futuresTriggerOrderStatus2";case 3:return"futuresTriggerOrderStatus3";case 4:return"futuresTriggerOrderStatus4"}}}},23415:(e,t,l)=>{l.d(t,{P:()=>a,v:()=>c});var s=l(76919),n=l(92051);let r=e=>e;function a(e,t=r){let l=s.useSyncExternalStore(e.subscribe,s.useCallback(()=>t(e.getState()),[e,t]),s.useCallback(()=>t(e.getInitialState()),[e,t]));return s.useDebugValue(l),l}let i=e=>{let t=(0,n.y)(e),l=e=>a(t,e);return Object.assign(l,t),l},c=e=>e?i(e):i},28374:(e,t,l)=>{l.d(t,{F:()=>s});let s=e=>new URL(e,"https://aivora-public.obs.ap-southeast-3.myhuaweicloud.com").toString()},32160:(e,t,l)=>{l.r(t),l.d(t,{default:()=>Q});var s=l(75615),n=l(76919),r=l(91624),a=l(31137),i=l(81392),c=l(4739),o=l(34369),d=l(23408),u=l(80066);let m={list:[],total:0};async function x(e){try{var t;let l=await d.A.get("/follow/follower/contract/capital/flow",{params:{...e,sence:null!=(t=null==e?void 0:e.sence)?t:null==e?void 0:e.scene}});return(0,u.O)(l.code)?l.data:m}catch(e){return console.error("[getFollowerContractCapitalFlow] error:",e),m}}var p=l(3559),f=l(39310),b=l(92018);let h=/(USDT|USDC|USD)$/;function g(e){return e?e.replace(h,"")||e:""}let N=new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1});function j(e){return N.format(new Date(e))}function v(){let{t:e}=(0,a.kj)("copy-trading");return(0,s.jsx)("span",{className:"rounded bg-bg-350 px-1 text-xs font-medium leading-5 text-text-300",children:e("table.perpetual")})}function y(e){let{currency:t}=e;return t?(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)(o.y,{name:t,width:32,height:32,className:"size-8 shrink-0 rounded-full"}),(0,s.jsx)("div",{className:"flex flex-col gap-0.5",children:(0,s.jsx)("span",{className:"truncate text-sm font-bold leading-[22px] text-text-500",children:t})})]}):(0,s.jsx)("span",{className:"text-sm font-medium text-text-500",children:"--"})}
1function C(e){let{contract:t}=e;return t?(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"whitespace-nowrap text-sm font-medium text-text-500",children:t}),(0,s.jsx)(v,{})]}):(0,s.jsx)("span",{className:"text-sm font-medium text-text-500",children:"--"})}let O={rowClassName:"border-none hover:bg-transparent",tableCellClassName:"p-0",tableHeaderClassName:"!p-0 [&_[data-slot=table-head]]:px-0"},w=(0,n.memo)(function(e){let{row:t,getSceneLabel:l}=e,{t:n}=(0,a.kj)("copy-trading"),r=g(t.contract),i=[{label:n("table.contract"),value:t.contract?(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{children:t.contract}),(0,s.jsx)(v,{})]}):"--"},{label:n("table.type"),value:l(t.sence)},{label:n("table.amount"),value:(0,p.b$)(t.changeAmount,4)},{label:n("table.balance"),value:(0,p.b$)(t.balance,4)},{label:n("table.time"),value:j(t.timestamp)}];return(0,s.jsxs)("article",{className:"flex flex-col gap-4 border-b border-b-line-25 py-4",children:[(0,s.jsx)("header",{className:"flex items-center gap-2.5",children:r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.y,{name:r,width:32,height:32,className:"size-8 shrink-0 rounded-full"}),(0,s.jsx)("div",{className:"flex flex-col gap-0.5",children:(0,s.jsx)("span",{className:"text-sm font-bold leading-[22px] text-text-500",children:t.contract})})]}):(0,s.jsx)("span",{className:"text-sm font-bold leading-[22px] text-text-500",children:l(t.sence)})}),(0,s.jsx)("div",{className:"flex flex-col gap-2 text-sm",children:i.map(e=>(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-text-200",children:e.label}),(0,s.jsx)("span",{className:"font-medium text-text-500",children:e.value})]},e.label))})]})});function T(e){let{leaderUid:t}=e,{t:l}=(0,a.kj)("copy-trading"),[r,o]=(0,n.useState)([]),[d,u]=(0,n.use
1State)(0),[m,h]=(0,n.useState)(1),[N,v]=(0,n.useState)(!0),T=(0,n.useRef)(0),E=(0,n.useCallback)(e=>e||"--",[l]);(0,n.useEffect)(()=>{let e=++T.current;v(!0),x({leaderUid:t,page:m,pageSize:10}).then(t=>{T.current===e&&(o(t.list),u(t.total))}).finally(()=>{T.current===e&&v(!1)})},[t,m]);let R=d>10,S=R||0===r.length?void 0:r[r.length-1],L=(0,n.useMemo)(()=>(function(e){let{t,getSceneLabel:l,lastRow:n}=e,r="calc(100% / 6)";return[{key:"currency",title:t("table.asset"),width:r,cell:(e,t)=>(0,s.jsx)("div",{className:(0,b.cn)("flex h-20 items-center",{"border-b border-b-line-25":t!==n}),children:(0,s.jsx)(y,{currency:g(t.contract)})})},{key:"contract",title:t("table.contract"),width:r,cell:(e,t)=>(0,s.jsx)("div",{className:(0,b.cn)("flex h-20 items-center",{"border-b border-b-line-25":t!==n}),children:(0,s.jsx)(C,{contract:t.contract})})},{key:"sence",title:t("table.type"),width:r,cellClassName:"[&>div]:whitespace-normal!",cell:(e,t)=>(0,s.jsx)("div",{className:(0,b.cn)("flex h-20 items-center px-1",{"border-b border-b-line-25":t!==n}),children:(0,s.jsx)("span",{className:"text-sm font-medium text-text-500",children:l(t.sence)})})},{key:"changeAmount",title:t("table.amount"),width:r,cell:(e,t)=>(0,s.jsx)("div",{className:(0,b.cn)("flex h-20 items-center",{"border-b border-b-line-25":t!==n}),children:(0,s.jsx)("span",{className:"text-sm font-medium text-text-500",children:(0,p.b$)(t.changeAmount,4)})})},{key:"balance",title:t("table.balance"),width:r,cell:(e,t)=>(0,s.jsx)("div",{className:(0,b.cn)("flex h-20 items-center",{"border-b border-b-line-25":t!==n}),children:(0,s.jsx)("span",{className:"text-sm font-medium text-text-500",children:(0,p.b$)(t.balance,4)})})},{key:"timestamp",title:t("table.time"),width:r,cell:(e,t)=>(0,s.jsx)("div",{className:(0,b.cn)("flex h-20 items-center",{"border-b border-b-line-25":t!==n}),children:(0,s.jsx)("span",{className:"whitespace-nowrap text-sm font-medium text-text-500",children:j(t.timestamp)})})}]})({t:l,getSceneLabel:E,lastRow:S}),[l,E,S]);return(0,s.jsx)(f.A,{loading:N,isEmpty:0===r.length,children:(0,s.jsxs)("section",{className:"rounded-lg border border-line-25 p-6",children:[(0,s.jsx)("div",{className:"hidden lg:block",children:(0,s.jsx)(i.A,{columns:L,data:r,loading:N,rowKey:(e,t)=>"".concat(e.timestamp,"-").concat(t),totalCount:d,defaultPageIndex:m,defaultPageSize:10,onPageChange:h,showPagination:R,...O})}),(0,s.jsxs)("div",{className:"lg:hidden",children:[r.map((e,t)=>(0,s.jsx)(w,{row:e,getSceneLabel:E},"".concat(e.timestamp,"-").concat(t))),(0,s.jsx)(c.A,{className:"mt-4",pageIndex:m,pageSize:10,totalCount:d,onPageChange:h})]})]})})}var E=l(97737),R=l(84614),S=l(52437),L=l(12169),P=l(16055),A=l(83891),k=l(38962),_=l(21666),F=l(77871);async function I(e){try{let t=await d.A.get("/follow/follower/contract/current/position",{params:e});return(0,u.O)(t.code)?t.data:{list:[],total:0}}catch(e){return console.error("[getFollowerContractCurrentPosition] error:",e),{list:[],total:0}}}async function U(e){try{let t=await d.A.get("/follow/follower/contract/history/position",{params:e});return(0,u.O)(t.code)?t.data:{list:[],total:0}}catch(e){return console.error("[getFollowerContractHistoryPosition] error:",e),{list:[],total:0}}}var D=function(e){return e.CURRENT_FOLLOW="current-follow",e.HISTORY_FOLLOW="history-follow",e.FUND_FLOW="fund-flow",e}({});function M(e){return{id:String(e.positionId),leaderUid:e.leaderUid,contract:e.contract,contractId:e.contractId,leverage:e.leverage,side:e.side,positionType:e.positionType,volume:e.volume*(e.multiplier||1),symbol:e.symbol.replace("-",""),openAvgPrice:e.openAvgPrice,positionMargin:e.positionMargin,markOrClosePrice:e.tagPrice,pnl:e.unrealizedPnl,roi:e.unrealizedRoi,openTime:e.openTime,closeTime:e.closeTime}}function W(e){return{id:"".concat(e.contractId,"-").concat(e.openTime),leaderUid:e.leaderUid,contract:e.contract,contractId:e.contractId,leverage:e.leverageLevel,side:e.side,positionType:e.positionType,volume:e.totalVolume*(e.multiplier||1),symbol:e.symbol.replace("-",""),openAvgPrice:e.openEndPrice,positionMargin:0,markOrClosePrice:e.closeAvgPrice,pnl:e.closeProfit,roi:e.yieldRate,openTime:e.openTime,closeTime:e.closeTime,tradeFee:e.tradeFee,capitalFee:e.capitalFee,closePnl:e.closePnl,multiplier:e.multiplier,closeVolume:e.closeVolume}}var z=l(34869);function $(e){let{side:t}=e,{t:l}=(0,a.kj)("futures"),n=_.Ri.isBuy(t),r=_.Ri.isSell(t);return(0,s.jsx)("span",{className:(0,b.cn)("rounded px-1 py-0.5 text-xs text-text-500",{"bg-success-400":n,"bg-loss-400":r,"bg-bg-350":!n&&!r}),children:n?l("long"):r?l("short"):"--"})}function Y(e){let{positionType:t}=e,{t:l}=(0,a.kj)("futures"),n=_.VF.getLabel(t);return(0,s.jsx)("span",{className:"rounded bg-bg-350 px-1 py-0.5 text-xs text-text-500",children:l(n)})}function V(e){let{leverage:t}=e;return(0,s.jsxs)("span",{className:"rounded bg-bg-350 px-1 py-0.5 text-xs text-text-500",children:[t,"X"]})}function B(e){let{row:t,isLast:l}=e,n=_.Ri.isBuy(t.side),r=_.Ri.isSell(t.side);return(0,s.jsxs)("section",{className:"flex h-20 items-center gap-6",children:[(0,s.jsx)("div",{className:(0,b.cn)("h-12 w-0.5 rounded-r-full",{"bg-success-400":n,"bg-loss-400":r,"bg-line-50":!n&&!r})}),(0,s.jsxs)("div",{className:(0,b.cn)("flex h-20 flex-1 flex-col justify-center gap-1",{"border-b border-b-line-25":!l}),children:[(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsx)("span",{className:"text-sm font-bold text-text-500",children:t.symbol})}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)($,{side:t.side}),(0,s.jsx)(Y,{positionType:t.positionType}),(0,s.jsx)(V,{leverage:t.leverage})]})]})]})}let K=new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1});function H(e){return K.format(new Date(e))}let G=(0,n.memo)(function(e){let{row:t,marginPrecision:l,onClose:n}=e,{t:r}=(0,a.kj)("copy-trading"),i=_.Ri.isBuy(t.side),c=_.Ri.isSell(t.side),o=[{label:r("currentFollow.volume"),value:"".concat((0,p.b$)(t.volume,4)," ").concat(t.symbol)},{label:r("currentFollow.positionMargin"),value:"".concat((0,p.b$)(t.positionMargin,l)," USDT")},{label:r("currentFollow.openAvgPrice"),value:(0,p.b$)(t.openAvgPrice,1)},{label:r("currentFollow.markPrice"),value:(0,p.b$)(t.markOrClosePrice,1)}];return(0,s.jsxs)("article",{className:"flex flex-col gap-4 border-b border-b-line-25 py-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:(0,b.cn)("h-[52px] w-0.5 shrink-0 rounded-r-full",{"bg-success-400":i,"bg-loss-400":c,"bg-line-50":!i&&!c})}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsx)("span",{className:"text-sm font-bold text-text-500",children:t.contract})}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)($,{side:t.side}),(0,s.jsx)(Y,{positionType:t.positionType}),(0,s.jsx)(V,{leverage:t.leverage})]})]}),(0,s.jsx)(S.$,{variant:"secondary",size:"sm",className:"shrink-0",onClick:()=>null==n?void 0:n(Number(t.id)),children:r("currentFollow.marketClose")})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 text-sm",children:[o.map(e=>(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-text-200",children:e.label}),(0,s.jsx)("span",{className:"font-medium text-text-500",children:e.value})]},e.label)),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-text-200",children:r("currentFollow.unrealizedPnl")}),(0,s.jsx)(z.W,{value:t.pnl,suffix:"USDT"})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-text-200",children:r("currentFollow.yieldRate")}),(0,s.jsx)(z.o,{value:t.roi})]})]})]})}),X=(0,n.memo)(function(e){var t,l,r,i,c,d,u,m,x,f;let{record:h,isLast:g}=e,{t:N}=(0,a.kj)("futures"),{t:j}=(0,a.kj)("copy-trading"),{publicInfo:v}=(0,P.S)(),y=_.Ri.isBuy(h.side),C=_.Ri.isSell(h.side),O=h.symbol?h.symbol.replace("USDT","").toUpperCase():"",w="USDT",T=(0,n.useMemo)(()=>
1{if(!O||!v)return;let e=v.market.coinList[O];if(e)return e.icon},[O,v]),R=h.symbol,S=(0,p.b$)(null!=(t=h.tradeFee)?t:0,4),L=(0,p.b$)(h.openAvgPrice,2),A=(0,p.b$)(h.markOrClosePrice,2),k=_.VF.getLabel(h.positionType),F=y?N("long"):C?N("short"):"--",I=(0,n.useMemo)(()=>{if(null==h.volume||!h.symbol)return"--";if(null!=h.closeVolume&&null!=h.multiplier){var e;let t=(null==(e=h.multiplier.toString().split(".")[1])?void 0:e.length)||0,l=new E.A(h.closeVolume).mul(h.multiplier).toDecimalPlaces(t,E.A.ROUND_DOWN).toNumber();return"".concat(l," ").concat(O)}return"".concat((0,p.b$)(h.volume,4)," ").concat(O)},[h.volume,h.symbol,h.closeVolume,h.multiplier,O]),U=[{label:N("positionOpenTime"),value:null!=h.openTime?H(h.openTime):"--",key:"openTime"},{label:N("positionCloseTime"),value:null!=h.closeTime?H(h.closeTime):"--",key:"closeTime"},{label:N("positionSize"),value:I,key:"positionSize"},{label:N("positionOpenAveragePrice"),value:L,key:"openAveragePrice"},{label:N("positionCloseAveragePrice"),value:A,key:"closeAveragePrice"},{label:N("fundingFee"),value:"".concat((0,p.b$)(null!=(l=h.capitalFee)?l:0,4)," ").concat(w),key:"fundingFee"},{label:N("fee"),value:"".concat(S," ").concat(w),key:"fee"},{label:N("positionClosePnl"),value:(0,s.jsx)("span",{className:(0,b.cn)("font-bold",{"text-loss-400":0>Number(null!=(r=h.closePnl)?r:0),"text-success-400":Number(null!=(i=h.closePnl)?i:0)>0}),children:(0,p.b$)(null!=(c=h.closePnl)?c:0,4)}),key:"closeProfit"},{label:j("historyPosition.positionProfit"),value:(0,s.jsx)("span",{className:(0,b.cn)("font-bold",{"text-loss-400":0>Number(h.pnl),"text-success-400":Number(h.pnl)>0}),children:(0,p.b$)(h.pnl,4)}),key:"realizedPnL"},{label:j("historyPosition.yieldRate"),value:(0,s.jsx)("span",{className:(0,b.cn)("font-bold",{"text-loss-400":0>Number(h.roi),"text-success-400":Number(h.roi)>0}),children:null!=h.roi?"".concat((Math.trunc(100*h.roi)/100).toFixed(2),"%"):"--"}),key:"yieldRate"}];return(0,s.jsxs)("article",{className:(0,b.cn)("border-b border-solid border-line-25 pb-2 px-4",{"border-b-0":g}),children:[(0,s.jsxs)("div",{className:"hidden md:block",children:[(0,s.jsxs)("div",{className:"mb-3 flex items-center mt-3",children:[(0,s.jsx)("h5",{className:"mr-2.5 flex items-center text-sm font-bold",children:(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(o.y,{url:T||"",name:O,className:"size-6 rounded-full border-2 border-solid border-line-25 shadow-[0_0_3.1px_0_var(--bg-1025)]"}),(0,s.jsx)("span",{className:"text-sm font-bold",children:R})]})}),(0,s.jsx)("span",{className:(0,b.cn)("mr-1 rounded-sm px-2.5 text-xs text-text-500",{"bg-loss-400":C,"bg-success-400":y}),children:F}),(0,s.jsx)("span",{className:"mr-1 rounded-sm bg-bg-350 px-2.5 text-xs font-bold text-text-500",children:N(k)}),(0,s.jsxs)("span",{className:"mr-1 rounded-sm bg-bg-350 px-2.5 text-xs font-bold text-text-500",children:[h.leverage,"X"]})]}),(0,s.jsx)("div",{className:"grid md:grid-cols-5 gap-y-3 text-xs",children:U.map(e=>{let t="string"==typeof e.value?(0,s.jsx)("p",{className:"font-bold text-text-500",children:e.value}):e.value;return(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("p",{className:"text-text-200",children:e.label}),t]},e.key)})})]}),(0,s.jsxs)("div",{className:"md:hidden py-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(o.y,{url:T||"",name:O,className:"size-4 rounded-full"}),(0,s.jsx)("span",{className:"text-sm font-bold text-text-500",children:R})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)($,{side:h.side}),(0,s.jsx)(Y,{positionType:h.positionType}),(0,s.jsx)(V,{leverage:h.leverage})]})]}),(0,s.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm text-text-200",children:N("positionOpenTime")}),(0,s.jsx)("span",{className:"text-xs font-medium text-text-500",children:null!=h.openTime?H(h.openTime):"--"})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm text-text-200",children:N("positionCloseTime")}),(0,s.jsx)("span",{className:"text-xs font-medium text-text-500",children:null!=h.closeTime?H(h.closeTime):"--"})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm text-text-200",children:N("positionSize")}),(0,s.jsx)("span",{className:"text-sm font-medium text-text-500",children:I})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm text-text-200",children:N("positionOpenAveragePrice")}),(0,s.jsx)("span",{className:"text-sm font-medium text-text-500",children:L})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm text-text-200",children:N("positionCloseAveragePrice")}),(0,s.jsx)("span",{className:"text-sm font-medium text-text-500",children:A})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm text-text-200",children:N("fundingFee")}),(0,s.jsxs)("span",{className:"text-xs font-medium text-text-500",children:[(0,p.b$)(null!=(d=h.capitalFee)?d:0,4)," ",w]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm text-text-200",children:N("fee")}),(0,s.jsxs)("span",{className:"text-xs font-medium text-text-500",children:[S," ",w]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm text-text-200",children:N("positionClosePnl")}),(0,s.jsx)("span",{className:(0,b.cn)("text-xs font-medium",{"text-loss-4
100":0>Number(null!=(u=h.closePnl)?u:0),"text-success-400":Number(null!=(m=h.closePnl)?m:0)>0,"text-text-500":0===Number(null!=(x=h.closePnl)?x:0)}),children:(0,p.b$)(null!=(f=h.closePnl)?f:0,4)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm text-text-200",children:j("historyPosition.positionProfit")}),(0,s.jsx)("span",{className:(0,b.cn)("text-xs font-medium",{"text-loss-400":0>Number(h.pnl),"text-success-400":Number(h.pnl)>0,"text-text-500":0===Number(h.pnl)}),children:(0,p.b$)(h.pnl,4)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm text-text-200",children:j("historyPosition.yieldRate")}),(0,s.jsx)("span",{className:(0,b.cn)("text-xs font-medium",{"text-loss-400":0>Number(h.roi),"text-success-400":Number(h.roi)>0,"text-text-500":0===Number(h.roi)}),children:null!=h.roi?"".concat((Math.trunc(100*h.roi)/100).toFixed(2),"%"):"--"})]})]})]})]})});function q(e){let{leaderUid:t,type:l}=e,{t:r}=(0,a.kj)("copy-trading"),o=(0,A.pX)(e=>e.futuresTradingPairs),{data:d,total:u,isLoading:m,page:x,pageSize:h,setPage:g,refresh:N}=function(e,t){var l,s;let r=t===D.CURRENT_FOLLOW,[a,i]=(0,n.useState)(1),[c,o]=(0,n.useState)(0),d=c>=5,[u]=(0,n.useState)(()=>Date.now()),m=(0,n.useMemo)(()=>["follow-position",e,t,a,10,u],[e,t,a,u]),x=(0,n.useCallback)(async()=>{let t={page:a,pageSize:10};if(r){let{list:l,total:s}=await I({leaderUid:e,...t});return{rows:l.map(M),total:s}}let{list:l,total:s}=await U({leaderUid:e,...t});return{rows:l.map(W),total:s}},[e,r,a]),p=(0,n.useCallback)(e=>Math.min(5e3*Math.pow(2,e),6e4),[]),f=(0,n.useRef)(new Set);(0,n.useEffect)(()=>{let e=f.current;return()=>{e.forEach(clearTimeout),e.clear()}},[m]);let{data:b,isLoading:h,mutate:g}=(0,F.Ay)(m,x,{refreshInterval:5e3*!!r,dedupingInterval:5e3,refreshWhenOffline:!1,refreshWhenHidden:!1,revalidateOnMount:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,isPaused:()=>d,onSuccess:()=>{o(0)},onError:()=>{o(e=>e+1)},onErrorRetry:(e,t,l,s,n)=>{let{retryCount:r}=n;if(r>=5)return;let a=setTimeout(()=>{f.current.delete(a),s({retryCount:r})},p(r));f.current.add(a)}}),N=(0,n.useRef)(g);N.current=g;let j=(0,n.useCallback)(()=>{o(0),N.current()},[]);return{data:null!=(l=null==b?void 0:b.rows)?l:[],total:null!=(s=null==b?void 0:b.total)?s:0,isLoading:h,page:a,pageSize:10,setPage:i,refresh:j}}(t,l),j=l===D.CURRENT_FOLLOW,v=(0,n.useMemo)(()=>new Map(o.map(e=>[e.id,e.marginCoinPrecision])),[o]),y=(0,n.useCallback)(e=>{let t=Number(v.get(e.contractId));return Number.isFinite(t)&&t>=0?t:4},[v]),[C,w]=(0,n.useState)(null),[T,E]=(0,n.useState)(!1),P=(0,n.useCallback)(async()=>{if(null!==C){E(!0);try{await (0,k.p)({positionId:C})?(R.toast.success(r("currentFollow.closeSuccess")),N()):R.toast.error(r("currentFollow.closeFailed"))}finally{E(!1),w(null)}}},[C,N,r]),_=u>h,$=_||0===d.length?void 0:d[d.length-1].id,Y=(0,n.useMemo)(()=>(function(e){let{t,onClosePosition:l,getMarginPrecision:n,lastRowId:r}=e,a=null!=n?n:()=>4;return[{key:"contract",title:t("currentFollow.position"),headerClassName:"ml-6",cell:(e,t)=>(0,s.jsx)(B,{row:t,isLast:t.id===r})},{key:"volume",title:t("currentFollow.volume"),cell:(e,t)=>{let l=t.symbol.replace("USDT","").toUpperCase(),n=null!=t.markOrClosePrice?t.volume*t.markOrClosePrice:null;return(0,s.jsxs)("div",{className:(0,b.cn)("flex h-20 flex-col justify-center text-text-500",{"border-b border-b-line-25":t.id!==r}),children:[(0,s.jsxs)("div",{children:[(0,p.b$)(t.volume,4)," ",l]}),null!=n&&(0,s.jsxs)("div",{className:"text-xs text-text-200",children:["â ",(0,p.b$)(n,6)," USDT"]})]})}},{key:"positionMargin",title:t("currentFollow.positionMargin"),cell:(e,t)=>(0,s.jsxs)("div",{className:(0,b.cn)("flex h-20 items-center text-text-500",{"border-b border-b-line-25":t.id!==r}),children:[(0,p.b$)(t.positionMargin,a(t))," USDT"]})},{key:"openAvgPrice",title:t("currentFollow.openAvgPrice"),cell:(e,t)=>(0,s.jsx)("div",{className:(0,b.cn)("flex h-20 items-center text-text-500",{"border-b border-b-line-25":t.id!==r}
1),children:(0,p.jq)(t.openAvgPrice,10,{fillDecimal:!1})})},{key:"markOrClosePrice",title:t("currentFollow.markPrice"),cell:(e,t)=>(0,s.jsx)("div",{className:(0,b.cn)("flex h-20 items-center text-text-500",{"border-b border-b-line-25":t.id!==r}),children:(0,p.jq)(t.markOrClosePrice,10,{fillDecimal:!1})})},{key:"pnl",title:t("currentFollow.unrealizedPnl"),align:"right",cell:(e,t)=>(0,s.jsx)("div",{className:(0,b.cn)("flex h-20 items-center justify-end",{"border-b border-b-line-25":t.id!==r}),children:(0,s.jsx)(z.W,{value:t.pnl,suffix:"USDT"})})},{key:"roi",title:t("currentFollow.yieldRate"),headerClassName:"!pr-0",align:"right",cell:(e,t)=>(0,s.jsx)("div",{className:(0,b.cn)("flex h-20 items-center justify-end",{"border-b border-b-line-25":t.id!==r}),children:(0,s.jsx)(z.o,{value:t.roi})})},{key:"operation",title:t("currentFollow.operation"),align:"right",cell:(e,n)=>(0,s.jsx)("div",{className:(0,b.cn)("flex h-20 items-center justify-end",{"border-b border-b-line-25":n.id!==r}),children:(0,s.jsx)(S.$,{variant:"secondary",size:"sm",onClick:()=>l(Number(n.id)),children:t("currentFollow.marketClose")})})}]})({t:r,onClosePosition:w,getMarginPrecision:y,lastRowId:$}),[r,w,y,$]);return j?(0,s.jsxs)(f.A,{loading:m,isEmpty:0===d.length,children:[(0,s.jsxs)("section",{className:"rounded-lg border border-line-25 p-6",children:[(0,s.jsx)("div",{className:"hidden md:block",children:(0,s.jsx)(i.A,{columns:Y,data:d,loading:m,rowKey:"id",totalCount:u,defaultPageIndex:x,defaultPageSize:h,onPageChange:g,showPagination:_,...O})}),(0,s.jsxs)("div",{className:"md:hidden",children:[d.map(e=>(0,s.jsx)(G,{row:e,marginPrecision:y(e),onClose:w},e.id)),(0,s.jsx)(c.A,{className:"mt-4",pageIndex:x,pageSize:h,totalCount:u,onPageChange:g})]})]}),(0,s.jsx)(L.st,{open:null!==C,onOpenChange:e=>{e||w(null)},children:(0,s.jsxs)(L.lW,{className:"sm:max-w-[400px] border-t-0 border-t-transparent",children:[(0,s.jsx)(L.T9,{children:(0,s.jsx)(L.aL,{children:r("currentFollow.confirmClose")})}),(0,s.jsx)("p",{className:"px-6 pb-4 text-sm text-text- relative",children:r("currentFollow.confirmCloseDesc")}),(0,s.jsxs)(L.Rp,{className:"flex justify-end gap-2 w-full",children:[(0,s.jsx)(S.$,{variant:"outline",className:"flex-1",onClick:()=>w(null),disabled:T,children:r("shared.cancel")}),(0,s.jsx)(S.$,{className:"flex-1",onClick:P,loading:T,disabled:T,children:r("shared.confirm")})]})]})})]}):(0,s.jsx)(f.A,{loading:m,isEmpty:0===d.length,children:(0,s.jsxs)("section",{className:"rounded-lg border border-line-25 px-4 py-2 md:p-6",children:[(0,s.jsx)("div",{className:"flex flex-col",children:d.map((e,t)=>(0,s.jsx)(X,{record:e,isLast:t===d.length-1},e.id))}),(0,s.jsx)(c.A,{className:"mt-4",pageIndex:x,pageSize:h,totalCount:u,onPageChange:g,showPagination:u>h})]})})}function Q(e){let{leaderUid:t,variant:l="current"}=e,{t:i}=(0,a.kj)("copy-trading"),c="history"===l,o=c?D.HISTORY_FOLLOW:D.CURRENT_FOLLOW,[d,u]=(0,n.use
1State)(o),m=(0,n.useMemo)(()=>{let e=[{id:D.CURRENT_FOLLOW,label:i("follow.currentCopyTrade")},{id:D.HISTORY_FOLLOW,label:i("follow.historyCopyTrade")},{id:D.FUND_FLOW,label:i("follow.fundFlow")}];return c?e.filter(e=>e.id!==D.CURRENT_FOLLOW):e},[c,i]);return(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)(r.A,{variant:"pill",layoutId:"copy-trading-myflow-tabs-".concat(t),className:"mb-6 rounded-lg border border-line-50 bg-bg-150 p-1 ",indicatorClassName:"rounded-xl",activeTab:d,onTabChange:u,tabs:m.map(e=>({id:e.id,label:e.label,classNames:{inactive:"font-bold px-6 md:px-6 py-1 md:py-1 text-text-100 text-xs sm:text-sm whitespace-nowrap",active:"text-text-25 text-xs sm:text-sm"}}))}),d===D.CURRENT_FOLLOW&&(0,s.jsx)(q,{leaderUid:t,type:D.CURRENT_FOLLOW},D.CURRENT_FOLLOW),d===D.HISTORY_FOLLOW&&(0,s.jsx)(q,{leaderUid:t,type:D.HISTORY_FOLLOW},D.HISTORY_FOLLOW),d===D.FUND_FLOW&&(0,s.jsx)(T,{leaderUid:t})]})}},34369:(e,t,l)=>{l.d(t,{y:()=>c});var s=l(75615),n=l(76919),r=l(92018),a=l(28374),i=l(79794);function c(e){let{name:t="",url:l,width:c=32,height:o=32,className:d,style:u}=e,[m,x]=n.useState(!1),{publicInfo:p}=(0,i.useGlobalContext)(),{market:f}=null!=p?p:{},{coinList:b}=null!=f?f:{},h=n.useMemo(()=>{let e=null==b?void 0:b[t.toUpperCase()];return(null==e?void 0:e.icon)||(0,a.F)("/operate-web/config/coin/".concat(t.toUpperCase(),".png"))},[b,t]),g=n.useCallback(e=>{x(!0)},[]),N=n.useMemo(()=>l||h,[l,h]);return(!m||e.fallback)&&(0,r.j)(N)?m&&e.fallback?e.fallback:(0,s.jsx)("img",{src:N,title:N,alt:t,onError:g,className:(0,r.cn)("rounded-full",d),onClick:e.onClick}):(0,s.jsx)("div",{className:(0,r.cn)("bg-bg-75 rounded-full text-base text-white flex items-center justify-center font-bold",d),style:{...u},children:t.charAt(0).toUpperCase()})}},34869:(e,t,l)=>{l.d(t,{W:()=>o,o:()=>d});var s=l(75615),n=l(3559),r=l(92018);function a(e){return null==e?"empty":0===e?"zero":e>0?"positive":"negative"}function i(e,t){return(0,r.cn)("font-medium",{"text-text-500":"empty"===e||"zero"===e,"text-success-400":"positive"===e,"text-loss-400":"negative"===e},t)}function c(e){return"positive"===e?"+":""}function o(e){let{value:t,suffix:l,precision:o=4,className:d,emptyText:u="--"}=e,m=a(t);if("empty"===m)return(0,s.jsx)("span",{className:(0,r.cn)("font-medium text-text-500",d),children:u});let x="".concat(c(m)).concat((0,n.b$)(t,o));return(0,s.jsxs)("span",{className:i(m,d),children:[x,l?" ".concat(l):""]})}function d(e){let{value:t,precision:l=2,multiply100:n=!0,className:o,emptyText:d="--"}=e,u=a(t);if("empty"===u)return(0,s.jsx)("span",{className:(0,r.cn)("font-medium text-text-500",o),children:d});let m="".concat(c(u)).concat((0,r.Ee)(t,{decimalPlaces:l,multiply100:n}));return(0,s.jsx)("span",{className:i(u,o),children:m})}},38962:(e,t,l)=>{l.d(t,{p:()=>a});var s=l(44705),n=l(23408),r=l(84614);async function a(e){try{let t=await n.A.post("/futures/api/order/close_all_position",e);if(t.code===s.CS)return!0;return r.toast.error(t.msg),null}catch(e){return null}}},39456:(e,t,l)=>{l.d(t,{u:()=>a});var s=l(76919),n=l(23408),r=l(80066);async function a(){try{let e=await n.A.get("/follow/leader/current-user-info");return(0,r.O)(e.code)?e.data:null}catch(e){return console.error("[getLeaderCurrentUserInfo] error:",e),null}}(0,s.cache)(a)},73616:(e,t,l)=>{l.d(t,{A:()=>m});var s,n=l(49046),r=l(76919),a=l(2648),i=new Set,c={xs:0,sm:576,md:768,lg:992,xl:1200};function o(){var e,t,l=s;if(u(),l!==s)try{for(var r=(0,n.__values)(i),a=r.next();!a.done;a=r.next())(0,a.value)()}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}var d=!1;function u(){var e,t,l=window.innerWidth,r={},a=!1;try{for(var i=(0,n.__values)(Object.keys(c)),o=i.next();!o.done;o=i.next()){var d=o.value;r[d]=l>=c[d],r[d]!==s[d]&&(a=!0)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}a&&(s=r)}let m=function(){a.A&&!d&&(s={},u(),window.addEventListener("resize",o),d=!0);var e=(0,n.__read)((0,r.useState)(s),2),t=e[0],l=e[1];return(0,r.useEffect)(function(){if(a.A){d||window.addEventListener("resize",o);var e=function(){l(s)};return i.add(e),function(){i.delete(e),0===i.size&&(window.removeEventListener("resize",o),d=!1)}}},[]),t}},83891:(e,t,l)=>{l.d(t,{CopyTradingStoreProvider:()=>u,pX:()=>m,pK:()=>x});var s=l(75615),n=l(76919),r=l(23415),a=l(92051),i=l(39456);let c={copyTradeConfig:void 0,isAuthenticated:!1,userInfo:null,currentLeaderInfo:null,isCurrentUserLeader:!1,homeBrief:void 0,followerBrief:null,futuresTradingPairs:[]},o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return(0,a.y)(t=>({...e,setCopyTradeConfig:e=>t({copyTradeConfig:e}),setAuthStatus:e=>t({isAuthenticated:e.isAuthenticated,userInfo:e.userInfo}),setCurrentLeaderInfo:e=>t({currentLeaderInfo:e,isCurrentUserLeader:!!e}),fetchCurrentLeaderInfo:async()=>{let e=await (0,i.u)();return t({currentLeaderInfo:e,isCurrentUserLeader:!!e}),e}}))},d=n.createContext(void 0),u=e=>{let{children:t,copyTradeConfig:l,isAuthenticated:r=!1,userInfo:a=null,currentLeaderInfo:i=null,isCurrentUserLeader:c=!1,homeBrief:u,followerBrief:m=null,futuresTradingPairs:x=[]}=e,p=n.useRef(null);return null===p.current&&(p.current=o({copyTradeConfig:l,isAuthenticated:r,userInfo:a,currentLeaderInfo:i,isCurrentUserLeader:c,homeBrief:u,followerBrief:m,futuresTradingPairs:x})),n.useEffect(()=>{var e;null==(e=p.current)||e.setState({copyTradeConfig:l,isAuthenticated:r,userInfo:a,currentLeaderInfo:i,isCurrentUserLeader:c,homeBrief:u,followerBrief:m,futuresTradingPairs:x})},[l,r,a,i,c,u,m,x]),(0,s.jsx)(d.Provider,{value:p.current,children:t})},m=e=>{let t=n.useContext(d);if(!t)throw Error("useCopyTradingStore must be used within CopyTradingStoreProvider");return(0,r.P)(t,e)},x=()=>{let e=n.useContext(d);if(!e)throw Error("useCopyTradingStoreApi must be used within CopyTradingStoreProvider");return e}},92051:(e,t,l)=>{l.d(t,{y:()=>n});let s=e=>{let t,l=new Set,s=(e,s)=>{let n="function"==typeof e?e(t):e;if(!Object.is(n,t)){let e=t;t=(null!=s?s:"object"!=typeof n||null===n)?n:Object.assign({},t,n),l.forEach(l=>l(t,e))}},n=()=>t,r={setState:s,getState:n,getInitialState:()=>a,subscribe:e=>(l.add(e),()=>l.delete(e))},a=t=e(s,n,r);return r},n=e=>e?s(e):s}}]);
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.