PageSourceSearch

https://donatepay.eu/build/assets/number-8cc45445.js

js donatepay.eu collected 2026-10-08 07:46:34 UTC 2,573 bytes, 1 lines download raw bytes

1import{i as l,t as m,a as $}from"./typeOf-30163564.js";const g=/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[Ee][-+]?(?:0|[1-9][0-9]*)?)?$/,x=/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?[Ee][-+]?(?:0|[1-9][0-9]*)?$/;function f(n,r=!0,t=null){const u={finite:l(t==null?void 0:t.finite)?t.finite:!0,exponential:l(t==null?void 0:t.exponential)?t.exponential:null};if(m(n)!=="number"&&(r===!0||!$(n)))return!1;const e=String(n!=null?n:"").trim();if(e.length===0||!g.test(e))return!1;const i=Number(n);return(!l(u.finite)||Number.isFinite(i)===u.finite)&&(!l(u.exponential)||x.test(e)===u.exponential)}function d(n,r=!0,t=null){if(!f(n,r,t))return null;const u=Number(n);return!!(Number.isInteger(u)&&u%1===0)}function p(n,r=!0,t=!0){return f(n,r,{finite:t,exponential:!0})}function h(n,r=!0){var b;if(!f(n,r))throw new Error(`Could not convert float to string. Unsupported argument type: '${m(n)}'.`);const t=String(n).split("e"),u=t[0];if(u==="")return"";let e=Number((b=t[1])!=null?b:0)||0,i=u,s="";const a=u.indexOf(".");return a>=0&&(i=u.substring(0,a).replace(/^0+/,""),i===""&&(i="0"),s=u.substring(a+1).replace(/0+$/,"")),e===0?`${i}${s.length>0?`.${s}`:""}`:e>0?s.length===e?`${i}${s}`:s.length>e?`${i}${s.substring(0,e)}.${s.substring(e)}`:`${i}${s}${"0".repeat(e-s.length)}`:(e=Math.abs(e),i.length===e?`0.${i}${s}`:i.length>e?`${i.substring(0,i.length-e)}.${i.substring(i.length-e)}${s}`:`0.${"0".repeat(e-i.length)}${i}${s}`)}function o(n,r=!0){var e;if(!f(n,r))throw new Error(`Could not split float into parts. Unsupported argument type: '${m(n)}'.`);const u=h(n,r).split(".");return[u[0],(e=u[1])!=null?e:""]}function c(n,r=!0,t=null){const u=d(n,r,t);return l(u)?u===!0&&f(n)?!1:o(n,r)[1].length!==0:null}function N(n,r=0,t=!0){if(!f(n,t))throw new Error(`Could not truncate number. Unsupported argument type: '${m(n)}'.`);if(!f(r)||r<0||c(r))throw new Error(`Could not truncate number. Unsupported mantissa length: '${r}, ${f(r)}, ${c(r)}'.`);const[u,e]=o(n,t);return r===0||e===""?u:`${u}.${e.substring(0,r)}`}function E(n,r){var i;if(!f(n,((i=r==null?void 0:r.strict)!=null?i:!0)===!0))throw new TypeError(`Could not clamp number. Unsupported value type: '${m(n)}'.`);const t=Number(n),u=r==null?void 0:r.min,e=r==null?void 0:r.max;if(!f(u)&&!f(e))return t;if(f(u)&&f(e)&&u>e)throw new Error(`Could not clamp number. Upper bound (${r.max}) cannot be lower than the lower bound (${r.min}).`);return f(u)&&t<u?u:f(e)&&t>e?e:t}function S(n,r=null,t=null){return n===null||String(n)===""||t!==null&&!f(n,!1,t)?r:Number(n)}export{c as a,p as b,E as c,N as d,f as i,o as n,S 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.