1var t="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:global;var n={};(function(t,r){n=r()})(0,(function(){function e(a,s){if(!((this||t)instanceof e))return new e(a,s);s=Object.assign({},n,s);var o=Math.pow(10,s.precision);(this||t).intValue=a=g(a,s);(this||t).value=a/o;s.increment=s.increment||1/o;s.groups=s.useVedic?i:r;(this||t).s=s;(this||t).p=o}function g(t,n){var r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];var i=n.decimal;var a=n.errorOnInvalid,s=n.fromCents,o=Math.pow(10,n.precision),u=t instanceof e;if(u&&s)return t.intValue;if("number"===typeof t||u)i=u?t.value:t;else if("string"===typeof t)a=new RegExp("[^-\\d"+i+"]","g"),i=new RegExp("\\"+i,"g"),i=(i=t.replace(/\((.*)\)/,"-$1").replace(a,"").replace(i,"."))||0;else{if(a)throw Error("Invalid Input");i=0}s||(i=(i*o).toFixed(4));return r?Math.round(i):i}var n={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(t,n){var r=n.pattern,i=n.negativePattern,a=n.symbol,s=n.separator,o=n.decimal;n=n.groups;var u=(""+t).replace(/^-/,"").split("."),l=u[0];u=u[1];return(0<=t.value?r:i).replace("!",a).replace("#",l.replace(n,"$1"+s)+(u?o+u:""))},fromCents:!1},r=/(\d)(?=(\d{3})+\b)/g,i=/(\d)(?=(\d\d)+\d\b)/g;e.prototype={add:function(n){var r=(this||t).s,i=(this||t).p;return e(((this||t).intValue+g(n,r))/(r.fromCents?1:i),r)},subtract:function(n){var r=(this||t).s,i=(this||t).p;return e(((this||t).intValue-g(n,r))/(r.fromCents?1:i),r)},multiply:function(n){var r=(this||t).s;return e((this||t).intValue*n/(r.fromCents?1:Math.pow(10,r.precision)),r)},divide:function(n){var r=(this||t).s;return e((this||t).intValue/g(n,r,!1),r)},distribute:function(n){var r=(this||t).intValue,i=(this||t).p,a=(this||t).s,s=[],o=Math[0<=r?"floor":"ceil"](r/n),u=Math.abs(r-o*n);for(i=a.fromCents?1:i;0!==n;n--){var l=e(o/i,a);0<u--&&(l=l[0<=r?"add":"subtract"](1/i));s.push(l)}return s},dollars:function(){return~~(this||t).value},cents:function(){return~~((this||t).intValue%(this||t).p)},format:function(n){var r=(this||t).s;return"function"===typeof n?n(this||t,r):r.format(this||t,Object.assign({},r,n))},toString:function(){var n=(this||t).s,r=n.increment;return(Math.round((this||t).intValue/(this||t).p/r)*r).toFixed(n.precision)},toJSON:function(){return(this||t).value}};return e}));var r=n;export default r; 2
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.