@parcel/utils 2.0.0-nightly.1274 → 2.0.0-nightly.1277

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1170,7 +1170,7 @@ var $5MQDC = parcelRequire("5MQDC");
1170
1170
  * Tokenize input until we reach end-of-string
1171
1171
  */ while(!eos()){
1172
1172
  value = advance();
1173
- if (value === "\0") continue;
1173
+ if (value === "\x00") continue;
1174
1174
  /**
1175
1175
  * Escaped characters
1176
1176
  */ if (value === "\\") {
@@ -1856,19 +1856,19 @@ parcelRequire.register("1Sf6D", function(module, exports) {
1856
1856
  /* eslint-disable no-new-wrappers, no-eval, camelcase, operator-linebreak */ module.exports = makeParserClass((parcelRequire("8E52p")));
1857
1857
  module.exports.makeParserClass = makeParserClass;
1858
1858
  class TomlError extends Error {
1859
- constructor(msg){
1860
- super(msg);
1859
+ constructor(msg11){
1860
+ super(msg11);
1861
1861
  this.name = "TomlError";
1862
1862
  /* istanbul ignore next */ if (Error.captureStackTrace) Error.captureStackTrace(this, TomlError);
1863
1863
  this.fromTOML = true;
1864
1864
  this.wrapped = null;
1865
1865
  }
1866
1866
  }
1867
- TomlError.wrap = (err)=>{
1868
- const terr = new TomlError(err.message);
1869
- terr.code = err.code;
1870
- terr.wrapped = err;
1871
- return terr;
1867
+ TomlError.wrap = (err11)=>{
1868
+ const terr11 = new TomlError(err11.message);
1869
+ terr11.code = err11.code;
1870
+ terr11.wrapped = err11;
1871
+ return terr11;
1872
1872
  };
1873
1873
  module.exports.TomlError = TomlError;
1874
1874
 
@@ -1936,23 +1936,23 @@ const escapes = {
1936
1936
  [CHAR_QUOT]: '"',
1937
1937
  [CHAR_BSOL]: "\\"
1938
1938
  };
1939
- function isDigit(cp) {
1940
- return cp >= CHAR_0 && cp <= CHAR_9;
1939
+ function isDigit(cp11) {
1940
+ return cp11 >= CHAR_0 && cp11 <= CHAR_9;
1941
1941
  }
1942
- function isHexit(cp) {
1943
- return cp >= CHAR_A && cp <= CHAR_F || cp >= CHAR_a && cp <= CHAR_f || cp >= CHAR_0 && cp <= CHAR_9;
1942
+ function isHexit(cp11) {
1943
+ return cp11 >= CHAR_A && cp11 <= CHAR_F || cp11 >= CHAR_a && cp11 <= CHAR_f || cp11 >= CHAR_0 && cp11 <= CHAR_9;
1944
1944
  }
1945
- function isBit(cp) {
1946
- return cp === CHAR_1 || cp === CHAR_0;
1945
+ function isBit(cp11) {
1946
+ return cp11 === CHAR_1 || cp11 === CHAR_0;
1947
1947
  }
1948
- function isOctit(cp) {
1949
- return cp >= CHAR_0 && cp <= CHAR_7;
1948
+ function isOctit(cp11) {
1949
+ return cp11 >= CHAR_0 && cp11 <= CHAR_7;
1950
1950
  }
1951
- function isAlphaNumQuoteHyphen(cp) {
1952
- return cp >= CHAR_A && cp <= CHAR_Z || cp >= CHAR_a && cp <= CHAR_z || cp >= CHAR_0 && cp <= CHAR_9 || cp === CHAR_APOS || cp === CHAR_QUOT || cp === CHAR_LOWBAR || cp === CHAR_HYPHEN;
1951
+ function isAlphaNumQuoteHyphen(cp11) {
1952
+ return cp11 >= CHAR_A && cp11 <= CHAR_Z || cp11 >= CHAR_a && cp11 <= CHAR_z || cp11 >= CHAR_0 && cp11 <= CHAR_9 || cp11 === CHAR_APOS || cp11 === CHAR_QUOT || cp11 === CHAR_LOWBAR || cp11 === CHAR_HYPHEN;
1953
1953
  }
1954
- function isAlphaNumHyphen(cp) {
1955
- return cp >= CHAR_A && cp <= CHAR_Z || cp >= CHAR_a && cp <= CHAR_z || cp >= CHAR_0 && cp <= CHAR_9 || cp === CHAR_LOWBAR || cp === CHAR_HYPHEN;
1954
+ function isAlphaNumHyphen(cp11) {
1955
+ return cp11 >= CHAR_A && cp11 <= CHAR_Z || cp11 >= CHAR_a && cp11 <= CHAR_z || cp11 >= CHAR_0 && cp11 <= CHAR_9 || cp11 === CHAR_LOWBAR || cp11 === CHAR_HYPHEN;
1956
1956
  }
1957
1957
  const _type = Symbol("type");
1958
1958
  const _declared = Symbol("declared");
@@ -1964,9 +1964,9 @@ const descriptor = {
1964
1964
  writable: true,
1965
1965
  value: undefined
1966
1966
  };
1967
- function hasKey(obj, key) {
1968
- if (hasOwnProperty.call(obj, key)) return true;
1969
- if (key === "__proto__") defineProperty(obj, "__proto__", descriptor);
1967
+ function hasKey(obj11, key11) {
1968
+ if (hasOwnProperty.call(obj11, key11)) return true;
1969
+ if (key11 === "__proto__") defineProperty(obj11, "__proto__", descriptor);
1970
1970
  return false;
1971
1971
  }
1972
1972
  const INLINE_TABLE = Symbol("inline-table");
@@ -1977,9 +1977,9 @@ function InlineTable() {
1977
1977
  }
1978
1978
  });
1979
1979
  }
1980
- function isInlineTable(obj) {
1981
- if (obj === null || typeof obj !== "object") return false;
1982
- return obj[_type] === INLINE_TABLE;
1980
+ function isInlineTable(obj11) {
1981
+ if (obj11 === null || typeof obj11 !== "object") return false;
1982
+ return obj11[_type] === INLINE_TABLE;
1983
1983
  }
1984
1984
  const TABLE = Symbol("table");
1985
1985
  function Table() {
@@ -1993,25 +1993,25 @@ function Table() {
1993
1993
  }
1994
1994
  });
1995
1995
  }
1996
- function isTable(obj) {
1997
- if (obj === null || typeof obj !== "object") return false;
1998
- return obj[_type] === TABLE;
1996
+ function isTable(obj11) {
1997
+ if (obj11 === null || typeof obj11 !== "object") return false;
1998
+ return obj11[_type] === TABLE;
1999
1999
  }
2000
2000
  const _contentType = Symbol("content-type");
2001
2001
  const INLINE_LIST = Symbol("inline-list");
2002
- function InlineList(type) {
2002
+ function InlineList(type11) {
2003
2003
  return Object.defineProperties([], {
2004
2004
  [_type]: {
2005
2005
  value: INLINE_LIST
2006
2006
  },
2007
2007
  [_contentType]: {
2008
- value: type
2008
+ value: type11
2009
2009
  }
2010
2010
  });
2011
2011
  }
2012
- function isInlineList(obj) {
2013
- if (obj === null || typeof obj !== "object") return false;
2014
- return obj[_type] === INLINE_LIST;
2012
+ function isInlineList(obj11) {
2013
+ if (obj11 === null || typeof obj11 !== "object") return false;
2014
+ return obj11[_type] === INLINE_LIST;
2015
2015
  }
2016
2016
  const LIST = Symbol("list");
2017
2017
  function List() {
@@ -2021,9 +2021,9 @@ function List() {
2021
2021
  }
2022
2022
  });
2023
2023
  }
2024
- function isList(obj) {
2025
- if (obj === null || typeof obj !== "object") return false;
2026
- return obj[_type] === LIST;
2024
+ function isList(obj11) {
2025
+ if (obj11 === null || typeof obj11 !== "object") return false;
2026
+ return obj11[_type] === LIST;
2027
2027
  }
2028
2028
  // in an eval, to let bundlers not slurp in a util proxy
2029
2029
  let _custom;
@@ -2034,10 +2034,10 @@ try {
2034
2034
  /* eval require not available in transpiled bundle */ }
2035
2035
  /* istanbul ignore next */ const _inspect = _custom || "inspect";
2036
2036
  class BoxedBigInt {
2037
- constructor(value){
2037
+ constructor(value11){
2038
2038
  try {
2039
- this.value = $parcel$global.BigInt.asIntN(64, value);
2040
- } catch (_) {
2039
+ this.value = $parcel$global.BigInt.asIntN(64, value11);
2040
+ } catch (_11) {
2041
2041
  /* istanbul ignore next */ this.value = null;
2042
2042
  }
2043
2043
  Object.defineProperty(this, _type, {
@@ -2058,12 +2058,12 @@ class BoxedBigInt {
2058
2058
  }
2059
2059
  }
2060
2060
  const INTEGER = Symbol("integer");
2061
- function Integer(value) {
2062
- let num = Number(value);
2061
+ function Integer(value11) {
2062
+ let num11 = Number(value11);
2063
2063
  // -0 is a float thing, not an int thing
2064
- if (Object.is(num, -0)) num = 0;
2065
- /* istanbul ignore else */ if ($parcel$global.BigInt && !Number.isSafeInteger(num)) return new BoxedBigInt(value);
2066
- else /* istanbul ignore next */ return Object.defineProperties(new Number(num), {
2064
+ if (Object.is(num11, -0)) num11 = 0;
2065
+ /* istanbul ignore else */ if ($parcel$global.BigInt && !Number.isSafeInteger(num11)) return new BoxedBigInt(value11);
2066
+ else /* istanbul ignore next */ return Object.defineProperties(new Number(num11), {
2067
2067
  isNaN: {
2068
2068
  value: function() {
2069
2069
  return isNaN(this);
@@ -2073,35 +2073,35 @@ function Integer(value) {
2073
2073
  value: INTEGER
2074
2074
  },
2075
2075
  [_inspect]: {
2076
- value: ()=>`[Integer: ${value}]`
2076
+ value: ()=>`[Integer: ${value11}]`
2077
2077
  }
2078
2078
  });
2079
2079
  }
2080
- function isInteger(obj) {
2081
- if (obj === null || typeof obj !== "object") return false;
2082
- return obj[_type] === INTEGER;
2080
+ function isInteger(obj11) {
2081
+ if (obj11 === null || typeof obj11 !== "object") return false;
2082
+ return obj11[_type] === INTEGER;
2083
2083
  }
2084
2084
  const FLOAT = Symbol("float");
2085
- function Float(value) {
2086
- /* istanbul ignore next */ return Object.defineProperties(new Number(value), {
2085
+ function Float(value11) {
2086
+ /* istanbul ignore next */ return Object.defineProperties(new Number(value11), {
2087
2087
  [_type]: {
2088
2088
  value: FLOAT
2089
2089
  },
2090
2090
  [_inspect]: {
2091
- value: ()=>`[Float: ${value}]`
2091
+ value: ()=>`[Float: ${value11}]`
2092
2092
  }
2093
2093
  });
2094
2094
  }
2095
- function isFloat(obj) {
2096
- if (obj === null || typeof obj !== "object") return false;
2097
- return obj[_type] === FLOAT;
2095
+ function isFloat(obj11) {
2096
+ if (obj11 === null || typeof obj11 !== "object") return false;
2097
+ return obj11[_type] === FLOAT;
2098
2098
  }
2099
- function tomlType(value) {
2100
- const type = typeof value;
2101
- if (type === "object") {
2102
- /* istanbul ignore if */ if (value === null) return "null";
2103
- if (value instanceof Date) return "datetime";
2104
- /* istanbul ignore else */ if (_type in value) switch(value[_type]){
2099
+ function tomlType(value11) {
2100
+ const type11 = typeof value11;
2101
+ if (type11 === "object") {
2102
+ /* istanbul ignore if */ if (value11 === null) return "null";
2103
+ if (value11 instanceof Date) return "datetime";
2104
+ /* istanbul ignore else */ if (_type in value11) switch(value11[_type]){
2105
2105
  case INLINE_TABLE:
2106
2106
  return "inline-table";
2107
2107
  case INLINE_LIST:
@@ -2116,10 +2116,10 @@ function tomlType(value) {
2116
2116
  return "integer";
2117
2117
  }
2118
2118
  }
2119
- return type;
2119
+ return type11;
2120
2120
  }
2121
- function makeParserClass(Parser) {
2122
- class TOMLParser extends Parser {
2121
+ function makeParserClass(Parser11) {
2122
+ class TOMLParser11 extends Parser11 {
2123
2123
  constructor(){
2124
2124
  super();
2125
2125
  this.ctx = this.obj = Table();
@@ -2128,10 +2128,10 @@ function makeParserClass(Parser) {
2128
2128
  return this.char === CHAR_NUM || this.char === CTRL_I || this.char === CHAR_SP || this.atEndOfLine();
2129
2129
  }
2130
2130
  atEndOfLine() {
2131
- return this.char === Parser.END || this.char === CTRL_J || this.char === CTRL_M;
2131
+ return this.char === Parser11.END || this.char === CTRL_J || this.char === CTRL_M;
2132
2132
  }
2133
2133
  parseStart() {
2134
- if (this.char === Parser.END) return null;
2134
+ if (this.char === Parser11.END) return null;
2135
2135
  else if (this.char === CHAR_LSQB) return this.call(this.parseTableOrList);
2136
2136
  else if (this.char === CHAR_NUM) return this.call(this.parseComment);
2137
2137
  else if (this.char === CTRL_J || this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) return null;
@@ -2143,32 +2143,32 @@ function makeParserClass(Parser) {
2143
2143
  parseWhitespaceToEOL() {
2144
2144
  if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) return null;
2145
2145
  else if (this.char === CHAR_NUM) return this.goto(this.parseComment);
2146
- else if (this.char === Parser.END || this.char === CTRL_J) return this.return();
2146
+ else if (this.char === Parser11.END || this.char === CTRL_J) return this.return();
2147
2147
  else throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"));
2148
2148
  }
2149
2149
  /* ASSIGNMENT: key = value */ parseAssignStatement() {
2150
2150
  return this.callNow(this.parseAssign, this.recordAssignStatement);
2151
2151
  }
2152
- recordAssignStatement(kv) {
2153
- let target = this.ctx;
2154
- let finalKey = kv.key.pop();
2155
- for (let kw of kv.key){
2156
- if (hasKey(target, kw) && (!isTable(target[kw]) || target[kw][_declared])) throw this.error(new TomlError("Can't redefine existing key"));
2157
- target = target[kw] = target[kw] || Table();
2152
+ recordAssignStatement(kv11) {
2153
+ let target11 = this.ctx;
2154
+ let finalKey11 = kv11.key.pop();
2155
+ for (let kw11 of kv11.key){
2156
+ if (hasKey(target11, kw11) && (!isTable(target11[kw11]) || target11[kw11][_declared])) throw this.error(new TomlError("Can't redefine existing key"));
2157
+ target11 = target11[kw11] = target11[kw11] || Table();
2158
2158
  }
2159
- if (hasKey(target, finalKey)) throw this.error(new TomlError("Can't redefine existing key"));
2159
+ if (hasKey(target11, finalKey11)) throw this.error(new TomlError("Can't redefine existing key"));
2160
2160
  // unbox our numbers
2161
- if (isInteger(kv.value) || isFloat(kv.value)) target[finalKey] = kv.value.valueOf();
2162
- else target[finalKey] = kv.value;
2161
+ if (isInteger(kv11.value) || isFloat(kv11.value)) target11[finalKey11] = kv11.value.valueOf();
2162
+ else target11[finalKey11] = kv11.value;
2163
2163
  return this.goto(this.parseWhitespaceToEOL);
2164
2164
  }
2165
2165
  /* ASSSIGNMENT expression, key = value possibly inside an inline table */ parseAssign() {
2166
2166
  return this.callNow(this.parseKeyword, this.recordAssignKeyword);
2167
2167
  }
2168
- recordAssignKeyword(key) {
2169
- if (this.state.resultTable) this.state.resultTable.push(key);
2168
+ recordAssignKeyword(key11) {
2169
+ if (this.state.resultTable) this.state.resultTable.push(key11);
2170
2170
  else this.state.resultTable = [
2171
- key
2171
+ key11
2172
2172
  ];
2173
2173
  return this.goto(this.parseAssignKeywordPreDot);
2174
2174
  }
@@ -2187,15 +2187,15 @@ function makeParserClass(Parser) {
2187
2187
  if (this.char === CHAR_SP || this.char === CTRL_I) return null;
2188
2188
  else return this.callNow(this.parseValue, this.recordAssignValue);
2189
2189
  }
2190
- recordAssignValue(value) {
2190
+ recordAssignValue(value11) {
2191
2191
  return this.returnNow({
2192
2192
  key: this.state.resultTable,
2193
- value: value
2193
+ value: value11
2194
2194
  });
2195
2195
  }
2196
2196
  /* COMMENTS: #...eol */ parseComment() {
2197
2197
  do {
2198
- if (this.char === Parser.END || this.char === CTRL_J) return this.return();
2198
+ if (this.char === Parser11.END || this.char === CTRL_J) return this.return();
2199
2199
  }while (this.nextChar());
2200
2200
  }
2201
2201
  /* TABLES AND LISTS, [foo] and [[foo]] */ parseTableOrList() {
@@ -2210,19 +2210,19 @@ function makeParserClass(Parser) {
2210
2210
  if (this.char === CHAR_SP || this.char === CTRL_I) return null;
2211
2211
  else return this.callNow(this.parseKeyword, this.parseTableMore);
2212
2212
  }
2213
- parseTableMore(keyword) {
2213
+ parseTableMore(keyword11) {
2214
2214
  if (this.char === CHAR_SP || this.char === CTRL_I) return null;
2215
2215
  else if (this.char === CHAR_RSQB) {
2216
- if (hasKey(this.ctx, keyword) && (!isTable(this.ctx[keyword]) || this.ctx[keyword][_declared])) throw this.error(new TomlError("Can't redefine existing key"));
2216
+ if (hasKey(this.ctx, keyword11) && (!isTable(this.ctx[keyword11]) || this.ctx[keyword11][_declared])) throw this.error(new TomlError("Can't redefine existing key"));
2217
2217
  else {
2218
- this.ctx = this.ctx[keyword] = this.ctx[keyword] || Table();
2218
+ this.ctx = this.ctx[keyword11] = this.ctx[keyword11] || Table();
2219
2219
  this.ctx[_declared] = true;
2220
2220
  }
2221
2221
  return this.next(this.parseWhitespaceToEOL);
2222
2222
  } else if (this.char === CHAR_PERIOD) {
2223
- if (!hasKey(this.ctx, keyword)) this.ctx = this.ctx[keyword] = Table();
2224
- else if (isTable(this.ctx[keyword])) this.ctx = this.ctx[keyword];
2225
- else if (isList(this.ctx[keyword])) this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1];
2223
+ if (!hasKey(this.ctx, keyword11)) this.ctx = this.ctx[keyword11] = Table();
2224
+ else if (isTable(this.ctx[keyword11])) this.ctx = this.ctx[keyword11];
2225
+ else if (isList(this.ctx[keyword11])) this.ctx = this.ctx[keyword11][this.ctx[keyword11].length - 1];
2226
2226
  else throw this.error(new TomlError("Can't redefine existing key"));
2227
2227
  return this.next(this.parseTableNext);
2228
2228
  } else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"));
@@ -2235,33 +2235,33 @@ function makeParserClass(Parser) {
2235
2235
  if (this.char === CHAR_SP || this.char === CTRL_I) return null;
2236
2236
  else return this.callNow(this.parseKeyword, this.parseListMore);
2237
2237
  }
2238
- parseListMore(keyword) {
2238
+ parseListMore(keyword11) {
2239
2239
  if (this.char === CHAR_SP || this.char === CTRL_I) return null;
2240
2240
  else if (this.char === CHAR_RSQB) {
2241
- if (!hasKey(this.ctx, keyword)) this.ctx[keyword] = List();
2242
- if (isInlineList(this.ctx[keyword])) throw this.error(new TomlError("Can't extend an inline array"));
2243
- else if (isList(this.ctx[keyword])) {
2244
- const next = Table();
2245
- this.ctx[keyword].push(next);
2246
- this.ctx = next;
2241
+ if (!hasKey(this.ctx, keyword11)) this.ctx[keyword11] = List();
2242
+ if (isInlineList(this.ctx[keyword11])) throw this.error(new TomlError("Can't extend an inline array"));
2243
+ else if (isList(this.ctx[keyword11])) {
2244
+ const next11 = Table();
2245
+ this.ctx[keyword11].push(next11);
2246
+ this.ctx = next11;
2247
2247
  } else throw this.error(new TomlError("Can't redefine an existing key"));
2248
2248
  return this.next(this.parseListEnd);
2249
2249
  } else if (this.char === CHAR_PERIOD) {
2250
- if (!hasKey(this.ctx, keyword)) this.ctx = this.ctx[keyword] = Table();
2251
- else if (isInlineList(this.ctx[keyword])) throw this.error(new TomlError("Can't extend an inline array"));
2252
- else if (isInlineTable(this.ctx[keyword])) throw this.error(new TomlError("Can't extend an inline table"));
2253
- else if (isList(this.ctx[keyword])) this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1];
2254
- else if (isTable(this.ctx[keyword])) this.ctx = this.ctx[keyword];
2250
+ if (!hasKey(this.ctx, keyword11)) this.ctx = this.ctx[keyword11] = Table();
2251
+ else if (isInlineList(this.ctx[keyword11])) throw this.error(new TomlError("Can't extend an inline array"));
2252
+ else if (isInlineTable(this.ctx[keyword11])) throw this.error(new TomlError("Can't extend an inline table"));
2253
+ else if (isList(this.ctx[keyword11])) this.ctx = this.ctx[keyword11][this.ctx[keyword11].length - 1];
2254
+ else if (isTable(this.ctx[keyword11])) this.ctx = this.ctx[keyword11];
2255
2255
  else throw this.error(new TomlError("Can't redefine an existing key"));
2256
2256
  return this.next(this.parseListNext);
2257
2257
  } else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"));
2258
2258
  }
2259
- parseListEnd(keyword) {
2259
+ parseListEnd(keyword11) {
2260
2260
  if (this.char === CHAR_RSQB) return this.next(this.parseWhitespaceToEOL);
2261
2261
  else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"));
2262
2262
  }
2263
2263
  /* VALUE string, number, boolean, inline list, inline object */ parseValue() {
2264
- if (this.char === Parser.END) throw this.error(new TomlError("Key without value"));
2264
+ if (this.char === Parser11.END) throw this.error(new TomlError("Key without value"));
2265
2265
  else if (this.char === CHAR_QUOT) return this.next(this.parseDoubleString);
2266
2266
  if (this.char === CHAR_APOS) return this.next(this.parseSingleString);
2267
2267
  else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) return this.goto(this.parseNumberSign);
@@ -2273,8 +2273,8 @@ function makeParserClass(Parser) {
2273
2273
  else if (this.char === CHAR_LCUB) return this.call(this.parseInlineTable, this.recordValue);
2274
2274
  else throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"));
2275
2275
  }
2276
- recordValue(value) {
2277
- return this.returnNow(value);
2276
+ recordValue(value11) {
2277
+ return this.returnNow(value11);
2278
2278
  }
2279
2279
  parseInf() {
2280
2280
  if (this.char === CHAR_n) return this.next(this.parseInf2);
@@ -2301,7 +2301,7 @@ function makeParserClass(Parser) {
2301
2301
  }
2302
2302
  /* KEYS: barewords */ parseBareKey() {
2303
2303
  do {
2304
- if (this.char === Parser.END) throw this.error(new TomlError("Key ended without value"));
2304
+ if (this.char === Parser11.END) throw this.error(new TomlError("Key ended without value"));
2305
2305
  else if (isAlphaNumHyphen(this.char)) this.consume();
2306
2306
  else if (this.state.buf.length === 0) throw this.error(new TomlError("Empty bare keys are not allowed"));
2307
2307
  else return this.returnNow();
@@ -2331,7 +2331,7 @@ function makeParserClass(Parser) {
2331
2331
  parseLiteralMultiStringContent() {
2332
2332
  do {
2333
2333
  if (this.char === CHAR_APOS) return this.next(this.parseLiteralMultiEnd);
2334
- else if (this.char === Parser.END) throw this.error(new TomlError("Unterminated multi-line string"));
2334
+ else if (this.char === Parser11.END) throw this.error(new TomlError("Unterminated multi-line string"));
2335
2335
  else if (this.char === CHAR_DEL || this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I && this.char !== CTRL_J && this.char !== CTRL_M) throw this.errorControlCharInString();
2336
2336
  else this.consume();
2337
2337
  }while (this.nextChar());
@@ -2363,8 +2363,8 @@ function makeParserClass(Parser) {
2363
2363
  else this.consume();
2364
2364
  }while (this.nextChar());
2365
2365
  }
2366
- recordEscapeReplacement(replacement) {
2367
- this.state.buf += replacement;
2366
+ recordEscapeReplacement(replacement11) {
2367
+ this.state.buf += replacement11;
2368
2368
  return this.goto(this.parseBasicString);
2369
2369
  }
2370
2370
  parseMultiStringMaybe() {
@@ -2380,19 +2380,19 @@ function makeParserClass(Parser) {
2380
2380
  do {
2381
2381
  if (this.char === CHAR_BSOL) return this.call(this.parseMultiEscape, this.recordMultiEscapeReplacement);
2382
2382
  else if (this.char === CHAR_QUOT) return this.next(this.parseMultiEnd);
2383
- else if (this.char === Parser.END) throw this.error(new TomlError("Unterminated multi-line string"));
2383
+ else if (this.char === Parser11.END) throw this.error(new TomlError("Unterminated multi-line string"));
2384
2384
  else if (this.char === CHAR_DEL || this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I && this.char !== CTRL_J && this.char !== CTRL_M) throw this.errorControlCharInString();
2385
2385
  else this.consume();
2386
2386
  }while (this.nextChar());
2387
2387
  }
2388
2388
  errorControlCharInString() {
2389
- let displayCode = "\\u00";
2390
- if (this.char < 16) displayCode += "0";
2391
- displayCode += this.char.toString(16);
2392
- return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${displayCode} instead`));
2389
+ let displayCode11 = "\\u00";
2390
+ if (this.char < 16) displayCode11 += "0";
2391
+ displayCode11 += this.char.toString(16);
2392
+ return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${displayCode11} instead`));
2393
2393
  }
2394
- recordMultiEscapeReplacement(replacement) {
2395
- this.state.buf += replacement;
2394
+ recordMultiEscapeReplacement(replacement11) {
2395
+ this.state.buf += replacement11;
2396
2396
  return this.goto(this.parseMultiStringContent);
2397
2397
  }
2398
2398
  parseMultiEnd() {
@@ -2430,13 +2430,13 @@ function makeParserClass(Parser) {
2430
2430
  else if (this.char === CHAR_U) return this.call(this.parseLargeUnicode, this.parseUnicodeReturn);
2431
2431
  else throw this.error(new TomlError("Unknown escape character: " + this.char));
2432
2432
  }
2433
- parseUnicodeReturn(char) {
2433
+ parseUnicodeReturn(char11) {
2434
2434
  try {
2435
- const codePoint = parseInt(char, 16);
2436
- if (codePoint >= SURROGATE_FIRST && codePoint <= SURROGATE_LAST) throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));
2437
- return this.returnNow(String.fromCodePoint(codePoint));
2438
- } catch (err) {
2439
- throw this.error(TomlError.wrap(err));
2435
+ const codePoint11 = parseInt(char11, 16);
2436
+ if (codePoint11 >= SURROGATE_FIRST && codePoint11 <= SURROGATE_LAST) throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));
2437
+ return this.returnNow(String.fromCodePoint(codePoint11));
2438
+ } catch (err11) {
2439
+ throw this.error(TomlError.wrap(err11));
2440
2440
  }
2441
2441
  }
2442
2442
  parseSmallUnicode() {
@@ -2487,9 +2487,9 @@ function makeParserClass(Parser) {
2487
2487
  this.consume();
2488
2488
  return this.call(this.parseNoUnder, this.parseNumberFloat);
2489
2489
  } else {
2490
- const result = Integer(this.state.buf);
2491
- /* istanbul ignore if */ if (result.isNaN()) throw this.error(new TomlError("Invalid number"));
2492
- else return this.returnNow(result);
2490
+ const result11 = Integer(this.state.buf);
2491
+ /* istanbul ignore if */ if (result11.isNaN()) throw this.error(new TomlError("Invalid number"));
2492
+ else return this.returnNow(result11);
2493
2493
  }
2494
2494
  }
2495
2495
  parseNoUnder() {
@@ -2567,27 +2567,27 @@ function makeParserClass(Parser) {
2567
2567
  if (isHexit(this.char)) this.consume();
2568
2568
  else if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnder);
2569
2569
  else {
2570
- const result = Integer(this.state.buf);
2571
- /* istanbul ignore if */ if (result.isNaN()) throw this.error(new TomlError("Invalid number"));
2572
- else return this.returnNow(result);
2570
+ const result11 = Integer(this.state.buf);
2571
+ /* istanbul ignore if */ if (result11.isNaN()) throw this.error(new TomlError("Invalid number"));
2572
+ else return this.returnNow(result11);
2573
2573
  }
2574
2574
  }
2575
2575
  parseIntegerOct() {
2576
2576
  if (isOctit(this.char)) this.consume();
2577
2577
  else if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnder);
2578
2578
  else {
2579
- const result = Integer(this.state.buf);
2580
- /* istanbul ignore if */ if (result.isNaN()) throw this.error(new TomlError("Invalid number"));
2581
- else return this.returnNow(result);
2579
+ const result11 = Integer(this.state.buf);
2580
+ /* istanbul ignore if */ if (result11.isNaN()) throw this.error(new TomlError("Invalid number"));
2581
+ else return this.returnNow(result11);
2582
2582
  }
2583
2583
  }
2584
2584
  parseIntegerBin() {
2585
2585
  if (isBit(this.char)) this.consume();
2586
2586
  else if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnder);
2587
2587
  else {
2588
- const result = Integer(this.state.buf);
2589
- /* istanbul ignore if */ if (result.isNaN()) throw this.error(new TomlError("Invalid number"));
2590
- else return this.returnNow(result);
2588
+ const result11 = Integer(this.state.buf);
2589
+ /* istanbul ignore if */ if (result11.isNaN()) throw this.error(new TomlError("Invalid number"));
2590
+ else return this.returnNow(result11);
2591
2591
  }
2592
2592
  }
2593
2593
  /* DATETIME */ parseDateTime() {
@@ -2776,20 +2776,20 @@ function makeParserClass(Parser) {
2776
2776
  }
2777
2777
  /* INLINE LISTS */ parseInlineList() {
2778
2778
  if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M || this.char === CTRL_J) return null;
2779
- else if (this.char === Parser.END) throw this.error(new TomlError("Unterminated inline array"));
2779
+ else if (this.char === Parser11.END) throw this.error(new TomlError("Unterminated inline array"));
2780
2780
  else if (this.char === CHAR_NUM) return this.call(this.parseComment);
2781
2781
  else if (this.char === CHAR_RSQB) return this.return(this.state.resultArr || InlineList());
2782
2782
  else return this.callNow(this.parseValue, this.recordInlineListValue);
2783
2783
  }
2784
- recordInlineListValue(value) {
2784
+ recordInlineListValue(value11) {
2785
2785
  if (this.state.resultArr) {
2786
- const listType = this.state.resultArr[_contentType];
2787
- const valueType = tomlType(value);
2788
- if (listType !== valueType) throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${listType} and ${valueType}`));
2789
- } else this.state.resultArr = InlineList(tomlType(value));
2790
- if (isFloat(value) || isInteger(value)) // unbox now that we've verified they're ok
2791
- this.state.resultArr.push(value.valueOf());
2792
- else this.state.resultArr.push(value);
2786
+ const listType11 = this.state.resultArr[_contentType];
2787
+ const valueType11 = tomlType(value11);
2788
+ if (listType11 !== valueType11) throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${listType11} and ${valueType11}`));
2789
+ } else this.state.resultArr = InlineList(tomlType(value11));
2790
+ if (isFloat(value11) || isInteger(value11)) // unbox now that we've verified they're ok
2791
+ this.state.resultArr.push(value11.valueOf());
2792
+ else this.state.resultArr.push(value11);
2793
2793
  return this.goto(this.parseInlineListNext);
2794
2794
  }
2795
2795
  parseInlineListNext() {
@@ -2801,34 +2801,34 @@ function makeParserClass(Parser) {
2801
2801
  }
2802
2802
  /* INLINE TABLE */ parseInlineTable() {
2803
2803
  if (this.char === CHAR_SP || this.char === CTRL_I) return null;
2804
- else if (this.char === Parser.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) throw this.error(new TomlError("Unterminated inline array"));
2804
+ else if (this.char === Parser11.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) throw this.error(new TomlError("Unterminated inline array"));
2805
2805
  else if (this.char === CHAR_RCUB) return this.return(this.state.resultTable || InlineTable());
2806
2806
  else {
2807
2807
  if (!this.state.resultTable) this.state.resultTable = InlineTable();
2808
2808
  return this.callNow(this.parseAssign, this.recordInlineTableValue);
2809
2809
  }
2810
2810
  }
2811
- recordInlineTableValue(kv) {
2812
- let target = this.state.resultTable;
2813
- let finalKey = kv.key.pop();
2814
- for (let kw of kv.key){
2815
- if (hasKey(target, kw) && (!isTable(target[kw]) || target[kw][_declared])) throw this.error(new TomlError("Can't redefine existing key"));
2816
- target = target[kw] = target[kw] || Table();
2811
+ recordInlineTableValue(kv11) {
2812
+ let target11 = this.state.resultTable;
2813
+ let finalKey11 = kv11.key.pop();
2814
+ for (let kw11 of kv11.key){
2815
+ if (hasKey(target11, kw11) && (!isTable(target11[kw11]) || target11[kw11][_declared])) throw this.error(new TomlError("Can't redefine existing key"));
2816
+ target11 = target11[kw11] = target11[kw11] || Table();
2817
2817
  }
2818
- if (hasKey(target, finalKey)) throw this.error(new TomlError("Can't redefine existing key"));
2819
- if (isInteger(kv.value) || isFloat(kv.value)) target[finalKey] = kv.value.valueOf();
2820
- else target[finalKey] = kv.value;
2818
+ if (hasKey(target11, finalKey11)) throw this.error(new TomlError("Can't redefine existing key"));
2819
+ if (isInteger(kv11.value) || isFloat(kv11.value)) target11[finalKey11] = kv11.value.valueOf();
2820
+ else target11[finalKey11] = kv11.value;
2821
2821
  return this.goto(this.parseInlineTableNext);
2822
2822
  }
2823
2823
  parseInlineTableNext() {
2824
2824
  if (this.char === CHAR_SP || this.char === CTRL_I) return null;
2825
- else if (this.char === Parser.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) throw this.error(new TomlError("Unterminated inline array"));
2825
+ else if (this.char === Parser11.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) throw this.error(new TomlError("Unterminated inline array"));
2826
2826
  else if (this.char === CHAR_COMMA) return this.next(this.parseInlineTable);
2827
2827
  else if (this.char === CHAR_RCUB) return this.goto(this.parseInlineTable);
2828
2828
  else throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"));
2829
2829
  }
2830
2830
  }
2831
- return TOMLParser;
2831
+ return TOMLParser11;
2832
2832
  }
2833
2833
 
2834
2834
  });
@@ -14671,7 +14671,7 @@ var $564ac6480d83471d$var$pkcs1 = $564ac6480d83471d$exports = $iGlOy.pkcs1 = $iG
14671
14671
  var lHash = md.digest();
14672
14672
  var PS = "";
14673
14673
  var PS_length = maxLength - message.length;
14674
- for(var i = 0; i < PS_length; i++)PS += "\0";
14674
+ for(var i = 0; i < PS_length; i++)PS += "\x00";
14675
14675
  var DB = lHash.getBytes() + PS + "\x01" + message;
14676
14676
  if (!seed) seed = $iGlOy.random.getBytes(md.digestLength);
14677
14677
  else if (seed.length !== md.digestLength) {
@@ -14685,7 +14685,7 @@ var $564ac6480d83471d$var$pkcs1 = $564ac6480d83471d$exports = $iGlOy.pkcs1 = $iG
14685
14685
  var seedMask = $564ac6480d83471d$var$rsa_mgf1(maskedDB, md.digestLength, mgf1Md);
14686
14686
  var maskedSeed = $iGlOy.util.xorBytes(seed, seedMask, seed.length);
14687
14687
  // return encoded message
14688
- return "\0" + maskedSeed + maskedDB;
14688
+ return "\x00" + maskedSeed + maskedDB;
14689
14689
  };
14690
14690
  /**
14691
14691
  * Decode the given RSAES-OAEP encoded message (EM) using key, with optional
@@ -14744,7 +14744,7 @@ var $564ac6480d83471d$var$pkcs1 = $564ac6480d83471d$exports = $iGlOy.pkcs1 = $iG
14744
14744
  var db = $iGlOy.util.xorBytes(maskedDB, dbMask, maskedDB.length);
14745
14745
  var lHashPrime = db.substring(0, md.digestLength);
14746
14746
  // constant time check that all values match what is expected
14747
- var error = y !== "\0";
14747
+ var error = y !== "\x00";
14748
14748
  // constant time check lHash vs lHashPrime
14749
14749
  for(var i = 0; i < md.digestLength; ++i)error |= lHash.charAt(i) !== lHashPrime.charAt(i);
14750
14750
  // "constant time" find the 0x1 byte separating the padding (zeros) from the
@@ -26651,8 +26651,8 @@ var $33c8fc1a702f0359$var$_states = null;
26651
26651
  (lo >>> 29 | hi << 3) ^ // ROTR 61/(swap + ROTR 29)
26652
26652
  hi >>> 6) >>> 0; // SHR 6
26653
26653
  // low bits
26654
- t1_lo = ((hi << 13 | lo >>> 19) ^ (// ROTR 19
26655
- lo << 3 | hi >>> 29) ^ // ROTR 61/(swap + ROTR 29)
26654
+ t1_lo = ((hi << 13 | lo >>> 19) ^ // ROTR 19
26655
+ (lo << 3 | hi >>> 29) ^ // ROTR 61/(swap + ROTR 29)
26656
26656
  (hi << 26 | lo >>> 6)) >>> 0; // SHR 6
26657
26657
  // for word 15 words ago: ROTR 1(x) ^ ROTR 8(x) ^ SHR 7(x)
26658
26658
  w15 = w[i - 15];
@@ -26664,8 +26664,8 @@ var $33c8fc1a702f0359$var$_states = null;
26664
26664
  hi >>> 7) >>> 0; // SHR 7
26665
26665
  // low bits
26666
26666
  t2_lo = ((hi << 31 | lo >>> 1) ^ // ROTR 1
26667
- (hi << 24 | lo >>> 8) ^ (// ROTR 8
26668
- hi << 25 | lo >>> 7)) >>> 0; // SHR 7
26667
+ (hi << 24 | lo >>> 8) ^ // ROTR 8
26668
+ (hi << 25 | lo >>> 7)) >>> 0; // SHR 7
26669
26669
  // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^64 (carry lo overflow)
26670
26670
  w7 = w[i - 7];
26671
26671
  w16 = w[i - 16];
@@ -26693,22 +26693,22 @@ var $33c8fc1a702f0359$var$_states = null;
26693
26693
  // round function
26694
26694
  for(i = 0; i < 80; ++i){
26695
26695
  // Sum1(e) = ROTR 14(e) ^ ROTR 18(e) ^ ROTR 41(e)
26696
- s1_hi = ((e_hi >>> 14 | e_lo << 18) ^ (// ROTR 14
26697
- e_hi >>> 18 | e_lo << 14) ^ (// ROTR 18
26698
- e_lo >>> 9 | e_hi << 23)) >>> 0; // ROTR 41/(swap + ROTR 9)
26696
+ s1_hi = ((e_hi >>> 14 | e_lo << 18) ^ // ROTR 14
26697
+ (e_hi >>> 18 | e_lo << 14) ^ // ROTR 18
26698
+ (e_lo >>> 9 | e_hi << 23)) >>> 0; // ROTR 41/(swap + ROTR 9)
26699
26699
  s1_lo = ((e_hi << 18 | e_lo >>> 14) ^ // ROTR 14
26700
- (e_hi << 14 | e_lo >>> 18) ^ (// ROTR 18
26701
- e_lo << 23 | e_hi >>> 9)) >>> 0; // ROTR 41/(swap + ROTR 9)
26700
+ (e_hi << 14 | e_lo >>> 18) ^ // ROTR 18
26701
+ (e_lo << 23 | e_hi >>> 9)) >>> 0; // ROTR 41/(swap + ROTR 9)
26702
26702
  // Ch(e, f, g) (optimized the same way as SHA-1)
26703
26703
  ch_hi = (g_hi ^ e_hi & (f_hi ^ g_hi)) >>> 0;
26704
26704
  ch_lo = (g_lo ^ e_lo & (f_lo ^ g_lo)) >>> 0;
26705
26705
  // Sum0(a) = ROTR 28(a) ^ ROTR 34(a) ^ ROTR 39(a)
26706
- s0_hi = ((a_hi >>> 28 | a_lo << 4) ^ (// ROTR 28
26707
- a_lo >>> 2 | a_hi << 30) ^ // ROTR 34/(swap + ROTR 2)
26706
+ s0_hi = ((a_hi >>> 28 | a_lo << 4) ^ // ROTR 28
26707
+ (a_lo >>> 2 | a_hi << 30) ^ // ROTR 34/(swap + ROTR 2)
26708
26708
  (a_lo >>> 7 | a_hi << 25)) >>> 0; // ROTR 39/(swap + ROTR 7)
26709
- s0_lo = ((a_hi << 4 | a_lo >>> 28) ^ (// ROTR 28
26710
- a_lo << 30 | a_hi >>> 2) ^ (// ROTR 34/(swap + ROTR 2)
26711
- a_lo << 25 | a_hi >>> 7)) >>> 0; // ROTR 39/(swap + ROTR 7)
26709
+ s0_lo = ((a_hi << 4 | a_lo >>> 28) ^ // ROTR 28
26710
+ (a_lo << 30 | a_hi >>> 2) ^ // ROTR 34/(swap + ROTR 2)
26711
+ (a_lo << 25 | a_hi >>> 7)) >>> 0; // ROTR 39/(swap + ROTR 7)
26712
26712
  // Maj(a, b, c) (optimized the same way as SHA-1)
26713
26713
  maj_hi = (a_hi & b_hi | c_hi & (a_hi ^ b_hi)) >>> 0;
26714
26714
  maj_lo = (a_lo & b_lo | c_lo & (a_lo ^ b_lo)) >>> 0;
@@ -29328,8 +29328,8 @@ var $85c6486b1bf8bee8$var$ssh = $85c6486b1bf8bee8$exports = $iGlOy.ssh = $iGlOy.
29328
29328
  padding.truncate(padding.length() - encLen + privbuffer.length());
29329
29329
  privbuffer.putBuffer(padding);
29330
29330
  var aeskey = $iGlOy.util.createBuffer();
29331
- aeskey.putBuffer($85c6486b1bf8bee8$var$_sha1("\0\0\0\0", passphrase));
29332
- aeskey.putBuffer($85c6486b1bf8bee8$var$_sha1("\0\0\0\x01", passphrase));
29331
+ aeskey.putBuffer($85c6486b1bf8bee8$var$_sha1("\x00\x00\x00\x00", passphrase));
29332
+ aeskey.putBuffer($85c6486b1bf8bee8$var$_sha1("\x00\x00\x00\x01", passphrase));
29333
29333
  // encrypt some bytes using CBC mode
29334
29334
  // key is 40 bytes, so truncate *by* 8 bytes
29335
29335
  var cipher = $iGlOy.aes.createEncryptionCipher(aeskey.truncate(8), "CBC");
@@ -35069,7 +35069,7 @@ function $5dc3ee1f90b35876$var$escape() {
35069
35069
  case "0":
35070
35070
  $5dc3ee1f90b35876$var$read();
35071
35071
  if ($5dc3ee1f90b35876$var$util.isDigit($5dc3ee1f90b35876$var$peek())) throw $5dc3ee1f90b35876$var$invalidChar($5dc3ee1f90b35876$var$read());
35072
- return "\0";
35072
+ return "\x00";
35073
35073
  case "x":
35074
35074
  $5dc3ee1f90b35876$var$read();
35075
35075
  return $5dc3ee1f90b35876$var$hexEscape();
@@ -35289,7 +35289,7 @@ function $5dc3ee1f90b35876$var$formatChar(c) {
35289
35289
  "\r": "\\r",
35290
35290
  " ": "\\t",
35291
35291
  "\v": "\\v",
35292
- "\0": "\\0",
35292
+ "\x00": "\\0",
35293
35293
  "\u2028": "\\u2028",
35294
35294
  "\u2029": "\\u2029"
35295
35295
  };
@@ -35377,7 +35377,7 @@ var $5dc3ee1f90b35876$var$stringify = function stringify(value, replacer, space)
35377
35377
  "\r": "\\r",
35378
35378
  " ": "\\t",
35379
35379
  "\v": "\\v",
35380
- "\0": "\\0",
35380
+ "\x00": "\\0",
35381
35381
  "\u2028": "\\u2028",
35382
35382
  "\u2029": "\\u2029"
35383
35383
  };
@@ -35390,7 +35390,7 @@ var $5dc3ee1f90b35876$var$stringify = function stringify(value, replacer, space)
35390
35390
  quotes[c]++;
35391
35391
  product += c;
35392
35392
  continue;
35393
- case "\0":
35393
+ case "\x00":
35394
35394
  if ($5dc3ee1f90b35876$var$util.isDigit(value[i + 1])) {
35395
35395
  product += "\\x00";
35396
35396
  continue;