PageSourceSearch

https://cdn.wisgate.ai/wisgate/_nuxt/y0XJ1xRd.js

js wisgate.ai collected 2026-10-04 13:25:17 UTC 2,200 bytes, 1 lines download raw bytes

1const r={perToken:"per-token",perRequest:"per-request",perSecond:"per-second",imageBaseRatio:"image-base-ratio",imageFixed:"image-fixed",videoBaseRatio:"video-base-ratio",videoFixed:"video-fixed",videoTokenTier:"video-token-tier"},s=(...e)=>{for(const i of e)if(i!=null)return i},k=e=>e!=null&&e!=="",f=e=>{const i=Number(e);return Number.isFinite(i)&&i>0},m=(e,i=6)=>Number.isFinite(e)?Number(e.toFixed(i)).toString():"",x=(e,i={})=>{const t=i.currency??"$",n=i.freeLabel??"Free",o=i.naLabel??"N/A";if(e==null||e==="")return o;if(e===0||e==="0"||e==="0.0")return n;if(typeof e=="string"){const a=e.trim(),g=a.toLowerCase();if(g==="free")return n;if(g==="n/a")return o;const d=a.match(/^[$Â¥]?\s*(-?\d+(?:\.\d+)?)(.*)$/);if(d){const p=Number(d[1]);if(!Number.isFinite(p))return o;if(p===0)return n;const _=d[2]?.trim();return`${t}${m(p)}${_?` ${_}`:""}`}return a}const u=Number(e);return Number.isFinite(u)?u===0?n:`${t}${m(u)}`:o},b=e=>s(e.pricing?.input_price,e.input_price),F=e=>s(e.pricing?.output_price,e.output_price),P=e=>s(e.pricing?.unit,e.unit)||"",l=e=>s(e.pricing?.quota_type,e.quota_type),T=e=>e.media_pricing_config||e.pricing?.media_pricing_config||{},c=e=>{const i=s(e.pricing?.pricing_mode,e.pricing_mode);return i||(l(e)===0?r.perToken:String(P(e)).toLowerCase().includes("second")?r.perSecond:r.perRequest)},N=e=>{const i=c(e);return i!==r.perToken&&i!==r.perRequest},R=e=>c(e)===r.perToken,q=e=>c(e)===r.perRequest,v=e=>{const i=e.pixel_tiers||[];for(const t of i){if(f(t.price))return t.price;if(f(t.second_price))return t.second_price}},y=e=>{const i=c(e),t=T(e),n=b(e);return i===r.perSecond?n:i===r.imageBaseRatio?t.base_price??n:i===r.imageFixed?t.default_price??v(t)??n:i===r.videoBaseRatio?t.base_second_price??n:i===r.videoFixed?t.default_second_price??t.default_price??v(t)??n:i===r.videoTokenTier?t.video_token_tiers?.find(o=>f(o.price_per_million_tokens))?.price_per_million_tokens??n:n},M=e=>e===r.perSecond?"per-second":e===r.imageBaseRatio||e===r.imageFixed?"per-image":e===r.videoBaseRatio?"per-video-second":e===r.videoFixed?"per-video":e===r.videoTokenTier?"per-1m-video-tokens":"";export{R as a,M as b,c,q as d,b as e,x as f,y as g,k as h,N as i,F as j,r as p};

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.