1import{yr as e}from"./portfolio-core-BY-QcD1q.js";import{c as t,o as n,s as r}from"./money-formatting-BJgRY1i9.js";import"./money-DBSHhLfs.js";import{n as i,t as a}from"./currency-service-SmoTOImM.js";function o(e){return i.includes(e)}function s(e){return typeof e==`string`&&e.trim().toUpperCase()||`USD`}function c(t){let n=a.getCachedRate(t);if(Number.isFinite(n)&&n>0)return n;throw e.error(`Invalid exchange rate for ${t}`,{component:`currency`,currency:t,rate:n}),Error(`Invalid exchange rate for ${t}`)}function l(n,i){let a=s(i);if(!o(a))throw e.error(`Unsupported currency: ${a}`,{component:`currency`,currency:a,originalCurrency:i}),Error(`Unsupported currency: ${a}`);return t(r(n,c(a)))}function u(r,i){let a=s(i);if(!o(a))throw e.error(`Unsupported currency: ${a}`,{component:`currency`,currency:a,originalCurrency:i}),Error(`Unsupported currency: ${a}`);return t(n(r,c(a)))}export{u as n,l 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.