diff --git a/.esdoc b/.esdoc
deleted file mode 100644
index d90b2eb..0000000
--- a/.esdoc
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "source": "./src",
- "destination": "./esdoc",
- "includes": ["\\.(js)$"],
- "unexportIdentifier": true
-}
diff --git a/.gitignore b/.gitignore
index 2d905a4..20ade3c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ iso-countries-languages.sublime-project
iso-countries-languages.sublime-workspace
.idea
node_modules/
+yarn-error.log
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 0000000..614f698
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,2 @@
+lib/*
+src/packagedJson.json.icl
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..0ee9b70
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,18 @@
+Copyright 2020, Humanitarian OpenStreetMap Team
+
+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/README.md b/README.md
index 463ea91..05e305f 100644
--- a/README.md
+++ b/README.md
@@ -1,24 +1,27 @@
-![ Code documentation ](./esdoc/badge.svg)
-
-
-# iso-countries-languages #
+# iso-countries-languages
This library provides the full list of [ISO 639-1 languages](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) and the full list of [ISO 3166-1 countries](https://en.wikipedia.org/wiki/ISO_3166-1). The library supports 89 languages (the full list is available by querying the library API itself) and it is designed to be easy to import and use.
-# How to install and use#
+## Installation
Simply run the following code and look at the examples to see typical usages:
+
```
-npm install iso-countries-languages
+yarn add @hotosm/iso-countries-languages
```
-# Code documentation
+## Customization
-[ Code documentation ](./esdoc/index.html)
+This library includes data for more than 150 languages. To make the build smaller, we have only 24 languages enabled, but you can easily build that package with more languages enabled. Follow those steps:
-## API list ##
+- Modify [supportedLangs.json](/src/supportedLangs.json)
+- Run `yarn all`
-### getSupportedLangs ###
+To update the countries data from OpenStreetMap, execute `yarn update-countries`
+
+## API list
+
+### getSupportedLangs
Returns the list of supported languages.
@@ -30,17 +33,18 @@ console.log("Supported languages: ");
console.log(supportedLangs);
```
-#### Output ####
+#### Output
+
```
-Supported languages:
+Supported languages:
[ 'af',
'am',
'ar',
'az',
'ba',
-
+
...
-
+
'udm',
'uk',
'ur',
@@ -51,9 +55,10 @@ Supported languages:
'zh' ]
```
-### getCountries ###
+### getCountries
Returns the ISO 3166-1 list of countries translated in the language passed as a parameter.
+
```
var isoCountriesLanguages = require('iso-countries-languages');
@@ -62,16 +67,17 @@ console.log("Countries in french: ");
console.log(countriesInFrench);
```
-#### Output ####
+#### Output
+
```
-Countries in french:
+Countries in french:
{ AF: 'Afghanistan',
AX: 'Les Îles D\'Åland',
AL: 'L\'albanie',
DZ: 'L\'algérie',
AS: 'Samoa Américaines',
AD: 'Andorre',
-
+
...
WF: 'Wallis-et-Futuna',
@@ -81,9 +87,10 @@ Countries in french:
ZW: 'Zimbabwe' }
```
-### getCountry ###
+### getCountry
Returns the translation for the country code passed as a parameter in the language passed as a parameter.
+
```
var isoCountriesLanguages = require('iso-countries-languages');
@@ -92,15 +99,17 @@ console.log("Italy in french: ");
console.log(italyInFrench);
```
-#### Output ####
+#### Output
+
```
-Italy in french:
+Italy in french:
Italie
```
-### getLanguages ###
+### getLanguages
Returns the ISO 639-1 list of languages translated in the language passed as a parameter
+
```
var isoCountriesLanguages = require('iso-countries-languages');
@@ -109,9 +118,10 @@ console.log("Languages in italian: ");
console.log(languagesInItalian);
```
-#### Output ####
+#### Output
+
```
-Languages in italian:
+Languages in italian:
{ ab: 'Di abcasia',
aa: 'Lontano',
af: 'Afrikaans',
@@ -119,7 +129,7 @@ Languages in italian:
sq: 'Albanese',
am: 'Amarico',
ar: 'Arabo',
-
+
...
xh: 'Xhosa',
@@ -130,9 +140,10 @@ Languages in italian:
```
-### getLanguage ###
+### getLanguage
Returns the translation for the language code passed as a parameter in the language passed as a parameter
+
```
var isoCountriesLanguages = require('iso-countries-languages');
@@ -141,8 +152,15 @@ console.log("Spanish in italian: ");
console.log(spanishInItalian);
```
-#### Output ####
+#### Output
+
```
-Spanish in italian:
+Spanish in italian:
Spagnolo
-```
\ No newline at end of file
+```
+
+#### License
+
+MIT License
+
+The country names included in this project came from [OpenStreetMap](https://osm.org/copyright). The data is made available under ODbL.
diff --git a/esdoc/ast/source/index.js.json b/esdoc/ast/source/index.js.json
deleted file mode 100644
index 6731bb9..0000000
--- a/esdoc/ast/source/index.js.json
+++ /dev/null
@@ -1,2207 +0,0 @@
-{
- "type": "Program",
- "body": [
- {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "packagedJson",
- "range": [
- 4,
- 16
- ],
- "loc": {
- "start": {
- "line": 1,
- "column": 4
- },
- "end": {
- "line": 1,
- "column": 16
- }
- }
- },
- "init": {
- "type": "CallExpression",
- "callee": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "JSON",
- "range": [
- 19,
- 23
- ],
- "loc": {
- "start": {
- "line": 1,
- "column": 19
- },
- "end": {
- "line": 1,
- "column": 23
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "parse",
- "range": [
- 24,
- 29
- ],
- "loc": {
- "start": {
- "line": 1,
- "column": 24
- },
- "end": {
- "line": 1,
- "column": 29
- }
- }
- },
- "range": [
- 19,
- 29
- ],
- "loc": {
- "start": {
- "line": 1,
- "column": 19
- },
- "end": {
- "line": 1,
- "column": 29
- }
- }
- },
- "arguments": [
- {
- "type": "CallExpression",
- "callee": {
- "type": "Identifier",
- "name": "require",
- "range": [
- 30,
- 37
- ],
- "loc": {
- "start": {
- "line": 1,
- "column": 30
- },
- "end": {
- "line": 1,
- "column": 37
- }
- }
- },
- "arguments": [
- {
- "type": "Literal",
- "value": "lzstring!./packagedJson.json",
- "raw": "'lzstring!./packagedJson.json'",
- "range": [
- 38,
- 68
- ],
- "loc": {
- "start": {
- "line": 1,
- "column": 38
- },
- "end": {
- "line": 1,
- "column": 68
- }
- }
- }
- ],
- "range": [
- 30,
- 69
- ],
- "loc": {
- "start": {
- "line": 1,
- "column": 30
- },
- "end": {
- "line": 1,
- "column": 69
- }
- }
- }
- ],
- "range": [
- 19,
- 70
- ],
- "loc": {
- "start": {
- "line": 1,
- "column": 19
- },
- "end": {
- "line": 1,
- "column": 70
- }
- }
- },
- "range": [
- 4,
- 70
- ],
- "loc": {
- "start": {
- "line": 1,
- "column": 4
- },
- "end": {
- "line": 1,
- "column": 70
- }
- }
- }
- ],
- "kind": "var",
- "range": [
- 0,
- 71
- ],
- "loc": {
- "start": {
- "line": 1,
- "column": 0
- },
- "end": {
- "line": 1,
- "column": 71
- }
- }
- },
- {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "supportedLangs",
- "range": [
- 76,
- 90
- ],
- "loc": {
- "start": {
- "line": 2,
- "column": 4
- },
- "end": {
- "line": 2,
- "column": 18
- }
- }
- },
- "init": {
- "type": "CallExpression",
- "callee": {
- "type": "Identifier",
- "name": "require",
- "range": [
- 93,
- 100
- ],
- "loc": {
- "start": {
- "line": 2,
- "column": 21
- },
- "end": {
- "line": 2,
- "column": 28
- }
- }
- },
- "arguments": [
- {
- "type": "Literal",
- "value": "json!./supportedLangs.json",
- "raw": "'json!./supportedLangs.json'",
- "range": [
- 101,
- 129
- ],
- "loc": {
- "start": {
- "line": 2,
- "column": 29
- },
- "end": {
- "line": 2,
- "column": 57
- }
- }
- }
- ],
- "range": [
- 93,
- 130
- ],
- "loc": {
- "start": {
- "line": 2,
- "column": 21
- },
- "end": {
- "line": 2,
- "column": 58
- }
- }
- },
- "range": [
- 76,
- 130
- ],
- "loc": {
- "start": {
- "line": 2,
- "column": 4
- },
- "end": {
- "line": 2,
- "column": 58
- }
- }
- }
- ],
- "kind": "var",
- "range": [
- 72,
- 131
- ],
- "loc": {
- "start": {
- "line": 2,
- "column": 0
- },
- "end": {
- "line": 2,
- "column": 59
- }
- },
- "trailingComments": [
- {
- "type": "Block",
- "value": "*\n\t * Returns the list of supported languages\n\t * @return {Array} The list of all the supported languages\n\t ",
- "range": [
- 133,
- 245
- ],
- "loc": {
- "start": {
- "line": 4,
- "column": 0
- },
- "end": {
- "line": 7,
- "column": 4
- }
- }
- }
- ]
- },
- {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "getSupportedLangs",
- "range": [
- 250,
- 267
- ],
- "loc": {
- "start": {
- "line": 8,
- "column": 4
- },
- "end": {
- "line": 8,
- "column": 21
- }
- }
- },
- "init": {
- "type": "FunctionExpression",
- "id": {
- "type": "Identifier",
- "name": "getSupportedLangs",
- "range": [
- 250,
- 267
- ],
- "loc": {
- "start": {
- "line": 8,
- "column": 4
- },
- "end": {
- "line": 8,
- "column": 21
- }
- }
- },
- "params": [],
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ReturnStatement",
- "argument": {
- "type": "Identifier",
- "name": "supportedLangs",
- "range": [
- 291,
- 305
- ],
- "loc": {
- "start": {
- "line": 9,
- "column": 9
- },
- "end": {
- "line": 9,
- "column": 23
- }
- }
- },
- "range": [
- 284,
- 306
- ],
- "loc": {
- "start": {
- "line": 9,
- "column": 2
- },
- "end": {
- "line": 9,
- "column": 24
- }
- }
- }
- ],
- "range": [
- 280,
- 308
- ],
- "loc": {
- "start": {
- "line": 8,
- "column": 34
- },
- "end": {
- "line": 10,
- "column": 1
- }
- }
- },
- "generator": false,
- "expression": false,
- "range": [
- 270,
- 308
- ],
- "loc": {
- "start": {
- "line": 8,
- "column": 24
- },
- "end": {
- "line": 10,
- "column": 1
- }
- }
- },
- "range": [
- 250,
- 308
- ],
- "loc": {
- "start": {
- "line": 8,
- "column": 4
- },
- "end": {
- "line": 10,
- "column": 1
- }
- }
- }
- ],
- "kind": "var",
- "range": [
- 246,
- 309
- ],
- "loc": {
- "start": {
- "line": 8,
- "column": 0
- },
- "end": {
- "line": 10,
- "column": 2
- }
- },
- "leadingComments": [
- {
- "type": "Block",
- "value": "*\n\t * Returns the list of supported languages\n\t * @return {Array} The list of all the supported languages\n\t ",
- "range": [
- 133,
- 245
- ],
- "loc": {
- "start": {
- "line": 4,
- "column": 0
- },
- "end": {
- "line": 7,
- "column": 4
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "Block",
- "value": "*\n * Returns the ISO 3166-1 list of countries translated in the language passed as a parameter\n * @param {String} lang The desired language for the translation\n * @return {Array} The countries list\n ",
- "range": [
- 311,
- 528
- ],
- "loc": {
- "start": {
- "line": 12,
- "column": 0
- },
- "end": {
- "line": 16,
- "column": 5
- }
- }
- }
- ]
- },
- {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "getCountries",
- "range": [
- 533,
- 545
- ],
- "loc": {
- "start": {
- "line": 17,
- "column": 4
- },
- "end": {
- "line": 17,
- "column": 16
- }
- }
- },
- "init": {
- "type": "FunctionExpression",
- "id": {
- "type": "Identifier",
- "name": "getCountries",
- "range": [
- 533,
- 545
- ],
- "loc": {
- "start": {
- "line": 17,
- "column": 4
- },
- "end": {
- "line": 17,
- "column": 16
- }
- }
- },
- "params": [
- {
- "type": "Identifier",
- "name": "lang",
- "range": [
- 557,
- 561
- ],
- "loc": {
- "start": {
- "line": 17,
- "column": 28
- },
- "end": {
- "line": 17,
- "column": 32
- }
- }
- }
- ],
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ReturnStatement",
- "argument": {
- "type": "MemberExpression",
- "computed": true,
- "object": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "packagedJson",
- "range": [
- 573,
- 585
- ],
- "loc": {
- "start": {
- "line": 18,
- "column": 9
- },
- "end": {
- "line": 18,
- "column": 21
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "countries",
- "range": [
- 586,
- 595
- ],
- "loc": {
- "start": {
- "line": 18,
- "column": 22
- },
- "end": {
- "line": 18,
- "column": 31
- }
- }
- },
- "range": [
- 573,
- 595
- ],
- "loc": {
- "start": {
- "line": 18,
- "column": 9
- },
- "end": {
- "line": 18,
- "column": 31
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "lang",
- "range": [
- 596,
- 600
- ],
- "loc": {
- "start": {
- "line": 18,
- "column": 32
- },
- "end": {
- "line": 18,
- "column": 36
- }
- }
- },
- "range": [
- 573,
- 601
- ],
- "loc": {
- "start": {
- "line": 18,
- "column": 9
- },
- "end": {
- "line": 18,
- "column": 37
- }
- }
- },
- "range": [
- 566,
- 602
- ],
- "loc": {
- "start": {
- "line": 18,
- "column": 2
- },
- "end": {
- "line": 18,
- "column": 38
- }
- }
- }
- ],
- "range": [
- 562,
- 604
- ],
- "loc": {
- "start": {
- "line": 17,
- "column": 33
- },
- "end": {
- "line": 19,
- "column": 1
- }
- }
- },
- "generator": false,
- "expression": false,
- "range": [
- 548,
- 604
- ],
- "loc": {
- "start": {
- "line": 17,
- "column": 19
- },
- "end": {
- "line": 19,
- "column": 1
- }
- }
- },
- "range": [
- 533,
- 604
- ],
- "loc": {
- "start": {
- "line": 17,
- "column": 4
- },
- "end": {
- "line": 19,
- "column": 1
- }
- }
- }
- ],
- "kind": "var",
- "range": [
- 529,
- 605
- ],
- "loc": {
- "start": {
- "line": 17,
- "column": 0
- },
- "end": {
- "line": 19,
- "column": 2
- }
- },
- "leadingComments": [
- {
- "type": "Block",
- "value": "*\n * Returns the ISO 3166-1 list of countries translated in the language passed as a parameter\n * @param {String} lang The desired language for the translation\n * @return {Array} The countries list\n ",
- "range": [
- 311,
- 528
- ],
- "loc": {
- "start": {
- "line": 12,
- "column": 0
- },
- "end": {
- "line": 16,
- "column": 5
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "Block",
- "value": "*\n * Returns the translation for the country code passed as a parameter in the language passed as a parameter\n * @param {String} lang The languages desired for the translation\n * @param {String} countryCode The country code for which to return the country name\n * @return {String} The translated country name\n ",
- "range": [
- 609,
- 954
- ],
- "loc": {
- "start": {
- "line": 21,
- "column": 2
- },
- "end": {
- "line": 26,
- "column": 5
- }
- }
- }
- ]
- },
- {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "getCountry",
- "range": [
- 960,
- 970
- ],
- "loc": {
- "start": {
- "line": 27,
- "column": 5
- },
- "end": {
- "line": 27,
- "column": 15
- }
- }
- },
- "init": {
- "type": "FunctionExpression",
- "id": {
- "type": "Identifier",
- "name": "getCountry",
- "range": [
- 960,
- 970
- ],
- "loc": {
- "start": {
- "line": 27,
- "column": 5
- },
- "end": {
- "line": 27,
- "column": 15
- }
- }
- },
- "params": [
- {
- "type": "Identifier",
- "name": "lang",
- "range": [
- 982,
- 986
- ],
- "loc": {
- "start": {
- "line": 27,
- "column": 27
- },
- "end": {
- "line": 27,
- "column": 31
- }
- }
- },
- {
- "type": "Identifier",
- "name": "countryCode",
- "range": [
- 988,
- 999
- ],
- "loc": {
- "start": {
- "line": 27,
- "column": 33
- },
- "end": {
- "line": 27,
- "column": 44
- }
- }
- }
- ],
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ReturnStatement",
- "argument": {
- "type": "MemberExpression",
- "computed": true,
- "object": {
- "type": "MemberExpression",
- "computed": true,
- "object": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "packagedJson",
- "range": [
- 1011,
- 1023
- ],
- "loc": {
- "start": {
- "line": 28,
- "column": 9
- },
- "end": {
- "line": 28,
- "column": 21
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "countries",
- "range": [
- 1024,
- 1033
- ],
- "loc": {
- "start": {
- "line": 28,
- "column": 22
- },
- "end": {
- "line": 28,
- "column": 31
- }
- }
- },
- "range": [
- 1011,
- 1033
- ],
- "loc": {
- "start": {
- "line": 28,
- "column": 9
- },
- "end": {
- "line": 28,
- "column": 31
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "lang",
- "range": [
- 1034,
- 1038
- ],
- "loc": {
- "start": {
- "line": 28,
- "column": 32
- },
- "end": {
- "line": 28,
- "column": 36
- }
- }
- },
- "range": [
- 1011,
- 1039
- ],
- "loc": {
- "start": {
- "line": 28,
- "column": 9
- },
- "end": {
- "line": 28,
- "column": 37
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "countryCode",
- "range": [
- 1040,
- 1051
- ],
- "loc": {
- "start": {
- "line": 28,
- "column": 38
- },
- "end": {
- "line": 28,
- "column": 49
- }
- }
- },
- "range": [
- 1011,
- 1052
- ],
- "loc": {
- "start": {
- "line": 28,
- "column": 9
- },
- "end": {
- "line": 28,
- "column": 50
- }
- }
- },
- "range": [
- 1004,
- 1053
- ],
- "loc": {
- "start": {
- "line": 28,
- "column": 2
- },
- "end": {
- "line": 28,
- "column": 51
- }
- }
- }
- ],
- "range": [
- 1000,
- 1055
- ],
- "loc": {
- "start": {
- "line": 27,
- "column": 45
- },
- "end": {
- "line": 29,
- "column": 1
- }
- }
- },
- "generator": false,
- "expression": false,
- "range": [
- 973,
- 1055
- ],
- "loc": {
- "start": {
- "line": 27,
- "column": 18
- },
- "end": {
- "line": 29,
- "column": 1
- }
- }
- },
- "range": [
- 960,
- 1055
- ],
- "loc": {
- "start": {
- "line": 27,
- "column": 5
- },
- "end": {
- "line": 29,
- "column": 1
- }
- }
- }
- ],
- "kind": "var",
- "range": [
- 955,
- 1056
- ],
- "loc": {
- "start": {
- "line": 27,
- "column": 0
- },
- "end": {
- "line": 29,
- "column": 2
- }
- },
- "leadingComments": [
- {
- "type": "Block",
- "value": "*\n * Returns the translation for the country code passed as a parameter in the language passed as a parameter\n * @param {String} lang The languages desired for the translation\n * @param {String} countryCode The country code for which to return the country name\n * @return {String} The translated country name\n ",
- "range": [
- 609,
- 954
- ],
- "loc": {
- "start": {
- "line": 21,
- "column": 2
- },
- "end": {
- "line": 26,
- "column": 5
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "Block",
- "value": "*\n * Returns the ISO 639-1 list of languages translated in the language passed as a parameter\n * @param {String} lang The desired language for the translation\n * @return {Array} The language list\n ",
- "range": [
- 1060,
- 1275
- ],
- "loc": {
- "start": {
- "line": 31,
- "column": 0
- },
- "end": {
- "line": 35,
- "column": 5
- }
- }
- }
- ]
- },
- {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "getLanguages",
- "range": [
- 1280,
- 1292
- ],
- "loc": {
- "start": {
- "line": 36,
- "column": 4
- },
- "end": {
- "line": 36,
- "column": 16
- }
- }
- },
- "init": {
- "type": "FunctionExpression",
- "id": {
- "type": "Identifier",
- "name": "getLanguages",
- "range": [
- 1280,
- 1292
- ],
- "loc": {
- "start": {
- "line": 36,
- "column": 4
- },
- "end": {
- "line": 36,
- "column": 16
- }
- }
- },
- "params": [
- {
- "type": "Identifier",
- "name": "lang",
- "range": [
- 1304,
- 1308
- ],
- "loc": {
- "start": {
- "line": 36,
- "column": 28
- },
- "end": {
- "line": 36,
- "column": 32
- }
- }
- }
- ],
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ReturnStatement",
- "argument": {
- "type": "MemberExpression",
- "computed": true,
- "object": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "packagedJson",
- "range": [
- 1320,
- 1332
- ],
- "loc": {
- "start": {
- "line": 37,
- "column": 9
- },
- "end": {
- "line": 37,
- "column": 21
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "languages",
- "range": [
- 1333,
- 1342
- ],
- "loc": {
- "start": {
- "line": 37,
- "column": 22
- },
- "end": {
- "line": 37,
- "column": 31
- }
- }
- },
- "range": [
- 1320,
- 1342
- ],
- "loc": {
- "start": {
- "line": 37,
- "column": 9
- },
- "end": {
- "line": 37,
- "column": 31
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "lang",
- "range": [
- 1343,
- 1347
- ],
- "loc": {
- "start": {
- "line": 37,
- "column": 32
- },
- "end": {
- "line": 37,
- "column": 36
- }
- }
- },
- "range": [
- 1320,
- 1348
- ],
- "loc": {
- "start": {
- "line": 37,
- "column": 9
- },
- "end": {
- "line": 37,
- "column": 37
- }
- }
- },
- "range": [
- 1313,
- 1349
- ],
- "loc": {
- "start": {
- "line": 37,
- "column": 2
- },
- "end": {
- "line": 37,
- "column": 38
- }
- }
- }
- ],
- "range": [
- 1309,
- 1351
- ],
- "loc": {
- "start": {
- "line": 36,
- "column": 33
- },
- "end": {
- "line": 38,
- "column": 1
- }
- }
- },
- "generator": false,
- "expression": false,
- "range": [
- 1295,
- 1351
- ],
- "loc": {
- "start": {
- "line": 36,
- "column": 19
- },
- "end": {
- "line": 38,
- "column": 1
- }
- }
- },
- "range": [
- 1280,
- 1351
- ],
- "loc": {
- "start": {
- "line": 36,
- "column": 4
- },
- "end": {
- "line": 38,
- "column": 1
- }
- }
- }
- ],
- "kind": "var",
- "range": [
- 1276,
- 1352
- ],
- "loc": {
- "start": {
- "line": 36,
- "column": 0
- },
- "end": {
- "line": 38,
- "column": 2
- }
- },
- "leadingComments": [
- {
- "type": "Block",
- "value": "*\n * Returns the ISO 639-1 list of languages translated in the language passed as a parameter\n * @param {String} lang The desired language for the translation\n * @return {Array} The language list\n ",
- "range": [
- 1060,
- 1275
- ],
- "loc": {
- "start": {
- "line": 31,
- "column": 0
- },
- "end": {
- "line": 35,
- "column": 5
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "Block",
- "value": "*\n * Returns the translation for the language code passed as a parameter in the language passed as a parameter\n * @param {String} lang The languages desired for the translation\n * @param {String} langCode The language code for which to return the cuntry name\n * @return {String} The translated country name\n",
- "range": [
- 1355,
- 1695
- ],
- "loc": {
- "start": {
- "line": 40,
- "column": 0
- },
- "end": {
- "line": 45,
- "column": 2
- }
- }
- }
- ]
- },
- {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "getLanguage",
- "range": [
- 1700,
- 1711
- ],
- "loc": {
- "start": {
- "line": 46,
- "column": 4
- },
- "end": {
- "line": 46,
- "column": 15
- }
- }
- },
- "init": {
- "type": "FunctionExpression",
- "id": {
- "type": "Identifier",
- "name": "getLanguage",
- "range": [
- 1700,
- 1711
- ],
- "loc": {
- "start": {
- "line": 46,
- "column": 4
- },
- "end": {
- "line": 46,
- "column": 15
- }
- }
- },
- "params": [
- {
- "type": "Identifier",
- "name": "lang",
- "range": [
- 1723,
- 1727
- ],
- "loc": {
- "start": {
- "line": 46,
- "column": 27
- },
- "end": {
- "line": 46,
- "column": 31
- }
- }
- },
- {
- "type": "Identifier",
- "name": "langCode",
- "range": [
- 1729,
- 1737
- ],
- "loc": {
- "start": {
- "line": 46,
- "column": 33
- },
- "end": {
- "line": 46,
- "column": 41
- }
- }
- }
- ],
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ReturnStatement",
- "argument": {
- "type": "MemberExpression",
- "computed": true,
- "object": {
- "type": "MemberExpression",
- "computed": true,
- "object": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "packagedJson",
- "range": [
- 1749,
- 1761
- ],
- "loc": {
- "start": {
- "line": 47,
- "column": 9
- },
- "end": {
- "line": 47,
- "column": 21
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "languages",
- "range": [
- 1762,
- 1771
- ],
- "loc": {
- "start": {
- "line": 47,
- "column": 22
- },
- "end": {
- "line": 47,
- "column": 31
- }
- }
- },
- "range": [
- 1749,
- 1771
- ],
- "loc": {
- "start": {
- "line": 47,
- "column": 9
- },
- "end": {
- "line": 47,
- "column": 31
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "lang",
- "range": [
- 1772,
- 1776
- ],
- "loc": {
- "start": {
- "line": 47,
- "column": 32
- },
- "end": {
- "line": 47,
- "column": 36
- }
- }
- },
- "range": [
- 1749,
- 1777
- ],
- "loc": {
- "start": {
- "line": 47,
- "column": 9
- },
- "end": {
- "line": 47,
- "column": 37
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "langCode",
- "range": [
- 1778,
- 1786
- ],
- "loc": {
- "start": {
- "line": 47,
- "column": 38
- },
- "end": {
- "line": 47,
- "column": 46
- }
- }
- },
- "range": [
- 1749,
- 1787
- ],
- "loc": {
- "start": {
- "line": 47,
- "column": 9
- },
- "end": {
- "line": 47,
- "column": 47
- }
- }
- },
- "range": [
- 1742,
- 1788
- ],
- "loc": {
- "start": {
- "line": 47,
- "column": 2
- },
- "end": {
- "line": 47,
- "column": 48
- }
- }
- }
- ],
- "range": [
- 1738,
- 1790
- ],
- "loc": {
- "start": {
- "line": 46,
- "column": 42
- },
- "end": {
- "line": 48,
- "column": 1
- }
- }
- },
- "generator": false,
- "expression": false,
- "range": [
- 1714,
- 1790
- ],
- "loc": {
- "start": {
- "line": 46,
- "column": 18
- },
- "end": {
- "line": 48,
- "column": 1
- }
- }
- },
- "range": [
- 1700,
- 1790
- ],
- "loc": {
- "start": {
- "line": 46,
- "column": 4
- },
- "end": {
- "line": 48,
- "column": 1
- }
- }
- }
- ],
- "kind": "var",
- "range": [
- 1696,
- 1791
- ],
- "loc": {
- "start": {
- "line": 46,
- "column": 0
- },
- "end": {
- "line": 48,
- "column": 2
- }
- },
- "leadingComments": [
- {
- "type": "Block",
- "value": "*\n * Returns the translation for the language code passed as a parameter in the language passed as a parameter\n * @param {String} lang The languages desired for the translation\n * @param {String} langCode The language code for which to return the cuntry name\n * @return {String} The translated country name\n",
- "range": [
- 1355,
- 1695
- ],
- "loc": {
- "start": {
- "line": 40,
- "column": 0
- },
- "end": {
- "line": 45,
- "column": 2
- }
- }
- }
- ]
- },
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "module",
- "range": [
- 1793,
- 1799
- ],
- "loc": {
- "start": {
- "line": 50,
- "column": 0
- },
- "end": {
- "line": 50,
- "column": 6
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "exports",
- "range": [
- 1800,
- 1807
- ],
- "loc": {
- "start": {
- "line": 50,
- "column": 7
- },
- "end": {
- "line": 50,
- "column": 14
- }
- }
- },
- "range": [
- 1793,
- 1807
- ],
- "loc": {
- "start": {
- "line": 50,
- "column": 0
- },
- "end": {
- "line": 50,
- "column": 14
- }
- }
- },
- "right": {
- "type": "ObjectExpression",
- "properties": [
- {
- "type": "Property",
- "key": {
- "type": "Identifier",
- "name": "getSupportedLangs",
- "range": [
- 1816,
- 1833
- ],
- "loc": {
- "start": {
- "line": 52,
- "column": 2
- },
- "end": {
- "line": 52,
- "column": 19
- }
- }
- },
- "value": {
- "type": "Identifier",
- "name": "getSupportedLangs",
- "range": [
- 1835,
- 1852
- ],
- "loc": {
- "start": {
- "line": 52,
- "column": 21
- },
- "end": {
- "line": 52,
- "column": 38
- }
- }
- },
- "kind": "init",
- "method": false,
- "shorthand": false,
- "computed": false,
- "range": [
- 1816,
- 1852
- ],
- "loc": {
- "start": {
- "line": 52,
- "column": 2
- },
- "end": {
- "line": 52,
- "column": 38
- }
- }
- },
- {
- "type": "Property",
- "key": {
- "type": "Identifier",
- "name": "getCountries",
- "range": [
- 1857,
- 1869
- ],
- "loc": {
- "start": {
- "line": 54,
- "column": 2
- },
- "end": {
- "line": 54,
- "column": 14
- }
- }
- },
- "value": {
- "type": "Identifier",
- "name": "getCountries",
- "range": [
- 1871,
- 1883
- ],
- "loc": {
- "start": {
- "line": 54,
- "column": 16
- },
- "end": {
- "line": 54,
- "column": 28
- }
- }
- },
- "kind": "init",
- "method": false,
- "shorthand": false,
- "computed": false,
- "range": [
- 1857,
- 1883
- ],
- "loc": {
- "start": {
- "line": 54,
- "column": 2
- },
- "end": {
- "line": 54,
- "column": 28
- }
- }
- },
- {
- "type": "Property",
- "key": {
- "type": "Identifier",
- "name": "getCountry",
- "range": [
- 1888,
- 1898
- ],
- "loc": {
- "start": {
- "line": 56,
- "column": 2
- },
- "end": {
- "line": 56,
- "column": 12
- }
- }
- },
- "value": {
- "type": "Identifier",
- "name": "getCountry",
- "range": [
- 1900,
- 1910
- ],
- "loc": {
- "start": {
- "line": 56,
- "column": 14
- },
- "end": {
- "line": 56,
- "column": 24
- }
- }
- },
- "kind": "init",
- "method": false,
- "shorthand": false,
- "computed": false,
- "range": [
- 1888,
- 1910
- ],
- "loc": {
- "start": {
- "line": 56,
- "column": 2
- },
- "end": {
- "line": 56,
- "column": 24
- }
- }
- },
- {
- "type": "Property",
- "key": {
- "type": "Identifier",
- "name": "getLanguages",
- "range": [
- 1916,
- 1928
- ],
- "loc": {
- "start": {
- "line": 58,
- "column": 2
- },
- "end": {
- "line": 58,
- "column": 14
- }
- }
- },
- "value": {
- "type": "Identifier",
- "name": "getLanguages",
- "range": [
- 1930,
- 1942
- ],
- "loc": {
- "start": {
- "line": 58,
- "column": 16
- },
- "end": {
- "line": 58,
- "column": 28
- }
- }
- },
- "kind": "init",
- "method": false,
- "shorthand": false,
- "computed": false,
- "range": [
- 1916,
- 1942
- ],
- "loc": {
- "start": {
- "line": 58,
- "column": 2
- },
- "end": {
- "line": 58,
- "column": 28
- }
- }
- },
- {
- "type": "Property",
- "key": {
- "type": "Identifier",
- "name": "getLanguage",
- "range": [
- 1947,
- 1958
- ],
- "loc": {
- "start": {
- "line": 60,
- "column": 2
- },
- "end": {
- "line": 60,
- "column": 13
- }
- }
- },
- "value": {
- "type": "Identifier",
- "name": "getLanguage",
- "range": [
- 1960,
- 1971
- ],
- "loc": {
- "start": {
- "line": 60,
- "column": 15
- },
- "end": {
- "line": 60,
- "column": 26
- }
- }
- },
- "kind": "init",
- "method": false,
- "shorthand": false,
- "computed": false,
- "range": [
- 1947,
- 1971
- ],
- "loc": {
- "start": {
- "line": 60,
- "column": 2
- },
- "end": {
- "line": 60,
- "column": 26
- }
- }
- }
- ],
- "range": [
- 1810,
- 1974
- ],
- "loc": {
- "start": {
- "line": 50,
- "column": 17
- },
- "end": {
- "line": 62,
- "column": 1
- }
- }
- },
- "range": [
- 1793,
- 1974
- ],
- "loc": {
- "start": {
- "line": 50,
- "column": 0
- },
- "end": {
- "line": 62,
- "column": 1
- }
- }
- },
- "range": [
- 1793,
- 1975
- ],
- "loc": {
- "start": {
- "line": 50,
- "column": 0
- },
- "end": {
- "line": 62,
- "column": 2
- }
- }
- }
- ],
- "sourceType": "module",
- "range": [
- 0,
- 1975
- ],
- "loc": {
- "start": {
- "line": 1,
- "column": 0
- },
- "end": {
- "line": 62,
- "column": 2
- }
- },
- "comments": [
- {
- "type": "Block",
- "value": "*\n\t * Returns the list of supported languages\n\t * @return {Array} The list of all the supported languages\n\t ",
- "range": [
- 133,
- 245
- ],
- "loc": {
- "start": {
- "line": 4,
- "column": 0
- },
- "end": {
- "line": 7,
- "column": 4
- }
- }
- },
- {
- "type": "Block",
- "value": "*\n * Returns the ISO 3166-1 list of countries translated in the language passed as a parameter\n * @param {String} lang The desired language for the translation\n * @return {Array} The countries list\n ",
- "range": [
- 311,
- 528
- ],
- "loc": {
- "start": {
- "line": 12,
- "column": 0
- },
- "end": {
- "line": 16,
- "column": 5
- }
- }
- },
- {
- "type": "Block",
- "value": "*\n * Returns the translation for the country code passed as a parameter in the language passed as a parameter\n * @param {String} lang The languages desired for the translation\n * @param {String} countryCode The country code for which to return the country name\n * @return {String} The translated country name\n ",
- "range": [
- 609,
- 954
- ],
- "loc": {
- "start": {
- "line": 21,
- "column": 2
- },
- "end": {
- "line": 26,
- "column": 5
- }
- }
- },
- {
- "type": "Block",
- "value": "*\n * Returns the ISO 639-1 list of languages translated in the language passed as a parameter\n * @param {String} lang The desired language for the translation\n * @return {Array} The language list\n ",
- "range": [
- 1060,
- 1275
- ],
- "loc": {
- "start": {
- "line": 31,
- "column": 0
- },
- "end": {
- "line": 35,
- "column": 5
- }
- }
- },
- {
- "type": "Block",
- "value": "*\n * Returns the translation for the language code passed as a parameter in the language passed as a parameter\n * @param {String} lang The languages desired for the translation\n * @param {String} langCode The language code for which to return the cuntry name\n * @return {String} The translated country name\n",
- "range": [
- 1355,
- 1695
- ],
- "loc": {
- "start": {
- "line": 40,
- "column": 0
- },
- "end": {
- "line": 45,
- "column": 2
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/esdoc/badge.svg b/esdoc/badge.svg
deleted file mode 100644
index 8d5bb8c..0000000
--- a/esdoc/badge.svg
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- document
- document
- 71%
- 71%
-
-
diff --git a/esdoc/coverage.json b/esdoc/coverage.json
deleted file mode 100644
index 42b6b8f..0000000
--- a/esdoc/coverage.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "coverage": "71.42%",
- "expectCount": 7,
- "actualCount": 5,
- "files": {
- "src/index.js": {
- "expectCount": 7,
- "actualCount": 5,
- "undocumentLines": [
- 1,
- 2
- ]
- }
- }
-}
\ No newline at end of file
diff --git a/esdoc/css/prettify-tomorrow.css b/esdoc/css/prettify-tomorrow.css
deleted file mode 100644
index b6f92a7..0000000
--- a/esdoc/css/prettify-tomorrow.css
+++ /dev/null
@@ -1,132 +0,0 @@
-/* Tomorrow Theme */
-/* Original theme - https://github.com/chriskempson/tomorrow-theme */
-/* Pretty printing styles. Used with prettify.js. */
-/* SPAN elements with the classes below are added by prettyprint. */
-/* plain text */
-.pln {
- color: #4d4d4c; }
-
-@media screen {
- /* string content */
- .str {
- color: #718c00; }
-
- /* a keyword */
- .kwd {
- color: #8959a8; }
-
- /* a comment */
- .com {
- color: #8e908c; }
-
- /* a type name */
- .typ {
- color: #4271ae; }
-
- /* a literal value */
- .lit {
- color: #f5871f; }
-
- /* punctuation */
- .pun {
- color: #4d4d4c; }
-
- /* lisp open bracket */
- .opn {
- color: #4d4d4c; }
-
- /* lisp close bracket */
- .clo {
- color: #4d4d4c; }
-
- /* a markup tag name */
- .tag {
- color: #c82829; }
-
- /* a markup attribute name */
- .atn {
- color: #f5871f; }
-
- /* a markup attribute value */
- .atv {
- color: #3e999f; }
-
- /* a declaration */
- .dec {
- color: #f5871f; }
-
- /* a variable name */
- .var {
- color: #c82829; }
-
- /* a function name */
- .fun {
- color: #4271ae; } }
-/* Use higher contrast and text-weight for printable form. */
-@media print, projection {
- .str {
- color: #060; }
-
- .kwd {
- color: #006;
- font-weight: bold; }
-
- .com {
- color: #600;
- font-style: italic; }
-
- .typ {
- color: #404;
- font-weight: bold; }
-
- .lit {
- color: #044; }
-
- .pun, .opn, .clo {
- color: #440; }
-
- .tag {
- color: #006;
- font-weight: bold; }
-
- .atn {
- color: #404; }
-
- .atv {
- color: #060; } }
-/* Style */
-/*
-pre.prettyprint {
- background: white;
- font-family: Consolas, Monaco, 'Andale Mono', monospace;
- font-size: 12px;
- line-height: 1.5;
- border: 1px solid #ccc;
- padding: 10px; }
-*/
-
-/* Specify class=linenums on a pre to get line numbering */
-ol.linenums {
- margin-top: 0;
- margin-bottom: 0; }
-
-/* IE indents via margin-left */
-li.L0,
-li.L1,
-li.L2,
-li.L3,
-li.L4,
-li.L5,
-li.L6,
-li.L7,
-li.L8,
-li.L9 {
- /* */ }
-
-/* Alternate shading for lines */
-li.L1,
-li.L3,
-li.L5,
-li.L7,
-li.L9 {
- /* */ }
diff --git a/esdoc/css/style.css b/esdoc/css/style.css
deleted file mode 100644
index baf349f..0000000
--- a/esdoc/css/style.css
+++ /dev/null
@@ -1,944 +0,0 @@
-@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700);
-
-* {
- margin: 0;
- padding: 0;
- text-decoration: none;
-}
-
-html
-{
- font-family: 'Roboto', sans-serif;
- overflow: auto;
- font-size: 14px;
- /*color: #4d4e53;*/
- color: rgba(0, 0, 0, .68);
- background-color: #fff;
-}
-
-a {
- /*color: #0095dd;*/
- /*color:rgb(37, 138, 175);*/
- color: #039BE5;
-}
-
-code a:hover {
- text-decoration: underline;
-}
-
-ul, ol {
- padding-left: 20px;
-}
-
-ul li {
- list-style: disc;
- margin: 4px 0;
-}
-
-ol li {
- margin: 4px 0;
-}
-
-h1 {
- margin-bottom: 10px;
- font-size: 34px;
- font-weight: 300;
- border-bottom: solid 1px #ddd;
-}
-
-h2 {
- margin-top: 24px;
- margin-bottom: 10px;
- font-size: 20px;
- border-bottom: solid 1px #ddd;
- font-weight: 300;
-}
-
-h3 {
- position: relative;
- font-size: 16px;
- margin-bottom: 12px;
- background-color: #E2E2E2;
- padding: 4px;
- font-weight: 300;
-}
-
-del {
- text-decoration: line-through;
-}
-
-p {
- margin-bottom: 15px;
- line-height: 1.5;
-}
-
-p > code {
- background-color: #f5f5f5;
- border-radius: 3px;
-}
-
-pre > code {
- display: block;
-}
-
-pre.prettyprint, pre > code {
- padding: 4px;
- margin: 1em 0;
- background-color: #f5f5f5;
- border-radius: 3px;
-}
-
-pre.prettyprint > code {
- margin: 0;
-}
-
-p > code,
-li > code {
- padding: 0 4px;
- border-radius: 3px;
-}
-
-.import-path pre.prettyprint,
-.import-path pre.prettyprint code {
- margin: 0;
- padding: 0;
- border: none;
- background: white;
-}
-
-.layout-container {
- /*display: flex;*/
- /*flex-direction: row;*/
- /*justify-content: flex-start;*/
- /*align-items: stretch;*/
-}
-
-.layout-container > header {
- height: 40px;
- line-height: 40px;
- font-size: 16px;
- padding: 0 10px;
- margin: 0;
- position: fixed;
- width: 100%;
- z-index: 1;
- background-color: white;
- top: 0;
- border-bottom: solid 1px #E02130;
-}
-.layout-container > header > a{
- margin: 0 5px;
-}
-
-.layout-container > header > a.repo-url-github {
- font-size: 0;
- display: inline-block;
- width: 20px;
- height: 38px;
- background: url("../image/github.png") no-repeat center;
- background-size: 20px;
- vertical-align: top;
-}
-
-.navigation {
- position: fixed;
- top: 0;
- left: 0;
- box-sizing: border-box;
- width: 250px;
- height: 100%;
- padding-top: 40px;
- padding-left: 15px;
- padding-bottom: 2em;
- margin-top:1em;
- overflow-x: scroll;
- box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset;
- border-right: 1px solid rgba(0, 0, 0, 0.1);
-}
-
-.navigation ul {
- padding: 0;
-}
-
-.navigation li {
- list-style: none;
- margin: 4px 0;
- white-space: nowrap;
-}
-
-.navigation .nav-dir-path {
- margin-top: 0.7em;
- margin-bottom: 0.25em;
- font-size: 0.8em;
- color: #aaa;
-}
-
-.kind-class,
-.kind-interface,
-.kind-function,
-.kind-typedef,
-.kind-variable,
-.kind-external {
- margin-left: 0.75em;
- width: 1.2em;
- height: 1.2em;
- display: inline-block;
- text-align: center;
- border-radius: 0.2em;
- margin-right: 0.2em;
- font-weight: bold;
-}
-
-.kind-class {
- color: #009800;
- background-color: #bfe5bf;
-}
-
-.kind-interface {
- color: #fbca04;
- background-color: #fef2c0;
-}
-
-.kind-function {
- color: #6b0090;
- background-color: #d6bdde;
-}
-
-.kind-variable {
- color: #eb6420;
- background-color: #fad8c7;
-}
-
-.kind-typedef {
- color: #db001e;
- background-color: #edbec3;
-}
-
-.kind-external {
- color: #0738c3;
- background-color: #bbcbea;
-}
-
-h1 .version,
-h1 .url a {
- font-size: 14px;
- color: #aaa;
-}
-
-.content {
- margin-top: 40px;
- margin-left: 250px;
- padding: 10px 50px 10px 20px;
-}
-
-.header-notice {
- font-size: 14px;
- color: #aaa;
- margin: 0;
-}
-
-.expression-extends .prettyprint {
- margin-left: 10px;
- background: white;
-}
-
-.extends-chain {
- border-bottom: 1px solid#ddd;
- padding-bottom: 10px;
- margin-bottom: 10px;
-}
-
-.extends-chain span:nth-of-type(1) {
- padding-left: 10px;
-}
-
-.extends-chain > div {
- margin: 5px 0;
-}
-
-.description table {
- font-size: 14px;
- border-spacing: 0;
- border: 0;
- border-collapse: collapse;
-}
-
-.description thead {
- background: #999;
- color: white;
-}
-
-.description table td,
-.description table th {
- border: solid 1px #ddd;
- padding: 4px;
- font-weight: normal;
-}
-
-.flat-list ul {
- padding-left: 0;
-}
-
-.flat-list li {
- display: inline;
- list-style: none;
-}
-
-table.summary {
- width: 100%;
- margin: 10px 0;
- border-spacing: 0;
- border: 0;
- border-collapse: collapse;
-}
-
-table.summary thead {
- background: #999;
- color: white;
-}
-
-table.summary td {
- border: solid 1px #ddd;
- padding: 4px 10px;
-}
-
-table.summary tbody td:nth-child(1) {
- text-align: right;
- white-space: nowrap;
- min-width: 64px;
- vertical-align: top;
-}
-
-table.summary tbody td:nth-child(2) {
- width: 100%;
- border-right: none;
-}
-
-table.summary tbody td:nth-child(3) {
- white-space: nowrap;
- border-left: none;
- vertical-align: top;
-}
-
-table.summary td > div:nth-of-type(2) {
- padding-top: 4px;
- padding-left: 15px;
-}
-
-table.summary td p {
- margin-bottom: 0;
-}
-
-.inherited-summary thead td {
- padding-left: 2px;
-}
-
-.inherited-summary thead a {
- color: white;
-}
-
-.inherited-summary .summary tbody {
- display: none;
-}
-
-.inherited-summary .summary .toggle {
- padding: 0 4px;
- font-size: 12px;
- cursor: pointer;
-}
-.inherited-summary .summary .toggle.closed:before {
- content: "▶";
-}
-.inherited-summary .summary .toggle.opened:before {
- content: "▼";
-}
-
-.member, .method {
- margin-bottom: 24px;
-}
-
-table.params {
- width: 100%;
- margin: 10px 0;
- border-spacing: 0;
- border: 0;
- border-collapse: collapse;
-}
-
-table.params thead {
- background: #eee;
- color: #aaa;
-}
-
-table.params td {
- padding: 4px;
- border: solid 1px #ddd;
-}
-
-table.params td p {
- margin: 0;
-}
-
-.content .detail > * {
- margin: 15px 0;
-}
-
-.content .detail > h3 {
- color: black;
-}
-
-.content .detail > div {
- margin-left: 10px;
-}
-
-.content .detail > .import-path {
- margin-top: -8px;
-}
-
-.content .detail + .detail {
- margin-top: 30px;
-}
-
-.content .detail .throw td:first-child {
- padding-right: 10px;
-}
-
-.content .detail h4 + :not(pre) {
- padding-left: 0;
- margin-left: 10px;
-}
-
-.content .detail h4 + ul li {
- list-style: none;
-}
-
-.return-param * {
- display: inline;
-}
-
-.argument-params {
- margin-bottom: 20px;
-}
-
-.return-type {
- padding-right: 10px;
- font-weight: normal;
-}
-
-.return-desc {
- margin-left: 10px;
- margin-top: 4px;
-}
-
-.return-desc p {
- margin: 0;
-}
-
-.deprecated, .experimental, .instance-docs {
- border-left: solid 5px orange;
- padding-left: 4px;
- margin: 4px 0;
-}
-
-tr.listen p,
-tr.throw p,
-tr.emit p{
- margin-bottom: 10px;
-}
-
-.version, .since {
- color: #aaa;
-}
-
-h3 .right-info {
- position: absolute;
- right: 4px;
- font-size: 14px;
-}
-
-.version + .since:before {
- content: '| ';
-}
-
-.see {
- margin-top: 10px;
-}
-
-.see h4 {
- margin: 4px 0;
-}
-
-.content .detail h4 + .example-doc {
- margin: 6px 0;
-}
-
-.example-caption {
- position: relative;
- bottom: -1px;
- display: inline-block;
- padding: 4px;
- font-style: italic;
- background-color: #f5f5f5;
- font-weight: bold;
- border-radius: 3px;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
-}
-
-.example-caption + pre.source-code {
- margin-top: 0;
- border-top-left-radius: 0;
-}
-
-footer, .file-footer {
- text-align: right;
- font-style: italic;
- font-weight: 100;
- font-size: 13px;
- margin-right: 50px;
- margin-left: 270px;
- border-top: 1px solid #ddd;
- padding-top: 30px;
- margin-top: 20px;
- padding-bottom: 10px;
-}
-
-pre.source-code {
- background: #f5f5f5;
- padding: 4px;
-}
-
-pre.raw-source-code > code {
- padding: 0;
- margin: 0;
-}
-
-pre.source-code.line-number {
- padding: 0;
-}
-
-pre.source-code ol {
- background: #eee;
- padding-left: 40px;
-}
-
-pre.source-code li {
- background: white;
- padding-left: 4px;
- list-style: decimal;
- margin: 0;
-}
-
-pre.source-code.line-number li.active {
- background: rgb(255, 255, 150);
-}
-
-pre.source-code.line-number li.error-line {
- background: #ffb8bf;
-}
-
-table.files-summary {
- width: 100%;
- margin: 10px 0;
- border-spacing: 0;
- border: 0;
- border-collapse: collapse;
- text-align: right;
-}
-
-table.files-summary tbody tr:hover {
- background: #eee;
-}
-
-table.files-summary td:first-child,
-table.files-summary td:nth-of-type(2) {
- text-align: left;
-}
-
-table.files-summary[data-use-coverage="false"] td.coverage {
- display: none;
-}
-
-table.files-summary thead {
- background: #999;
- color: white;
-}
-
-table.files-summary td {
- border: solid 1px #ddd;
- padding: 4px 10px;
- vertical-align: top;
-}
-
-table.files-summary td.identifiers > span {
- display: block;
- margin-top: 4px;
-}
-table.files-summary td.identifiers > span:first-child {
- margin-top: 0;
-}
-
-table.files-summary .coverage-count {
- font-size: 12px;
- color: #aaa;
- display: inline-block;
- min-width: 40px;
-}
-
-.total-coverage-count {
- position: relative;
- bottom: 2px;
- font-size: 12px;
- color: #666;
- font-weight: 500;
- padding-left: 5px;
-}
-
-table.test-summary thead {
- background: #999;
- color: white;
-}
-
-table.test-summary thead .test-description {
- width: 50%;
-}
-
-table.test-summary {
- width: 100%;
- margin: 10px 0;
- border-spacing: 0;
- border: 0;
- border-collapse: collapse;
-}
-
-table.test-summary thead .test-count {
- width: 3em;
-}
-
-table.test-summary tbody tr:hover {
- background-color: #eee;
-}
-
-table.test-summary td {
- border: solid 1px #ddd;
- padding: 4px 10px;
- vertical-align: top;
-}
-
-table.test-summary td p {
- margin: 0;
-}
-
-table.test-summary tr.test-describe .toggle {
- display: inline-block;
- float: left;
- margin-right: 4px;
- cursor: pointer;
-}
-
-table.test-summary tr.test-describe .toggle.opened:before {
- content: '▼';
-}
-
-table.test-summary tr.test-describe .toggle.closed:before {
- content: '▶';
-}
-
-table.test-summary .test-target > span {
- display: block;
- margin-top: 4px;
-}
-table.test-summary .test-target > span:first-child {
- margin-top: 0;
-}
-
-.inner-link-active {
- background: rgb(255, 255, 150);
-}
-
-/* search box */
-.search-box {
- position: absolute;
- top: 10px;
- right: 50px;
- padding-right: 8px;
- padding-bottom: 10px;
- line-height: normal;
- font-size: 12px;
-}
-
-.search-box img {
- width: 20px;
- vertical-align: top;
-}
-
-.search-input {
- display: inline;
- visibility: hidden;
- width: 0;
- padding: 2px;
- height: 1.5em;
- outline: none;
- background: transparent;
- border: 1px #0af;
- border-style: none none solid none;
- vertical-align: bottom;
-}
-
-.search-input-edge {
- display: none;
- width: 1px;
- height: 5px;
- background-color: #0af;
- vertical-align: bottom;
-}
-
-.search-result {
- position: absolute;
- display: none;
- height: 600px;
- width: 100%;
- padding: 0;
- margin-top: 5px;
- margin-left: 24px;
- background: white;
- box-shadow: 1px 1px 4px rgb(0,0,0);
- white-space: nowrap;
- overflow-y: scroll;
-}
-
-.search-result-import-path {
- color: #aaa;
- font-size: 12px;
-}
-
-.search-result li {
- list-style: none;
- padding: 2px 4px;
-}
-
-.search-result li a {
- display: block;
-}
-
-.search-result li.selected {
- background: #ddd;
-}
-
-.search-result li.search-separator {
- background: rgb(37, 138, 175);
- color: white;
-}
-
-.search-box.active .search-input {
- visibility: visible;
- transition: width 0.2s ease-out;
- width: 300px;
-}
-
-.search-box.active .search-input-edge {
- display: inline-block;
-}
-
-/* coverage badge */
-.esdoc-coverage {
- display: inline-block;
- height: 20px;
- vertical-align: top;
-}
-
-h1 .esdoc-coverage {
- position: relative;
- top: -4px;
-}
-
-.esdoc-coverage-wrap {
- color: white;
- font-size: 12px;
- font-weight: 500;
-}
-
-.esdoc-coverage-label {
- padding: 3px 4px 3px 6px;
- background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%);
- border-radius: 4px 0 0 4px;
- display: inline-block;
- height: 20px;
- box-sizing: border-box;
- line-height: 14px;
-}
-
-.esdoc-coverage-ratio {
- padding: 3px 6px 3px 4px;
- border-radius: 0 4px 4px 0;
- display: inline-block;
- height: 20px;
- box-sizing: border-box;
- line-height: 14px;
-}
-
-.esdoc-coverage-low {
- background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%);
-}
-
-.esdoc-coverage-middle {
- background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%);
-}
-
-.esdoc-coverage-high {
- background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%);
-}
-
-.github-markdown .manual-toc {
- padding-left: 0;
-}
-
-/** manual */
-
-.manual-root .navigation {
- padding-left: 0;
-}
-
-.navigation .manual-toc-title {
- margin: 0;
- padding: 0.5em 0 0.5em 1em;
- border: none;
- font-size: 1em;
- font-weight: normal;
-}
-
-.navigation .manual-toc-title:first-child {
- margin-top: 0;
-}
-
-.navigation .manual-toc {
- display: none;
- margin-left: 0.5em;
- margin-top: -0.25em;
-}
-
-.github-markdown .manual-toc-title a {
- color: inherit;
-}
-
-.manual-breadcrumb-list {
- font-size: 0.8em;
- margin-bottom: 1em;
-}
-
-.manual-toc-title a:hover {
- color: #039BE5;
-}
-
-.manual-toc li {
- margin: 0.75em 0;
- list-style-type: none;
-}
-
-.manual-toc .indent-h1 {
- margin-left: 0;
-}
-.manual-toc .indent-h2 {
- margin-left: 1em;
-}
-.manual-toc .indent-h3 {
- margin-left: 3em;
-}
-.manual-toc .indent-h4 {
- margin-left: 4em;
-}
-.manual-toc .indent-h5 {
- margin-left: 5em;
-}
-
-.manual-nav li {
- margin: 0.75em 0;
-}
-
-.manual-dot {
- margin-left: 0.75em;
- width: 0.6em;
- height: 0.6em;
- display: inline-block;
- border-radius: 0.3em;
- margin-right: 0.3em;
- background-color: #bfe5bf;
-}
-
-/* github markdown */
-.github-markdown {
- font-size: 16px;
-}
-
-.github-markdown h1,
-.github-markdown h2,
-.github-markdown h3,
-.github-markdown h4,
-.github-markdown h5 {
- margin-top: 1em;
- margin-bottom: 16px;
- font-weight: bold;
- padding: 0;
-}
-
-.github-markdown h1:nth-of-type(1) {
- margin-top: 0;
-}
-
-.github-markdown h1 {
- font-size: 2em;
- padding-bottom: 0.3em;
-}
-
-.github-markdown h2 {
- font-size: 1.75em;
- padding-bottom: 0.3em;
-}
-
-.github-markdown h3 {
- font-size: 1.5em;
- background-color: transparent;
-}
-
-.github-markdown h4 {
- font-size: 1.25em;
-}
-
-.github-markdown h5 {
- font-size: 1em;
-}
-
-.github-markdown ul, .github-markdown ol {
- padding-left: 2em;
-}
-
-.github-markdown pre > code {
- font-size: 0.85em;
-}
-
-.github-markdown table {
- margin-bottom: 1em;
- border-collapse: collapse;
- border-spacing: 0;
-}
-
-.github-markdown table tr {
- background-color: #fff;
- border-top: 1px solid #ccc;
-}
-
-.github-markdown table th,
-.github-markdown table td {
- padding: 6px 13px;
- border: 1px solid #ddd;
-}
-
-.github-markdown table tr:nth-child(2n) {
- background-color: #f8f8f8;
-}
-
-/** badge(.svg) does not have border */
-.github-markdown img:not([src*=".svg"]) {
- max-width: 100%;
- box-shadow: 1px 1px 1px rgba(0,0,0,0.5);
-}
diff --git a/esdoc/dump.json b/esdoc/dump.json
deleted file mode 100644
index 16589d0..0000000
--- a/esdoc/dump.json
+++ /dev/null
@@ -1,961 +0,0 @@
-[
- {
- "__docId__": 0,
- "kind": "file",
- "static": true,
- "variation": null,
- "name": "src/index.js",
- "memberof": null,
- "longname": "src/index.js",
- "access": null,
- "description": null,
- "lineNumber": 1,
- "content": "var packagedJson = JSON.parse(require('lzstring!./packagedJson.json'));\nvar supportedLangs = require('json!./supportedLangs.json');\n\n/**\n\t * Returns the list of supported languages\n\t * @return {Array} The list of all the supported languages\n\t */\nvar getSupportedLangs = function(){\n return supportedLangs;\n};\n\n/**\n * Returns the ISO 3166-1 list of countries translated in the language passed as a parameter\n * @param {String} lang The desired language for the translation\n * @return {Array} The countries list\n */\nvar getCountries = function(lang){\n return packagedJson.countries[lang];\n};\n\n /**\n * Returns the translation for the country code passed as a parameter in the language passed as a parameter\n * @param {String} lang The languages desired for the translation\n * @param {String} countryCode The country code for which to return the country name\n * @return {String} The translated country name\n */\nvar getCountry = function(lang, countryCode){\n return packagedJson.countries[lang][countryCode];\n};\n \n/**\n * Returns the ISO 639-1 list of languages translated in the language passed as a parameter\n * @param {String} lang The desired language for the translation\n * @return {Array} The language list\n */\nvar getLanguages = function(lang){\n return packagedJson.languages[lang];\n};\n \n/**\n * Returns the translation for the language code passed as a parameter in the language passed as a parameter\n * @param {String} lang The languages desired for the translation\n * @param {String} langCode The language code for which to return the cuntry name\n * @return {String} The translated country name\n*/\nvar getLanguage = function(lang, langCode){\n return packagedJson.languages[lang][langCode];\n};\n\nmodule.exports = {\n\t\n getSupportedLangs: getSupportedLangs,\n\n getCountries: getCountries,\n\n getCountry: getCountry,\n \n getLanguages: getLanguages,\n\n getLanguage: getLanguage\n\n};"
- },
- {
- "__docId__": 1,
- "kind": "variable",
- "static": true,
- "variation": null,
- "name": "packagedJson",
- "memberof": "src/index.js",
- "longname": "src/index.js~packagedJson",
- "access": null,
- "export": false,
- "importPath": "iso-countries-languages/src/index.js",
- "importStyle": null,
- "description": null,
- "lineNumber": 1,
- "undocument": true,
- "type": {
- "types": [
- "*"
- ]
- }
- },
- {
- "__docId__": 2,
- "kind": "variable",
- "static": true,
- "variation": null,
- "name": "supportedLangs",
- "memberof": "src/index.js",
- "longname": "src/index.js~supportedLangs",
- "access": null,
- "export": false,
- "importPath": "iso-countries-languages/src/index.js",
- "importStyle": null,
- "description": null,
- "lineNumber": 2,
- "undocument": true,
- "type": {
- "types": [
- "*"
- ]
- }
- },
- {
- "__docId__": 3,
- "kind": "function",
- "static": true,
- "variation": null,
- "name": "getSupportedLangs",
- "memberof": "src/index.js",
- "longname": "src/index.js~getSupportedLangs",
- "access": null,
- "export": false,
- "importPath": "iso-countries-languages/src/index.js",
- "importStyle": null,
- "description": "Returns the list of supported languages",
- "lineNumber": 8,
- "params": [],
- "return": {
- "nullable": null,
- "types": [
- "Array"
- ],
- "spread": false,
- "description": "The list of all the supported languages"
- },
- "generator": false
- },
- {
- "__docId__": 4,
- "kind": "function",
- "static": true,
- "variation": null,
- "name": "getCountries",
- "memberof": "src/index.js",
- "longname": "src/index.js~getCountries",
- "access": null,
- "export": false,
- "importPath": "iso-countries-languages/src/index.js",
- "importStyle": null,
- "description": "Returns the ISO 3166-1 list of countries translated in the language passed as a parameter",
- "lineNumber": 17,
- "params": [
- {
- "nullable": null,
- "types": [
- "String"
- ],
- "spread": false,
- "optional": false,
- "name": "lang",
- "description": "The desired language for the translation"
- }
- ],
- "return": {
- "nullable": null,
- "types": [
- "Array"
- ],
- "spread": false,
- "description": "The countries list"
- },
- "generator": false
- },
- {
- "__docId__": 5,
- "kind": "function",
- "static": true,
- "variation": null,
- "name": "getCountry",
- "memberof": "src/index.js",
- "longname": "src/index.js~getCountry",
- "access": null,
- "export": false,
- "importPath": "iso-countries-languages/src/index.js",
- "importStyle": null,
- "description": "Returns the translation for the country code passed as a parameter in the language passed as a parameter",
- "lineNumber": 27,
- "params": [
- {
- "nullable": null,
- "types": [
- "String"
- ],
- "spread": false,
- "optional": false,
- "name": "lang",
- "description": "The languages desired for the translation"
- },
- {
- "nullable": null,
- "types": [
- "String"
- ],
- "spread": false,
- "optional": false,
- "name": "countryCode",
- "description": "The country code for which to return the country name"
- }
- ],
- "return": {
- "nullable": null,
- "types": [
- "String"
- ],
- "spread": false,
- "description": "The translated country name"
- },
- "generator": false
- },
- {
- "__docId__": 6,
- "kind": "function",
- "static": true,
- "variation": null,
- "name": "getLanguages",
- "memberof": "src/index.js",
- "longname": "src/index.js~getLanguages",
- "access": null,
- "export": false,
- "importPath": "iso-countries-languages/src/index.js",
- "importStyle": null,
- "description": "Returns the ISO 639-1 list of languages translated in the language passed as a parameter",
- "lineNumber": 36,
- "params": [
- {
- "nullable": null,
- "types": [
- "String"
- ],
- "spread": false,
- "optional": false,
- "name": "lang",
- "description": "The desired language for the translation"
- }
- ],
- "return": {
- "nullable": null,
- "types": [
- "Array"
- ],
- "spread": false,
- "description": "The language list"
- },
- "generator": false
- },
- {
- "__docId__": 7,
- "kind": "function",
- "static": true,
- "variation": null,
- "name": "getLanguage",
- "memberof": "src/index.js",
- "longname": "src/index.js~getLanguage",
- "access": null,
- "export": false,
- "importPath": "iso-countries-languages/src/index.js",
- "importStyle": null,
- "description": "Returns the translation for the language code passed as a parameter in the language passed as a parameter",
- "lineNumber": 46,
- "params": [
- {
- "nullable": null,
- "types": [
- "String"
- ],
- "spread": false,
- "optional": false,
- "name": "lang",
- "description": "The languages desired for the translation"
- },
- {
- "nullable": null,
- "types": [
- "String"
- ],
- "spread": false,
- "optional": false,
- "name": "langCode",
- "description": "The language code for which to return the cuntry name"
- }
- ],
- "return": {
- "nullable": null,
- "types": [
- "String"
- ],
- "spread": false,
- "description": "The translated country name"
- },
- "generator": false
- },
- {
- "__docId__": 9,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Infinity",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 10,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "NaN",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 11,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "undefined",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 12,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "null",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~null",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 13,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Object",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Object",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 14,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "object",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~object",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 15,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Function",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Function",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 16,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "function",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~function",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 17,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Boolean",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 18,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "boolean",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 19,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Symbol",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 20,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Error",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Error",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 21,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "EvalError",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 22,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "InternalError",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 23,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "RangeError",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 24,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "ReferenceError",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 25,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "SyntaxError",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 26,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "TypeError",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 27,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "URIError",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 28,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Number",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Number",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 29,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "number",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~number",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 30,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Date",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Date",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 31,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "String",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~String",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 32,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "string",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~string",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 33,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "RegExp",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 34,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Array",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Array",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 35,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Int8Array",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 36,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Uint8Array",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 37,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Uint8ClampedArray",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 38,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Int16Array",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 39,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Uint16Array",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 40,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Int32Array",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 41,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Uint32Array",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 42,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Float32Array",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 43,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Float64Array",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 44,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Map",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Map",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 45,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Set",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Set",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 46,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "WeakMap",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 47,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "WeakSet",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 48,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "ArrayBuffer",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 49,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "DataView",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 50,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "JSON",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 51,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Promise",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 52,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Generator",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 53,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "GeneratorFunction",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 54,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Reflect",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 55,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Proxy",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy",
- "memberof": "BuiltinExternal/ECMAScriptExternal.js",
- "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 57,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "CanvasRenderingContext2D",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D",
- "memberof": "BuiltinExternal/WebAPIExternal.js",
- "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 58,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "DocumentFragment",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment",
- "memberof": "BuiltinExternal/WebAPIExternal.js",
- "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 59,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Element",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element",
- "memberof": "BuiltinExternal/WebAPIExternal.js",
- "longname": "BuiltinExternal/WebAPIExternal.js~Element",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 60,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Event",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event",
- "memberof": "BuiltinExternal/WebAPIExternal.js",
- "longname": "BuiltinExternal/WebAPIExternal.js~Event",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 61,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "Node",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node",
- "memberof": "BuiltinExternal/WebAPIExternal.js",
- "longname": "BuiltinExternal/WebAPIExternal.js~Node",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 62,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "NodeList",
- "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList",
- "memberof": "BuiltinExternal/WebAPIExternal.js",
- "longname": "BuiltinExternal/WebAPIExternal.js~NodeList",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 63,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "XMLHttpRequest",
- "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest",
- "memberof": "BuiltinExternal/WebAPIExternal.js",
- "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest",
- "access": null,
- "description": "",
- "builtinExternal": true
- },
- {
- "__docId__": 64,
- "kind": "external",
- "static": true,
- "variation": null,
- "name": "AudioContext",
- "externalLink": "https://developer.mozilla.org/en/docs/Web/API/AudioContext",
- "memberof": "BuiltinExternal/WebAPIExternal.js",
- "longname": "BuiltinExternal/WebAPIExternal.js~AudioContext",
- "access": null,
- "description": "",
- "builtinExternal": true
- }
-]
\ No newline at end of file
diff --git a/esdoc/file/src/index.js.html b/esdoc/file/src/index.js.html
deleted file mode 100644
index a50f090..0000000
--- a/esdoc/file/src/index.js.html
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
-
- src/index.js | API Document
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-src/index.js
-
var packagedJson = JSON.parse(require('lzstring!./packagedJson.json'));
-var supportedLangs = require('json!./supportedLangs.json');
-
-/**
- * Returns the list of supported languages
- * @return {Array} The list of all the supported languages
- */
-var getSupportedLangs = function(){
- return supportedLangs;
-};
-
-/**
- * Returns the ISO 3166-1 list of countries translated in the language passed as a parameter
- * @param {String} lang The desired language for the translation
- * @return {Array} The countries list
- */
-var getCountries = function(lang){
- return packagedJson.countries[lang];
-};
-
- /**
- * Returns the translation for the country code passed as a parameter in the language passed as a parameter
- * @param {String} lang The languages desired for the translation
- * @param {String} countryCode The country code for which to return the country name
- * @return {String} The translated country name
- */
-var getCountry = function(lang, countryCode){
- return packagedJson.countries[lang][countryCode];
-};
-
-/**
- * Returns the ISO 639-1 list of languages translated in the language passed as a parameter
- * @param {String} lang The desired language for the translation
- * @return {Array} The language list
- */
-var getLanguages = function(lang){
- return packagedJson.languages[lang];
-};
-
-/**
- * Returns the translation for the language code passed as a parameter in the language passed as a parameter
- * @param {String} lang The languages desired for the translation
- * @param {String} langCode The language code for which to return the cuntry name
- * @return {String} The translated country name
-*/
-var getLanguage = function(lang, langCode){
- return packagedJson.languages[lang][langCode];
-};
-
-module.exports = {
-
- getSupportedLangs: getSupportedLangs,
-
- getCountries: getCountries,
-
- getCountry: getCountry,
-
- getLanguages: getLanguages,
-
- getLanguage: getLanguage
-
-};
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/esdoc/function/index.html b/esdoc/function/index.html
deleted file mode 100644
index 45ec3a6..0000000
--- a/esdoc/function/index.html
+++ /dev/null
@@ -1,543 +0,0 @@
-
-
-
-
-
- Function | API Document
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Function
-
- Static Public Summary
-
-
-
-
- public
-
-
-
-
-
-
-
-
-
-
-
Returns the ISO 3166-1 list of countries translated in the language passed as a parameter
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
-
-
-
-
-
-
-
Returns the translation for the country code passed as a parameter in the language passed as a parameter
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
-
-
-
-
-
-
-
Returns the translation for the language code passed as a parameter in the language passed as a parameter
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
-
-
-
-
-
-
-
Returns the ISO 639-1 list of languages translated in the language passed as a parameter
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
-
-
-
-
-
-
-
Returns the list of supported languages
-
-
-
-
-
-
-
-
-
-
-
-
Static Public
-
-
-
- public
-
-
-
-
- getCountries (lang: String ): Array
-
-
-
- source
-
-
-
-
-
-
-
Returns the ISO 3166-1 list of countries translated in the language passed as a parameter
-
-
-
-
-
-
Params:
-
-
- Name Type Attribute Description
-
-
-
-
- lang
- String
-
- The desired language for the translation
-
-
-
-
-
-
-
-
-
Return:
-
-
- Array
- The countries list
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
- getCountry (lang: String , countryCode: String ): String
-
-
-
- source
-
-
-
-
-
-
-
Returns the translation for the country code passed as a parameter in the language passed as a parameter
-
-
-
-
-
-
Params:
-
-
- Name Type Attribute Description
-
-
-
-
- lang
- String
-
- The languages desired for the translation
-
-
-
- countryCode
- String
-
- The country code for which to return the country name
-
-
-
-
-
-
-
-
-
Return:
-
-
- String
- The translated country name
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
- getLanguage (lang: String , langCode: String ): String
-
-
-
- source
-
-
-
-
-
-
-
Returns the translation for the language code passed as a parameter in the language passed as a parameter
-
-
-
-
-
-
Params:
-
-
- Name Type Attribute Description
-
-
-
-
- lang
- String
-
- The languages desired for the translation
-
-
-
- langCode
- String
-
- The language code for which to return the cuntry name
-
-
-
-
-
-
-
-
-
Return:
-
-
- String
- The translated country name
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
- getLanguages (lang: String ): Array
-
-
-
- source
-
-
-
-
-
-
-
Returns the ISO 639-1 list of languages translated in the language passed as a parameter
-
-
-
-
-
-
Params:
-
-
- Name Type Attribute Description
-
-
-
-
- lang
- String
-
- The desired language for the translation
-
-
-
-
-
-
-
-
-
Return:
-
-
- Array
- The language list
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
- getSupportedLangs (): Array
-
-
-
- source
-
-
-
-
-
-
-
Returns the list of supported languages
-
-
-
-
-
-
-
-
-
Return:
-
-
- Array
- The list of all the supported languages
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/esdoc/identifiers.html b/esdoc/identifiers.html
deleted file mode 100644
index e1e8fbb..0000000
--- a/esdoc/identifiers.html
+++ /dev/null
@@ -1,259 +0,0 @@
-
-
-
-
-
- Index | API Document
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-References
-
-
-
Function Summary
- Static Public Function Summary
-
-
-
-
- public
-
-
-
-
-
-
-
-
-
-
-
Returns the ISO 3166-1 list of countries translated in the language passed as a parameter
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
-
-
-
-
-
-
-
Returns the translation for the country code passed as a parameter in the language passed as a parameter
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
-
-
-
-
-
-
-
Returns the translation for the language code passed as a parameter in the language passed as a parameter
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
-
-
-
-
-
-
-
Returns the ISO 639-1 list of languages translated in the language passed as a parameter
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
-
-
-
-
-
-
-
Returns the list of supported languages
-
-
-
-
-
-
-
-
-
-
-
-
Variable Summary
- Static Public Variable Summary
-
-
-
-
- public
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/esdoc/image/badge.svg b/esdoc/image/badge.svg
deleted file mode 100644
index 324db4c..0000000
--- a/esdoc/image/badge.svg
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- document
- document
- @ratio@
- @ratio@
-
-
diff --git a/esdoc/image/github.png b/esdoc/image/github.png
deleted file mode 100644
index ea6ff54..0000000
Binary files a/esdoc/image/github.png and /dev/null differ
diff --git a/esdoc/image/search.png b/esdoc/image/search.png
deleted file mode 100644
index f5d84b6..0000000
Binary files a/esdoc/image/search.png and /dev/null differ
diff --git a/esdoc/index.html b/esdoc/index.html
deleted file mode 100644
index ee7f67d..0000000
--- a/esdoc/index.html
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-
-
-
- API Document
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
iso-countries-languages
-
This library provides the full list of ISO 639-1 languages and the full list of ISO 3166-1 countries . The library supports 89 languages (the full list is available by querying the library API itself) and it is designed to be easy to import and use.
-
Code documentation
-
Code documentation
-
API list
-
getSupportedLangs
-
Returns the list of supported languages.
-
var isoCountriesLanguages = require('../lib/iso-countries-languages.js');
-
-var supportedLangs = isoCountriesLanguages.getSupportedLangs();
-console.log("Supported languages: ");
-console.log(supportedLangs);
-
Output
-
Supported languages:
-[ 'af',
- 'am',
- 'ar',
- 'az',
- 'ba',
-
- ...
-
- 'udm',
- 'uk',
- 'ur',
- 'uz',
- 'vi',
- 'xh',
- 'yi',
- 'zh' ]
-
getCountries
-
Returns the ISO 3166-1 list of countries translated in the language passed as a parameter.
-
var isoCountriesLanguages = require('../lib/iso-countries-languages.js');
-
-var countriesInFrench = isoCountriesLanguages.getCountries('fr');
-console.log("Countries in french: ");
-console.log(countriesInFrench);
-
Output
-
Countries in french:
-{ AF: 'Afghanistan',
- AX: 'Les Îles D\'Åland',
- AL: 'L\'albanie',
- DZ: 'L\'algérie',
- AS: 'Samoa Américaines',
- AD: 'Andorre',
-
- ...
-
- WF: 'Wallis-et-Futuna',
- EH: 'Sahara Occidental',
- YE: 'Yémen',
- ZM: 'La zambie',
- ZW: 'Zimbabwe' }
-
getCountry
-
Returns the translation for the country code passed as a parameter in the language passed as a parameter.
-
var isoCountriesLanguages = require('../lib/iso-countries-languages.js');
-
-var italyInFrench = isoCountriesLanguages.getCountry('fr', 'IT');
-console.log("Italy in french: ");
-console.log(italyInFrench);
-
Output
-
Italy in french:
-Italie
-
getLanguages
-
Returns the ISO 639-1 list of languages translated in the language passed as a parameter
-
var isoCountriesLanguages = require('../lib/iso-countries-languages.js');
-
-var languagesInItalian = isoCountriesLanguages.getLanguages('it');
-console.log("Languages in italian: ");
-console.log(languagesInItalian);
-
Output
-
Languages in italian:
-{ ab: 'Di abcasia',
- aa: 'Lontano',
- af: 'Afrikaans',
- ak: 'Akan',
- sq: 'Albanese',
- am: 'Amarico',
- ar: 'Arabo',
-
- ...
-
- xh: 'Xhosa',
- yi: 'Yiddish',
- yo: 'Yoruba',
- za: 'Zhuang, Chuang',
- zu: 'Zulu' }
-
getLanguage
-
Returns the translation for the language code passed as a parameter in the language passed as a parameter
-
var isoCountriesLanguages = require('../lib/iso-countries-languages.js');
-
-var spanishInItalian = isoCountriesLanguages.getLanguage('it', 'es');
-console.log("Spanish in italian: ");
-console.log(spanishInItalian);
-
Output
-
Spanish in italian:
-Spagnolo
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/esdoc/package.json b/esdoc/package.json
deleted file mode 100644
index c3c9db6..0000000
--- a/esdoc/package.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "name": "iso-countries-languages",
- "version": "0.0.0",
- "description": "ISO 639-1 languages and ISO 3166-1 countries translated in 89 languages",
- "main": "./lib/iso-countries-languages.js",
- "scripts": {
- "build": "NODE_ENV=production webpack --progress"
- },
- "repository": {
- "type": "git",
- "url": "https://bitbucket.org/pinturic/iso-countries-languages"
- },
- "author": "Luca Tagliaferri",
- "license": "MIT",
- "devDependencies": {
- "json-loader": "^0.5.4",
- "lzstring-loader": "^0.2.0",
- "webpack": "1.12.2"
- },
- "dependencies": {}
-}
diff --git a/esdoc/script/inherited-summary.js b/esdoc/script/inherited-summary.js
deleted file mode 100644
index 0a35b6d..0000000
--- a/esdoc/script/inherited-summary.js
+++ /dev/null
@@ -1,28 +0,0 @@
-(function(){
- function toggle(ev) {
- var button = ev.target;
- var parent = ev.target.parentElement;
- while(parent) {
- if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break;
- parent = parent.parentElement;
- }
-
- if (!parent) return;
-
- var tbody = parent.querySelector('tbody');
- if (button.classList.contains('opened')) {
- button.classList.remove('opened');
- button.classList.add('closed');
- tbody.style.display = 'none';
- } else {
- button.classList.remove('closed');
- button.classList.add('opened');
- tbody.style.display = 'block';
- }
- }
-
- var buttons = document.querySelectorAll('.inherited-summary thead .toggle');
- for (var i = 0; i < buttons.length; i++) {
- buttons[i].addEventListener('click', toggle);
- }
-})();
diff --git a/esdoc/script/inner-link.js b/esdoc/script/inner-link.js
deleted file mode 100644
index 69a7477..0000000
--- a/esdoc/script/inner-link.js
+++ /dev/null
@@ -1,31 +0,0 @@
-// inner link(#foo) can not correctly scroll, because page has fixed header,
-// so, I manually scroll.
-(function(){
- var matched = location.hash.match(/errorLines=([\d,]+)/);
- if (matched) return;
-
- function adjust() {
- window.scrollBy(0, -55);
- var el = document.querySelector('.inner-link-active');
- if (el) el.classList.remove('inner-link-active');
-
- // ``[ ] . ' " @`` are not valid in DOM id. so must escape these.
- var id = location.hash.replace(/([\[\].'"@$])/g, '\\$1');
- var el = document.querySelector(id);
- if (el) el.classList.add('inner-link-active');
- }
-
- window.addEventListener('hashchange', adjust);
-
- if (location.hash) {
- setTimeout(adjust, 0);
- }
-})();
-
-(function(){
- var els = document.querySelectorAll('[href^="#"]');
- for (var i = 0; i < els.length; i++) {
- var el = els[i];
- el.href = location.href + el.getAttribute('href'); // because el.href is absolute path
- }
-})();
diff --git a/esdoc/script/manual.js b/esdoc/script/manual.js
deleted file mode 100644
index 125049d..0000000
--- a/esdoc/script/manual.js
+++ /dev/null
@@ -1,13 +0,0 @@
-(function(){
- var matched = location.pathname.match(/([^/]*)\.html$/);
- if (!matched) return;
-
- var currentName = matched[1];
- var cssClass = '.navigation [data-toc-name="' + currentName + '"]';
- var styleText = cssClass + ' .manual-toc { display: block; }\n';
- styleText += cssClass + ' .manual-toc-title { background-color: #039BE5; }\n';
- styleText += cssClass + ' .manual-toc-title a { color: white; }\n';
- var style = document.createElement('style');
- style.textContent = styleText;
- document.querySelector('head').appendChild(style);
-})();
diff --git a/esdoc/script/patch-for-local.js b/esdoc/script/patch-for-local.js
deleted file mode 100644
index 5756d13..0000000
--- a/esdoc/script/patch-for-local.js
+++ /dev/null
@@ -1,8 +0,0 @@
-(function(){
- if (location.protocol === 'file:') {
- var elms = document.querySelectorAll('a[href="./"]');
- for (var i = 0; i < elms.length; i++) {
- elms[i].href = './index.html';
- }
- }
-})();
diff --git a/esdoc/script/prettify/Apache-License-2.0.txt b/esdoc/script/prettify/Apache-License-2.0.txt
deleted file mode 100644
index d645695..0000000
--- a/esdoc/script/prettify/Apache-License-2.0.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/esdoc/script/prettify/prettify.js b/esdoc/script/prettify/prettify.js
deleted file mode 100644
index eef5ad7..0000000
--- a/esdoc/script/prettify/prettify.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
-(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
-[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
-l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
-q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
-q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
-"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
-a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
-for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
-"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
-H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
-J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+
-I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]+/],["dec",/^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^
-
-
-
-
-
-
-
-
-
-
-
-Source 5/7
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-