diff --git a/node_modules/numeral-es6/.idea/modules.xml b/node_modules/numeral-es6/.idea/modules.xml
deleted file mode 100644
index 7a1dfa1042..0000000000
--- a/node_modules/numeral-es6/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/node_modules/numeral-es6/.idea/numeral-es6.iml b/node_modules/numeral-es6/.idea/numeral-es6.iml
deleted file mode 100644
index 24643cc374..0000000000
--- a/node_modules/numeral-es6/.idea/numeral-es6.iml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/node_modules/numeral-es6/.idea/vcs.xml b/node_modules/numeral-es6/.idea/vcs.xml
deleted file mode 100644
index 94a25f7f4c..0000000000
--- a/node_modules/numeral-es6/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/node_modules/numeral-es6/.idea/workspace.xml b/node_modules/numeral-es6/.idea/workspace.xml
deleted file mode 100644
index 5857b0f5eb..0000000000
--- a/node_modules/numeral-es6/.idea/workspace.xml
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- "
- moment
-
-
- '
- numeral
-
-
-
-
-
-
-
-
-
-
-
- true
- DEFINITION_ORDER
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1522941586444
-
-
- 1522941586444
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/node_modules/numeral-es6/.npmignore b/node_modules/numeral-es6/.npmignore
deleted file mode 100644
index b512c09d47..0000000000
--- a/node_modules/numeral-es6/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules
\ No newline at end of file
diff --git a/node_modules/numeral-es6/README.md b/node_modules/numeral-es6/README.md
deleted file mode 100644
index 75097620b4..0000000000
--- a/node_modules/numeral-es6/README.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# numeral-es6
-Exports numeral.js as an ES6 default export. Like moment-es6, but for numeral.js.
-
-
-
-## Installation
-
-```
-[npm|yarn] install numeral-es6
-```
-
-## Usage
-
-```javascript
-import numeral from 'numeral-es6';
-
-console.log(numeral(13124.23, '$0,0[.]00');
-```
diff --git a/node_modules/numeral-es6/index.d.ts b/node_modules/numeral-es6/index.d.ts
deleted file mode 100644
index 00ad9da08a..0000000000
--- a/node_modules/numeral-es6/index.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-declare module 'numeral-es6' {
- import * as numeral from 'numeral';
- export default numeral;
-}
diff --git a/node_modules/numeral-es6/index.js b/node_modules/numeral-es6/index.js
deleted file mode 100644
index bd5a1d347c..0000000000
--- a/node_modules/numeral-es6/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-'use strict'
-var numeral = require('numeral');
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.default = numeral;
diff --git a/node_modules/numeral-es6/package.json b/node_modules/numeral-es6/package.json
deleted file mode 100644
index 6620726427..0000000000
--- a/node_modules/numeral-es6/package.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "_from": "numeral-es6",
- "_id": "numeral-es6@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-xzqgKkvcp6CZ2pm2b03Kw5mkhk4=",
- "_location": "/numeral-es6",
- "_phantomChildren": {},
- "_requested": {
- "type": "tag",
- "registry": true,
- "raw": "numeral-es6",
- "name": "numeral-es6",
- "escapedName": "numeral-es6",
- "rawSpec": "",
- "saveSpec": null,
- "fetchSpec": "latest"
- },
- "_requiredBy": [
- "#USER",
- "/"
- ],
- "_resolved": "https://registry.npmjs.org/numeral-es6/-/numeral-es6-1.0.0.tgz",
- "_shasum": "c73aa02a4bdca7a099da99b66f4dcac399a4864e",
- "_spec": "numeral-es6",
- "_where": "/Users/mulish/Desktop/gitcoin/blockscout",
- "author": {
- "name": "benelliott",
- "email": "bengelliott@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/benelliott/numeral-es6/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "numeral": "*"
- },
- "deprecated": false,
- "description": "Exports numeral.js as an ES6 default export.",
- "homepage": "https://github.com/benelliott/numeral-es6#readme",
- "keywords": [
- "es6",
- "numeral",
- "numeraljs"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "numeral-es6",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/benelliott/numeral-es6.git"
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/numeral/.npmignore b/node_modules/numeral/.npmignore
deleted file mode 100644
index 38ecea036f..0000000000
--- a/node_modules/numeral/.npmignore
+++ /dev/null
@@ -1,32 +0,0 @@
-# --------------------
-# OSX Files
-# --------------------
-.DS_Store
-.AppleDouble
-.LSOverride
-Icon
-._*
-.Spotlight-V100
-.Trashes
-
-# --------------------
-# IntelliJ Files
-# --------------------
-*.iml
-*.ipr
-*.iws
-.idea/
-
-# --------------------
-# Sublime Files
-# --------------------
-*.sublime-project
-*.sublime-workspace
-
-# --------------------
-# App Files
-# --------------------
-node_modules/
-.sass-cache
-temp/
-npm-debug.log
diff --git a/node_modules/numeral/.travis.yml b/node_modules/numeral/.travis.yml
deleted file mode 100644
index 9de8cd01cb..0000000000
--- a/node_modules/numeral/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-language: node_js
-node_js:
- - "node"
- - "4"
-before_script:
- - npm install -g grunt-cli
-script: grunt travis --verbose
diff --git a/node_modules/numeral/Gruntfile.js b/node_modules/numeral/Gruntfile.js
deleted file mode 100644
index a1da9e493a..0000000000
--- a/node_modules/numeral/Gruntfile.js
+++ /dev/null
@@ -1,259 +0,0 @@
-module.exports = function(grunt) {
-
- var compileType = function() {
- var type = this.data.type;
- var template = grunt.file.read('templates/types.js');
- var anon = grunt.file.read('templates/anon.js');
- var files = grunt.file.expand([
- 'src/' + type + '/*.js'
- ]);
- var regexp = /\}\(this, function \(numeral\) \{\s([\s\S]+)(?:\s\}\)\);)/;
- var content = '';
- var file;
- var i;
-
- for (i = 0; i < files.length; i++) {
- file = grunt.file.read(files[i]);
-
- content += '\n' + grunt.template.process(anon, {
- data: {
- content: file.match(regexp)[1]
- }
- }) + '\n';
- }
-
- grunt.file.write('temp/' + type + '.js', content);
-
- if (type === 'locales') {
- grunt.file.write('locales.js', grunt.template.process(template, {
- data: {
- type: type,
- content: content
- }
- }));
- }
- },
- compileNumeral = function() {
- var regexp = /([\s])return numeral;(?:\s\}\)\);)/;
- var numeral = grunt.file.read('src/numeral.js');
- var formats = grunt.file.read('temp/formats.js');
- var index = numeral.indexOf('return numeral;');
-
- numeral = numeral.substr(0, index) + '\n' + formats + numeral.substr(index);
-
- grunt.file.write('numeral.js', numeral);
- };
-
- require('load-grunt-tasks')(grunt);
-
- grunt.initConfig({
- mochaTest : {
- all: [
- 'tests/numeral.js',
- 'tests/formats/*.js',
- 'tests/locales/*.js'
- ]
- },
- karma: {
- options: {
- files: [
- 'numeral.js',
- 'locales.js',
- 'tests/numeral.js',
- 'tests/formats/*.js',
- 'tests/locales/*.js'
- ],
- frameworks: [
- 'mocha',
- 'chai'
- ],
- singleRun: true,
- autoWatch: false
- },
- local: {
- browsers: [
- 'Chrome',
- 'Firefox'
- ]
- },
- ci: {
- configFile: 'karma-ci.conf.js'
- }
- },
- copy: {
- locales: {
- files: [
- {
- expand: true,
- cwd: 'src/',
- src: [
- 'locales/*.js'
- ],
- dest: './'
- }
- ]
- }
- },
- compile: {
- locales: {
- type: 'locales'
- },
- formats: {
- type: 'formats'
- }
- },
- uglify: {
- min: {
- files: [
- {
- expand: true,
- cwd: 'src/',
- src: [
- 'locales/*.js'
- ],
- dest: 'min/',
- ext: '.min.js'
- },
- {
- expand: true,
- src: [
- 'numeral.js',
- 'locales.js'
- ],
- dest: 'min/',
- ext: '.min.js'
- }
- ]
- },
- options: {
- preserveComments: 'some'
- }
- },
- jshint: {
- all: [
- 'Gruntfile.js',
- 'src/**/*.js'
- ],
- options: {
- 'node': true,
- 'browser': true,
- 'curly': true,
- 'devel': false,
- 'eqeqeq': true,
- 'eqnull': true,
- 'newcap': true,
- 'noarg': true,
- 'undef': true,
- 'sub': true,
- 'strict': false,
- 'quotmark': 'single',
- 'globals': {
- 'define': true
- }
- }
- }
- });
-
- grunt.registerTask('default', [
- 'test'
- ]);
-
- grunt.registerMultiTask('compile', compileType);
-
- grunt.registerTask('compile:numeral', compileNumeral);
-
- grunt.registerTask('build', [
- 'jshint',
- 'compile',
- 'compile:numeral',
- 'copy'
- ]);
-
- grunt.registerTask('test', [
- 'build',
- 'mochaTest',
- 'karma:local'
- ]);
-
- grunt.registerTask('test:npm', [
- 'build',
- 'mochaTest'
- ]);
-
- grunt.registerTask('test:browser', [
- 'build',
- 'karma:local'
- ]);
-
- grunt.registerTask('dist', [
- 'build',
- 'uglify'
- ]);
-
- grunt.registerTask('version', function (version) {
- if (!version || version.split('.').length !== 3) {
- grunt.fail.fatal('malformed version. Use\n\n grunt version:1.2.3');
- }
-
- grunt.config('string-replace.json', {
- files: {
- 'package.json': 'package.json',
- 'component.json': 'component.json',
- 'bower.json': 'bower.json'
- },
- options: {
- replacements: [
- {
- pattern: /"version": .*/,
- replacement: '"version": "' + version + '",'
- }
- ]
- }
- });
-
- grunt.config('string-replace.numeral', {
- files: {
- 'src/numeral.js': 'src/numeral.js'
- },
- options: {
- replacements: [
- {
- pattern: /version : .*/,
- replacement: 'version : ' + version
- },
- {
- pattern: /VERSION = .*/,
- replacement: 'VERSION = \'' + version + '\','
- }
- ]
- }
- });
-
- grunt.config('string-replace.templates', {
- files: {
- 'templates/types.js': 'templates/types.js'
- },
- options: {
- replacements: [
- {
- pattern: /: .*/,
- replacement: ': ' + version
- }
- ]
- }
- });
-
- grunt.task.run([
- 'string-replace:json',
- 'string-replace:templates',
- 'string-replace:numeral'
- ]);
- });
-
- // Travis CI task.
- grunt.registerTask('travis', [
- 'build',
- 'mochaTest',
- 'karma:ci'
- ]);
-};
diff --git a/node_modules/numeral/LICENSE b/node_modules/numeral/LICENSE
deleted file mode 100644
index e373f8976a..0000000000
--- a/node_modules/numeral/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2016 Adam Draper
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/numeral/README.md b/node_modules/numeral/README.md
deleted file mode 100644
index f1d414d753..0000000000
--- a/node_modules/numeral/README.md
+++ /dev/null
@@ -1,303 +0,0 @@
-# [Numeral.js](http://numeraljs.com/)
-
-A javascript library for formatting and manipulating numbers.
-
-[Website and documentation](http://numeraljs.com/)
-
-
-# Travis Build Status
-
-Master [![Build Status](https://api.travis-ci.org/adamwdraper/Numeral-js.svg)](https://travis-ci.org/adamwdraper/Numeral-js)
-
-Develop [![Build Status](https://travis-ci.org/adamwdraper/Numeral-js.svg?branch=develop)](https://travis-ci.org/adamwdraper/Numeral-js)
-
-# NPM
-
-[![NPM](https://nodei.co/npm/numeral.svg?downloads=true)](https://nodei.co/npm/numeral/)
-
-#CDNJS
-
-[![CDNJS](https://img.shields.io/cdnjs/v/numeral.js.svg)](https://cdnjs.com/libraries/numeral.js)
-
-# Contributing
-
-#### Important: Please create your branch from and submit pull requests to the `develop` branch. All pull requests must include the appropriate tests.
-
-1. Fork the library
-
-2. [Install grunt](http://gruntjs.com/getting-started#installing-the-cli)
-
-3. Run `npm install` to install dependencies
-
-4. Create a new branch from `develop`
-
-5. Add your tests to the files in `/tests`
-
-6. To test your tests, run `grunt`
-
-7. When all your tests are passing, run `grunt dist` to compile and minify all files
-
-8. Submit a pull request to the `develop` branch.
-
-
-### Formats
-
-Formats now exist in their own files and act more or less as plugins. Check out the [bytes format](https://github.com/adamwdraper/Numeral-js/blob/master/src/formats/bytes.js) for an example of how to create one.
-
-
-### Locales
-
-When naming locale files use the [ISO 639-1 language codes](http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) supplemented by [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes when necessary.
-
-### Locale translations will not be merged without unit tests.
-
-See [the english unit tests](https://github.com/adamwdraper/Numeral-js/blob/master/tests/locales/en-gb.js) for an example.
-
-
-# Changelog
-
-### 2.0.6
-
-Bug fix: Multi letter currency symbols and spacing
-
-Added: Formatting of numbers with leading zeros
-
-New format: Basic Point
-
-Option: Added `scalePercentBy100` (default: true) option to turn on/off scaling percentages
-
-### 2.0.4
-
-Bug fix: Incorrect abbreviations for values rounded up [#187](https://github.com/adamwdraper/Numeral-js/issues/187)
-
-Bug fix: Signed currency is inconsistent [#89](https://github.com/adamwdraper/Numeral-js/issues/89)
-
-### 2.0.2
-
-Bug fix: Updated module definitions
-
-### 2.0.1
-
-Bug fix: Fixed regression for webpack/browserify/rollup
-
-### 2.0.0
-
-2.0.0 brings a lot of breaking changes and a reorganization of the repo, but also simplifies the api as well as the creating of custom formats.
-
-Breaking change / Feature: All formats are now separate files. This makes it easy to create custom formats, and will also allow for custom builds with only certain formats. (Note: The built numeral.js still contains all formats in the repo).
-
-Breaking change / Feature: All formats and locales are now loaded using `numeral.register(type, name, {})`
-
-Breaking change: All `language` now renamed to `locale` and standardized to all lowercase filenames
-
-Breaking change: The `locale` function no longer loads locales, it only sets the current locale
-
-Breaking change: The `unformat` function has been removed `numeral().unformat(string)` and now happens on numeral init `numeral(string)`
-
-Breaking change / Feature: Bytes are now formatted as: `b` (base 1000) and `ib` (base 1024)
-
-Breaking change: `numeral(NaN)` is now treated the same as `numeral(null)` and no longer throws an error
-
-Feature: Exponential format using `e+` or `e-`
-
-Bug fix: Update to floating point helpers (Note: Numeral does not fix JS floating point errors, but look to our tests to see that it covers quite a few cases.)
-
-### 1.5.6
-
-Bug fix: numeral converts strings to numbers
-
-Bug fix: Null values return same as 0
-
-### 1.5.5
-
-Contained breaking changes, recommended to use 1.5.6
-
-Bug fix: Switch bytes back to `b` and change iecBinary to `ib`, and calculate both using 1024 for backwards compatibility
-
-### 1.5.4
-
-Contained breaking changes, recommended to use 1.5.6
-
-Tests: Changed all tests to use Mocha and Chai
-
-Tests: Added browser tests for Chrome, Firefox, and IE using saucelabs
-
-Added reset function to reset numeral to default options
-
-Added nullFormat option
-
-Update reduce polyfill
-
-Added Binary bytes
-
-Bug fix: Fixes problem with many optional decimals
-
-### 1.5.3
-
-Added currency symbol to optionally appear before negative sign / open paren
-
-Added float precision math support
-
-Added specification of abbreviation in thousands, millions, billions
-
-### 1.5.2
-
-Bug fix: Unformat should pass through if given a number
-
-Added a mechanism to control rounding behaviour
-
-Added languageData() for getting and setting language props at runtime
-
-### 1.5.1
-
-Bug fix: Make sure values aren't changed during formatting
-
-### 1.5.0
-
-Add defaultFormat(). numeral().format() uses the default to format if no string is provided
-
-.unformat() returns 0 when passed no string
-
-Added languages.js that contains all languages
-
-Bug fix: Fix bug while unformatting ordinals
-
-Add format option to always show signed value
-
-Added ability to instantiate numeral with a string value of a number
-
-### 1.4.9
-
-Bug fix: Fix bug while unformatting ordinals
-
-### 1.4.8
-
-Bug fix: Throw error if language is not defined
-
-### 1.4.7
-
-Bug fix: Fix typo for trillion
-
-### 1.4.6
-
-Bug fix: remove ' from unformatting regex that was causing an error with fr-ch.js
-
-### 1.4.5
-
-Add zeroFormat() function that accepts a string for custom formating of zeros
-
-Add valueOf() function
-
-Chain functionality to language function
-
-Make all minified files have the same .min.js filename ending
-
-### 1.4.1
-
-Bug fix: Bytes not formatting correctly
-
-### 1.4.0
-
-Add optional format for all decimals
-
-### 1.3.4
-
-Remove AMD module id. (This is encouraged by require.js to make the module more portable, and keep it from creating a global)
-
-### 1.3.3
-
-AMD define() compatibility.
-
-### 1.3.2
-
-Bug fix: Formatting some numbers results in the wrong value. Issue #21
-
-### 1.3.1
-
-Bug fix: Minor fix to unformatting parser
-
-### 1.3.0
-
-Add support for spaces before/after $, a, o, b in a format string
-
-Bug fix: Fix unformat for languages that use '.' in ordinals
-
-Bug fix: Fix round up floating numbers with no precision correctly.
-
-Bug fix: Fix currency signs at the end in unformat
-
-### 1.2.6
-
-Add support for optional decimal places
-
-### 1.2.5
-
-Add support for appending currency symbol
-
-### 1.2.4
-
-Add support for humanized filesizes
-
-### 1.2.3
-
-Bug Fix: Fix unformatting for languages that use '.' as thousands delimiter
-
-### 1.2.2
-
-Changed language definition property 'money' to 'currency'
-
-### 1.2.1
-
-Bug fix: Fix unformatting non-negative abbreviations
-
-### 1.2.0
-
-Add language support
-
-Update testing for to include languages
-
-### 1.1.0
-
-Add Tests
-
-Bug fix: Fix difference returning negative values
-
-### 1.0.4
-
-Bug fix: Non negative numbers were displaying as negative when using parentheses
-
-### 1.0.3
-
-Add ordinal formatting using 'o' in the format
-
-### 1.0.2
-
-Add clone functionality
-
-### 1.0.1
-
-Added abbreviations for thousands and millions using 'a' in the format
-
-### 1.0.0
-
-Initial release
-
-
-# Acknowlegements
-
-Numeral.js, while less complex, was inspired by and heavily borrowed from [Moment.js](http://momentjs.com)
-
-
-# License
-
-Numeral.js is freely distributable under the terms of the MIT license.
-
-Copyright (c) 2012 Adam Draper
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/numeral/bower.json b/node_modules/numeral/bower.json
deleted file mode 100644
index a1d7715054..0000000000
--- a/node_modules/numeral/bower.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "numeral",
- "repo": "adamwdraper/Numeral-js",
- "version": "2.0.6",
- "description": "Format and manipulate numbers.",
- "keywords": [
- "numeral",
- "number",
- "format",
- "time",
- "money",
- "percentage"
- ],
- "scripts": [ "numeral.js" ],
- "main": "numeral.js"
-}
diff --git a/node_modules/numeral/component.json b/node_modules/numeral/component.json
deleted file mode 100644
index a1d7715054..0000000000
--- a/node_modules/numeral/component.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "numeral",
- "repo": "adamwdraper/Numeral-js",
- "version": "2.0.6",
- "description": "Format and manipulate numbers.",
- "keywords": [
- "numeral",
- "number",
- "format",
- "time",
- "money",
- "percentage"
- ],
- "scripts": [ "numeral.js" ],
- "main": "numeral.js"
-}
diff --git a/node_modules/numeral/karma-ci.conf.js b/node_modules/numeral/karma-ci.conf.js
deleted file mode 100644
index e5af43bc31..0000000000
--- a/node_modules/numeral/karma-ci.conf.js
+++ /dev/null
@@ -1,41 +0,0 @@
-module.exports = function(config) {
- var customLaunchers = {
- sl_chrome: {
- base: 'SauceLabs',
- browserName: 'chrome',
- version: '50',
- platform: 'OS X 10.11'
- },
- sl_firefox: {
- base: 'SauceLabs',
- browserName: 'firefox',
- version: '45',
- platform: 'OS X 10.11'
- },
- sl_ie: {
- base: 'SauceLabs',
- browserName: 'internet explorer',
- version: '11.103',
- platform: 'Windows 10'
- }
- };
-
- process.env.SAUCE_USERNAME = 'numeraljs';
- process.env.SAUCE_ACCESS_KEY = '5506968c-cfdc-4797-ba75-294620ad475f';
-
- config.set({
- reporters: [
- 'mocha',
- 'saucelabs'
- ],
- browserDisconnectTimeout : 10000,
- browserNoActivityTimeout: 120000,
- browserDisconnectTolerance : 1,
- browsers: Object.keys(customLaunchers),
- sauceLabs: {
- testName: 'Web App Unit Tests'
- },
- customLaunchers: customLaunchers,
- singleRun: true
- });
-};
diff --git a/node_modules/numeral/locales.js b/node_modules/numeral/locales.js
deleted file mode 100644
index 1f89d5a256..0000000000
--- a/node_modules/numeral/locales.js
+++ /dev/null
@@ -1,846 +0,0 @@
-/*! @preserve
- * numeral.js
- * locales : 2.0.6
- * license : MIT
- * http://adamwdraper.github.com/Numeral-js/
- */
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('./numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
-
-(function() {
- numeral.register('locale', 'bg', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: { // I found these here http://www.unicode.org/cldr/charts/28/verify/numbers/bg.html
- thousand: 'хил',
- million: 'млн',
- billion: 'млрд',
- trillion: 'трлн'
- },
- ordinal: function (number) {
- // google translate suggests:
- // 1st=1-ви; 2nd=2-ри; 7th=7-ми;
- // 8th=8-ми and many others end with -ти
- // for example 3rd=3-ти
- // However since I've seen suggestions that in
- // Bulgarian the ordinal can be taken in
- // different forms (masculine, feminine, neuter)
- // I've opted to wimp out on commiting that to code
- return '';
- },
- currency: {
- symbol: 'лв'
- }
- });
-})();
-
-
-(function() {
-
- numeral.register('locale', 'chs', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: '千',
- million: '百万',
- billion: '十亿',
- trillion: '兆'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '¥'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'cs', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'tis.',
- million: 'mil.',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: 'Kč'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'da-dk', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mio',
- billion: 'mia',
- trillion: 'b'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'DKK'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'de-ch', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'CHF'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'de', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'en-au', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: '$'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'en-gb', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: '£'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'en-za', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: 'R'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'es-es', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (b === 1 || b === 3) ? 'er' :
- (b === 2) ? 'do' :
- (b === 7 || b === 0) ? 'mo' :
- (b === 8) ? 'vo' :
- (b === 9) ? 'no' : 'to';
- },
- currency: {
- symbol: '€'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'es', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (b === 1 || b === 3) ? 'er' :
- (b === 2) ? 'do' :
- (b === 7 || b === 0) ? 'mo' :
- (b === 8) ? 'vo' :
- (b === 9) ? 'no' : 'to';
- },
- currency: {
- symbol: '$'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'et', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: ' tuh',
- million: ' mln',
- billion: ' mld',
- trillion: ' trl'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'fi', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'M',
- billion: 'G',
- trillion: 'T'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'fr-ca', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'M',
- billion: 'G',
- trillion: 'T'
- },
- ordinal : function (number) {
- return number === 1 ? 'er' : 'e';
- },
- currency: {
- symbol: '$'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'fr-ch', {
- delimiters: {
- thousands: '\'',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal : function (number) {
- return number === 1 ? 'er' : 'e';
- },
- currency: {
- symbol: 'CHF'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'fr', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal : function (number) {
- return number === 1 ? 'er' : 'e';
- },
- currency: {
- symbol: '€'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'hu', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'E', // ezer
- million: 'M', // millió
- billion: 'Mrd', // milliárd
- trillion: 'T' // trillió
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: ' Ft'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'it', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'mila',
- million: 'mil',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return 'º';
- },
- currency: {
- symbol: '€'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'ja', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: '千',
- million: '百万',
- billion: '十億',
- trillion: '兆'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '¥'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'lv', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: ' tūkst.',
- million: ' milj.',
- billion: ' mljrd.',
- trillion: ' trilj.'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'nl-be', {
- delimiters: {
- thousands: ' ',
- decimal : ','
- },
- abbreviations: {
- thousand : 'k',
- million : ' mln',
- billion : ' mld',
- trillion : ' bln'
- },
- ordinal : function (number) {
- var remainder = number % 100;
-
- return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
- },
- currency: {
- symbol: '€ '
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'nl-nl', {
- delimiters: {
- thousands: '.',
- decimal : ','
- },
- abbreviations: {
- thousand : 'k',
- million : 'mln',
- billion : 'mrd',
- trillion : 'bln'
- },
- ordinal : function (number) {
- var remainder = number % 100;
- return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
- },
- currency: {
- symbol: '€ '
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'no', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'kr'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'pl', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'tys.',
- million: 'mln',
- billion: 'mld',
- trillion: 'bln'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'PLN'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'pt-br', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'mil',
- million: 'milhões',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return 'º';
- },
- currency: {
- symbol: 'R$'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'pt-pt', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal : function (number) {
- return 'º';
- },
- currency: {
- symbol: '€'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'ru-ua', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'тыс.',
- million: 'млн',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function () {
- // not ideal, but since in Russian it can taken on
- // different forms (masculine, feminine, neuter)
- // this is all we can do
- return '.';
- },
- currency: {
- symbol: '\u20B4'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'ru', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'тыс.',
- million: 'млн.',
- billion: 'млрд.',
- trillion: 'трлн.'
- },
- ordinal: function () {
- // not ideal, but since in Russian it can taken on
- // different forms (masculine, feminine, neuter)
- // this is all we can do
- return '.';
- },
- currency: {
- symbol: 'руб.'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'sk', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'tis.',
- million: 'mil.',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'sl', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mio',
- billion: 'mrd',
- trillion: 'trilijon'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-})();
-
-
-(function() {
-
-
- numeral.register('locale', 'th', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'พัน',
- million: 'ล้าน',
- billion: 'พันล้าน',
- trillion: 'ล้านล้าน'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '฿'
- }
- });
-})();
-
-
-(function() {
- var suffixes = {
- 1: '\'inci',
- 5: '\'inci',
- 8: '\'inci',
- 70: '\'inci',
- 80: '\'inci',
-
- 2: '\'nci',
- 7: '\'nci',
- 20: '\'nci',
- 50: '\'nci',
-
- 3: '\'üncü',
- 4: '\'üncü',
- 100: '\'üncü',
-
- 6: '\'ncı',
-
- 9: '\'uncu',
- 10: '\'uncu',
- 30: '\'uncu',
-
- 60: '\'ıncı',
- 90: '\'ıncı'
- };
-
- numeral.register('locale', 'tr', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'bin',
- million: 'milyon',
- billion: 'milyar',
- trillion: 'trilyon'
- },
- ordinal: function (number) {
- if (number === 0) { // special case for zero
- return '\'ıncı';
- }
-
- var a = number % 10,
- b = number % 100 - a,
- c = number >= 100 ? 100 : null;
-
- return suffixes[a] || suffixes[b] || suffixes[c];
- },
- currency: {
- symbol: '\u20BA'
- }
- });
-})();
-
-
-(function() {
- numeral.register('locale', 'uk-ua', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'тис.',
- million: 'млн',
- billion: 'млрд',
- trillion: 'блн'
- },
- ordinal: function () {
- // not ideal, but since in Ukrainian it can taken on
- // different forms (masculine, feminine, neuter)
- // this is all we can do
- return '';
- },
- currency: {
- symbol: '\u20B4'
- }
- });
-})();
-
-
-(function() {
-
- numeral.register('locale', 'vi', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: ' nghìn',
- million: ' triệu',
- billion: ' tỷ',
- trillion: ' nghìn tỷ'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: '₫'
- }
- });
-})();
-
-
-}));
diff --git a/node_modules/numeral/locales/bg.js b/node_modules/numeral/locales/bg.js
deleted file mode 100644
index ef71941c2e..0000000000
--- a/node_modules/numeral/locales/bg.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// numeral.js locale configuration
-// locale : Bulgarian
-// author : Don Vince : https://github.com/donvince/
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'bg', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: { // I found these here http://www.unicode.org/cldr/charts/28/verify/numbers/bg.html
- thousand: 'хил',
- million: 'млн',
- billion: 'млрд',
- trillion: 'трлн'
- },
- ordinal: function (number) {
- // google translate suggests:
- // 1st=1-ви; 2nd=2-ри; 7th=7-ми;
- // 8th=8-ми and many others end with -ти
- // for example 3rd=3-ти
- // However since I've seen suggestions that in
- // Bulgarian the ordinal can be taken in
- // different forms (masculine, feminine, neuter)
- // I've opted to wimp out on commiting that to code
- return '';
- },
- currency: {
- symbol: 'лв'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/chs.js b/node_modules/numeral/locales/chs.js
deleted file mode 100644
index 1bcc946213..0000000000
--- a/node_modules/numeral/locales/chs.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : simplified chinese (chs)
-// author : badplum : https://github.com/badplum
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'chs', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: '千',
- million: '百万',
- billion: '十亿',
- trillion: '兆'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '¥'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/cs.js b/node_modules/numeral/locales/cs.js
deleted file mode 100644
index 316051f27d..0000000000
--- a/node_modules/numeral/locales/cs.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : czech (cs)
-// author : Anatoli Papirovski : https://github.com/apapirovski
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'cs', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'tis.',
- million: 'mil.',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: 'Kč'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/da-dk.js b/node_modules/numeral/locales/da-dk.js
deleted file mode 100644
index c21e5a78a5..0000000000
--- a/node_modules/numeral/locales/da-dk.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : danish denmark (dk)
-// author : Michael Storgaard : https://github.com/mstorgaard
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'da-dk', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mio',
- billion: 'mia',
- trillion: 'b'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'DKK'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/de-ch.js b/node_modules/numeral/locales/de-ch.js
deleted file mode 100644
index 5921e46c5c..0000000000
--- a/node_modules/numeral/locales/de-ch.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : German in Switzerland (de-ch)
-// author : Michael Piefel : https://github.com/piefel (based on work from Marco Krage : https://github.com/sinky)
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'de-ch', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'CHF'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/de.js b/node_modules/numeral/locales/de.js
deleted file mode 100644
index 87f878807c..0000000000
--- a/node_modules/numeral/locales/de.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : German (de) – generally useful in Germany, Austria, Luxembourg, Belgium
-// author : Marco Krage : https://github.com/sinky
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'de', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/en-au.js b/node_modules/numeral/locales/en-au.js
deleted file mode 100644
index 6202c842e4..0000000000
--- a/node_modules/numeral/locales/en-au.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// numeral.js locale configuration
-// locale : English Australia
-// author : Don Vince : https://github.com/donvince/
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'en-au', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: '$'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/en-gb.js b/node_modules/numeral/locales/en-gb.js
deleted file mode 100644
index a51190ebe4..0000000000
--- a/node_modules/numeral/locales/en-gb.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// numeral.js locale configuration
-// locale : english united kingdom (uk)
-// author : Dan Ristic : https://github.com/dristic
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'en-gb', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: '£'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/en-za.js b/node_modules/numeral/locales/en-za.js
deleted file mode 100644
index 8417268def..0000000000
--- a/node_modules/numeral/locales/en-za.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// numeral.js locale configuration
-// locale : english south africa (uk)
-// author : Etienne Boshoff : etienne@zailab.com
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'en-za', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: 'R'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/es-es.js b/node_modules/numeral/locales/es-es.js
deleted file mode 100644
index 31e7de5bd6..0000000000
--- a/node_modules/numeral/locales/es-es.js
+++ /dev/null
@@ -1,37 +0,0 @@
-// numeral.js locale configuration
-// locale : spanish Spain
-// author : Hernan Garcia : https://github.com/hgarcia
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'es-es', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (b === 1 || b === 3) ? 'er' :
- (b === 2) ? 'do' :
- (b === 7 || b === 0) ? 'mo' :
- (b === 8) ? 'vo' :
- (b === 9) ? 'no' : 'to';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/es.js b/node_modules/numeral/locales/es.js
deleted file mode 100644
index 7ca71950aa..0000000000
--- a/node_modules/numeral/locales/es.js
+++ /dev/null
@@ -1,37 +0,0 @@
-// numeral.js locale configuration
-// locale : spanish
-// author : Hernan Garcia : https://github.com/hgarcia
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'es', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (b === 1 || b === 3) ? 'er' :
- (b === 2) ? 'do' :
- (b === 7 || b === 0) ? 'mo' :
- (b === 8) ? 'vo' :
- (b === 9) ? 'no' : 'to';
- },
- currency: {
- symbol: '$'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/et.js b/node_modules/numeral/locales/et.js
deleted file mode 100644
index f8269e125a..0000000000
--- a/node_modules/numeral/locales/et.js
+++ /dev/null
@@ -1,33 +0,0 @@
-// numeral.js locale configuration
-// locale : Estonian
-// author : Illimar Tambek : https://github.com/ragulka
-// Note: in Estonian, abbreviations are always separated from numbers with a space
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'et', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: ' tuh',
- million: ' mln',
- billion: ' mld',
- trillion: ' trl'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/fi.js b/node_modules/numeral/locales/fi.js
deleted file mode 100644
index 25eaa7fd27..0000000000
--- a/node_modules/numeral/locales/fi.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : Finnish
-// author : Sami Saada : https://github.com/samitheberber
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'fi', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'M',
- billion: 'G',
- trillion: 'T'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/fr-ca.js b/node_modules/numeral/locales/fr-ca.js
deleted file mode 100644
index f8dd206172..0000000000
--- a/node_modules/numeral/locales/fr-ca.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : french (Canada) (fr-ca)
-// author : Léo Renaud-Allaire : https://github.com/renaudleo
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'fr-ca', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'M',
- billion: 'G',
- trillion: 'T'
- },
- ordinal : function (number) {
- return number === 1 ? 'er' : 'e';
- },
- currency: {
- symbol: '$'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/fr-ch.js b/node_modules/numeral/locales/fr-ch.js
deleted file mode 100644
index ea29b39c2b..0000000000
--- a/node_modules/numeral/locales/fr-ch.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : french (fr-ch)
-// author : Adam Draper : https://github.com/adamwdraper
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'fr-ch', {
- delimiters: {
- thousands: '\'',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal : function (number) {
- return number === 1 ? 'er' : 'e';
- },
- currency: {
- symbol: 'CHF'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/fr.js b/node_modules/numeral/locales/fr.js
deleted file mode 100644
index 5ddc609d4e..0000000000
--- a/node_modules/numeral/locales/fr.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : french (fr)
-// author : Adam Draper : https://github.com/adamwdraper
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'fr', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal : function (number) {
- return number === 1 ? 'er' : 'e';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/hu.js b/node_modules/numeral/locales/hu.js
deleted file mode 100644
index a3d7638acd..0000000000
--- a/node_modules/numeral/locales/hu.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : Hungarian (hu)
-// author : Peter Bakondy : https://github.com/pbakondy
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'hu', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'E', // ezer
- million: 'M', // millió
- billion: 'Mrd', // milliárd
- trillion: 'T' // trillió
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: ' Ft'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/it.js b/node_modules/numeral/locales/it.js
deleted file mode 100644
index a5d3406eea..0000000000
--- a/node_modules/numeral/locales/it.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : italian Italy (it)
-// author : Giacomo Trombi : http://cinquepunti.it
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'it', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'mila',
- million: 'mil',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return 'º';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/ja.js b/node_modules/numeral/locales/ja.js
deleted file mode 100644
index bb6c8a1e5f..0000000000
--- a/node_modules/numeral/locales/ja.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : japanese
-// author : teppeis : https://github.com/teppeis
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'ja', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: '千',
- million: '百万',
- billion: '十億',
- trillion: '兆'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '¥'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/lv.js b/node_modules/numeral/locales/lv.js
deleted file mode 100644
index cc46c0e7bb..0000000000
--- a/node_modules/numeral/locales/lv.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : Latvian (lv)
-// author : Lauris Bukšis-Haberkorns : https://github.com/Lafriks
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'lv', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: ' tūkst.',
- million: ' milj.',
- billion: ' mljrd.',
- trillion: ' trilj.'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/nl-be.js b/node_modules/numeral/locales/nl-be.js
deleted file mode 100644
index 6b56190413..0000000000
--- a/node_modules/numeral/locales/nl-be.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// numeral.js locale configuration
-// locale : dutch-belgium (nl-be)
-// author : Dieter Luypaert : https://github.com/moeriki
-// corrected : Olivier Godefroy : https://github.com/godefroyo
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'nl-be', {
- delimiters: {
- thousands: ' ',
- decimal : ','
- },
- abbreviations: {
- thousand : 'k',
- million : ' mln',
- billion : ' mld',
- trillion : ' bln'
- },
- ordinal : function (number) {
- var remainder = number % 100;
-
- return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
- },
- currency: {
- symbol: '€ '
- }
- });
-}));
diff --git a/node_modules/numeral/locales/nl-nl.js b/node_modules/numeral/locales/nl-nl.js
deleted file mode 100644
index 00f70f7c4d..0000000000
--- a/node_modules/numeral/locales/nl-nl.js
+++ /dev/null
@@ -1,33 +0,0 @@
-// numeral.js locale configuration
-// locale : netherlands-dutch (nl-nl)
-// author : Dave Clayton : https://github.com/davedx
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'nl-nl', {
- delimiters: {
- thousands: '.',
- decimal : ','
- },
- abbreviations: {
- thousand : 'k',
- million : 'mln',
- billion : 'mrd',
- trillion : 'bln'
- },
- ordinal : function (number) {
- var remainder = number % 100;
- return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
- },
- currency: {
- symbol: '€ '
- }
- });
-}));
diff --git a/node_modules/numeral/locales/no.js b/node_modules/numeral/locales/no.js
deleted file mode 100644
index 2a2b06c8d1..0000000000
--- a/node_modules/numeral/locales/no.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : norwegian (bokmål)
-// author : Ove Andersen : https://github.com/azzlack
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'no', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'kr'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/pl.js b/node_modules/numeral/locales/pl.js
deleted file mode 100644
index b336c090d0..0000000000
--- a/node_modules/numeral/locales/pl.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : polish (pl)
-// author : Dominik Bulaj : https://github.com/dominikbulaj
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'pl', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'tys.',
- million: 'mln',
- billion: 'mld',
- trillion: 'bln'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'PLN'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/pt-br.js b/node_modules/numeral/locales/pt-br.js
deleted file mode 100644
index 94d384b387..0000000000
--- a/node_modules/numeral/locales/pt-br.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : portuguese brazil (pt-br)
-// author : Ramiro Varandas Jr : https://github.com/ramirovjr
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'pt-br', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'mil',
- million: 'milhões',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return 'º';
- },
- currency: {
- symbol: 'R$'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/pt-pt.js b/node_modules/numeral/locales/pt-pt.js
deleted file mode 100644
index 9bf597708c..0000000000
--- a/node_modules/numeral/locales/pt-pt.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : portuguese (pt-pt)
-// author : Diogo Resende : https://github.com/dresende
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'pt-pt', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal : function (number) {
- return 'º';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/ru-ua.js b/node_modules/numeral/locales/ru-ua.js
deleted file mode 100644
index 798f94f49b..0000000000
--- a/node_modules/numeral/locales/ru-ua.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// numeral.js locale configuration
-// locale : Russian for the Ukraine (ru-ua)
-// author : Anatoli Papirovski : https://github.com/apapirovski
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'ru-ua', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'тыс.',
- million: 'млн',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function () {
- // not ideal, but since in Russian it can taken on
- // different forms (masculine, feminine, neuter)
- // this is all we can do
- return '.';
- },
- currency: {
- symbol: '\u20B4'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/ru.js b/node_modules/numeral/locales/ru.js
deleted file mode 100644
index 34dfb7f9bd..0000000000
--- a/node_modules/numeral/locales/ru.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// numeral.js locale configuration
-// locale : russian (ru)
-// author : Anatoli Papirovski : https://github.com/apapirovski
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'ru', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'тыс.',
- million: 'млн.',
- billion: 'млрд.',
- trillion: 'трлн.'
- },
- ordinal: function () {
- // not ideal, but since in Russian it can taken on
- // different forms (masculine, feminine, neuter)
- // this is all we can do
- return '.';
- },
- currency: {
- symbol: 'руб.'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/sk.js b/node_modules/numeral/locales/sk.js
deleted file mode 100644
index cb0e898df9..0000000000
--- a/node_modules/numeral/locales/sk.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : slovak (sk)
-// author : Ahmed Al Hafoudh : http://www.freevision.sk
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'sk', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'tis.',
- million: 'mil.',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/sl.js b/node_modules/numeral/locales/sl.js
deleted file mode 100644
index 2f1117eb36..0000000000
--- a/node_modules/numeral/locales/sl.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : slovenian (sl)
-// author : Boštjan Pišler : https://github.com/BostjanPisler
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'sl', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mio',
- billion: 'mrd',
- trillion: 'trilijon'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/th.js b/node_modules/numeral/locales/th.js
deleted file mode 100644
index d3e08d00d9..0000000000
--- a/node_modules/numeral/locales/th.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// numeral.js locale configuration
-// locale : thai (th)
-// author : Sathit Jittanupat : https://github.com/jojosati
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
-
-
- numeral.register('locale', 'th', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'พัน',
- million: 'ล้าน',
- billion: 'พันล้าน',
- trillion: 'ล้านล้าน'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '฿'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/tr.js b/node_modules/numeral/locales/tr.js
deleted file mode 100644
index 07f7ffdda9..0000000000
--- a/node_modules/numeral/locales/tr.js
+++ /dev/null
@@ -1,66 +0,0 @@
-// numeral.js locale configuration
-// locale : turkish (tr)
-// author : Ecmel Ercan : https://github.com/ecmel, Erhan Gundogan : https://github.com/erhangundogan, Burak Yiğit Kaya: https://github.com/BYK
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- var suffixes = {
- 1: '\'inci',
- 5: '\'inci',
- 8: '\'inci',
- 70: '\'inci',
- 80: '\'inci',
-
- 2: '\'nci',
- 7: '\'nci',
- 20: '\'nci',
- 50: '\'nci',
-
- 3: '\'üncü',
- 4: '\'üncü',
- 100: '\'üncü',
-
- 6: '\'ncı',
-
- 9: '\'uncu',
- 10: '\'uncu',
- 30: '\'uncu',
-
- 60: '\'ıncı',
- 90: '\'ıncı'
- };
-
- numeral.register('locale', 'tr', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'bin',
- million: 'milyon',
- billion: 'milyar',
- trillion: 'trilyon'
- },
- ordinal: function (number) {
- if (number === 0) { // special case for zero
- return '\'ıncı';
- }
-
- var a = number % 10,
- b = number % 100 - a,
- c = number >= 100 ? 100 : null;
-
- return suffixes[a] || suffixes[b] || suffixes[c];
- },
- currency: {
- symbol: '\u20BA'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/uk-ua.js b/node_modules/numeral/locales/uk-ua.js
deleted file mode 100644
index 34b310377e..0000000000
--- a/node_modules/numeral/locales/uk-ua.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// numeral.js locale configuration
-// locale : Ukrainian for the Ukraine (uk-ua)
-// author : Michael Piefel : https://github.com/piefel (with help from Tetyana Kuzmenko)
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'uk-ua', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'тис.',
- million: 'млн',
- billion: 'млрд',
- trillion: 'блн'
- },
- ordinal: function () {
- // not ideal, but since in Ukrainian it can taken on
- // different forms (masculine, feminine, neuter)
- // this is all we can do
- return '';
- },
- currency: {
- symbol: '\u20B4'
- }
- });
-}));
diff --git a/node_modules/numeral/locales/vi.js b/node_modules/numeral/locales/vi.js
deleted file mode 100644
index a71a1bb880..0000000000
--- a/node_modules/numeral/locales/vi.js
+++ /dev/null
@@ -1,33 +0,0 @@
-// numeral.js locale configuration
-// locale : vietnam (vi)
-// author : Harry Nguyen : https://github.com/thaihoa311
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
-
- numeral.register('locale', 'vi', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: ' nghìn',
- million: ' triệu',
- billion: ' tỷ',
- trillion: ' nghìn tỷ'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: '₫'
- }
- });
-}));
diff --git a/node_modules/numeral/min/locales.min.js b/node_modules/numeral/min/locales.min.js
deleted file mode 100644
index 39b1736adb..0000000000
--- a/node_modules/numeral/min/locales.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*! @preserve
- * numeral.js
- * locales : 2.0.6
- * license : MIT
- * http://adamwdraper.github.com/Numeral-js/
- */
-!function(a,b){"function"==typeof define&&define.amd?define(["numeral"],b):b("object"==typeof module&&module.exports?require("./numeral"):a.numeral)}(this,function(a){!function(){a.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"хил",million:"млн",billion:"млрд",trillion:"трлн"},ordinal:function(a){return""},currency:{symbol:"лв"}})}(),function(){a.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(a){return"."},currency:{symbol:"¥"}})}(),function(){a.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Kč"}})}(),function(){a.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(a){return"."},currency:{symbol:"DKK"}})}(),function(){a.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"CHF"}})}(),function(){a.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(),function(){a.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$"}})}(),function(){a.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"£"}})}(),function(){a.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"R"}})}(),function(){a.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"€"}})}(),function(){a.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"$"}})}(),function(){a.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(),function(){a.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(),function(){a.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"$"}})}(),function(){a.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"CHF"}})}(),function(){a.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"€"}})}(),function(){a.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:" Ft"}})}(),function(){a.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"€"}})}(),function(){a.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(a){return"."},currency:{symbol:"¥"}})}(),function(){a.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tūkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(a){return"."},currency:{symbol:"€"}})}(),function(){a.register("locale","nl-be",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(a){var b=a%100;return 0!==a&&1>=b||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})}(),function(){a.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(a){var b=a%100;return 0!==a&&1>=b||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})}(),function(){a.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"kr"}})}(),function(){a.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(a){return"."},currency:{symbol:"PLN"}})}(),function(){a.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"R$"}})}(),function(){a.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"€"}})}(),function(){a.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴"}})}(),function(){a.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн.",billion:"млрд.",trillion:"трлн."},ordinal:function(){return"."},currency:{symbol:"руб."}})}(),function(){a.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}})}(),function(){a.register("locale","sl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mrd",trillion:"trilijon"},ordinal:function(){return"."},currency:{symbol:"€"}})}(),function(){a.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(a){return"."},currency:{symbol:"฿"}})}(),function(){var b={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};a.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(a){if(0===a)return"'ıncı";var c=a%10,d=a%100-c,e=a>=100?100:null;return b[c]||b[d]||b[e]},currency:{symbol:"₺"}})}(),function(){a.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴"}})}(),function(){a.register("locale","vi",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:" nghìn",million:" triệu",billion:" tỷ",trillion:" nghìn tỷ"},ordinal:function(){return"."},currency:{symbol:"₫"}})}()});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/be-nl.min.js b/node_modules/numeral/min/locales/be-nl.min.js
deleted file mode 100644
index 7c98f24b14..0000000000
--- a/node_modules/numeral/min/locales/be-nl.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","be-nl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(a){var b=a%100;return 0!==a&&b<=1||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/bg.min.js b/node_modules/numeral/min/locales/bg.min.js
deleted file mode 100644
index eb527e1f25..0000000000
--- a/node_modules/numeral/min/locales/bg.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"хил",million:"млн",billion:"млрд",trillion:"трлн"},ordinal:function(a){return""},currency:{symbol:"лв"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/chs.min.js b/node_modules/numeral/min/locales/chs.min.js
deleted file mode 100644
index 41818b04c4..0000000000
--- a/node_modules/numeral/min/locales/chs.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(a){return"."},currency:{symbol:"¥"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/cs.min.js b/node_modules/numeral/min/locales/cs.min.js
deleted file mode 100644
index bde3dd59f6..0000000000
--- a/node_modules/numeral/min/locales/cs.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Kč"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/da-dk.min.js b/node_modules/numeral/min/locales/da-dk.min.js
deleted file mode 100644
index f493b252e2..0000000000
--- a/node_modules/numeral/min/locales/da-dk.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(a){return"."},currency:{symbol:"DKK"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/de-ch.min.js b/node_modules/numeral/min/locales/de-ch.min.js
deleted file mode 100644
index 18469430cd..0000000000
--- a/node_modules/numeral/min/locales/de-ch.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"CHF"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/de.min.js b/node_modules/numeral/min/locales/de.min.js
deleted file mode 100644
index baba5a1ddd..0000000000
--- a/node_modules/numeral/min/locales/de.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"€"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/en-au.min.js b/node_modules/numeral/min/locales/en-au.min.js
deleted file mode 100644
index ad231d7864..0000000000
--- a/node_modules/numeral/min/locales/en-au.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/en-gb.min.js b/node_modules/numeral/min/locales/en-gb.min.js
deleted file mode 100644
index caea4d243b..0000000000
--- a/node_modules/numeral/min/locales/en-gb.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"£"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/en-za.min.js b/node_modules/numeral/min/locales/en-za.min.js
deleted file mode 100644
index 48838e9823..0000000000
--- a/node_modules/numeral/min/locales/en-za.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"R"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/es-es.min.js b/node_modules/numeral/min/locales/es-es.min.js
deleted file mode 100644
index 1bf25b43ae..0000000000
--- a/node_modules/numeral/min/locales/es-es.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"€"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/es.min.js b/node_modules/numeral/min/locales/es.min.js
deleted file mode 100644
index 7dc9592596..0000000000
--- a/node_modules/numeral/min/locales/es.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"$"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/et.min.js b/node_modules/numeral/min/locales/et.min.js
deleted file mode 100644
index 43e41687aa..0000000000
--- a/node_modules/numeral/min/locales/et.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(a){return"."},currency:{symbol:"€"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/fi.min.js b/node_modules/numeral/min/locales/fi.min.js
deleted file mode 100644
index 2d3d119b56..0000000000
--- a/node_modules/numeral/min/locales/fi.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:"€"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/fr-ca.min.js b/node_modules/numeral/min/locales/fr-ca.min.js
deleted file mode 100644
index 36ea3ee8b9..0000000000
--- a/node_modules/numeral/min/locales/fr-ca.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"$"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/fr-ch.min.js b/node_modules/numeral/min/locales/fr-ch.min.js
deleted file mode 100644
index 87e646b251..0000000000
--- a/node_modules/numeral/min/locales/fr-ch.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"CHF"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/fr.min.js b/node_modules/numeral/min/locales/fr.min.js
deleted file mode 100644
index ef5d9798d0..0000000000
--- a/node_modules/numeral/min/locales/fr.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"€"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/hu.min.js b/node_modules/numeral/min/locales/hu.min.js
deleted file mode 100644
index a18bfe74b8..0000000000
--- a/node_modules/numeral/min/locales/hu.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:" Ft"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/it.min.js b/node_modules/numeral/min/locales/it.min.js
deleted file mode 100644
index 0663447ebd..0000000000
--- a/node_modules/numeral/min/locales/it.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"€"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/ja.min.js b/node_modules/numeral/min/locales/ja.min.js
deleted file mode 100644
index 11bd591111..0000000000
--- a/node_modules/numeral/min/locales/ja.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(a){return"."},currency:{symbol:"¥"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/lv.min.js b/node_modules/numeral/min/locales/lv.min.js
deleted file mode 100644
index 9cf210fd27..0000000000
--- a/node_modules/numeral/min/locales/lv.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tūkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(a){return"."},currency:{symbol:"€"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/nl-be.min.js b/node_modules/numeral/min/locales/nl-be.min.js
deleted file mode 100644
index d97a6ff251..0000000000
--- a/node_modules/numeral/min/locales/nl-be.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","nl-be",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(a){var b=a%100;return 0!==a&&1>=b||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/nl-nl.min.js b/node_modules/numeral/min/locales/nl-nl.min.js
deleted file mode 100644
index 1e50e79963..0000000000
--- a/node_modules/numeral/min/locales/nl-nl.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(a){var b=a%100;return 0!==a&&1>=b||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/no.min.js b/node_modules/numeral/min/locales/no.min.js
deleted file mode 100644
index 9ed349a7cd..0000000000
--- a/node_modules/numeral/min/locales/no.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"kr"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/pl.min.js b/node_modules/numeral/min/locales/pl.min.js
deleted file mode 100644
index 633f0741f8..0000000000
--- a/node_modules/numeral/min/locales/pl.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(a){return"."},currency:{symbol:"PLN"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/pt-br.min.js b/node_modules/numeral/min/locales/pt-br.min.js
deleted file mode 100644
index 5cc66de66f..0000000000
--- a/node_modules/numeral/min/locales/pt-br.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"R$"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/pt-pt.min.js b/node_modules/numeral/min/locales/pt-pt.min.js
deleted file mode 100644
index 48fa0d90be..0000000000
--- a/node_modules/numeral/min/locales/pt-pt.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"€"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/ru-ua.min.js b/node_modules/numeral/min/locales/ru-ua.min.js
deleted file mode 100644
index 619444d94a..0000000000
--- a/node_modules/numeral/min/locales/ru-ua.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/ru.min.js b/node_modules/numeral/min/locales/ru.min.js
deleted file mode 100644
index f3d19ad59a..0000000000
--- a/node_modules/numeral/min/locales/ru.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн.",billion:"млрд.",trillion:"трлн."},ordinal:function(){return"."},currency:{symbol:"руб."}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/sk.min.js b/node_modules/numeral/min/locales/sk.min.js
deleted file mode 100644
index 0baf19522e..0000000000
--- a/node_modules/numeral/min/locales/sk.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/sl.min.js b/node_modules/numeral/min/locales/sl.min.js
deleted file mode 100644
index def40e29d9..0000000000
--- a/node_modules/numeral/min/locales/sl.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","sl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mrd",trillion:"trilijon"},ordinal:function(){return"."},currency:{symbol:"€"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/th.min.js b/node_modules/numeral/min/locales/th.min.js
deleted file mode 100644
index fd49a50c5d..0000000000
--- a/node_modules/numeral/min/locales/th.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(a){return"."},currency:{symbol:"฿"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/tr.min.js b/node_modules/numeral/min/locales/tr.min.js
deleted file mode 100644
index 4f77e39fa2..0000000000
--- a/node_modules/numeral/min/locales/tr.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){var b={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};a.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(a){if(0===a)return"'ıncı";var c=a%10,d=a%100-c,e=a>=100?100:null;return b[c]||b[d]||b[e]},currency:{symbol:"₺"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/uk-ua.min.js b/node_modules/numeral/min/locales/uk-ua.min.js
deleted file mode 100644
index 9120e3f001..0000000000
--- a/node_modules/numeral/min/locales/uk-ua.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/locales/vi.min.js b/node_modules/numeral/min/locales/vi.min.js
deleted file mode 100644
index fde4756be9..0000000000
--- a/node_modules/numeral/min/locales/vi.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","vi",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:" nghìn",million:" triệu",billion:" tỷ",trillion:" nghìn tỷ"},ordinal:function(){return"."},currency:{symbol:"₫"}})});
\ No newline at end of file
diff --git a/node_modules/numeral/min/numeral.min.js b/node_modules/numeral/min/numeral.min.js
deleted file mode 100644
index b721f54a58..0000000000
--- a/node_modules/numeral/min/numeral.min.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*! @preserve
- * numeral.js
- * version : 2.0.6
- * author : Adam Draper
- * license : MIT
- * http://adamwdraper.github.com/Numeral-js/
- */
-!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof module&&module.exports?module.exports=b():a.numeral=b()}(this,function(){function a(a,b){this._input=a,this._value=b}var b,c,d="2.0.6",e={},f={},g={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},h={currentLocale:g.currentLocale,zeroFormat:g.zeroFormat,nullFormat:g.nullFormat,defaultFormat:g.defaultFormat,scalePercentBy100:g.scalePercentBy100};return b=function(d){var f,g,i,j;if(b.isNumeral(d))f=d.value();else if(0===d||"undefined"==typeof d)f=0;else if(null===d||c.isNaN(d))f=null;else if("string"==typeof d)if(h.zeroFormat&&d===h.zeroFormat)f=0;else if(h.nullFormat&&d===h.nullFormat||!d.replace(/[^0-9]+/g,"").length)f=null;else{for(g in e)if(j="function"==typeof e[g].regexps.unformat?e[g].regexps.unformat():e[g].regexps.unformat,j&&d.match(j)){i=e[g].unformat;break}i=i||b._.stringToNumber,f=i(d)}else f=Number(d)||null;return new a(d,f)},b.version=d,b.isNumeral=function(b){return b instanceof a},b._=c={numberToFormat:function(a,c,d){var e,g,h,i,j,k,l,m=f[b.options.currentLocale],n=!1,o=!1,p=0,q="",r=1e12,s=1e9,t=1e6,u=1e3,v="",w=!1;if(a=a||0,g=Math.abs(a),b._.includes(c,"(")?(n=!0,c=c.replace(/[\(|\)]/g,"")):(b._.includes(c,"+")||b._.includes(c,"-"))&&(j=b._.includes(c,"+")?c.indexOf("+"):0>a?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),b._.includes(c,"a")&&(e=c.match(/a(k|m|b|t)?/),e=e?e[1]:!1,b._.includes(c," a")&&(q=" "),c=c.replace(new RegExp(q+"a[kmbt]?"),""),g>=r&&!e||"t"===e?(q+=m.abbreviations.trillion,a/=r):r>g&&g>=s&&!e||"b"===e?(q+=m.abbreviations.billion,a/=s):s>g&&g>=t&&!e||"m"===e?(q+=m.abbreviations.million,a/=t):(t>g&&g>=u&&!e||"k"===e)&&(q+=m.abbreviations.thousand,a/=u)),b._.includes(c,"[.]")&&(o=!0,c=c.replace("[.]",".")),h=a.toString().split(".")[0],i=c.split(".")[1],k=c.indexOf(","),p=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,i?(b._.includes(i,"[")?(i=i.replace("]",""),i=i.split("["),v=b._.toFixed(a,i[0].length+i[1].length,d,i[1].length)):v=b._.toFixed(a,i.length,d),h=v.split(".")[0],v=b._.includes(v,".")?m.delimiters.decimal+v.split(".")[1]:"",o&&0===Number(v.slice(1))&&(v="")):h=b._.toFixed(a,0,d),q&&!e&&Number(h)>=1e3&&q!==m.abbreviations.trillion)switch(h=String(Number(h)/1e3),q){case m.abbreviations.thousand:q=m.abbreviations.million;break;case m.abbreviations.million:q=m.abbreviations.billion;break;case m.abbreviations.billion:q=m.abbreviations.trillion}if(b._.includes(h,"-")&&(h=h.slice(1),w=!0),h.length
0;x--)h="0"+h;return k>-1&&(h=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+m.delimiters.thousands)),0===c.indexOf(".")&&(h=""),l=h+v+(q?q:""),n?l=(n&&w?"(":"")+l+(n&&w?")":""):j>=0?l=0===j?(w?"-":"+")+l:l+(w?"-":"+"):w&&(l="-"+l),l},stringToNumber:function(a){var b,c,d,e=f[h.currentLocale],g=a,i={thousand:3,million:6,billion:9,trillion:12};if(h.zeroFormat&&a===h.zeroFormat)c=0;else if(h.nullFormat&&a===h.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{c=1,"."!==e.delimiters.decimal&&(a=a.replace(/\./g,"").replace(e.delimiters.decimal,"."));for(b in i)if(d=new RegExp("[^a-zA-Z]"+e.abbreviations[b]+"(?:\\)|(\\"+e.currency.symbol+")?(?:\\))?)?$"),g.match(d)){c*=Math.pow(10,i[b]);break}c*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),c*=Number(a)}return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},includes:function(a,b){return-1!==a.indexOf(b)},insert:function(a,b,c){return a.slice(0,c)+b+a.slice(c)},reduce:function(a,b){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof b)throw new TypeError(b+" is not a function");var c,d=Object(a),e=d.length>>>0,f=0;if(3===arguments.length)c=arguments[2];else{for(;e>f&&!(f in d);)f++;if(f>=e)throw new TypeError("Reduce of empty array with no initial value");c=d[f++]}for(;e>f;f++)f in d&&(c=b(c,d[f],f,d));return c},multiplier:function(a){var b=a.toString().split(".");return b.length<2?1:Math.pow(10,b[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(a,b){var d=c.multiplier(b);return a>d?a:d},1)},toFixed:function(a,b,c,d){var e,f,g,h,i=a.toString().split("."),j=b-(d||0);return e=2===i.length?Math.min(Math.max(i[1].length,j),b):j,g=Math.pow(10,e),h=(c(a+"e+"+e)/g).toFixed(e),d>b-e&&(f=new RegExp("\\.?0{1,"+(d-(b-e))+"}$"),h=h.replace(f,"")),h}},b.options=h,b.formats=e,b.locales=f,b.locale=function(a){return a&&(h.currentLocale=a.toLowerCase()),h.currentLocale},b.localeData=function(a){if(!a)return f[h.currentLocale];if(a=a.toLowerCase(),!f[a])throw new Error("Unknown locale : "+a);return f[a]},b.reset=function(){for(var a in g)h[a]=g[a]},b.zeroFormat=function(a){h.zeroFormat="string"==typeof a?a:null},b.nullFormat=function(a){h.nullFormat="string"==typeof a?a:null},b.defaultFormat=function(a){h.defaultFormat="string"==typeof a?a:"0.0"},b.register=function(a,b,c){if(b=b.toLowerCase(),this[a+"s"][b])throw new TypeError(b+" "+a+" already registered.");return this[a+"s"][b]=c,c},b.validate=function(a,c){var d,e,f,g,h,i,j,k;if("string"!=typeof a&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(""===a)return!1;try{j=b.localeData(c)}catch(l){j=b.localeData(b.locale())}return f=j.currency.symbol,h=j.abbreviations,d=j.delimiters.decimal,e="."===j.delimiters.thousands?"\\.":j.delimiters.thousands,k=a.match(/^[^\d]+/),null!==k&&(a=a.substr(1),k[0]!==f)?!1:(k=a.match(/[^\d]+$/),null!==k&&(a=a.slice(0,-1),k[0]!==h.thousand&&k[0]!==h.million&&k[0]!==h.billion&&k[0]!==h.trillion)?!1:(i=new RegExp(e+"{2}"),a.match(/[^\d.,]/g)?!1:(g=a.split(d),g.length>2?!1:g.length<2?!!g[0].match(/^\d+.*\d$/)&&!g[0].match(i):1===g[0].length?!!g[0].match(/^\d+$/)&&!g[0].match(i)&&!!g[1].match(/^\d+$/):!!g[0].match(/^\d+.*\d$/)&&!g[0].match(i)&&!!g[1].match(/^\d+$/))))},b.fn=a.prototype={clone:function(){return b(this)},format:function(a,c){var d,f,g,i=this._value,j=a||h.defaultFormat;if(c=c||Math.round,0===i&&null!==h.zeroFormat)f=h.zeroFormat;else if(null===i&&null!==h.nullFormat)f=h.nullFormat;else{for(d in e)if(j.match(e[d].regexps.format)){g=e[d].format;break}g=g||b._.numberToFormat,f=g(i,j,c)}return f},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){function b(a,b,c,e){return a+Math.round(d*b)}var d=c.correctionFactor.call(null,this._value,a);return this._value=c.reduce([this._value,a],b,0)/d,this},subtract:function(a){function b(a,b,c,e){return a-Math.round(d*b)}var d=c.correctionFactor.call(null,this._value,a);return this._value=c.reduce([a],b,Math.round(this._value*d))/d,this},multiply:function(a){function b(a,b,d,e){var f=c.correctionFactor(a,b);return Math.round(a*f)*Math.round(b*f)/Math.round(f*f)}return this._value=c.reduce([this._value,a],b,1),this},divide:function(a){function b(a,b,d,e){var f=c.correctionFactor(a,b);return Math.round(a*f)/Math.round(b*f)}return this._value=c.reduce([this._value,a],b),this},difference:function(a){return Math.abs(b(this._value).subtract(a).value())}},b.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$"}}),function(){b.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,d){var e,f=b._.includes(c," BPS")?" ":"";return a=1e4*a,c=c.replace(/\s?BPS/,""),e=b._.numberToFormat(a,c,d),b._.includes(e,")")?(e=e.split(""),e.splice(-1,0,f+"BPS"),e=e.join("")):e=e+f+"BPS",e},unformat:function(a){return+(1e-4*b._.stringToNumber(a)).toFixed(15)}})}(),function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},d=a.suffixes.concat(c.suffixes.filter(function(b){return a.suffixes.indexOf(b)<0})),e=d.join("|");e="("+e.replace("B","B(?!PS)")+")",b.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(e)},format:function(d,e,f){var g,h,i,j,k=b._.includes(e,"ib")?c:a,l=b._.includes(e," b")||b._.includes(e," ib")?" ":"";for(e=e.replace(/\s?i?b/,""),h=0;h<=k.suffixes.length;h++)if(i=Math.pow(k.base,h),j=Math.pow(k.base,h+1),null===d||0===d||d>=i&&j>d){l+=k.suffixes[h],i>0&&(d/=i);break}return g=b._.numberToFormat(d,e,f),g+l},unformat:function(d){var e,f,g=b._.stringToNumber(d);if(g){for(e=a.suffixes.length-1;e>=0;e--){if(b._.includes(d,a.suffixes[e])){f=Math.pow(a.base,e);break}if(b._.includes(d,c.suffixes[e])){f=Math.pow(c.base,e);break}}g*=f||1}return g}})}(),function(){b.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,d){var e,f,g,h=b.locales[b.options.currentLocale],i={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(c=c.replace(/\s?\$\s?/,""),e=b._.numberToFormat(a,c,d),a>=0?(i.before=i.before.replace(/[\-\(]/,""),i.after=i.after.replace(/[\-\)]/,"")):0>a&&!b._.includes(i.before,"-")&&!b._.includes(i.before,"(")&&(i.before="-"+i.before),g=0;g=0;g--)switch(f=i.after[g]){case"$":e=g===i.after.length-1?e+h.currency.symbol:b._.insert(e,h.currency.symbol,-(i.after.length-(1+g)));break;case" ":e=g===i.after.length-1?e+" ":b._.insert(e," ",-(i.after.length-(1+g)+h.currency.symbol.length-1))}return e}})}(),function(){b.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,d){var e,f="number"!=typeof a||b._.isNaN(a)?"0e+0":a.toExponential(),g=f.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),e=b._.numberToFormat(Number(g[0]),c,d),e+"e"+g[1]},unformat:function(a){function c(a,c,d,e){var f=b._.correctionFactor(a,c),g=a*f*(c*f)/(f*f);return g}var d=b._.includes(a,"e+")?a.split("e+"):a.split("e-"),e=Number(d[0]),f=Number(d[1]);return f=b._.includes(a,"e-")?f*=-1:f,b._.reduce([e,Math.pow(10,f)],c,1)}})}(),function(){b.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,d){var e,f=b.locales[b.options.currentLocale],g=b._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),g+=f.ordinal(a),e=b._.numberToFormat(a,c,d),e+g}})}(),function(){b.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,d){var e,f=b._.includes(c," %")?" ":"";return b.options.scalePercentBy100&&(a=100*a),c=c.replace(/\s?\%/,""),e=b._.numberToFormat(a,c,d),b._.includes(e,")")?(e=e.split(""),e.splice(-1,0,f+"%"),e=e.join("")):e=e+f+"%",e},unformat:function(a){var c=b._.stringToNumber(a);return b.options.scalePercentBy100?.01*c:c}})}(),function(){b.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,b,c){var d=Math.floor(a/60/60),e=Math.floor((a-60*d*60)/60),f=Math.round(a-60*d*60-60*e);return d+":"+(10>e?"0"+e:e)+":"+(10>f?"0"+f:f)},unformat:function(a){var b=a.split(":"),c=0;return 3===b.length?(c+=60*Number(b[0])*60,c+=60*Number(b[1]),c+=Number(b[2])):2===b.length&&(c+=60*Number(b[0]),c+=Number(b[1])),Number(c)}})}(),b});
\ No newline at end of file
diff --git a/node_modules/numeral/numeral.js b/node_modules/numeral/numeral.js
deleted file mode 100644
index 22726c9e18..0000000000
--- a/node_modules/numeral/numeral.js
+++ /dev/null
@@ -1,1013 +0,0 @@
-/*! @preserve
- * numeral.js
- * version : 2.0.6
- * author : Adam Draper
- * license : MIT
- * http://adamwdraper.github.com/Numeral-js/
- */
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(factory);
- } else if (typeof module === 'object' && module.exports) {
- module.exports = factory();
- } else {
- global.numeral = factory();
- }
-}(this, function () {
- /************************************
- Variables
- ************************************/
-
- var numeral,
- _,
- VERSION = '2.0.6',
- formats = {},
- locales = {},
- defaults = {
- currentLocale: 'en',
- zeroFormat: null,
- nullFormat: null,
- defaultFormat: '0,0',
- scalePercentBy100: true
- },
- options = {
- currentLocale: defaults.currentLocale,
- zeroFormat: defaults.zeroFormat,
- nullFormat: defaults.nullFormat,
- defaultFormat: defaults.defaultFormat,
- scalePercentBy100: defaults.scalePercentBy100
- };
-
-
- /************************************
- Constructors
- ************************************/
-
- // Numeral prototype object
- function Numeral(input, number) {
- this._input = input;
-
- this._value = number;
- }
-
- numeral = function(input) {
- var value,
- kind,
- unformatFunction,
- regexp;
-
- if (numeral.isNumeral(input)) {
- value = input.value();
- } else if (input === 0 || typeof input === 'undefined') {
- value = 0;
- } else if (input === null || _.isNaN(input)) {
- value = null;
- } else if (typeof input === 'string') {
- if (options.zeroFormat && input === options.zeroFormat) {
- value = 0;
- } else if (options.nullFormat && input === options.nullFormat || !input.replace(/[^0-9]+/g, '').length) {
- value = null;
- } else {
- for (kind in formats) {
- regexp = typeof formats[kind].regexps.unformat === 'function' ? formats[kind].regexps.unformat() : formats[kind].regexps.unformat;
-
- if (regexp && input.match(regexp)) {
- unformatFunction = formats[kind].unformat;
-
- break;
- }
- }
-
- unformatFunction = unformatFunction || numeral._.stringToNumber;
-
- value = unformatFunction(input);
- }
- } else {
- value = Number(input)|| null;
- }
-
- return new Numeral(input, value);
- };
-
- // version number
- numeral.version = VERSION;
-
- // compare numeral object
- numeral.isNumeral = function(obj) {
- return obj instanceof Numeral;
- };
-
- // helper functions
- numeral._ = _ = {
- // formats numbers separators, decimals places, signs, abbreviations
- numberToFormat: function(value, format, roundingFunction) {
- var locale = locales[numeral.options.currentLocale],
- negP = false,
- optDec = false,
- leadingCount = 0,
- abbr = '',
- trillion = 1000000000000,
- billion = 1000000000,
- million = 1000000,
- thousand = 1000,
- decimal = '',
- neg = false,
- abbrForce, // force abbreviation
- abs,
- min,
- max,
- power,
- int,
- precision,
- signed,
- thousands,
- output;
-
- // make sure we never format a null value
- value = value || 0;
-
- abs = Math.abs(value);
-
- // see if we should use parentheses for negative number or if we should prefix with a sign
- // if both are present we default to parentheses
- if (numeral._.includes(format, '(')) {
- negP = true;
- format = format.replace(/[\(|\)]/g, '');
- } else if (numeral._.includes(format, '+') || numeral._.includes(format, '-')) {
- signed = numeral._.includes(format, '+') ? format.indexOf('+') : value < 0 ? format.indexOf('-') : -1;
- format = format.replace(/[\+|\-]/g, '');
- }
-
- // see if abbreviation is wanted
- if (numeral._.includes(format, 'a')) {
- abbrForce = format.match(/a(k|m|b|t)?/);
-
- abbrForce = abbrForce ? abbrForce[1] : false;
-
- // check for space before abbreviation
- if (numeral._.includes(format, ' a')) {
- abbr = ' ';
- }
-
- format = format.replace(new RegExp(abbr + 'a[kmbt]?'), '');
-
- if (abs >= trillion && !abbrForce || abbrForce === 't') {
- // trillion
- abbr += locale.abbreviations.trillion;
- value = value / trillion;
- } else if (abs < trillion && abs >= billion && !abbrForce || abbrForce === 'b') {
- // billion
- abbr += locale.abbreviations.billion;
- value = value / billion;
- } else if (abs < billion && abs >= million && !abbrForce || abbrForce === 'm') {
- // million
- abbr += locale.abbreviations.million;
- value = value / million;
- } else if (abs < million && abs >= thousand && !abbrForce || abbrForce === 'k') {
- // thousand
- abbr += locale.abbreviations.thousand;
- value = value / thousand;
- }
- }
-
- // check for optional decimals
- if (numeral._.includes(format, '[.]')) {
- optDec = true;
- format = format.replace('[.]', '.');
- }
-
- // break number and format
- int = value.toString().split('.')[0];
- precision = format.split('.')[1];
- thousands = format.indexOf(',');
- leadingCount = (format.split('.')[0].split(',')[0].match(/0/g) || []).length;
-
- if (precision) {
- if (numeral._.includes(precision, '[')) {
- precision = precision.replace(']', '');
- precision = precision.split('[');
- decimal = numeral._.toFixed(value, (precision[0].length + precision[1].length), roundingFunction, precision[1].length);
- } else {
- decimal = numeral._.toFixed(value, precision.length, roundingFunction);
- }
-
- int = decimal.split('.')[0];
-
- if (numeral._.includes(decimal, '.')) {
- decimal = locale.delimiters.decimal + decimal.split('.')[1];
- } else {
- decimal = '';
- }
-
- if (optDec && Number(decimal.slice(1)) === 0) {
- decimal = '';
- }
- } else {
- int = numeral._.toFixed(value, 0, roundingFunction);
- }
-
- // check abbreviation again after rounding
- if (abbr && !abbrForce && Number(int) >= 1000 && abbr !== locale.abbreviations.trillion) {
- int = String(Number(int) / 1000);
-
- switch (abbr) {
- case locale.abbreviations.thousand:
- abbr = locale.abbreviations.million;
- break;
- case locale.abbreviations.million:
- abbr = locale.abbreviations.billion;
- break;
- case locale.abbreviations.billion:
- abbr = locale.abbreviations.trillion;
- break;
- }
- }
-
-
- // format number
- if (numeral._.includes(int, '-')) {
- int = int.slice(1);
- neg = true;
- }
-
- if (int.length < leadingCount) {
- for (var i = leadingCount - int.length; i > 0; i--) {
- int = '0' + int;
- }
- }
-
- if (thousands > -1) {
- int = int.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1' + locale.delimiters.thousands);
- }
-
- if (format.indexOf('.') === 0) {
- int = '';
- }
-
- output = int + decimal + (abbr ? abbr : '');
-
- if (negP) {
- output = (negP && neg ? '(' : '') + output + (negP && neg ? ')' : '');
- } else {
- if (signed >= 0) {
- output = signed === 0 ? (neg ? '-' : '+') + output : output + (neg ? '-' : '+');
- } else if (neg) {
- output = '-' + output;
- }
- }
-
- return output;
- },
- // unformats numbers separators, decimals places, signs, abbreviations
- stringToNumber: function(string) {
- var locale = locales[options.currentLocale],
- stringOriginal = string,
- abbreviations = {
- thousand: 3,
- million: 6,
- billion: 9,
- trillion: 12
- },
- abbreviation,
- value,
- i,
- regexp;
-
- if (options.zeroFormat && string === options.zeroFormat) {
- value = 0;
- } else if (options.nullFormat && string === options.nullFormat || !string.replace(/[^0-9]+/g, '').length) {
- value = null;
- } else {
- value = 1;
-
- if (locale.delimiters.decimal !== '.') {
- string = string.replace(/\./g, '').replace(locale.delimiters.decimal, '.');
- }
-
- for (abbreviation in abbreviations) {
- regexp = new RegExp('[^a-zA-Z]' + locale.abbreviations[abbreviation] + '(?:\\)|(\\' + locale.currency.symbol + ')?(?:\\))?)?$');
-
- if (stringOriginal.match(regexp)) {
- value *= Math.pow(10, abbreviations[abbreviation]);
- break;
- }
- }
-
- // check for negative number
- value *= (string.split('-').length + Math.min(string.split('(').length - 1, string.split(')').length - 1)) % 2 ? 1 : -1;
-
- // remove non numbers
- string = string.replace(/[^0-9\.]+/g, '');
-
- value *= Number(string);
- }
-
- return value;
- },
- isNaN: function(value) {
- return typeof value === 'number' && isNaN(value);
- },
- includes: function(string, search) {
- return string.indexOf(search) !== -1;
- },
- insert: function(string, subString, start) {
- return string.slice(0, start) + subString + string.slice(start);
- },
- reduce: function(array, callback /*, initialValue*/) {
- if (this === null) {
- throw new TypeError('Array.prototype.reduce called on null or undefined');
- }
-
- if (typeof callback !== 'function') {
- throw new TypeError(callback + ' is not a function');
- }
-
- var t = Object(array),
- len = t.length >>> 0,
- k = 0,
- value;
-
- if (arguments.length === 3) {
- value = arguments[2];
- } else {
- while (k < len && !(k in t)) {
- k++;
- }
-
- if (k >= len) {
- throw new TypeError('Reduce of empty array with no initial value');
- }
-
- value = t[k++];
- }
- for (; k < len; k++) {
- if (k in t) {
- value = callback(value, t[k], k, t);
- }
- }
- return value;
- },
- /**
- * Computes the multiplier necessary to make x >= 1,
- * effectively eliminating miscalculations caused by
- * finite precision.
- */
- multiplier: function (x) {
- var parts = x.toString().split('.');
-
- return parts.length < 2 ? 1 : Math.pow(10, parts[1].length);
- },
- /**
- * Given a variable number of arguments, returns the maximum
- * multiplier that must be used to normalize an operation involving
- * all of them.
- */
- correctionFactor: function () {
- var args = Array.prototype.slice.call(arguments);
-
- return args.reduce(function(accum, next) {
- var mn = _.multiplier(next);
- return accum > mn ? accum : mn;
- }, 1);
- },
- /**
- * Implementation of toFixed() that treats floats more like decimals
- *
- * Fixes binary rounding issues (eg. (0.615).toFixed(2) === '0.61') that present
- * problems for accounting- and finance-related software.
- */
- toFixed: function(value, maxDecimals, roundingFunction, optionals) {
- var splitValue = value.toString().split('.'),
- minDecimals = maxDecimals - (optionals || 0),
- boundedPrecision,
- optionalsRegExp,
- power,
- output;
-
- // Use the smallest precision value possible to avoid errors from floating point representation
- if (splitValue.length === 2) {
- boundedPrecision = Math.min(Math.max(splitValue[1].length, minDecimals), maxDecimals);
- } else {
- boundedPrecision = minDecimals;
- }
-
- power = Math.pow(10, boundedPrecision);
-
- // Multiply up by precision, round accurately, then divide and use native toFixed():
- output = (roundingFunction(value + 'e+' + boundedPrecision) / power).toFixed(boundedPrecision);
-
- if (optionals > maxDecimals - boundedPrecision) {
- optionalsRegExp = new RegExp('\\.?0{1,' + (optionals - (maxDecimals - boundedPrecision)) + '}$');
- output = output.replace(optionalsRegExp, '');
- }
-
- return output;
- }
- };
-
- // avaliable options
- numeral.options = options;
-
- // avaliable formats
- numeral.formats = formats;
-
- // avaliable formats
- numeral.locales = locales;
-
- // This function sets the current locale. If
- // no arguments are passed in, it will simply return the current global
- // locale key.
- numeral.locale = function(key) {
- if (key) {
- options.currentLocale = key.toLowerCase();
- }
-
- return options.currentLocale;
- };
-
- // This function provides access to the loaded locale data. If
- // no arguments are passed in, it will simply return the current
- // global locale object.
- numeral.localeData = function(key) {
- if (!key) {
- return locales[options.currentLocale];
- }
-
- key = key.toLowerCase();
-
- if (!locales[key]) {
- throw new Error('Unknown locale : ' + key);
- }
-
- return locales[key];
- };
-
- numeral.reset = function() {
- for (var property in defaults) {
- options[property] = defaults[property];
- }
- };
-
- numeral.zeroFormat = function(format) {
- options.zeroFormat = typeof(format) === 'string' ? format : null;
- };
-
- numeral.nullFormat = function (format) {
- options.nullFormat = typeof(format) === 'string' ? format : null;
- };
-
- numeral.defaultFormat = function(format) {
- options.defaultFormat = typeof(format) === 'string' ? format : '0.0';
- };
-
- numeral.register = function(type, name, format) {
- name = name.toLowerCase();
-
- if (this[type + 's'][name]) {
- throw new TypeError(name + ' ' + type + ' already registered.');
- }
-
- this[type + 's'][name] = format;
-
- return format;
- };
-
-
- numeral.validate = function(val, culture) {
- var _decimalSep,
- _thousandSep,
- _currSymbol,
- _valArray,
- _abbrObj,
- _thousandRegEx,
- localeData,
- temp;
-
- //coerce val to string
- if (typeof val !== 'string') {
- val += '';
-
- if (console.warn) {
- console.warn('Numeral.js: Value is not string. It has been co-erced to: ', val);
- }
- }
-
- //trim whitespaces from either sides
- val = val.trim();
-
- //if val is just digits return true
- if (!!val.match(/^\d+$/)) {
- return true;
- }
-
- //if val is empty return false
- if (val === '') {
- return false;
- }
-
- //get the decimal and thousands separator from numeral.localeData
- try {
- //check if the culture is understood by numeral. if not, default it to current locale
- localeData = numeral.localeData(culture);
- } catch (e) {
- localeData = numeral.localeData(numeral.locale());
- }
-
- //setup the delimiters and currency symbol based on culture/locale
- _currSymbol = localeData.currency.symbol;
- _abbrObj = localeData.abbreviations;
- _decimalSep = localeData.delimiters.decimal;
- if (localeData.delimiters.thousands === '.') {
- _thousandSep = '\\.';
- } else {
- _thousandSep = localeData.delimiters.thousands;
- }
-
- // validating currency symbol
- temp = val.match(/^[^\d]+/);
- if (temp !== null) {
- val = val.substr(1);
- if (temp[0] !== _currSymbol) {
- return false;
- }
- }
-
- //validating abbreviation symbol
- temp = val.match(/[^\d]+$/);
- if (temp !== null) {
- val = val.slice(0, -1);
- if (temp[0] !== _abbrObj.thousand && temp[0] !== _abbrObj.million && temp[0] !== _abbrObj.billion && temp[0] !== _abbrObj.trillion) {
- return false;
- }
- }
-
- _thousandRegEx = new RegExp(_thousandSep + '{2}');
-
- if (!val.match(/[^\d.,]/g)) {
- _valArray = val.split(_decimalSep);
- if (_valArray.length > 2) {
- return false;
- } else {
- if (_valArray.length < 2) {
- return ( !! _valArray[0].match(/^\d+.*\d$/) && !_valArray[0].match(_thousandRegEx));
- } else {
- if (_valArray[0].length === 1) {
- return ( !! _valArray[0].match(/^\d+$/) && !_valArray[0].match(_thousandRegEx) && !! _valArray[1].match(/^\d+$/));
- } else {
- return ( !! _valArray[0].match(/^\d+.*\d$/) && !_valArray[0].match(_thousandRegEx) && !! _valArray[1].match(/^\d+$/));
- }
- }
- }
- }
-
- return false;
- };
-
-
- /************************************
- Numeral Prototype
- ************************************/
-
- numeral.fn = Numeral.prototype = {
- clone: function() {
- return numeral(this);
- },
- format: function(inputString, roundingFunction) {
- var value = this._value,
- format = inputString || options.defaultFormat,
- kind,
- output,
- formatFunction;
-
- // make sure we have a roundingFunction
- roundingFunction = roundingFunction || Math.round;
-
- // format based on value
- if (value === 0 && options.zeroFormat !== null) {
- output = options.zeroFormat;
- } else if (value === null && options.nullFormat !== null) {
- output = options.nullFormat;
- } else {
- for (kind in formats) {
- if (format.match(formats[kind].regexps.format)) {
- formatFunction = formats[kind].format;
-
- break;
- }
- }
-
- formatFunction = formatFunction || numeral._.numberToFormat;
-
- output = formatFunction(value, format, roundingFunction);
- }
-
- return output;
- },
- value: function() {
- return this._value;
- },
- input: function() {
- return this._input;
- },
- set: function(value) {
- this._value = Number(value);
-
- return this;
- },
- add: function(value) {
- var corrFactor = _.correctionFactor.call(null, this._value, value);
-
- function cback(accum, curr, currI, O) {
- return accum + Math.round(corrFactor * curr);
- }
-
- this._value = _.reduce([this._value, value], cback, 0) / corrFactor;
-
- return this;
- },
- subtract: function(value) {
- var corrFactor = _.correctionFactor.call(null, this._value, value);
-
- function cback(accum, curr, currI, O) {
- return accum - Math.round(corrFactor * curr);
- }
-
- this._value = _.reduce([value], cback, Math.round(this._value * corrFactor)) / corrFactor;
-
- return this;
- },
- multiply: function(value) {
- function cback(accum, curr, currI, O) {
- var corrFactor = _.correctionFactor(accum, curr);
- return Math.round(accum * corrFactor) * Math.round(curr * corrFactor) / Math.round(corrFactor * corrFactor);
- }
-
- this._value = _.reduce([this._value, value], cback, 1);
-
- return this;
- },
- divide: function(value) {
- function cback(accum, curr, currI, O) {
- var corrFactor = _.correctionFactor(accum, curr);
- return Math.round(accum * corrFactor) / Math.round(curr * corrFactor);
- }
-
- this._value = _.reduce([this._value, value], cback);
-
- return this;
- },
- difference: function(value) {
- return Math.abs(numeral(this._value).subtract(value).value());
- }
- };
-
- /************************************
- Default Locale && Format
- ************************************/
-
- numeral.register('locale', 'en', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function(number) {
- var b = number % 10;
- return (~~(number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: '$'
- }
- });
-
-
-
-(function() {
- numeral.register('format', 'bps', {
- regexps: {
- format: /(BPS)/,
- unformat: /(BPS)/
- },
- format: function(value, format, roundingFunction) {
- var space = numeral._.includes(format, ' BPS') ? ' ' : '',
- output;
-
- value = value * 10000;
-
- // check for space before BPS
- format = format.replace(/\s?BPS/, '');
-
- output = numeral._.numberToFormat(value, format, roundingFunction);
-
- if (numeral._.includes(output, ')')) {
- output = output.split('');
-
- output.splice(-1, 0, space + 'BPS');
-
- output = output.join('');
- } else {
- output = output + space + 'BPS';
- }
-
- return output;
- },
- unformat: function(string) {
- return +(numeral._.stringToNumber(string) * 0.0001).toFixed(15);
- }
- });
-})();
-
-
-(function() {
- var decimal = {
- base: 1000,
- suffixes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
- },
- binary = {
- base: 1024,
- suffixes: ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']
- };
-
- var allSuffixes = decimal.suffixes.concat(binary.suffixes.filter(function (item) {
- return decimal.suffixes.indexOf(item) < 0;
- }));
- var unformatRegex = allSuffixes.join('|');
- // Allow support for BPS (http://www.investopedia.com/terms/b/basispoint.asp)
- unformatRegex = '(' + unformatRegex.replace('B', 'B(?!PS)') + ')';
-
- numeral.register('format', 'bytes', {
- regexps: {
- format: /([0\s]i?b)/,
- unformat: new RegExp(unformatRegex)
- },
- format: function(value, format, roundingFunction) {
- var output,
- bytes = numeral._.includes(format, 'ib') ? binary : decimal,
- suffix = numeral._.includes(format, ' b') || numeral._.includes(format, ' ib') ? ' ' : '',
- power,
- min,
- max;
-
- // check for space before
- format = format.replace(/\s?i?b/, '');
-
- for (power = 0; power <= bytes.suffixes.length; power++) {
- min = Math.pow(bytes.base, power);
- max = Math.pow(bytes.base, power + 1);
-
- if (value === null || value === 0 || value >= min && value < max) {
- suffix += bytes.suffixes[power];
-
- if (min > 0) {
- value = value / min;
- }
-
- break;
- }
- }
-
- output = numeral._.numberToFormat(value, format, roundingFunction);
-
- return output + suffix;
- },
- unformat: function(string) {
- var value = numeral._.stringToNumber(string),
- power,
- bytesMultiplier;
-
- if (value) {
- for (power = decimal.suffixes.length - 1; power >= 0; power--) {
- if (numeral._.includes(string, decimal.suffixes[power])) {
- bytesMultiplier = Math.pow(decimal.base, power);
-
- break;
- }
-
- if (numeral._.includes(string, binary.suffixes[power])) {
- bytesMultiplier = Math.pow(binary.base, power);
-
- break;
- }
- }
-
- value *= (bytesMultiplier || 1);
- }
-
- return value;
- }
- });
-})();
-
-
-(function() {
- numeral.register('format', 'currency', {
- regexps: {
- format: /(\$)/
- },
- format: function(value, format, roundingFunction) {
- var locale = numeral.locales[numeral.options.currentLocale],
- symbols = {
- before: format.match(/^([\+|\-|\(|\s|\$]*)/)[0],
- after: format.match(/([\+|\-|\)|\s|\$]*)$/)[0]
- },
- output,
- symbol,
- i;
-
- // strip format of spaces and $
- format = format.replace(/\s?\$\s?/, '');
-
- // format the number
- output = numeral._.numberToFormat(value, format, roundingFunction);
-
- // update the before and after based on value
- if (value >= 0) {
- symbols.before = symbols.before.replace(/[\-\(]/, '');
- symbols.after = symbols.after.replace(/[\-\)]/, '');
- } else if (value < 0 && (!numeral._.includes(symbols.before, '-') && !numeral._.includes(symbols.before, '('))) {
- symbols.before = '-' + symbols.before;
- }
-
- // loop through each before symbol
- for (i = 0; i < symbols.before.length; i++) {
- symbol = symbols.before[i];
-
- switch (symbol) {
- case '$':
- output = numeral._.insert(output, locale.currency.symbol, i);
- break;
- case ' ':
- output = numeral._.insert(output, ' ', i + locale.currency.symbol.length - 1);
- break;
- }
- }
-
- // loop through each after symbol
- for (i = symbols.after.length - 1; i >= 0; i--) {
- symbol = symbols.after[i];
-
- switch (symbol) {
- case '$':
- output = i === symbols.after.length - 1 ? output + locale.currency.symbol : numeral._.insert(output, locale.currency.symbol, -(symbols.after.length - (1 + i)));
- break;
- case ' ':
- output = i === symbols.after.length - 1 ? output + ' ' : numeral._.insert(output, ' ', -(symbols.after.length - (1 + i) + locale.currency.symbol.length - 1));
- break;
- }
- }
-
-
- return output;
- }
- });
-})();
-
-
-(function() {
- numeral.register('format', 'exponential', {
- regexps: {
- format: /(e\+|e-)/,
- unformat: /(e\+|e-)/
- },
- format: function(value, format, roundingFunction) {
- var output,
- exponential = typeof value === 'number' && !numeral._.isNaN(value) ? value.toExponential() : '0e+0',
- parts = exponential.split('e');
-
- format = format.replace(/e[\+|\-]{1}0/, '');
-
- output = numeral._.numberToFormat(Number(parts[0]), format, roundingFunction);
-
- return output + 'e' + parts[1];
- },
- unformat: function(string) {
- var parts = numeral._.includes(string, 'e+') ? string.split('e+') : string.split('e-'),
- value = Number(parts[0]),
- power = Number(parts[1]);
-
- power = numeral._.includes(string, 'e-') ? power *= -1 : power;
-
- function cback(accum, curr, currI, O) {
- var corrFactor = numeral._.correctionFactor(accum, curr),
- num = (accum * corrFactor) * (curr * corrFactor) / (corrFactor * corrFactor);
- return num;
- }
-
- return numeral._.reduce([value, Math.pow(10, power)], cback, 1);
- }
- });
-})();
-
-
-(function() {
- numeral.register('format', 'ordinal', {
- regexps: {
- format: /(o)/
- },
- format: function(value, format, roundingFunction) {
- var locale = numeral.locales[numeral.options.currentLocale],
- output,
- ordinal = numeral._.includes(format, ' o') ? ' ' : '';
-
- // check for space before
- format = format.replace(/\s?o/, '');
-
- ordinal += locale.ordinal(value);
-
- output = numeral._.numberToFormat(value, format, roundingFunction);
-
- return output + ordinal;
- }
- });
-})();
-
-
-(function() {
- numeral.register('format', 'percentage', {
- regexps: {
- format: /(%)/,
- unformat: /(%)/
- },
- format: function(value, format, roundingFunction) {
- var space = numeral._.includes(format, ' %') ? ' ' : '',
- output;
-
- if (numeral.options.scalePercentBy100) {
- value = value * 100;
- }
-
- // check for space before %
- format = format.replace(/\s?\%/, '');
-
- output = numeral._.numberToFormat(value, format, roundingFunction);
-
- if (numeral._.includes(output, ')')) {
- output = output.split('');
-
- output.splice(-1, 0, space + '%');
-
- output = output.join('');
- } else {
- output = output + space + '%';
- }
-
- return output;
- },
- unformat: function(string) {
- var number = numeral._.stringToNumber(string);
- if (numeral.options.scalePercentBy100) {
- return number * 0.01;
- }
- return number;
- }
- });
-})();
-
-
-(function() {
- numeral.register('format', 'time', {
- regexps: {
- format: /(:)/,
- unformat: /(:)/
- },
- format: function(value, format, roundingFunction) {
- var hours = Math.floor(value / 60 / 60),
- minutes = Math.floor((value - (hours * 60 * 60)) / 60),
- seconds = Math.round(value - (hours * 60 * 60) - (minutes * 60));
-
- return hours + ':' + (minutes < 10 ? '0' + minutes : minutes) + ':' + (seconds < 10 ? '0' + seconds : seconds);
- },
- unformat: function(string) {
- var timeArray = string.split(':'),
- seconds = 0;
-
- // turn hours and minutes into seconds and add them all up
- if (timeArray.length === 3) {
- // hours
- seconds = seconds + (Number(timeArray[0]) * 60 * 60);
- // minutes
- seconds = seconds + (Number(timeArray[1]) * 60);
- // seconds
- seconds = seconds + Number(timeArray[2]);
- } else if (timeArray.length === 2) {
- // minutes
- seconds = seconds + (Number(timeArray[0]) * 60);
- // seconds
- seconds = seconds + Number(timeArray[1]);
- }
- return Number(seconds);
- }
- });
-})();
-
-return numeral;
-}));
diff --git a/node_modules/numeral/package.json b/node_modules/numeral/package.json
deleted file mode 100644
index d45093820b..0000000000
--- a/node_modules/numeral/package.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "_from": "numeral@*",
- "_id": "numeral@2.0.6",
- "_inBundle": false,
- "_integrity": "sha1-StCAk21EPCVhrtnyGX7//iX05QY=",
- "_location": "/numeral",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "numeral@*",
- "name": "numeral",
- "escapedName": "numeral",
- "rawSpec": "*",
- "saveSpec": null,
- "fetchSpec": "*"
- },
- "_requiredBy": [
- "/numeral-es6"
- ],
- "_resolved": "https://registry.npmjs.org/numeral/-/numeral-2.0.6.tgz",
- "_shasum": "4ad080936d443c2561aed9f2197efffe25f4e506",
- "_spec": "numeral@*",
- "_where": "/Users/mulish/Desktop/gitcoin/blockscout/node_modules/numeral-es6",
- "author": {
- "name": "Adam Draper",
- "email": "adamwdraper@gmail.com",
- "url": "http://github.com/adamwdraper"
- },
- "bugs": {
- "url": "https://github.com/adamwdraper/Numeral-js/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Format and manipulate numbers.",
- "devDependencies": {
- "chai": "^3.5.0",
- "grunt": "latest",
- "grunt-contrib-copy": "^1.0.0",
- "grunt-contrib-jshint": "latest",
- "grunt-contrib-nodeunit": "1.0.0",
- "grunt-contrib-uglify": "latest",
- "grunt-karma": "^2.0.0",
- "grunt-mocha-test": "^0.13.2",
- "grunt-saucelabs": "*",
- "grunt-string-replace": "^1.3.1",
- "karma": "^1.3.0",
- "karma-chai": "^0.1.0",
- "karma-chrome-launcher": "^2.0.0",
- "karma-firefox-launcher": "^1.0.0",
- "karma-mocha": "^1.3.0",
- "karma-mocha-reporter": "^2.2.1",
- "karma-sauce-launcher": "^1.1.0",
- "load-grunt-tasks": "^3.5.2",
- "mocha": "^3.1.2",
- "uglify-js": "latest"
- },
- "ender": "./ender.js",
- "engines": {
- "node": "*"
- },
- "homepage": "http://numeraljs.com",
- "keywords": [
- "numeral",
- "number",
- "format",
- "time",
- "money",
- "percentage"
- ],
- "license": "MIT",
- "main": "./numeral.js",
- "name": "numeral",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/adamwdraper/Numeral-js.git"
- },
- "scripts": {
- "test": "grunt"
- },
- "version": "2.0.6"
-}
diff --git a/node_modules/numeral/src/formats/bps.js b/node_modules/numeral/src/formats/bps.js
deleted file mode 100644
index 72362ba7ef..0000000000
--- a/node_modules/numeral/src/formats/bps.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// numeral.js format configuration
-// format : BPS
-// author : Jack Altiere : https://github.com/jaltiere
-// BPS format - http://www.investopedia.com/terms/b/basispoint.asp
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('format', 'bps', {
- regexps: {
- format: /(BPS)/,
- unformat: /(BPS)/
- },
- format: function(value, format, roundingFunction) {
- var space = numeral._.includes(format, ' BPS') ? ' ' : '',
- output;
-
- value = value * 10000;
-
- // check for space before BPS
- format = format.replace(/\s?BPS/, '');
-
- output = numeral._.numberToFormat(value, format, roundingFunction);
-
- if (numeral._.includes(output, ')')) {
- output = output.split('');
-
- output.splice(-1, 0, space + 'BPS');
-
- output = output.join('');
- } else {
- output = output + space + 'BPS';
- }
-
- return output;
- },
- unformat: function(string) {
- return +(numeral._.stringToNumber(string) * 0.0001).toFixed(15);
- }
- });
-}));
diff --git a/node_modules/numeral/src/formats/bytes.js b/node_modules/numeral/src/formats/bytes.js
deleted file mode 100644
index a07a85da8d..0000000000
--- a/node_modules/numeral/src/formats/bytes.js
+++ /dev/null
@@ -1,91 +0,0 @@
-// numeral.js format configuration
-// format : bytes
-// author : Adam Draper : https://github.com/adamwdraper
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- var decimal = {
- base: 1000,
- suffixes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
- },
- binary = {
- base: 1024,
- suffixes: ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']
- };
-
- var allSuffixes = decimal.suffixes.concat(binary.suffixes.filter(function (item) {
- return decimal.suffixes.indexOf(item) < 0;
- }));
- var unformatRegex = allSuffixes.join('|');
- // Allow support for BPS (http://www.investopedia.com/terms/b/basispoint.asp)
- unformatRegex = '(' + unformatRegex.replace('B', 'B(?!PS)') + ')';
-
- numeral.register('format', 'bytes', {
- regexps: {
- format: /([0\s]i?b)/,
- unformat: new RegExp(unformatRegex)
- },
- format: function(value, format, roundingFunction) {
- var output,
- bytes = numeral._.includes(format, 'ib') ? binary : decimal,
- suffix = numeral._.includes(format, ' b') || numeral._.includes(format, ' ib') ? ' ' : '',
- power,
- min,
- max;
-
- // check for space before
- format = format.replace(/\s?i?b/, '');
-
- for (power = 0; power <= bytes.suffixes.length; power++) {
- min = Math.pow(bytes.base, power);
- max = Math.pow(bytes.base, power + 1);
-
- if (value === null || value === 0 || value >= min && value < max) {
- suffix += bytes.suffixes[power];
-
- if (min > 0) {
- value = value / min;
- }
-
- break;
- }
- }
-
- output = numeral._.numberToFormat(value, format, roundingFunction);
-
- return output + suffix;
- },
- unformat: function(string) {
- var value = numeral._.stringToNumber(string),
- power,
- bytesMultiplier;
-
- if (value) {
- for (power = decimal.suffixes.length - 1; power >= 0; power--) {
- if (numeral._.includes(string, decimal.suffixes[power])) {
- bytesMultiplier = Math.pow(decimal.base, power);
-
- break;
- }
-
- if (numeral._.includes(string, binary.suffixes[power])) {
- bytesMultiplier = Math.pow(binary.base, power);
-
- break;
- }
- }
-
- value *= (bytesMultiplier || 1);
- }
-
- return value;
- }
- });
-}));
diff --git a/node_modules/numeral/src/formats/currency.js b/node_modules/numeral/src/formats/currency.js
deleted file mode 100644
index 5a7c4eaa0c..0000000000
--- a/node_modules/numeral/src/formats/currency.js
+++ /dev/null
@@ -1,74 +0,0 @@
-// numeral.js format configuration
-// format : currency
-// author : Adam Draper : https://github.com/adamwdraper
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('format', 'currency', {
- regexps: {
- format: /(\$)/
- },
- format: function(value, format, roundingFunction) {
- var locale = numeral.locales[numeral.options.currentLocale],
- symbols = {
- before: format.match(/^([\+|\-|\(|\s|\$]*)/)[0],
- after: format.match(/([\+|\-|\)|\s|\$]*)$/)[0]
- },
- output,
- symbol,
- i;
-
- // strip format of spaces and $
- format = format.replace(/\s?\$\s?/, '');
-
- // format the number
- output = numeral._.numberToFormat(value, format, roundingFunction);
-
- // update the before and after based on value
- if (value >= 0) {
- symbols.before = symbols.before.replace(/[\-\(]/, '');
- symbols.after = symbols.after.replace(/[\-\)]/, '');
- } else if (value < 0 && (!numeral._.includes(symbols.before, '-') && !numeral._.includes(symbols.before, '('))) {
- symbols.before = '-' + symbols.before;
- }
-
- // loop through each before symbol
- for (i = 0; i < symbols.before.length; i++) {
- symbol = symbols.before[i];
-
- switch (symbol) {
- case '$':
- output = numeral._.insert(output, locale.currency.symbol, i);
- break;
- case ' ':
- output = numeral._.insert(output, ' ', i + locale.currency.symbol.length - 1);
- break;
- }
- }
-
- // loop through each after symbol
- for (i = symbols.after.length - 1; i >= 0; i--) {
- symbol = symbols.after[i];
-
- switch (symbol) {
- case '$':
- output = i === symbols.after.length - 1 ? output + locale.currency.symbol : numeral._.insert(output, locale.currency.symbol, -(symbols.after.length - (1 + i)));
- break;
- case ' ':
- output = i === symbols.after.length - 1 ? output + ' ' : numeral._.insert(output, ' ', -(symbols.after.length - (1 + i) + locale.currency.symbol.length - 1));
- break;
- }
- }
-
-
- return output;
- }
- });
-}));
diff --git a/node_modules/numeral/src/formats/exponential.js b/node_modules/numeral/src/formats/exponential.js
deleted file mode 100644
index 214599808e..0000000000
--- a/node_modules/numeral/src/formats/exponential.js
+++ /dev/null
@@ -1,46 +0,0 @@
-// numeral.js format configuration
-// format : exponential
-// author : Adam Draper : https://github.com/adamwdraper
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('format', 'exponential', {
- regexps: {
- format: /(e\+|e-)/,
- unformat: /(e\+|e-)/
- },
- format: function(value, format, roundingFunction) {
- var output,
- exponential = typeof value === 'number' && !numeral._.isNaN(value) ? value.toExponential() : '0e+0',
- parts = exponential.split('e');
-
- format = format.replace(/e[\+|\-]{1}0/, '');
-
- output = numeral._.numberToFormat(Number(parts[0]), format, roundingFunction);
-
- return output + 'e' + parts[1];
- },
- unformat: function(string) {
- var parts = numeral._.includes(string, 'e+') ? string.split('e+') : string.split('e-'),
- value = Number(parts[0]),
- power = Number(parts[1]);
-
- power = numeral._.includes(string, 'e-') ? power *= -1 : power;
-
- function cback(accum, curr, currI, O) {
- var corrFactor = numeral._.correctionFactor(accum, curr),
- num = (accum * corrFactor) * (curr * corrFactor) / (corrFactor * corrFactor);
- return num;
- }
-
- return numeral._.reduce([value, Math.pow(10, power)], cback, 1);
- }
- });
-}));
diff --git a/node_modules/numeral/src/formats/ordinal.js b/node_modules/numeral/src/formats/ordinal.js
deleted file mode 100644
index 8964785957..0000000000
--- a/node_modules/numeral/src/formats/ordinal.js
+++ /dev/null
@@ -1,33 +0,0 @@
-// numeral.js format configuration
-// format : ordinal
-// author : Adam Draper : https://github.com/adamwdraper
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('format', 'ordinal', {
- regexps: {
- format: /(o)/
- },
- format: function(value, format, roundingFunction) {
- var locale = numeral.locales[numeral.options.currentLocale],
- output,
- ordinal = numeral._.includes(format, ' o') ? ' ' : '';
-
- // check for space before
- format = format.replace(/\s?o/, '');
-
- ordinal += locale.ordinal(value);
-
- output = numeral._.numberToFormat(value, format, roundingFunction);
-
- return output + ordinal;
- }
- });
-}));
diff --git a/node_modules/numeral/src/formats/percentage.js b/node_modules/numeral/src/formats/percentage.js
deleted file mode 100644
index 2c1c3647e8..0000000000
--- a/node_modules/numeral/src/formats/percentage.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// numeral.js format configuration
-// format : percentage
-// author : Adam Draper : https://github.com/adamwdraper
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('format', 'percentage', {
- regexps: {
- format: /(%)/,
- unformat: /(%)/
- },
- format: function(value, format, roundingFunction) {
- var space = numeral._.includes(format, ' %') ? ' ' : '',
- output;
-
- if (numeral.options.scalePercentBy100) {
- value = value * 100;
- }
-
- // check for space before %
- format = format.replace(/\s?\%/, '');
-
- output = numeral._.numberToFormat(value, format, roundingFunction);
-
- if (numeral._.includes(output, ')')) {
- output = output.split('');
-
- output.splice(-1, 0, space + '%');
-
- output = output.join('');
- } else {
- output = output + space + '%';
- }
-
- return output;
- },
- unformat: function(string) {
- var number = numeral._.stringToNumber(string);
- if (numeral.options.scalePercentBy100) {
- return number * 0.01;
- }
- return number;
- }
- });
-}));
diff --git a/node_modules/numeral/src/formats/time.js b/node_modules/numeral/src/formats/time.js
deleted file mode 100644
index b2d6737f22..0000000000
--- a/node_modules/numeral/src/formats/time.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// numeral.js format configuration
-// format : time
-// author : Adam Draper : https://github.com/adamwdraper
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('format', 'time', {
- regexps: {
- format: /(:)/,
- unformat: /(:)/
- },
- format: function(value, format, roundingFunction) {
- var hours = Math.floor(value / 60 / 60),
- minutes = Math.floor((value - (hours * 60 * 60)) / 60),
- seconds = Math.round(value - (hours * 60 * 60) - (minutes * 60));
-
- return hours + ':' + (minutes < 10 ? '0' + minutes : minutes) + ':' + (seconds < 10 ? '0' + seconds : seconds);
- },
- unformat: function(string) {
- var timeArray = string.split(':'),
- seconds = 0;
-
- // turn hours and minutes into seconds and add them all up
- if (timeArray.length === 3) {
- // hours
- seconds = seconds + (Number(timeArray[0]) * 60 * 60);
- // minutes
- seconds = seconds + (Number(timeArray[1]) * 60);
- // seconds
- seconds = seconds + Number(timeArray[2]);
- } else if (timeArray.length === 2) {
- // minutes
- seconds = seconds + (Number(timeArray[0]) * 60);
- // seconds
- seconds = seconds + Number(timeArray[1]);
- }
- return Number(seconds);
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/bg.js b/node_modules/numeral/src/locales/bg.js
deleted file mode 100644
index ef71941c2e..0000000000
--- a/node_modules/numeral/src/locales/bg.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// numeral.js locale configuration
-// locale : Bulgarian
-// author : Don Vince : https://github.com/donvince/
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'bg', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: { // I found these here http://www.unicode.org/cldr/charts/28/verify/numbers/bg.html
- thousand: 'хил',
- million: 'млн',
- billion: 'млрд',
- trillion: 'трлн'
- },
- ordinal: function (number) {
- // google translate suggests:
- // 1st=1-ви; 2nd=2-ри; 7th=7-ми;
- // 8th=8-ми and many others end with -ти
- // for example 3rd=3-ти
- // However since I've seen suggestions that in
- // Bulgarian the ordinal can be taken in
- // different forms (masculine, feminine, neuter)
- // I've opted to wimp out on commiting that to code
- return '';
- },
- currency: {
- symbol: 'лв'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/chs.js b/node_modules/numeral/src/locales/chs.js
deleted file mode 100644
index 1bcc946213..0000000000
--- a/node_modules/numeral/src/locales/chs.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : simplified chinese (chs)
-// author : badplum : https://github.com/badplum
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'chs', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: '千',
- million: '百万',
- billion: '十亿',
- trillion: '兆'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '¥'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/cs.js b/node_modules/numeral/src/locales/cs.js
deleted file mode 100644
index 316051f27d..0000000000
--- a/node_modules/numeral/src/locales/cs.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : czech (cs)
-// author : Anatoli Papirovski : https://github.com/apapirovski
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'cs', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'tis.',
- million: 'mil.',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: 'Kč'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/da-dk.js b/node_modules/numeral/src/locales/da-dk.js
deleted file mode 100644
index c21e5a78a5..0000000000
--- a/node_modules/numeral/src/locales/da-dk.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : danish denmark (dk)
-// author : Michael Storgaard : https://github.com/mstorgaard
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'da-dk', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mio',
- billion: 'mia',
- trillion: 'b'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'DKK'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/de-ch.js b/node_modules/numeral/src/locales/de-ch.js
deleted file mode 100644
index 5921e46c5c..0000000000
--- a/node_modules/numeral/src/locales/de-ch.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : German in Switzerland (de-ch)
-// author : Michael Piefel : https://github.com/piefel (based on work from Marco Krage : https://github.com/sinky)
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'de-ch', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'CHF'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/de.js b/node_modules/numeral/src/locales/de.js
deleted file mode 100644
index 87f878807c..0000000000
--- a/node_modules/numeral/src/locales/de.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : German (de) – generally useful in Germany, Austria, Luxembourg, Belgium
-// author : Marco Krage : https://github.com/sinky
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'de', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/en-au.js b/node_modules/numeral/src/locales/en-au.js
deleted file mode 100644
index 6202c842e4..0000000000
--- a/node_modules/numeral/src/locales/en-au.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// numeral.js locale configuration
-// locale : English Australia
-// author : Don Vince : https://github.com/donvince/
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'en-au', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: '$'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/en-gb.js b/node_modules/numeral/src/locales/en-gb.js
deleted file mode 100644
index a51190ebe4..0000000000
--- a/node_modules/numeral/src/locales/en-gb.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// numeral.js locale configuration
-// locale : english united kingdom (uk)
-// author : Dan Ristic : https://github.com/dristic
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'en-gb', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: '£'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/en-za.js b/node_modules/numeral/src/locales/en-za.js
deleted file mode 100644
index 8417268def..0000000000
--- a/node_modules/numeral/src/locales/en-za.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// numeral.js locale configuration
-// locale : english south africa (uk)
-// author : Etienne Boshoff : etienne@zailab.com
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'en-za', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: 'R'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/es-es.js b/node_modules/numeral/src/locales/es-es.js
deleted file mode 100644
index 31e7de5bd6..0000000000
--- a/node_modules/numeral/src/locales/es-es.js
+++ /dev/null
@@ -1,37 +0,0 @@
-// numeral.js locale configuration
-// locale : spanish Spain
-// author : Hernan Garcia : https://github.com/hgarcia
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'es-es', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (b === 1 || b === 3) ? 'er' :
- (b === 2) ? 'do' :
- (b === 7 || b === 0) ? 'mo' :
- (b === 8) ? 'vo' :
- (b === 9) ? 'no' : 'to';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/es.js b/node_modules/numeral/src/locales/es.js
deleted file mode 100644
index 7ca71950aa..0000000000
--- a/node_modules/numeral/src/locales/es.js
+++ /dev/null
@@ -1,37 +0,0 @@
-// numeral.js locale configuration
-// locale : spanish
-// author : Hernan Garcia : https://github.com/hgarcia
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'es', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (b === 1 || b === 3) ? 'er' :
- (b === 2) ? 'do' :
- (b === 7 || b === 0) ? 'mo' :
- (b === 8) ? 'vo' :
- (b === 9) ? 'no' : 'to';
- },
- currency: {
- symbol: '$'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/et.js b/node_modules/numeral/src/locales/et.js
deleted file mode 100644
index f8269e125a..0000000000
--- a/node_modules/numeral/src/locales/et.js
+++ /dev/null
@@ -1,33 +0,0 @@
-// numeral.js locale configuration
-// locale : Estonian
-// author : Illimar Tambek : https://github.com/ragulka
-// Note: in Estonian, abbreviations are always separated from numbers with a space
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'et', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: ' tuh',
- million: ' mln',
- billion: ' mld',
- trillion: ' trl'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/fi.js b/node_modules/numeral/src/locales/fi.js
deleted file mode 100644
index 25eaa7fd27..0000000000
--- a/node_modules/numeral/src/locales/fi.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : Finnish
-// author : Sami Saada : https://github.com/samitheberber
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'fi', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'M',
- billion: 'G',
- trillion: 'T'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/fr-ca.js b/node_modules/numeral/src/locales/fr-ca.js
deleted file mode 100644
index f8dd206172..0000000000
--- a/node_modules/numeral/src/locales/fr-ca.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : french (Canada) (fr-ca)
-// author : Léo Renaud-Allaire : https://github.com/renaudleo
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'fr-ca', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'M',
- billion: 'G',
- trillion: 'T'
- },
- ordinal : function (number) {
- return number === 1 ? 'er' : 'e';
- },
- currency: {
- symbol: '$'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/fr-ch.js b/node_modules/numeral/src/locales/fr-ch.js
deleted file mode 100644
index ea29b39c2b..0000000000
--- a/node_modules/numeral/src/locales/fr-ch.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : french (fr-ch)
-// author : Adam Draper : https://github.com/adamwdraper
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'fr-ch', {
- delimiters: {
- thousands: '\'',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal : function (number) {
- return number === 1 ? 'er' : 'e';
- },
- currency: {
- symbol: 'CHF'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/fr.js b/node_modules/numeral/src/locales/fr.js
deleted file mode 100644
index 5ddc609d4e..0000000000
--- a/node_modules/numeral/src/locales/fr.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : french (fr)
-// author : Adam Draper : https://github.com/adamwdraper
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'fr', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal : function (number) {
- return number === 1 ? 'er' : 'e';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/hu.js b/node_modules/numeral/src/locales/hu.js
deleted file mode 100644
index a3d7638acd..0000000000
--- a/node_modules/numeral/src/locales/hu.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : Hungarian (hu)
-// author : Peter Bakondy : https://github.com/pbakondy
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'hu', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'E', // ezer
- million: 'M', // millió
- billion: 'Mrd', // milliárd
- trillion: 'T' // trillió
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: ' Ft'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/it.js b/node_modules/numeral/src/locales/it.js
deleted file mode 100644
index a5d3406eea..0000000000
--- a/node_modules/numeral/src/locales/it.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : italian Italy (it)
-// author : Giacomo Trombi : http://cinquepunti.it
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'it', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'mila',
- million: 'mil',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return 'º';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/ja.js b/node_modules/numeral/src/locales/ja.js
deleted file mode 100644
index bb6c8a1e5f..0000000000
--- a/node_modules/numeral/src/locales/ja.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : japanese
-// author : teppeis : https://github.com/teppeis
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'ja', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: '千',
- million: '百万',
- billion: '十億',
- trillion: '兆'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '¥'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/lv.js b/node_modules/numeral/src/locales/lv.js
deleted file mode 100644
index cc46c0e7bb..0000000000
--- a/node_modules/numeral/src/locales/lv.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : Latvian (lv)
-// author : Lauris Bukšis-Haberkorns : https://github.com/Lafriks
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'lv', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: ' tūkst.',
- million: ' milj.',
- billion: ' mljrd.',
- trillion: ' trilj.'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/nl-be.js b/node_modules/numeral/src/locales/nl-be.js
deleted file mode 100644
index 6b56190413..0000000000
--- a/node_modules/numeral/src/locales/nl-be.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// numeral.js locale configuration
-// locale : dutch-belgium (nl-be)
-// author : Dieter Luypaert : https://github.com/moeriki
-// corrected : Olivier Godefroy : https://github.com/godefroyo
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'nl-be', {
- delimiters: {
- thousands: ' ',
- decimal : ','
- },
- abbreviations: {
- thousand : 'k',
- million : ' mln',
- billion : ' mld',
- trillion : ' bln'
- },
- ordinal : function (number) {
- var remainder = number % 100;
-
- return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
- },
- currency: {
- symbol: '€ '
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/nl-nl.js b/node_modules/numeral/src/locales/nl-nl.js
deleted file mode 100644
index 00f70f7c4d..0000000000
--- a/node_modules/numeral/src/locales/nl-nl.js
+++ /dev/null
@@ -1,33 +0,0 @@
-// numeral.js locale configuration
-// locale : netherlands-dutch (nl-nl)
-// author : Dave Clayton : https://github.com/davedx
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'nl-nl', {
- delimiters: {
- thousands: '.',
- decimal : ','
- },
- abbreviations: {
- thousand : 'k',
- million : 'mln',
- billion : 'mrd',
- trillion : 'bln'
- },
- ordinal : function (number) {
- var remainder = number % 100;
- return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
- },
- currency: {
- symbol: '€ '
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/no.js b/node_modules/numeral/src/locales/no.js
deleted file mode 100644
index 2a2b06c8d1..0000000000
--- a/node_modules/numeral/src/locales/no.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : norwegian (bokmål)
-// author : Ove Andersen : https://github.com/azzlack
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'no', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'kr'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/pl.js b/node_modules/numeral/src/locales/pl.js
deleted file mode 100644
index b336c090d0..0000000000
--- a/node_modules/numeral/src/locales/pl.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : polish (pl)
-// author : Dominik Bulaj : https://github.com/dominikbulaj
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'pl', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'tys.',
- million: 'mln',
- billion: 'mld',
- trillion: 'bln'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'PLN'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/pt-br.js b/node_modules/numeral/src/locales/pt-br.js
deleted file mode 100644
index 94d384b387..0000000000
--- a/node_modules/numeral/src/locales/pt-br.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : portuguese brazil (pt-br)
-// author : Ramiro Varandas Jr : https://github.com/ramirovjr
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'pt-br', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'mil',
- million: 'milhões',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return 'º';
- },
- currency: {
- symbol: 'R$'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/pt-pt.js b/node_modules/numeral/src/locales/pt-pt.js
deleted file mode 100644
index 9bf597708c..0000000000
--- a/node_modules/numeral/src/locales/pt-pt.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : portuguese (pt-pt)
-// author : Diogo Resende : https://github.com/dresende
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'pt-pt', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal : function (number) {
- return 'º';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/ru-ua.js b/node_modules/numeral/src/locales/ru-ua.js
deleted file mode 100644
index 798f94f49b..0000000000
--- a/node_modules/numeral/src/locales/ru-ua.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// numeral.js locale configuration
-// locale : Russian for the Ukraine (ru-ua)
-// author : Anatoli Papirovski : https://github.com/apapirovski
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'ru-ua', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'тыс.',
- million: 'млн',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function () {
- // not ideal, but since in Russian it can taken on
- // different forms (masculine, feminine, neuter)
- // this is all we can do
- return '.';
- },
- currency: {
- symbol: '\u20B4'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/ru.js b/node_modules/numeral/src/locales/ru.js
deleted file mode 100644
index 34dfb7f9bd..0000000000
--- a/node_modules/numeral/src/locales/ru.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// numeral.js locale configuration
-// locale : russian (ru)
-// author : Anatoli Papirovski : https://github.com/apapirovski
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'ru', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'тыс.',
- million: 'млн.',
- billion: 'млрд.',
- trillion: 'трлн.'
- },
- ordinal: function () {
- // not ideal, but since in Russian it can taken on
- // different forms (masculine, feminine, neuter)
- // this is all we can do
- return '.';
- },
- currency: {
- symbol: 'руб.'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/sk.js b/node_modules/numeral/src/locales/sk.js
deleted file mode 100644
index cb0e898df9..0000000000
--- a/node_modules/numeral/src/locales/sk.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : slovak (sk)
-// author : Ahmed Al Hafoudh : http://www.freevision.sk
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'sk', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'tis.',
- million: 'mil.',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/sl.js b/node_modules/numeral/src/locales/sl.js
deleted file mode 100644
index 2f1117eb36..0000000000
--- a/node_modules/numeral/src/locales/sl.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// numeral.js locale configuration
-// locale : slovenian (sl)
-// author : Boštjan Pišler : https://github.com/BostjanPisler
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'sl', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mio',
- billion: 'mrd',
- trillion: 'trilijon'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/th.js b/node_modules/numeral/src/locales/th.js
deleted file mode 100644
index d3e08d00d9..0000000000
--- a/node_modules/numeral/src/locales/th.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// numeral.js locale configuration
-// locale : thai (th)
-// author : Sathit Jittanupat : https://github.com/jojosati
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
-
-
- numeral.register('locale', 'th', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'พัน',
- million: 'ล้าน',
- billion: 'พันล้าน',
- trillion: 'ล้านล้าน'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '฿'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/tr.js b/node_modules/numeral/src/locales/tr.js
deleted file mode 100644
index 07f7ffdda9..0000000000
--- a/node_modules/numeral/src/locales/tr.js
+++ /dev/null
@@ -1,66 +0,0 @@
-// numeral.js locale configuration
-// locale : turkish (tr)
-// author : Ecmel Ercan : https://github.com/ecmel, Erhan Gundogan : https://github.com/erhangundogan, Burak Yiğit Kaya: https://github.com/BYK
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- var suffixes = {
- 1: '\'inci',
- 5: '\'inci',
- 8: '\'inci',
- 70: '\'inci',
- 80: '\'inci',
-
- 2: '\'nci',
- 7: '\'nci',
- 20: '\'nci',
- 50: '\'nci',
-
- 3: '\'üncü',
- 4: '\'üncü',
- 100: '\'üncü',
-
- 6: '\'ncı',
-
- 9: '\'uncu',
- 10: '\'uncu',
- 30: '\'uncu',
-
- 60: '\'ıncı',
- 90: '\'ıncı'
- };
-
- numeral.register('locale', 'tr', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'bin',
- million: 'milyon',
- billion: 'milyar',
- trillion: 'trilyon'
- },
- ordinal: function (number) {
- if (number === 0) { // special case for zero
- return '\'ıncı';
- }
-
- var a = number % 10,
- b = number % 100 - a,
- c = number >= 100 ? 100 : null;
-
- return suffixes[a] || suffixes[b] || suffixes[c];
- },
- currency: {
- symbol: '\u20BA'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/uk-ua.js b/node_modules/numeral/src/locales/uk-ua.js
deleted file mode 100644
index 34b310377e..0000000000
--- a/node_modules/numeral/src/locales/uk-ua.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// numeral.js locale configuration
-// locale : Ukrainian for the Ukraine (uk-ua)
-// author : Michael Piefel : https://github.com/piefel (with help from Tetyana Kuzmenko)
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- numeral.register('locale', 'uk-ua', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'тис.',
- million: 'млн',
- billion: 'млрд',
- trillion: 'блн'
- },
- ordinal: function () {
- // not ideal, but since in Ukrainian it can taken on
- // different forms (masculine, feminine, neuter)
- // this is all we can do
- return '';
- },
- currency: {
- symbol: '\u20B4'
- }
- });
-}));
diff --git a/node_modules/numeral/src/locales/vi.js b/node_modules/numeral/src/locales/vi.js
deleted file mode 100644
index a71a1bb880..0000000000
--- a/node_modules/numeral/src/locales/vi.js
+++ /dev/null
@@ -1,33 +0,0 @@
-// numeral.js locale configuration
-// locale : vietnam (vi)
-// author : Harry Nguyen : https://github.com/thaihoa311
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['../numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('../numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
-
- numeral.register('locale', 'vi', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: ' nghìn',
- million: ' triệu',
- billion: ' tỷ',
- trillion: ' nghìn tỷ'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: '₫'
- }
- });
-}));
diff --git a/node_modules/numeral/src/numeral.js b/node_modules/numeral/src/numeral.js
deleted file mode 100644
index 3a9d2521d9..0000000000
--- a/node_modules/numeral/src/numeral.js
+++ /dev/null
@@ -1,693 +0,0 @@
-/*! @preserve
- * numeral.js
- * version : 2.0.6
- * author : Adam Draper
- * license : MIT
- * http://adamwdraper.github.com/Numeral-js/
- */
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(factory);
- } else if (typeof module === 'object' && module.exports) {
- module.exports = factory();
- } else {
- global.numeral = factory();
- }
-}(this, function () {
- /************************************
- Variables
- ************************************/
-
- var numeral,
- _,
- VERSION = '2.0.6',
- formats = {},
- locales = {},
- defaults = {
- currentLocale: 'en',
- zeroFormat: null,
- nullFormat: null,
- defaultFormat: '0,0',
- scalePercentBy100: true
- },
- options = {
- currentLocale: defaults.currentLocale,
- zeroFormat: defaults.zeroFormat,
- nullFormat: defaults.nullFormat,
- defaultFormat: defaults.defaultFormat,
- scalePercentBy100: defaults.scalePercentBy100
- };
-
-
- /************************************
- Constructors
- ************************************/
-
- // Numeral prototype object
- function Numeral(input, number) {
- this._input = input;
-
- this._value = number;
- }
-
- numeral = function(input) {
- var value,
- kind,
- unformatFunction,
- regexp;
-
- if (numeral.isNumeral(input)) {
- value = input.value();
- } else if (input === 0 || typeof input === 'undefined') {
- value = 0;
- } else if (input === null || _.isNaN(input)) {
- value = null;
- } else if (typeof input === 'string') {
- if (options.zeroFormat && input === options.zeroFormat) {
- value = 0;
- } else if (options.nullFormat && input === options.nullFormat || !input.replace(/[^0-9]+/g, '').length) {
- value = null;
- } else {
- for (kind in formats) {
- regexp = typeof formats[kind].regexps.unformat === 'function' ? formats[kind].regexps.unformat() : formats[kind].regexps.unformat;
-
- if (regexp && input.match(regexp)) {
- unformatFunction = formats[kind].unformat;
-
- break;
- }
- }
-
- unformatFunction = unformatFunction || numeral._.stringToNumber;
-
- value = unformatFunction(input);
- }
- } else {
- value = Number(input)|| null;
- }
-
- return new Numeral(input, value);
- };
-
- // version number
- numeral.version = VERSION;
-
- // compare numeral object
- numeral.isNumeral = function(obj) {
- return obj instanceof Numeral;
- };
-
- // helper functions
- numeral._ = _ = {
- // formats numbers separators, decimals places, signs, abbreviations
- numberToFormat: function(value, format, roundingFunction) {
- var locale = locales[numeral.options.currentLocale],
- negP = false,
- optDec = false,
- leadingCount = 0,
- abbr = '',
- trillion = 1000000000000,
- billion = 1000000000,
- million = 1000000,
- thousand = 1000,
- decimal = '',
- neg = false,
- abbrForce, // force abbreviation
- abs,
- min,
- max,
- power,
- int,
- precision,
- signed,
- thousands,
- output;
-
- // make sure we never format a null value
- value = value || 0;
-
- abs = Math.abs(value);
-
- // see if we should use parentheses for negative number or if we should prefix with a sign
- // if both are present we default to parentheses
- if (numeral._.includes(format, '(')) {
- negP = true;
- format = format.replace(/[\(|\)]/g, '');
- } else if (numeral._.includes(format, '+') || numeral._.includes(format, '-')) {
- signed = numeral._.includes(format, '+') ? format.indexOf('+') : value < 0 ? format.indexOf('-') : -1;
- format = format.replace(/[\+|\-]/g, '');
- }
-
- // see if abbreviation is wanted
- if (numeral._.includes(format, 'a')) {
- abbrForce = format.match(/a(k|m|b|t)?/);
-
- abbrForce = abbrForce ? abbrForce[1] : false;
-
- // check for space before abbreviation
- if (numeral._.includes(format, ' a')) {
- abbr = ' ';
- }
-
- format = format.replace(new RegExp(abbr + 'a[kmbt]?'), '');
-
- if (abs >= trillion && !abbrForce || abbrForce === 't') {
- // trillion
- abbr += locale.abbreviations.trillion;
- value = value / trillion;
- } else if (abs < trillion && abs >= billion && !abbrForce || abbrForce === 'b') {
- // billion
- abbr += locale.abbreviations.billion;
- value = value / billion;
- } else if (abs < billion && abs >= million && !abbrForce || abbrForce === 'm') {
- // million
- abbr += locale.abbreviations.million;
- value = value / million;
- } else if (abs < million && abs >= thousand && !abbrForce || abbrForce === 'k') {
- // thousand
- abbr += locale.abbreviations.thousand;
- value = value / thousand;
- }
- }
-
- // check for optional decimals
- if (numeral._.includes(format, '[.]')) {
- optDec = true;
- format = format.replace('[.]', '.');
- }
-
- // break number and format
- int = value.toString().split('.')[0];
- precision = format.split('.')[1];
- thousands = format.indexOf(',');
- leadingCount = (format.split('.')[0].split(',')[0].match(/0/g) || []).length;
-
- if (precision) {
- if (numeral._.includes(precision, '[')) {
- precision = precision.replace(']', '');
- precision = precision.split('[');
- decimal = numeral._.toFixed(value, (precision[0].length + precision[1].length), roundingFunction, precision[1].length);
- } else {
- decimal = numeral._.toFixed(value, precision.length, roundingFunction);
- }
-
- int = decimal.split('.')[0];
-
- if (numeral._.includes(decimal, '.')) {
- decimal = locale.delimiters.decimal + decimal.split('.')[1];
- } else {
- decimal = '';
- }
-
- if (optDec && Number(decimal.slice(1)) === 0) {
- decimal = '';
- }
- } else {
- int = numeral._.toFixed(value, 0, roundingFunction);
- }
-
- // check abbreviation again after rounding
- if (abbr && !abbrForce && Number(int) >= 1000 && abbr !== locale.abbreviations.trillion) {
- int = String(Number(int) / 1000);
-
- switch (abbr) {
- case locale.abbreviations.thousand:
- abbr = locale.abbreviations.million;
- break;
- case locale.abbreviations.million:
- abbr = locale.abbreviations.billion;
- break;
- case locale.abbreviations.billion:
- abbr = locale.abbreviations.trillion;
- break;
- }
- }
-
-
- // format number
- if (numeral._.includes(int, '-')) {
- int = int.slice(1);
- neg = true;
- }
-
- if (int.length < leadingCount) {
- for (var i = leadingCount - int.length; i > 0; i--) {
- int = '0' + int;
- }
- }
-
- if (thousands > -1) {
- int = int.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1' + locale.delimiters.thousands);
- }
-
- if (format.indexOf('.') === 0) {
- int = '';
- }
-
- output = int + decimal + (abbr ? abbr : '');
-
- if (negP) {
- output = (negP && neg ? '(' : '') + output + (negP && neg ? ')' : '');
- } else {
- if (signed >= 0) {
- output = signed === 0 ? (neg ? '-' : '+') + output : output + (neg ? '-' : '+');
- } else if (neg) {
- output = '-' + output;
- }
- }
-
- return output;
- },
- // unformats numbers separators, decimals places, signs, abbreviations
- stringToNumber: function(string) {
- var locale = locales[options.currentLocale],
- stringOriginal = string,
- abbreviations = {
- thousand: 3,
- million: 6,
- billion: 9,
- trillion: 12
- },
- abbreviation,
- value,
- i,
- regexp;
-
- if (options.zeroFormat && string === options.zeroFormat) {
- value = 0;
- } else if (options.nullFormat && string === options.nullFormat || !string.replace(/[^0-9]+/g, '').length) {
- value = null;
- } else {
- value = 1;
-
- if (locale.delimiters.decimal !== '.') {
- string = string.replace(/\./g, '').replace(locale.delimiters.decimal, '.');
- }
-
- for (abbreviation in abbreviations) {
- regexp = new RegExp('[^a-zA-Z]' + locale.abbreviations[abbreviation] + '(?:\\)|(\\' + locale.currency.symbol + ')?(?:\\))?)?$');
-
- if (stringOriginal.match(regexp)) {
- value *= Math.pow(10, abbreviations[abbreviation]);
- break;
- }
- }
-
- // check for negative number
- value *= (string.split('-').length + Math.min(string.split('(').length - 1, string.split(')').length - 1)) % 2 ? 1 : -1;
-
- // remove non numbers
- string = string.replace(/[^0-9\.]+/g, '');
-
- value *= Number(string);
- }
-
- return value;
- },
- isNaN: function(value) {
- return typeof value === 'number' && isNaN(value);
- },
- includes: function(string, search) {
- return string.indexOf(search) !== -1;
- },
- insert: function(string, subString, start) {
- return string.slice(0, start) + subString + string.slice(start);
- },
- reduce: function(array, callback /*, initialValue*/) {
- if (this === null) {
- throw new TypeError('Array.prototype.reduce called on null or undefined');
- }
-
- if (typeof callback !== 'function') {
- throw new TypeError(callback + ' is not a function');
- }
-
- var t = Object(array),
- len = t.length >>> 0,
- k = 0,
- value;
-
- if (arguments.length === 3) {
- value = arguments[2];
- } else {
- while (k < len && !(k in t)) {
- k++;
- }
-
- if (k >= len) {
- throw new TypeError('Reduce of empty array with no initial value');
- }
-
- value = t[k++];
- }
- for (; k < len; k++) {
- if (k in t) {
- value = callback(value, t[k], k, t);
- }
- }
- return value;
- },
- /**
- * Computes the multiplier necessary to make x >= 1,
- * effectively eliminating miscalculations caused by
- * finite precision.
- */
- multiplier: function (x) {
- var parts = x.toString().split('.');
-
- return parts.length < 2 ? 1 : Math.pow(10, parts[1].length);
- },
- /**
- * Given a variable number of arguments, returns the maximum
- * multiplier that must be used to normalize an operation involving
- * all of them.
- */
- correctionFactor: function () {
- var args = Array.prototype.slice.call(arguments);
-
- return args.reduce(function(accum, next) {
- var mn = _.multiplier(next);
- return accum > mn ? accum : mn;
- }, 1);
- },
- /**
- * Implementation of toFixed() that treats floats more like decimals
- *
- * Fixes binary rounding issues (eg. (0.615).toFixed(2) === '0.61') that present
- * problems for accounting- and finance-related software.
- */
- toFixed: function(value, maxDecimals, roundingFunction, optionals) {
- var splitValue = value.toString().split('.'),
- minDecimals = maxDecimals - (optionals || 0),
- boundedPrecision,
- optionalsRegExp,
- power,
- output;
-
- // Use the smallest precision value possible to avoid errors from floating point representation
- if (splitValue.length === 2) {
- boundedPrecision = Math.min(Math.max(splitValue[1].length, minDecimals), maxDecimals);
- } else {
- boundedPrecision = minDecimals;
- }
-
- power = Math.pow(10, boundedPrecision);
-
- // Multiply up by precision, round accurately, then divide and use native toFixed():
- output = (roundingFunction(value + 'e+' + boundedPrecision) / power).toFixed(boundedPrecision);
-
- if (optionals > maxDecimals - boundedPrecision) {
- optionalsRegExp = new RegExp('\\.?0{1,' + (optionals - (maxDecimals - boundedPrecision)) + '}$');
- output = output.replace(optionalsRegExp, '');
- }
-
- return output;
- }
- };
-
- // avaliable options
- numeral.options = options;
-
- // avaliable formats
- numeral.formats = formats;
-
- // avaliable formats
- numeral.locales = locales;
-
- // This function sets the current locale. If
- // no arguments are passed in, it will simply return the current global
- // locale key.
- numeral.locale = function(key) {
- if (key) {
- options.currentLocale = key.toLowerCase();
- }
-
- return options.currentLocale;
- };
-
- // This function provides access to the loaded locale data. If
- // no arguments are passed in, it will simply return the current
- // global locale object.
- numeral.localeData = function(key) {
- if (!key) {
- return locales[options.currentLocale];
- }
-
- key = key.toLowerCase();
-
- if (!locales[key]) {
- throw new Error('Unknown locale : ' + key);
- }
-
- return locales[key];
- };
-
- numeral.reset = function() {
- for (var property in defaults) {
- options[property] = defaults[property];
- }
- };
-
- numeral.zeroFormat = function(format) {
- options.zeroFormat = typeof(format) === 'string' ? format : null;
- };
-
- numeral.nullFormat = function (format) {
- options.nullFormat = typeof(format) === 'string' ? format : null;
- };
-
- numeral.defaultFormat = function(format) {
- options.defaultFormat = typeof(format) === 'string' ? format : '0.0';
- };
-
- numeral.register = function(type, name, format) {
- name = name.toLowerCase();
-
- if (this[type + 's'][name]) {
- throw new TypeError(name + ' ' + type + ' already registered.');
- }
-
- this[type + 's'][name] = format;
-
- return format;
- };
-
-
- numeral.validate = function(val, culture) {
- var _decimalSep,
- _thousandSep,
- _currSymbol,
- _valArray,
- _abbrObj,
- _thousandRegEx,
- localeData,
- temp;
-
- //coerce val to string
- if (typeof val !== 'string') {
- val += '';
-
- if (console.warn) {
- console.warn('Numeral.js: Value is not string. It has been co-erced to: ', val);
- }
- }
-
- //trim whitespaces from either sides
- val = val.trim();
-
- //if val is just digits return true
- if (!!val.match(/^\d+$/)) {
- return true;
- }
-
- //if val is empty return false
- if (val === '') {
- return false;
- }
-
- //get the decimal and thousands separator from numeral.localeData
- try {
- //check if the culture is understood by numeral. if not, default it to current locale
- localeData = numeral.localeData(culture);
- } catch (e) {
- localeData = numeral.localeData(numeral.locale());
- }
-
- //setup the delimiters and currency symbol based on culture/locale
- _currSymbol = localeData.currency.symbol;
- _abbrObj = localeData.abbreviations;
- _decimalSep = localeData.delimiters.decimal;
- if (localeData.delimiters.thousands === '.') {
- _thousandSep = '\\.';
- } else {
- _thousandSep = localeData.delimiters.thousands;
- }
-
- // validating currency symbol
- temp = val.match(/^[^\d]+/);
- if (temp !== null) {
- val = val.substr(1);
- if (temp[0] !== _currSymbol) {
- return false;
- }
- }
-
- //validating abbreviation symbol
- temp = val.match(/[^\d]+$/);
- if (temp !== null) {
- val = val.slice(0, -1);
- if (temp[0] !== _abbrObj.thousand && temp[0] !== _abbrObj.million && temp[0] !== _abbrObj.billion && temp[0] !== _abbrObj.trillion) {
- return false;
- }
- }
-
- _thousandRegEx = new RegExp(_thousandSep + '{2}');
-
- if (!val.match(/[^\d.,]/g)) {
- _valArray = val.split(_decimalSep);
- if (_valArray.length > 2) {
- return false;
- } else {
- if (_valArray.length < 2) {
- return ( !! _valArray[0].match(/^\d+.*\d$/) && !_valArray[0].match(_thousandRegEx));
- } else {
- if (_valArray[0].length === 1) {
- return ( !! _valArray[0].match(/^\d+$/) && !_valArray[0].match(_thousandRegEx) && !! _valArray[1].match(/^\d+$/));
- } else {
- return ( !! _valArray[0].match(/^\d+.*\d$/) && !_valArray[0].match(_thousandRegEx) && !! _valArray[1].match(/^\d+$/));
- }
- }
- }
- }
-
- return false;
- };
-
-
- /************************************
- Numeral Prototype
- ************************************/
-
- numeral.fn = Numeral.prototype = {
- clone: function() {
- return numeral(this);
- },
- format: function(inputString, roundingFunction) {
- var value = this._value,
- format = inputString || options.defaultFormat,
- kind,
- output,
- formatFunction;
-
- // make sure we have a roundingFunction
- roundingFunction = roundingFunction || Math.round;
-
- // format based on value
- if (value === 0 && options.zeroFormat !== null) {
- output = options.zeroFormat;
- } else if (value === null && options.nullFormat !== null) {
- output = options.nullFormat;
- } else {
- for (kind in formats) {
- if (format.match(formats[kind].regexps.format)) {
- formatFunction = formats[kind].format;
-
- break;
- }
- }
-
- formatFunction = formatFunction || numeral._.numberToFormat;
-
- output = formatFunction(value, format, roundingFunction);
- }
-
- return output;
- },
- value: function() {
- return this._value;
- },
- input: function() {
- return this._input;
- },
- set: function(value) {
- this._value = Number(value);
-
- return this;
- },
- add: function(value) {
- var corrFactor = _.correctionFactor.call(null, this._value, value);
-
- function cback(accum, curr, currI, O) {
- return accum + Math.round(corrFactor * curr);
- }
-
- this._value = _.reduce([this._value, value], cback, 0) / corrFactor;
-
- return this;
- },
- subtract: function(value) {
- var corrFactor = _.correctionFactor.call(null, this._value, value);
-
- function cback(accum, curr, currI, O) {
- return accum - Math.round(corrFactor * curr);
- }
-
- this._value = _.reduce([value], cback, Math.round(this._value * corrFactor)) / corrFactor;
-
- return this;
- },
- multiply: function(value) {
- function cback(accum, curr, currI, O) {
- var corrFactor = _.correctionFactor(accum, curr);
- return Math.round(accum * corrFactor) * Math.round(curr * corrFactor) / Math.round(corrFactor * corrFactor);
- }
-
- this._value = _.reduce([this._value, value], cback, 1);
-
- return this;
- },
- divide: function(value) {
- function cback(accum, curr, currI, O) {
- var corrFactor = _.correctionFactor(accum, curr);
- return Math.round(accum * corrFactor) / Math.round(curr * corrFactor);
- }
-
- this._value = _.reduce([this._value, value], cback);
-
- return this;
- },
- difference: function(value) {
- return Math.abs(numeral(this._value).subtract(value).value());
- }
- };
-
- /************************************
- Default Locale && Format
- ************************************/
-
- numeral.register('locale', 'en', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function(number) {
- var b = number % 10;
- return (~~(number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: '$'
- }
- });
-
- return numeral;
-}));
diff --git a/node_modules/numeral/templates/anon.js b/node_modules/numeral/templates/anon.js
deleted file mode 100644
index 50b6954052..0000000000
--- a/node_modules/numeral/templates/anon.js
+++ /dev/null
@@ -1,3 +0,0 @@
-(function() {
- <%= content %>
-})();
diff --git a/node_modules/numeral/templates/types.js b/node_modules/numeral/templates/types.js
deleted file mode 100644
index c6256a5c2e..0000000000
--- a/node_modules/numeral/templates/types.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/*! @preserve
- * numeral.js
- * <%= type %> : 2.0.6
- * license : MIT
- * http://adamwdraper.github.com/Numeral-js/
- */
-
-(function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('./numeral'));
- } else {
- factory(global.numeral);
- }
-}(this, function (numeral) {
- <%= content %>
-}));
diff --git a/node_modules/numeral/tests/formats/bps.js b/node_modules/numeral/tests/formats/bps.js
deleted file mode 100644
index f844a5842e..0000000000
--- a/node_modules/numeral/tests/formats/bps.js
+++ /dev/null
@@ -1,42 +0,0 @@
-
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var expect = require('chai').expect;
-}
-
-describe('BPS', function() {
- after(function() {
- numeral.reset();
- });
-
- it('should format to bps', function() {
- var tests = [
- [0,'0 BPS','0 BPS'],
- [0.0001, '0 BPS', '1 BPS'],
- [.0056, '0 BPS', '56 BPS'],
- [.25, '0BPS', '2500BPS'],
- [.000001, '0.00 BPS', '0.01 BPS']
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
-
- it('should unformat to number', function() {
- var tests = [
- ['0 BPS', 0],
- ['1 BPS', 0.0001],
- ['56 BPS', .0056],
- ['2500BPS', .25],
- ['0.01 BPS', .000001]
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
-});
diff --git a/node_modules/numeral/tests/formats/bytes.js b/node_modules/numeral/tests/formats/bytes.js
deleted file mode 100644
index 8f7e76d9b3..0000000000
--- a/node_modules/numeral/tests/formats/bytes.js
+++ /dev/null
@@ -1,62 +0,0 @@
-
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var expect = require('chai').expect;
-}
-
-describe('Bytes', function() {
- after(function() {
- numeral.reset();
- });
-
- it('should format to bytes', function() {
- var decimal = 1000;
- var binary = 1024;
- var tests = [
- [0,'0b','0B'],
- [null,'0 b','0 B'],
- [100,'0b','100B'],
- [binary * 2,'0 ib','2 KiB'],
- [Math.pow(binary, 2) * 5,'0ib','5MiB'],
- [Math.pow(binary, 3) * 7.343,'0.[0] ib','7.3 GiB'],
- [Math.pow(binary, 4) * 3.1536544,'0.000ib','3.154TiB'],
- [Math.pow(binary, 5) * 2.953454534534,'0ib','3PiB'],
- [decimal * 2,'0 b','2 KB'],
- [Math.pow(decimal, 2) * 5,'0b','5MB'],
- [Math.pow(decimal, 3) * 7.343,'0.[0] b','7.3 GB'],
- [Math.pow(decimal, 4) * 3.1536544,'0.000b','3.154TB'],
- [Math.pow(decimal, 5) * 2.953454534534,'0b','3PB']
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
-
- it('should unformat to number', function() {
- var decimal = 1000;
- var binary = 1024;
- var tests = [
- ['0B', 0],
- ['0 B', 0],
- ['100B', 100],
- ['2 KiB', binary * 2],
- ['5MiB', Math.pow(binary, 2) * 5],
- ['7.3 GiB', Math.pow(binary, 3) * 7.3],
- ['3.154TiB', Math.pow(binary, 4) * 3.154],
- ['3PiB', Math.pow(binary, 5) * 3],
- ['2 KB', decimal * 2],
- ['5MB', Math.pow(decimal, 2) * 5],
- ['7.3 GB', Math.pow(decimal, 3) * 7.3],
- ['3.154TB', Math.pow(decimal, 4) * 3.154],
- ['3PB', Math.pow(decimal, 5) * 3]
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
-});
diff --git a/node_modules/numeral/tests/formats/currency.js b/node_modules/numeral/tests/formats/currency.js
deleted file mode 100644
index 24bbef87f3..0000000000
--- a/node_modules/numeral/tests/formats/currency.js
+++ /dev/null
@@ -1,66 +0,0 @@
-
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var expect = require('chai').expect;
-}
-
-describe('Currency', function() {
- after(function() {
- numeral.reset();
- });
-
- it('should format to currency', function() {
- var tests = [
- [0,'$0.00','$0.00'],
- [null,'$0.00','$0.00'],
- [0.99,'$0,0.00','$0.99'],
- [1000.234,'$0,0.00','$1,000.23'],
- [1001,'$ 0,0.[00]','$ 1,001'],
- [1000.234,'0,0.00 $','1,000.23 $'],
- [-1000.234,'0,0.00 $','-1,000.23 $'],
- [-1000.234,'($0,0)','($1,000)'],
- [-1000.234,'(0,0$)','(1,000$)'],
- [-1000.234,'(0,0 $)','(1,000 $)'],
- [-1000.234,'$0.00','-$1000.23'],
- [-1000.234,'$ 0.00','-$ 1000.23'],
- [1230974,'($0.00 a)','$1.23 m'],
- [-1000.234,'$ (0,0)','$ (1,000)'],
- [-1000.234,'$(0,0)','$(1,000)'],
- [-1000.234,'$ (0,0.00)','$ (1,000.23)'],
- [-1000.234,'$(0,0.00)','$(1,000.23)'],
- [-1000.238,'$(0,0.00)','$(1,000.24)'],
- [-1000.234,'$-0,0','$-1,000'],
- [-1000.234,'$ -0,0','$ -1,000'],
- [1000.234,'$ (0,0)','$ 1,000'],
- [1000.234,'$(0,0)','$1,000'],
- [1000.234,'$ (0,0.00)','$ 1,000.23'],
- [1000.234,'$(0,0.00)','$1,000.23'],
- [1000.238,'$(0,0.00)','$1,000.24'],
- [1000.234,'$-0,0','$1,000'],
- [1000.234,'$ -0,0','$ 1,000']
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
-
- it('should unformat to currency', function() {
- var tests = [
- ['$0.00', 0],
- ['$0.99', 0.99],
- ['$1,000.23', 1000.23],
- ['1,000.23 $', 1000.23],
- ['($1,000)', -1000],
- ['-1,000$', -1000],
- ['$1.23 m', 1230000],
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
-});
diff --git a/node_modules/numeral/tests/formats/exponential.js b/node_modules/numeral/tests/formats/exponential.js
deleted file mode 100644
index 4ab26fe744..0000000000
--- a/node_modules/numeral/tests/formats/exponential.js
+++ /dev/null
@@ -1,46 +0,0 @@
-
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var expect = require('chai').expect;
-}
-
-describe('Exponential', function() {
- after(function() {
- numeral.reset();
- });
-
- it('should format to exponential notation', function() {
- var tests = [
- [0,'0e+0','0e+0'],
- [null,'0e+0','0e+0'],
- [1,'0e+0','1e+0'],
- [77.1234,'0.0e+0','7.7e+1'],
- [0.000000771234,'0.0e-0','7.7e-7'],
- [-0.000000771234,'0.00e-0','-7.71e-7'],
- [77.1234,'0.000e+0','7.712e+1'],
- [-1000830298,'0.0[000]e+0','-1.0008e+9']
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
-
- it('should unformat to exponential notation', function() {
- var tests = [
- ['0e+0', 0],
- ['1e+0', 1],
- ['7.712e+1', 77.12],
- ['7.7e-7', 0.00000077],
- ['-7.71e-6', -0.00000771],
- ['-1.0008e+9', -1000800000]
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
-});
diff --git a/node_modules/numeral/tests/formats/ordinal.js b/node_modules/numeral/tests/formats/ordinal.js
deleted file mode 100644
index dc73f13948..0000000000
--- a/node_modules/numeral/tests/formats/ordinal.js
+++ /dev/null
@@ -1,49 +0,0 @@
-
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var expect = require('chai').expect;
-}
-
-describe('Ordinal', function() {
- after(function() {
- numeral.reset();
- });
-
- it('should format to an ordinal', function() {
- var tests = [
- [1,'0o','1st'],
- [52,'0 o','52 nd'],
- [23,'0o','23rd'],
- [100,'0o','100th'],
- [1234,'0,0o','1,234th']
- ],
- i,
- n,
- output;
-
- for (i = 0; i < tests.length; i++) {
- n = numeral(tests[i][0]);
- output = n.format(tests[i][1]);
-
- expect(output).to.equal(tests[i][2]);
-
- expect(typeof output).to.equal('string');
- }
- });
-
- it('should unformat to an ordinal', function() {
- var tests = [
- ['1st', 1],
- ['52 nd', 52],
- ['23rd', 23],
- ['100th', 100],
- ['1,234th', 1234]
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
-});
diff --git a/node_modules/numeral/tests/formats/percentage.js b/node_modules/numeral/tests/formats/percentage.js
deleted file mode 100644
index 1eb61ee9f8..0000000000
--- a/node_modules/numeral/tests/formats/percentage.js
+++ /dev/null
@@ -1,109 +0,0 @@
-
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var expect = require('chai').expect;
-}
-
-describe('Percentage', function() {
- after(function() {
- numeral.reset();
- });
-
- it('should format to percentages with 100 upscale default', function() {
- var tests = [
- [0,'0%','0%'],
- [null,'0 %','0 %'],
- [1,'0%','100%'],
- [0.974878234,'0.000%','97.488%'],
- [-0.43,'0 %','-43 %'],
- [0.43,'(0.00[0]%)','43.00%']
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
-
- it('should unformat to percentages with 100 downscale default', function() {
- var tests = [
- ['0%', 0],
- ['100%', 1],
- ['97.488%', 0.97488],
- ['-43 %', -0.43],
- ['43.00%', 0.43]
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
-
- it('should format to percentages with 100 upscale enforced', function() {
- var tests = [
- [0,'0%','0%'],
- [null,'0 %','0 %'],
- [1,'0%','100%'],
- [0.974878234,'0.000%','97.488%'],
- [-0.43,'0 %','-43 %'],
- [0.43,'(0.00[0]%)','43.00%']
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- numeral.options.scalePercentBy100 = true;
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
-
- it('should unformat to percentages with 100 downscale enforced', function() {
- var tests = [
- ['0%', 0],
- ['100%', 1],
- ['97.488%', 0.97488],
- ['-43 %', -0.43],
- ['43.00%', 0.43]
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- numeral.options.scalePercentBy100 = true;
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
-
- it('should format to percentages without 100 upscale', function() {
- var tests = [
- [0,'0%','0%'],
- [null,'0 %','0 %'],
- [1,'0%','1%'],
- [97.4878234,'0.000%','97.488%'],
- [-43.0,'0 %','-43 %'],
- [43.0,'(0.00[0]%)','43.00%']
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- numeral.options.scalePercentBy100 = false;
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
-
- it('should unformat to percentages without 100 downscale', function() {
- var tests = [
- ['0%', 0],
- ['100%', 100.0],
- ['97.488%', 97.488],
- ['-43 %', -43.0],
- ['43.00%', 43.0]
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- numeral.options.scalePercentBy100 = false;
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
-});
diff --git a/node_modules/numeral/tests/formats/time.js b/node_modules/numeral/tests/formats/time.js
deleted file mode 100644
index 15ecbe3acc..0000000000
--- a/node_modules/numeral/tests/formats/time.js
+++ /dev/null
@@ -1,41 +0,0 @@
-
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var expect = require('chai').expect;
-}
-
-describe('Time', function() {
- after(function() {
- numeral.reset();
- });
-
- it('should format to time', function() {
- var tests = [
- [0,'00:00:00','0:00:00'],
- [null,'00:00:00','0:00:00'],
- [25,'00:00:00','0:00:25'],
- [238,'00:00:00','0:03:58'],
- [63846,'00:00:00','17:44:06']
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
-
- it('should unformat to time', function() {
- var tests = [
- ['0:00:00', 0],
- ['0:00:25', 25],
- ['0:03:58', 238],
- ['17:44:06', 63846]
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
-});
diff --git a/node_modules/numeral/tests/locales/bg.js b/node_modules/numeral/tests/locales/bg.js
deleted file mode 100644
index 04ccc2613a..0000000000
--- a/node_modules/numeral/tests/locales/bg.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: bg', function() {
-
- before(function() {
- numeral.locale('bg');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2млн'],
- [1460,'0a','1хил'],
- [-104000,'0a','-104хил'],
- [1,'0o','1'],
- [52,'0o','52'],
- [23,'0o','23'],
- [100,'0o','100'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','лв1 000,23'],
- [-1000.234,'($0,0)','(лв1 000)'],
- [-1000.234,'$0.00','-лв1000,23'],
- [1230974,'($0.00a)','лв1,23млн']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(лв1,23млн)',-1230000],
- ['10хил',10000],
- ['-10хил',-10000],
- ['23',23],
- ['лв10 000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/chs.js b/node_modules/numeral/tests/locales/chs.js
deleted file mode 100644
index f476e1520a..0000000000
--- a/node_modules/numeral/tests/locales/chs.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: chs', function() {
-
- before(function() {
- numeral.locale('chs');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format number', function() {
- var tests = [
- [10000,'0,0.0000','10,000.0000'],
- [10000.23,'0,0','10,000'],
- [-10000,'0,0.0','-10,000.0'],
- [10000.1234,'0.000','10000.123'],
- [-10000,'(0,0.0000)','(10,000.0000)'],
- [-0.23,'.00','-.23'],
- [-0.23,'(.00)','(.23)'],
- [0.23,'0.00000','0.23000'],
- [1230974,'0.0a','1.2百万'],
- [1460,'0a','1千'],
- [-104000,'0a','-104千'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','¥1,000.23'],
- [-1000.234,'($0,0)','(¥1,000)'],
- [-1000.234,'$0.00','-¥1000.23'],
- [1230974,'($0.00a)','¥1.23百万']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97.488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43.000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10,000.123',10000.123],
- ['(0.12345)',-0.12345],
- ['(¥1.23百万)',-1230000],
- ['10千',10000],
- ['-10千',-10000],
- ['23.',23],
- ['¥10,000.00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/cs.js b/node_modules/numeral/tests/locales/cs.js
deleted file mode 100644
index 21b9cb9e4b..0000000000
--- a/node_modules/numeral/tests/locales/cs.js
+++ /dev/null
@@ -1,95 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: cs', function() {
-
- before(function() {
- numeral.locale('cs');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2mil.'],
- [1460,'0a','1tis.'],
- [-104000,'0a','-104tis.'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'0,0.00$','1 000,23Kč'],
- [-1000.234,'(0,0$)','(1 000Kč)'],
- [-1000.234,'0.00$','-1000,23Kč'],
- [1230974,'(0.00a$)','1,23mil.Kč']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(1,23mil.Kč)',-1230000],
- ['1,23mil.Kč',1230000],
- ['10tis.',10000],
- ['-10tis.',-10000],
- ['23.',23],
- ['10 000,00Kč',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/da-dk.js b/node_modules/numeral/tests/locales/da-dk.js
deleted file mode 100644
index 800612b14a..0000000000
--- a/node_modules/numeral/tests/locales/da-dk.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: da-dk', function() {
-
- before(function() {
- numeral.locale('da-dk');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10.000,0000'],
- [10000.23,'0,0','10.000'],
- [-10000,'0,0.0','-10.000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10.000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2mio'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','DKK1.000,23'],
- [-1000.234,'($0,0)','(DKK1.000)'],
- [-1000.234,'$0.00','-DKK1000,23'],
- [1230974,'($0.00a)','DKK1,23mio']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10.000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(DKK1,23mio)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23.',23],
- ['DK10.000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/de-ch.js b/node_modules/numeral/tests/locales/de-ch.js
deleted file mode 100644
index 8203e1a4bd..0000000000
--- a/node_modules/numeral/tests/locales/de-ch.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: de-ch', function() {
-
- before(function() {
- numeral.locale('de-ch');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2m'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','CHF1 000,23'],
- [-1000.234,'($0,0)','(CHF1 000)'],
- [-1000.234,'$0.00','-CHF1000,23'],
- [1230974,'($0.00a)','CHF1,23m']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(CHF1,23m)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23.',23],
- ['CHF10 000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/de.js b/node_modules/numeral/tests/locales/de.js
deleted file mode 100644
index cf1d652de9..0000000000
--- a/node_modules/numeral/tests/locales/de.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: de', function() {
-
- before(function() {
- numeral.locale('de');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2m'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','€1 000,23'],
- [-1000.234,'($0,0)','(€1 000)'],
- [-1000.234,'$0.00','-€1000,23'],
- [1230974,'($0.00a)','€1,23m']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(€1,23m)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23.',23],
- ['€10 000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/en-au.js b/node_modules/numeral/tests/locales/en-au.js
deleted file mode 100644
index 97d6a09448..0000000000
--- a/node_modules/numeral/tests/locales/en-au.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: en-au', function() {
-
- before(function() {
- numeral.locale('en-au');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10,000.0000'],
- [10000.23,'0,0','10,000'],
- [-10000,'0,0.0','-10,000.0'],
- [10000.1234,'0.000','10000.123'],
- [-10000,'(0,0.0000)','(10,000.0000)'],
- [-0.23,'.00','-.23'],
- [-0.23,'(.00)','(.23)'],
- [0.23,'0.00000','0.23000'],
- [1230974,'0.0a','1.2m'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1st'],
- [52,'0o','52nd'],
- [23,'0o','23rd'],
- [100,'0o','100th'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','$1,000.23'],
- [-1000.234,'($0,0)','($1,000)'],
- [-1000.234,'$0.00','-$1000.23'],
- [1230974,'($0.00a)','$1.23m']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97.488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43.000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10,000.123',10000.123],
- ['(0.12345)',-0.12345],
- ['($1.23m)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23rd',23],
- ['$10,000.00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/en-gb.js b/node_modules/numeral/tests/locales/en-gb.js
deleted file mode 100644
index 8c35e7433c..0000000000
--- a/node_modules/numeral/tests/locales/en-gb.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: en-gb', function() {
-
- before(function() {
- numeral.locale('en-gb');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10,000.0000'],
- [10000.23,'0,0','10,000'],
- [-10000,'0,0.0','-10,000.0'],
- [10000.1234,'0.000','10000.123'],
- [-10000,'(0,0.0000)','(10,000.0000)'],
- [-0.23,'.00','-.23'],
- [-0.23,'(.00)','(.23)'],
- [0.23,'0.00000','0.23000'],
- [1230974,'0.0a','1.2m'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1st'],
- [52,'0o','52nd'],
- [23,'0o','23rd'],
- [100,'0o','100th'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','£1,000.23'],
- [-1000.234,'($0,0)','(£1,000)'],
- [-1000.234,'$0.00','-£1000.23'],
- [1230974,'($0.00a)','£1.23m']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97.488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43.000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10,000.123',10000.123],
- ['(0.12345)',-0.12345],
- ['(£1.23m)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23rd',23],
- ['£10,000.00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/en-za.js b/node_modules/numeral/tests/locales/en-za.js
deleted file mode 100644
index ed6cdc1028..0000000000
--- a/node_modules/numeral/tests/locales/en-za.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: en-za', function() {
-
- before(function() {
- numeral.locale('en-za');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2m'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1st'],
- [52,'0o','52nd'],
- [23,'0o','23rd'],
- [100,'0o','100th'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','R1 000,23'],
- [-1000.234,'($0,0)','(R1 000)'],
- [-1000.234,'$0.00','-R1000,23'],
- [1230974,'($0.00a)','R1,23m']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(R1,23m)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23rd',23],
- ['R10 000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/es-es.js b/node_modules/numeral/tests/locales/es-es.js
deleted file mode 100644
index a283080949..0000000000
--- a/node_modules/numeral/tests/locales/es-es.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: es-es', function() {
-
- before(function() {
- numeral.locale('es-es');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10.000,0000'],
- [10000.23,'0,0','10.000'],
- [-10000,'0,0.0','-10.000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10.000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2mm'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1er'],
- [52,'0o','52do'],
- [23,'0o','23er'],
- [100,'0o','100mo'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','€1.000,23'],
- [-1000.234,'($0,0)','(€1.000)'],
- [-1000.234,'$0.00','-€1000,23'],
- [1230974,'($0.00a)','€1,23mm']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10.000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['($1,23mm)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23er',23],
- ['$10.000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/es.js b/node_modules/numeral/tests/locales/es.js
deleted file mode 100644
index 7cc7704d0a..0000000000
--- a/node_modules/numeral/tests/locales/es.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: es', function() {
-
- before(function() {
- numeral.locale('es');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10.000,0000'],
- [10000.23,'0,0','10.000'],
- [-10000,'0,0.0','-10.000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10.000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2mm'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1er'],
- [52,'0o','52do'],
- [23,'0o','23er'],
- [100,'0o','100mo'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','$1.000,23'],
- [-1000.234,'($0,0)','($1.000)'],
- [-1000.234,'$0.00','-$1000,23'],
- [1230974,'($0.00a)','$1,23mm']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10.000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['($1,23mm)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23er',23],
- ['$10.000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/et.js b/node_modules/numeral/tests/locales/et.js
deleted file mode 100644
index 8743773772..0000000000
--- a/node_modules/numeral/tests/locales/et.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: et', function() {
-
- before(function() {
- numeral.locale('et');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2 mln'],
- [1460,'0a','1 tuh'],
- [-104000,'0a','-104 tuh'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','€1 000,23'],
- [-1000.234,'($0,0)','(€1 000)'],
- [-1000.234,'$0.00','-€1000,23'],
- [1230974,'($0.00a)','€1,23 mln']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10.000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(€1,23 mln)',-1230000],
- ['10 tuh',10000],
- ['-10 tuh',-10000],
- ['23.',23],
- ['€10.000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/fi.js b/node_modules/numeral/tests/locales/fi.js
deleted file mode 100644
index 711238e68f..0000000000
--- a/node_modules/numeral/tests/locales/fi.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: fi', function() {
-
- before(function() {
- numeral.locale('fi');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2M'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','€1 000,23'],
- [-1000.234,'($0,0)','(€1 000)'],
- [-1000.234,'$0.00','-€1000,23'],
- [1230974,'($0.00a)','€1,23M']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10.000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(€1,23M)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23.',23],
- ['€10.000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/fr-ca.js b/node_modules/numeral/tests/locales/fr-ca.js
deleted file mode 100644
index 1b3865662f..0000000000
--- a/node_modules/numeral/tests/locales/fr-ca.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: fr-ca', function() {
-
- before(function() {
- numeral.locale('fr-ca');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0 a','1,2 M'],
- [1460,'0 a','1 k'],
- [-104000,'0 a','-104 k'],
- [1,'0o','1er'],
- [52,'0o','52e'],
- [23,'0o','23e'],
- [100,'0o','100e'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'0,0.00 $','1 000,23 $'],
- [-1000.234,'(0,0 $)','(1 000 $)'],
- [-1000.234,'0.00 $','-1000,23 $'],
- [1230974,'(0.00 a$)','1,23 M$']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0 %','100 %'],
- [0.974878234,'0.000 %','97,488 %'],
- [-0.43,'0 %','-43 %'],
- [0.43,'(0.000 %)','43,000 %']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(1,23 M$)',-1230000],
- ['10 k',10000],
- ['-10 k',-10000],
- ['23e',23],
- ['10 000,00 $',10000],
- ['-76 %',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/fr-ch.js b/node_modules/numeral/tests/locales/fr-ch.js
deleted file mode 100644
index ddb17b65ed..0000000000
--- a/node_modules/numeral/tests/locales/fr-ch.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: fr-ch', function() {
-
- before(function() {
- numeral.locale('fr-ch');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10\'000.0000'],
- [10000.23,'0,0','10\'000'],
- [-10000,'0,0.0','-10\'000.0'],
- [10000.1234,'0.000','10000.123'],
- [-10000,'(0,0.0000)','(10\'000.0000)'],
- [-0.23,'.00','-.23'],
- [-0.23,'(.00)','(.23)'],
- [0.23,'0.00000','0.23000'],
- [1230974,'0.0a','1.2m'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1er'],
- [52,'0o','52e'],
- [23,'0o','23e'],
- [100,'0o','100e'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','CHF1\'000.23'],
- [-1000.234,'($0,0)','(CHF1\'000)'],
- [-1000.234,'$0.00','-CHF1000.23'],
- [1230974,'($0.00a)','CHF1.23m']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97.488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43.000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10\'000.123',10000.123],
- ['(0.12345)',-0.12345],
- ['(CHF1.23m)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23e',23],
- ['CHF10\'000.00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/fr.js b/node_modules/numeral/tests/locales/fr.js
deleted file mode 100644
index 515e510008..0000000000
--- a/node_modules/numeral/tests/locales/fr.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: fr', function() {
-
- before(function() {
- numeral.locale('fr');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2m'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1er'],
- [52,'0o','52e'],
- [23,'0o','23e'],
- [100,'0o','100e'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','€1 000,23'],
- [-1000.234,'($0,0)','(€1 000)'],
- [-1000.234,'$0.00','-€1000,23'],
- [1230974,'($0.00a)','€1,23m']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(€1,23m)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23e',23],
- ['€10 000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/hu.js b/node_modules/numeral/tests/locales/hu.js
deleted file mode 100644
index b86d85984c..0000000000
--- a/node_modules/numeral/tests/locales/hu.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: hu', function() {
-
- before(function() {
- numeral.locale('hu');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2M'],
- [1460,'0a','1E'],
- [-104000,'0a','-104E'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'0,0.00$','1 000,23 Ft'],
- [-1000.234,'(0,0$)','(1 000 Ft)'],
- [-1000.234,'0.00$','-1000,23 Ft'],
- [1230974,'(0.00a$)','1,23M Ft']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(1,23M Ft)',-1230000],
- ['10E',10000],
- ['-10E',-10000],
- ['23.',23],
- ['10 000,00 Ft',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/it.js b/node_modules/numeral/tests/locales/it.js
deleted file mode 100644
index af51fc1478..0000000000
--- a/node_modules/numeral/tests/locales/it.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: it', function() {
-
- before(function() {
- numeral.locale('it');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10.000,0000'],
- [10000.23,'0,0','10.000'],
- [-10000,'0,0.0','-10.000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10.000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2mil'],
- [1460,'0a','1mila'],
- [-104000,'0a','-104mila'],
- [1,'0o','1º'],
- [52,'0o','52º'],
- [23,'0o','23º'],
- [100,'0o','100º'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','€1.000,23'],
- [-1000.234,'($0,0)','(€1.000)'],
- [-1000.234,'$0.00','-€1000,23'],
- [1230974,'($0.00a)','€1,23mil']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10.000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(€1,23mil)',-1230000],
- ['10mila',10000],
- ['-10mila',-10000],
- ['23º',23],
- ['€10.000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/ja.js b/node_modules/numeral/tests/locales/ja.js
deleted file mode 100644
index 762484b67c..0000000000
--- a/node_modules/numeral/tests/locales/ja.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: ja', function() {
-
- before(function() {
- numeral.locale('ja');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10,000.0000'],
- [10000.23,'0,0','10,000'],
- [-10000,'0,0.0','-10,000.0'],
- [10000.1234,'0.000','10000.123'],
- [-10000,'(0,0.0000)','(10,000.0000)'],
- [-0.23,'.00','-.23'],
- [-0.23,'(.00)','(.23)'],
- [0.23,'0.00000','0.23000'],
- [1230974,'0.0a','1.2百万'],
- [1460,'0a','1千'],
- [-104000,'0a','-104千'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','¥1,000.23'],
- [-1000.234,'($0,0)','(¥1,000)'],
- [-1000.234,'$0.00','-¥1000.23'],
- [1230974,'($0.00a)','¥1.23百万']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97.488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43.000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10,000.123',10000.123],
- ['(0.12345)',-0.12345],
- ['(¥1.23百万)',-1230000],
- ['10千',10000],
- ['-10千',-10000],
- ['23.',23],
- ['¥10,000.00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/lv.js b/node_modules/numeral/tests/locales/lv.js
deleted file mode 100644
index 227fc5c091..0000000000
--- a/node_modules/numeral/tests/locales/lv.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: lv', function() {
-
- before(function() {
- numeral.locale('lv');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2 milj.'],
- [1460,'0a','1 tūkst.'],
- [-104000,'0a','-104 tūkst.'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','€1 000,23'],
- [-1000.234,'($0,0)','(€1 000)'],
- [-1000.234,'$0.00','-€1000,23'],
- [1230974,'($0.00a)','€1,23 milj.']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(€1,23 milj.)',-1230000],
- ['10 tūkst.',10000],
- ['-10 tūkst.',-10000],
- ['23.',23],
- ['€10 000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/nl-be.js b/node_modules/numeral/tests/locales/nl-be.js
deleted file mode 100644
index d7adc3298d..0000000000
--- a/node_modules/numeral/tests/locales/nl-be.js
+++ /dev/null
@@ -1,100 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: nl-be', function() {
-
- before(function() {
- numeral.locale('nl-be');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2 mln'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [0,'0o','0de'],
- [1,'0o','1ste'],
- [2,'0o','2de'],
- [8,'0o','8ste'],
- [19,'0o','19de'],
- [20,'0o','20ste'],
- [100,'0o','100ste'],
- [102,'0o','102de'],
- [108,'0o','108ste'],
- [109,'0o','109de'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','€ 1 000,23'],
- [-1000.234,'($0,0)','(€ 1 000)'],
- [-1000.234,'$0.00','-€ 1000,23'],
- [1230974,'($0.00a)','€ 1,23 mln']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(€ 1,23 mln)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23e',23],
- ['€ 10 000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/nl-nl.js b/node_modules/numeral/tests/locales/nl-nl.js
deleted file mode 100644
index be59b4c485..0000000000
--- a/node_modules/numeral/tests/locales/nl-nl.js
+++ /dev/null
@@ -1,102 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: nl-nl', function() {
-
- before(function() {
- numeral.locale('nl-nl');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10.000,0000'],
- [10000.23,'0,0','10.000'],
- [-10000,'0,0.0','-10.000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10.000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2mln'],
- [1430974124,'0.0a','1,4mrd'],
- [9123456789234,'0.0a','9,1bln'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [0,'0o','0de'],
- [1,'0o','1ste'],
- [2,'0o','2de'],
- [8,'0o','8ste'],
- [19,'0o','19de'],
- [20,'0o','20ste'],
- [100,'0o','100ste'],
- [102,'0o','102de'],
- [108,'0o','108ste'],
- [109,'0o','109de'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','€ 1.000,23'],
- [-1000.234,'($0,0)','(€ 1.000)'],
- [-1000.234,'$0.00','-€ 1000,23'],
- [1230974,'($0.00a)','€ 1,23mln']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10.000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(€ 1,23 mln)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23e',23],
- ['€ 10.000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/no.js b/node_modules/numeral/tests/locales/no.js
deleted file mode 100644
index e5be2afd01..0000000000
--- a/node_modules/numeral/tests/locales/no.js
+++ /dev/null
@@ -1,95 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: no', function() {
-
- before(function() {
- numeral.locale('no');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2m'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','kr1 000,23'],
- [-1000.234,'($0,0)','(kr1 000)'],
- [-1000.234,'$0.00','-kr1000,23'],
- [1230974,'($0.00a)','kr1,23m'],
- [521.67,'0,0[.]00 $','521,67 kr']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(kr1,23m)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23.',23],
- ['kr10 000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/pl.js b/node_modules/numeral/tests/locales/pl.js
deleted file mode 100644
index c8056681ac..0000000000
--- a/node_modules/numeral/tests/locales/pl.js
+++ /dev/null
@@ -1,95 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: pl', function() {
-
- before(function() {
- numeral.locale('pl');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2mln'],
- [1460,'0a','1tys.'],
- [-104000,'0a','-104tys.'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'0,0.00$','1 000,23PLN'],
- [-1000.234,'(0,0$)','(1 000PLN)'],
- [-1000.234,'0.00$','-1000,23PLN'],
- [1230974,'(0.00a$)','1,23mlnPLN']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(1,23mlnPLN)',-1230000],
- ['1,23mlnPLN',1230000],
- ['10tys.',10000],
- ['-10tys.',-10000],
- ['23.',23],
- ['10 000,00PLN',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/pt-br.js b/node_modules/numeral/tests/locales/pt-br.js
deleted file mode 100644
index 8791555421..0000000000
--- a/node_modules/numeral/tests/locales/pt-br.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: pt-br', function() {
-
- before(function() {
- numeral.locale('pt-br');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10.000,0000'],
- [10000.23,'0,0','10.000'],
- [-10000,'0,0.0','-10.000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10.000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2milhões'],
- [1460,'0a','1mil'],
- [-104000,'0a','-104mil'],
- [1,'0o','1º'],
- [52,'0o','52º'],
- [23,'0o','23º'],
- [100,'0o','100º'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','R$1.000,23'],
- [-1000.234,'($0,0)','(R$1.000)'],
- [-1000.234,'$0.00','-R$1000,23'],
- [1230974,'($0.00a)','R$1,23milhões']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10.000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(R$1,23milhões)',-1230000],
- ['10mil',10000],
- ['-10mil',-10000],
- ['23º',23],
- ['R$10.000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/pt-pt.js b/node_modules/numeral/tests/locales/pt-pt.js
deleted file mode 100644
index 5407339749..0000000000
--- a/node_modules/numeral/tests/locales/pt-pt.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: pt-pt', function() {
-
- before(function() {
- numeral.locale('pt-pt');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2m'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1º'],
- [52,'0o','52º'],
- [23,'0o','23º'],
- [100,'0o','100º'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','€1 000,23'],
- [-1000.234,'($0,0)','(€1 000)'],
- [-1000.234,'$0.00','-€1000,23'],
- [1230974,'($0.00a)','€1,23m']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(€1,23m)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23º',23],
- ['€10 000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/ru-ua.js b/node_modules/numeral/tests/locales/ru-ua.js
deleted file mode 100644
index aa65fcb9e9..0000000000
--- a/node_modules/numeral/tests/locales/ru-ua.js
+++ /dev/null
@@ -1,95 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: ru-ua', function() {
-
- before(function() {
- numeral.locale('ru-ua');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2млн'],
- [1460,'0a','1тыс.'],
- [-104000,'0a','-104тыс.'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'0,0.00$','1 000,23₴'],
- [-1000.234,'(0,0$)','(1 000₴)'],
- [-1000.234,'0.00$','-1000,23₴'],
- [1230974,'(0.00a$)','1,23млн₴']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(1,23млн₴)',-1230000],
- ['1,23млн₴',1230000],
- ['10тыс.',10000],
- ['-10тыс.',-10000],
- ['23.',23],
- ['10 000,00₴',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/ru.js b/node_modules/numeral/tests/locales/ru.js
deleted file mode 100644
index 47e2153abd..0000000000
--- a/node_modules/numeral/tests/locales/ru.js
+++ /dev/null
@@ -1,95 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: ru', function() {
-
- before(function() {
- numeral.locale('ru');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2млн.'],
- [1460,'0a','1тыс.'],
- [-104000,'0a','-104тыс.'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'0,0.00$','1 000,23руб.'],
- [-1000.234,'(0,0$)','(1 000руб.)'],
- [-1000.234,'0.00$','-1000,23руб.'],
- [1230974,'(0.00a$)','1,23млн.руб.']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(1,23млн.руб.)',-1230000],
- ['1,23млн.руб.',1230000],
- ['10тыс.',10000],
- ['-10тыс.',-10000],
- ['23.',23],
- ['10 000,00руб.',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/sk.js b/node_modules/numeral/tests/locales/sk.js
deleted file mode 100644
index 8db57e42c2..0000000000
--- a/node_modules/numeral/tests/locales/sk.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: sk', function() {
-
- before(function() {
- numeral.locale('sk');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2mil.'],
- [1460,'0a','1tis.'],
- [-104000,'0a','-104tis.'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','€1 000,23'],
- [-1000.234,'($0,0)','(€1 000)'],
- [-1000.234,'$0.00','-€1000,23'],
- [1230974,'($0.00a)','€1,23mil.']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(€1,23mil.)',-1230000],
- ['10tis.',10000],
- ['-10tis.',-10000],
- ['23e',23],
- ['€10 000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/sl.js b/node_modules/numeral/tests/locales/sl.js
deleted file mode 100644
index 5dfb96930a..0000000000
--- a/node_modules/numeral/tests/locales/sl.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: sl', function() {
-
- before(function() {
- numeral.locale('sl');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10.000,0000'],
- [10000.23,'0,0','10.000'],
- [-10000,'0,0.0','-10.000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10.000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2mio'],
- [1460,'0a','1k'],
- [-104000,'0a','-104k'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','€1.000,23'],
- [-1000.234,'($0,0)','(€1.000)'],
- [-1000.234,'$0.00','-€1000,23'],
- [1230974,'($0.00a)','€1,23mio']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10.000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(€1,23mio)',-1230000],
- ['10k',10000],
- ['-10k',-10000],
- ['23e',23],
- ['€10.000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/th.js b/node_modules/numeral/tests/locales/th.js
deleted file mode 100644
index 7743066b15..0000000000
--- a/node_modules/numeral/tests/locales/th.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: th', function() {
-
- before(function() {
- numeral.locale('th');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10,000.0000'],
- [10000.23,'0,0','10,000'],
- [-10000,'0,0.0','-10,000.0'],
- [10000.1234,'0.000','10000.123'],
- [-10000,'(0,0.0000)','(10,000.0000)'],
- [-0.23,'.00','-.23'],
- [-0.23,'(.00)','(.23)'],
- [0.23,'0.00000','0.23000'],
- [1230974,'0.0a','1.2ล้าน'],
- [1460,'0a','1พัน'],
- [-104000,'0a','-104พัน'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','฿1,000.23'],
- [-1000.234,'($0,0)','(฿1,000)'],
- [-1000.234,'$0.00','-฿1000.23'],
- [1230974,'($0.00a)','฿1.23ล้าน']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97.488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43.000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10,000.123',10000.123],
- ['(0.12345)',-0.12345],
- ['(฿1.23ล้าน)',-1230000],
- ['10พัน',10000],
- ['-10พัน',-10000],
- ['23.',23],
- ['฿10,000.00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/tr.js b/node_modules/numeral/tests/locales/tr.js
deleted file mode 100644
index f199675443..0000000000
--- a/node_modules/numeral/tests/locales/tr.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: tr', function() {
-
- before(function() {
- numeral.locale('tr');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10.000,0000'],
- [10000.23,'0,0','10.000'],
- [-10000,'0,0.0','-10.000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10.000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2milyon'],
- [1460,'0a','1bin'],
- [-104000,'0a','-104bin'],
- [1,'0o','1\'inci'],
- [52,'0o','52\'nci'],
- [23,'0o','23\'üncü'],
- [100,'0o','100\'üncü'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'$0,0.00','\u20BA1.000,23'],
- [-1000.234,'($0,0)','(\u20BA1.000)'],
- [-1000.234,'$0.00','-\u20BA1000,23'],
- [1230974,'($0.00a)','\u20BA1,23milyon']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10.000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(\u20BA1,23milyon)',-1230000],
- ['10bin',10000],
- ['-10bin',-10000],
- ['23üncü',23],
- ['\u20BA10.000,00',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/uk-ua.js b/node_modules/numeral/tests/locales/uk-ua.js
deleted file mode 100644
index 9155f81a8f..0000000000
--- a/node_modules/numeral/tests/locales/uk-ua.js
+++ /dev/null
@@ -1,95 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: uk-ua', function() {
-
- before(function() {
- numeral.locale('uk-ua');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10 000,0000'],
- [10000.23,'0,0','10 000'],
- [-10000,'0,0.0','-10 000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10 000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2млн'],
- [1460,'0a','1тис.'],
- [-104000,'0a','-104тис.'],
- [1,'0o','1'],
- [52,'0o','52'],
- [23,'0o','23'],
- [100,'0o','100'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'0,0.00$','1 000,23₴'],
- [-1000.234,'(0,0$)','(1 000₴)'],
- [-1000.234,'0.00$','-1000,23₴'],
- [1230974,'(0.00a$)','1,23млн₴']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10 000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['(1,23млн₴)',-1230000],
- ['1,23млн₴',1230000],
- ['10тис.',10000],
- ['-10тис.',-10000],
- ['23.',23],
- ['10 000,00₴',10000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/locales/vi.js b/node_modules/numeral/tests/locales/vi.js
deleted file mode 100644
index 50d69af67a..0000000000
--- a/node_modules/numeral/tests/locales/vi.js
+++ /dev/null
@@ -1,98 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../../numeral');
- var locales = require('../../locales');
- var expect = require('chai').expect;
-}
-
-describe('Locale: vi', function() {
-
- before(function() {
- numeral.locale('vi');
- });
-
- after(function() {
- numeral.reset();
- });
-
- describe('Number', function() {
- it('should format a number', function() {
- var tests = [
- [10000,'0,0.0000','10.000,0000'],
- [10000.23,'0,0','10.000'],
- [-10000,'0,0.0','-10.000,0'],
- [10000.1234,'0.000','10000,123'],
- [-10000,'(0,0.0000)','(10.000,0000)'],
- [-0.23,'.00','-,23'],
- [-0.23,'(.00)','(,23)'],
- [0.23,'0.00000','0,23000'],
- [1230974,'0.0a','1,2 triệu'],
- [1460,'0a','1 nghìn'],
- [-104000,'0a','-104 nghìn'],
- [1,'0o','1.'],
- [52,'0o','52.'],
- [23,'0o','23.'],
- [100,'0o','100.'],
- [1,'0[.]0','1']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should format a currency', function() {
- var tests = [
- [1000.234,'0,0.00 $','1.000,23 ₫'],
- [-1000.234,'(0,0 $)','(1.000 ₫)'],
- [-1000.234,'0.00 $','-1000,23 ₫'],
- [1230974,'(0.00a $)','1,23 triệu ₫']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Percentages', function() {
- it('should format a percentages', function() {
- var tests = [
- [1,'0%','100%'],
- [0.974878234,'0.000%','97,488%'],
- [-0.43,'0%','-43%'],
- [0.43,'(0.000%)','43,000%']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).format(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Unformat', function() {
- it('should unformat', function() {
- var tests = [
- ['10.000,123',10000.123],
- ['(0,12345)',-0.12345],
- ['1 nghìn', 1000],
- ['1 triệu',1000000],
- ['1 tỷ', 1000000000],
- ['1 nghìn tỷ', 1000000000000],
- ['1,2 nghìn', 1200],
- ['1,2 tỷ', 1200000000],
- ['1.000.000', 1000000],
- ['1.000.000,2', 1000000.2],
- ['10.000.000', 10000000],
- ['-76%',-0.76],
- ['2:23:57',8637]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-});
diff --git a/node_modules/numeral/tests/numeral.js b/node_modules/numeral/tests/numeral.js
deleted file mode 100644
index 4c9208afe3..0000000000
--- a/node_modules/numeral/tests/numeral.js
+++ /dev/null
@@ -1,475 +0,0 @@
-// Node
-if (typeof module !== 'undefined' && module.exports) {
- var numeral = require('../numeral');
- var expect = require('chai').expect;
-}
-
-describe('Numeral', function() {
- afterEach(function() {
- numeral.reset();
- });
-
- describe('Default', function() {
- it('should set a default format', function() {
- numeral.defaultFormat('0,0');
-
- expect(numeral(10000).format()).to.equal('10,000');
- });
- });
-
- describe('Types', function() {
- it('should return a value as correct type', function() {
- var tests = [
- [1234.56,'number'],
- ['1234.56','number'],
- [0,'number'],
- [NaN,'object'],
- [null,'object']
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(typeof numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-
- describe('Value', function() {
- it('should return a value', function() {
- var tests = [
- [1000, 1000],
- [0.5, 0.5],
- [null, null],
- ['1,000', 1000],
- ['not a number', null]
- ],
- num;
-
- for (var i = 0; i < tests.length; i++) {
- num = numeral(tests[i][0]);
-
- expect(num.value()).to.equal(tests[i][1]);
- }
- });
- });
-
- describe('Set', function() {
- it('should set a value', function() {
- var tests = [
- [1000,1000],
- [-0.25,-0.25]
- ],
- num;
-
- for (var i = 0; i < tests.length; i++) {
- num = numeral().set(tests[i][0]);
-
- expect(num.value()).to.equal(tests[i][1]);
- }
- });
- });
-
- describe('Custom Zero', function() {
- it('should change zero value', function() {
- var tests = [
- [0,null,'0','0'],
- [0,'N/A','0','N/A'],
- [0,'','','']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- numeral.zeroFormat(tests[i][1]);
-
- expect(numeral(tests[i][0]).format(tests[i][2])).to.equal(tests[i][3]);
- }
- });
- });
-
- describe('Custom Null', function() {
- it('should change null value', function() {
- var tests = [
- [null,null,'0','0'],
- [null,'N/A','0','N/A'],
- [null,'','','']
- ];
-
- for (var i = 0; i < tests.length; i++) {
- numeral.nullFormat(tests[i][1]);
-
- expect(numeral(tests[i][0]).format(tests[i][2])).to.equal(tests[i][3]);
- }
- });
- });
-
- describe('Clone', function() {
- it('should clone', function() {
- var a = numeral(1000),
- b = numeral(a),
- c = a.clone(),
- aVal = a.value(),
- aSet = a.set(2000).value(),
- bVal = b.value(),
- cVal = c.add(10).value();
-
- expect(aVal).to.equal(1000);
- expect(aSet).to.equal(2000);
- expect(bVal).to.equal(1000);
- expect(cVal).to.equal(1010);
- });
- });
-
- describe('isNumeral', function() {
- it('should return boolean', function() {
- var tests = [
- [numeral(),true],
- [1,false]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral.isNumeral(tests[i][0])).to.equal(tests[i][1]);
- }
- });
- });
-
- describe('Format', function() {
- it('should format to a number', function() {
- var tests = [
- [0, null, '0'],
- [0, '0.00', '0.00'],
- [null, null, '0'],
- [NaN, '0.0', '0.0'],
- [1.23,'0,0','1'],
- [10000,'0,0.0000','10,000.0000'],
- [10000.23,'0,0','10,000'],
- [-10000,'0,0.0','-10,000.0'],
- [10000.1234,'0.000','10000.123'],
- [10000,'0[.]00','10000'],
- [10000.1,'0[.]00','10000.10'],
- [10000.123,'0[.]00','10000.12'],
- [10000.456,'0[.]00','10000.46'],
- [10000.001,'0[.]00','10000'],
- [10000.45,'0[.]00[0]','10000.45'],
- [10000.456,'0[.]00[0]','10000.456'],
- [10000,'(0,0.0000)','10,000.0000'],
- [-10000,'(0,0.0000)','(10,000.0000)'],
- [-12300,'+0,0.0000','-12,300.0000'],
- [1230,'+0,0','+1,230'],
- [1230,'-0,0','1,230'],
- [-1230,'-0,0','-1,230'],
- [-1230.4,'0,0.0+','1,230.4-'],
- [-1230.4,'0,0.0-','1,230.4-'],
- [1230.4,'0,0.0-','1,230.4'],
- [100.78, '0', '101'],
- [100.28, '0', '100'],
- [1.932,'0.0','1.9'],
- [1.9687,'0','2'],
- [1.9687,'0.0','2.0'],
- [-0.23,'.00','-.23'],
- [-0.23,'(.00)','(.23)'],
- [0.23,'0.00000','0.23000'],
- [0.67,'0.0[0000]','0.67'],
- [3162.63,'0.0[00000000000000]','3162.63'],
- [1.99,'0.[0]','2'],
- [1.0501,'0.00[0]','1.05'],
- [1.005,'0.00','1.01'],
- // leading zero
- [0, '00.0', '00.0'],
- [0.23, '000.[00]', '000.23'],
- [4, '000', '004'],
- [10, '00000', '00010'],
- [1000, '000,0', '1,000'],
- [1000, '00000,0', '01,000'],
- [1000, '0000000,0', '0,001,000'],
- // abbreviations
- [2000000000,'0.0a','2.0b'],
- [1230974,'0.0a','1.2m'],
- [1460,'0a','1k'],
- [-104000,'0 a','-104 k'],
- [999950,'0.0a','1.0m'],
- [999999999,'0a','1b'],
- // forced abbreviations
- [-5444333222111, '0,0 ak', '-5,444,333,222 k'],
- [5444333222111, '0,0 am', '5,444,333 m'],
- [-5444333222111, '0,0 ab', '-5,444 b'],
- [-5444333222111, '0,0 at', '-5 t'],
- [123456, '0.0[0] ak', '123.46 k'],
- [150,'0.0 ak','0.2 k']
- ],
- i,
- n,
- output;
-
- for (i = 0; i < tests.length; i++) {
- n = numeral(tests[i][0]);
- output = n.format(tests[i][1]);
-
- expect(output).to.equal(tests[i][2]);
-
- expect(typeof output).to.equal('string');
- }
- });
- });
-
- describe('Unformat', function() {
- before(function() {
- numeral.zeroFormat('N/A');
- numeral.nullFormat('N/A');
- });
-
- after(function() {
- numeral.reset();
- });
-
- it('should unformat a number', function() {
- var tests = [
- ['10,000.123', 10000.123],
- ['(0.12345)', -0.12345],
- ['((--0.12345))', 0.12345],
- ['1.23t', 1230000000000],
- ['N/A', 0],
- ['', null],
- // Pass Through for Numbers
- [0, 0],
- [1, 1],
- [1.1, 1.1],
- [-0, 0],
- [-1, -1],
- [-1.1, -1.1]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral(tests[i][0]).value()).to.equal(tests[i][1]);
- }
- });
- });
-
- describe('Validate', function() {
- var locale = 'en';
-
- describe('Numbers', function() {
- it('should validate numbers', function() {
- var tests = [
- ['1000', true],
- ['1,000', true],
- ['10,0,0', true],
- ['10.123', true],
- ['1,000.123', true],
- ['1000,123.123', true],
- ['1000 ', true],
- [' 1000 ', true],
- [' 1000', true],
- [' 1000,100.123', true],
- ['1.0,00', false],
- ['1.0.00', false],
- ['1 000', false],
- ['1.000,123', false],
- ['1000.', false],
- ['1000,', false],
- ['10..00', false],
- ['10,,00', false],
- ['10, 00', false]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral.validate(tests[i][0], locale)).to.equal(tests[i][1]);
- }
- });
- });
-
- describe('Currency', function() {
- it('should validate currency', function() {
- var tests = [
- ['$1000', true],
- ['$1,000', true],
- ['$10,0,0', true],
- ['$10.123', true],
- ['$1,000.123', true],
- ['$1000 ', true],
- [' $1000 ', true],
- [' $1000', true],
- [' $1000,100.123', true],
- ['$100.123k', true],
- ['$100.123m', true],
- ['$100.123b', true],
- ['$100.123t', true],
- ['100,456.123k', true],
- [' 100,456.123t ', true],
- ['$1,00.123k', true],
- ['%100', false],
- [' %1.0.00', false],
- [' ^1 000 ', false],
- ['^1.000 ', false],
- ['$ 1000.', false],
- ['%1000', false],
- ['100,456.123z', false],
- ['$100$', false],
- ['$100,213.456l', false],
- ['aa100,213.456l', false],
- ['$100,213.456kk', false]
- ];
-
- for (var i = 0; i < tests.length; i++) {
- expect(numeral.validate(tests[i][0], locale)).to.equal(tests[i][1]);
- }
- });
- });
- });
-
- describe('Manipulate', function() {
-
- describe('Add', function() {
- it('should add', function() {
- var tests = [
- [1000,10,1010],
- [0.5,3,3.5],
- [-100,200,100],
- [0.1,0.2,0.3],
- [0.28,0.01,0.29],
- [0.289999,0.000001,0.29],
- [0.29,0.01,0.3]
- ],
- num;
-
- for (var i = 0; i < tests.length; i++) {
- num = numeral(tests[i][0]);
-
- num.add(tests[i][1]);
-
- expect(num.value()).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Subtract', function() {
- it('should subtract', function() {
- var tests = [
- [1000,10,990],
- [0.5,3,-2.5],
- [-100,200,-300],
- [0.3,0.1,0.2],
- [0.28,0.01,0.27],
- [0.29,0.01,0.28]
- ],
- num;
-
- for (var i = 0; i < tests.length; i++) {
- num = numeral(tests[i][0]);
-
- num.subtract(tests[i][1]);
-
- expect(num.value()).to.equal(tests[i][2]);
- }
- });
- });
-
-
- describe('Add', function() {
- it('should add', function() {
- });
- });
-
-
- describe('Multiply', function() {
- it('should multiply', function() {
- var tests = [
- [1000,10,10000],
- [0.5,3,1.5],
- [-100,200,-20000],
- [0.1,0.2,0.02],
- [0.28,0.01,0.0028],
- [0.29,0.01,0.0029],
- [0.00000231,10000000,23.1]
- ],
- num;
-
- for (var i = 0; i < tests.length; i++) {
- num = numeral(tests[i][0]);
-
- num.multiply(tests[i][1]);
-
- expect(num.value()).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Divide', function() {
- it('should divide', function() {
- var tests = [
- [1000,10,100],
- [0.5,3,0.16666666666666666],
- [-100,200,-0.5],
- [5.3,0.1,53],
- [0.28,0.01,28],
- [0.29,0.01,29]
- ],
- num;
-
- for (var i = 0; i < tests.length; i++) {
- num = numeral(tests[i][0]);
-
- num.divide(tests[i][1]);
-
- expect(num.value()).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Difference', function() {
- it('should find a difference', function() {
- var tests = [
- [1000,10,990],
- [0.5,3,2.5],
- [-100,200,300],
- [0.3,0.2,0.1],
- [0.28,0.01,0.27],
- [0.29,0.01,0.28]
- ],
- num;
-
- for (var i = 0; i < tests.length; i++) {
- num = numeral(tests[i][0]);
-
- expect(num.difference(tests[i][1])).to.equal(tests[i][2]);
- }
- });
- });
-
- describe('Rounding', function() {
- it('should format with rounding', function() {
- var tests = [
- // value, format string, expected w/ floor, expected w/ ceil
- [2280002, '0.00a', '2.28m', '2.29m'],
- [10000.23,'0,0','10,000', '10,001'],
- [1000.234,'0,0.00','1,000.23', '1,000.24'],
- [0.97487823,'0.000','0.974','0.975'],
- [-0.433,'0.0','-0.5', '-0.4']
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- // floor
- expect(numeral(tests[i][0]).format(tests[i][1], Math.floor)).to.equal(tests[i][2]);
-
- // ceil
- expect(numeral(tests[i][0]).format(tests[i][1], Math.ceil)).to.equal(tests[i][3]);
- }
- });
- });
- });
-
- describe('Utilities', function() {
- describe('Insert', function() {
- it('should insert into string', function() {
- var tests = [
- ['1000', '+', 0, '+1000'],
- ['1000', '-', 4, '1000-']
- ],
- i;
-
- for (i = 0; i < tests.length; i++) {
- expect(numeral._.insert(tests[i][0], tests[i][1], tests[i][2])).to.equal(tests[i][3]);
- }
- });
- });
- });
-});