1import{b as i}from"./constants-CjYbjhWM.js";import{t as l}from"./markdownIt-E8IBm65V.js";function N({getDataFn:r,otherOptions:t={},otherArgs:n=[],data:e=[],currentPage:s=1,pageSize:c=1e4,isUnderline:u=!1}){return new Promise((f,a)=>{const o={...t};u?(o.page_size=c,o.current_page=s):(o.pageSize=c,o.currentPage=s),r(o,...n).then(({content:p,total:m})=>{e=e.concat(p),m=Number(m),m>e.length?(s++,N({getDataFn:r,otherOptions:t,otherArgs:n,data:e,currentPage:s,pageSize:c,isUnderline:u})):f(e)}).catch(p=>{a(p)})})}var b=new Intl.NumberFormat(i?"zh-CN":"en-US",{style:"currency",currency:i?"CNY":"USD"});function w(r,t=2,n){r||(r=0);const e=Number(r).toFixed(t);return n?e:b.format(Number(e))}function P(r,t=2){const n=i?"æ":"% off",e=(i?10:0)+n;return!r||(i?r=Number(r):r=1-Number(r),r=Number(r.toFixed(t))*(i?10:100),isNaN(r))?e:(i?g(r):r)+n}var d={0:"é¶",1:"ä¸",2:"äº",3:"ä¸",4:"å",5:"äº",6:"å
",7:"ä¸",8:"å
«",9:"ä¹",".":"ç¹"};function g(r){let t="";const n=String(r);for(let e=0;e<n.length;e++)t+=d[n[e]];return t}function y(r){return(r?.url||"").replace(/\/(api|app)/,"/api")}function D(){const r=l.renderer.rules.image,t="/api";l.renderer.rules.image=function(n,e,s,c,u){return r(n,e,s,c,u).replace(/src=['"](\/(api|app))/,function(f,a){return f.replace(a,t)})}}export{D as a,w as i,N as n,y as r,P as t};
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.